From d31ba23185ad4f9b7b9714585db9aaf90268e115 Mon Sep 17 00:00:00 2001 From: Francesco Lavra Date: Fri, 11 Jun 2010 09:01:25 +0000 Subject: RealAudio 14.4k encoder. Patch by Francesco Lavra (firstnamelastname@interfree.it) Originally committed as revision 23579 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ra144.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavcodec/ra144.h') diff --git a/libavcodec/ra144.h b/libavcodec/ra144.h index bffa8b337a..536b5bbe72 100644 --- a/libavcodec/ra144.h +++ b/libavcodec/ra144.h @@ -23,13 +23,18 @@ #define AVCODEC_RA144_H #include +#include "dsputil.h" #define NBLOCKS 4 ///< number of subblocks within a block #define BLOCKSIZE 40 ///< subblock size in 16-bit words #define BUFFERSIZE 146 ///< the size of the adaptive codebook +#define FIXED_CB_SIZE 128 ///< size of fixed codebooks +#define FRAMESIZE 20 ///< size of encoded frame +#define LPC_ORDER 10 ///< order of LPC filter typedef struct { AVCodecContext *avctx; + DSPContext dsp; unsigned int old_energy; ///< previous frame energy @@ -41,6 +46,8 @@ typedef struct { unsigned int lpc_refl_rms[2]; + int16_t curr_block[NBLOCKS * BLOCKSIZE]; + /** The current subblock padded by the last 10 values of the previous one. */ int16_t curr_sblock[50]; -- cgit v1.2.3