libavresample/resample_template.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SET_TYPE(func)   func ## _s16
 
#define FELEM   int16_t
 
#define FELEM2   int32_t
 
#define FELEML   int64_t
 
#define OUT(d, v)   d = av_clip_int16((v + (1 << 14)) >> 15)
 
#define DBL_TO_FELEM(d, v)   d = av_clip_int16(lrint(v * (1 << 15)))
 

Functions

static void SET_TYPE() resample_one (ResampleContext *c, int no_filter, void *dst0, int dst_index, const void *src0, int src_size, int index, int frac)
 
static void SET_TYPE() set_filter (void *filter0, double *tab, int phase, int tap_count)
 

Macro Definition Documentation

#define DBL_TO_FELEM (   d,
  v 
)    d = av_clip_int16(lrint(v * (1 << 15)))

Definition at line 48 of file libavresample/resample_template.c.

Referenced by set_filter().

#define FELEM   int16_t

Definition at line 44 of file libavresample/resample_template.c.

Referenced by resample_one(), set_filter(), and swri_resample().

#define FELEM2   int32_t

Definition at line 45 of file libavresample/resample_template.c.

Referenced by resample_one(), and swri_resample().

#define FELEML   int64_t

Definition at line 46 of file libavresample/resample_template.c.

Referenced by resample_one(), and swri_resample().

#define OUT (   d,
  v 
)    d = av_clip_int16((v + (1 << 14)) >> 15)

Definition at line 47 of file libavresample/resample_template.c.

Referenced by resample_one().

#define SET_TYPE (   func)    func ## _s16

Definition at line 43 of file libavresample/resample_template.c.

Function Documentation

static void SET_TYPE() resample_one ( ResampleContext c,
int  no_filter,
void dst0,
int  dst_index,
const void src0,
int  src_size,
int  index,
int  frac 
)
static

Definition at line 51 of file libavresample/resample_template.c.

static void SET_TYPE() set_filter ( void filter0,
double *  tab,
int  phase,
int  tap_count 
)
static

Definition at line 87 of file libavresample/resample_template.c.