1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

swr: move AudioConvert to header

the next commits will need it

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-04-28 12:20:19 +02:00
parent edbde52226
commit 06b62cb8f2
2 changed files with 9 additions and 11 deletions

View File

@ -32,15 +32,6 @@
#include "audioconvert.h" #include "audioconvert.h"
typedef void (conv_func_type)(uint8_t *po, const uint8_t *pi, int is, int os, uint8_t *end);
struct AudioConvert {
int channels;
conv_func_type *conv_f;
const int *ch_map;
uint8_t silence[8]; ///< silence input sample
};
#define CONV_FUNC_NAME(dst_fmt, src_fmt) conv_ ## src_fmt ## _to_ ## dst_fmt #define CONV_FUNC_NAME(dst_fmt, src_fmt) conv_ ## src_fmt ## _to_ ## dst_fmt
//FIXME rounding ? //FIXME rounding ?

View File

@ -33,8 +33,15 @@
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/audioconvert.h" #include "libavutil/audioconvert.h"
struct AudioConvert;
typedef struct AudioConvert AudioConvert; typedef void (conv_func_type)(uint8_t *po, const uint8_t *pi, int is, int os, uint8_t *end);
typedef struct AudioConvert {
int channels;
conv_func_type *conv_f;
const int *ch_map;
uint8_t silence[8]; ///< silence input sample
}AudioConvert;
/** /**
* Create an audio sample format converter context * Create an audio sample format converter context