libswresample/swresample_internal.h File Reference

#include "swresample.h"
#include "libavutil/audioconvert.h"

Go to the source code of this file.

Data Structures

struct  AudioData
 Audio buffer used for intermediate storage between conversion phases. More...
struct  SwrContext

Defines

#define SQRT3_2   1.22474487139158904909

Typedefs

typedef void( mix_1_1_func_type )(void *out, const void *in, void *coeffp, int index, int len)
typedef void( mix_2_1_func_type )(void *out, const void *in1, const void *in2, void *coeffp, int index1, int index2, int len)
typedef void( mix_any_func_type )(uint8_t **out, const uint8_t **in1, void *coeffp, int len)

Functions

struct ResampleContextswri_resample_init (struct ResampleContext *, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff, enum AVSampleFormat, enum SwrFilterType, int kaiser_beta)
void swri_resample_free (struct ResampleContext **c)
int swri_multiple_resample (struct ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed)
void swri_resample_compensate (struct ResampleContext *c, int sample_delta, int compensation_distance)
int swri_resample_int16 (struct ResampleContext *c, int16_t *dst, const int16_t *src, int *consumed, int src_size, int dst_size, int update_ctx)
int swri_resample_int32 (struct ResampleContext *c, int32_t *dst, const int32_t *src, int *consumed, int src_size, int dst_size, int update_ctx)
int swri_resample_float (struct ResampleContext *c, float *dst, const float *src, int *consumed, int src_size, int dst_size, int update_ctx)
int swri_resample_double (struct ResampleContext *c, double *dst, const double *src, int *consumed, int src_size, int dst_size, int update_ctx)
int swri_rematrix_init (SwrContext *s)
void swri_rematrix_free (SwrContext *s)
int swri_rematrix (SwrContext *s, AudioData *out, AudioData *in, int len, int mustcopy)
void swri_rematrix_init_x86 (struct SwrContext *s)
void swri_get_dither (SwrContext *s, void *dst, int len, unsigned seed, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt)
void swri_audio_convert_init_arm (struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels)
void swri_audio_convert_init_x86 (struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels)


Define Documentation

#define SQRT3_2   1.22474487139158904909

Definition at line 27 of file swresample_internal.h.


Typedef Documentation

typedef void( mix_1_1_func_type)(void *out, const void *in, void *coeffp, int index, int len)

Definition at line 29 of file swresample_internal.h.

typedef void( mix_2_1_func_type)(void *out, const void *in1, const void *in2, void *coeffp, int index1, int index2, int len)

Definition at line 30 of file swresample_internal.h.

typedef void( mix_any_func_type)(uint8_t **out, const uint8_t **in1, void *coeffp, int len)

Definition at line 32 of file swresample_internal.h.


Function Documentation

void swri_audio_convert_init_arm ( struct AudioConvert ac,
enum AVSampleFormat  out_fmt,
enum AVSampleFormat  in_fmt,
int  channels 
)

Definition at line 48 of file audio_convert_init.c.

void swri_audio_convert_init_x86 ( struct AudioConvert ac,
enum AVSampleFormat  out_fmt,
enum AVSampleFormat  in_fmt,
int  channels 
)

Definition at line 33 of file swresample_x86.c.

void swri_get_dither ( SwrContext s,
void *  dst,
int  len,
unsigned  seed,
enum AVSampleFormat  out_fmt,
enum AVSampleFormat  in_fmt 
)

Definition at line 24 of file dither.c.

Referenced by swr_convert_internal().

int swri_multiple_resample ( struct ResampleContext c,
AudioData dst,
int  dst_size,
AudioData src,
int  src_size,
int consumed 
)

Definition at line 420 of file resample.c.

Referenced by resample().

int swri_rematrix ( SwrContext s,
AudioData out,
AudioData in,
int  len,
int  mustcopy 
)

Definition at line 418 of file rematrix.c.

Referenced by swr_convert_internal().

void swri_rematrix_free ( SwrContext s  ) 

Definition at line 412 of file rematrix.c.

Referenced by swr_free(), and swr_init().

int swri_rematrix_init ( SwrContext s  ) 

Definition at line 352 of file rematrix.c.

Referenced by swr_init().

void swri_rematrix_init_x86 ( struct SwrContext s  ) 

Definition at line 152 of file swresample_x86.c.

Referenced by swri_rematrix_init().

void swri_resample_compensate ( struct ResampleContext c,
int  sample_delta,
int  compensation_distance 
)

int swri_resample_double ( struct ResampleContext c,
double *  dst,
const double *  src,
int consumed,
int  src_size,
int  dst_size,
int  update_ctx 
)

Referenced by swri_multiple_resample().

int swri_resample_float ( struct ResampleContext c,
float *  dst,
const float *  src,
int consumed,
int  src_size,
int  dst_size,
int  update_ctx 
)

Referenced by swri_multiple_resample().

void swri_resample_free ( struct ResampleContext **  c  ) 

Definition at line 262 of file resample.c.

Referenced by swr_free(), and swr_init().

struct ResampleContext* swri_resample_init ( struct ResampleContext ,
int  out_rate,
int  in_rate,
int  filter_size,
int  phase_shift,
int  linear,
double  cutoff,
enum  AVSampleFormat,
enum  SwrFilterType,
int  kaiser_beta 
) [read]

Definition at line 198 of file resample.c.

Referenced by swr_init().

int swri_resample_int16 ( struct ResampleContext c,
int16_t dst,
const int16_t src,
int consumed,
int  src_size,
int  dst_size,
int  update_ctx 
)

Referenced by swri_multiple_resample().

int swri_resample_int32 ( struct ResampleContext c,
int32_t *  dst,
const int32_t *  src,
int consumed,
int  src_size,
int  dst_size,
int  update_ctx 
)

Referenced by swri_multiple_resample().


Generated on Fri Oct 26 02:50:12 2012 for FFmpeg by  doxygen 1.5.8