00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef AVCODEC_FMTCONVERT_H
00024 #define AVCODEC_FMTCONVERT_H
00025
00026 #include "avcodec.h"
00027
00028 typedef struct FmtConvertContext {
00038 void (*int32_to_float_fmul_scalar)(float *dst, const int *src, float mul, int len);
00039
00053 void (*float_to_int16)(int16_t *dst, const float *src, long len);
00054
00069 void (*float_to_int16_interleave)(int16_t *dst, const float **src,
00070 long len, int channels);
00071 } FmtConvertContext;
00072
00073 void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx);
00074
00075 void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx);
00076 void ff_fmt_convert_init_altivec(FmtConvertContext *c, AVCodecContext *avctx);
00077 void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx);
00078
00079 #endif