Mercurial > libavcodec.hg
diff ra144.h @ 11870:6b1a63ea6e61 libavcodec
RealAudio 14.4k encoder.
Patch by Francesco Lavra (firstnamelastname@interfree.it)
author | vitor |
---|---|
date | Fri, 11 Jun 2010 09:01:25 +0000 |
parents | 159554445343 |
children |
line wrap: on
line diff
--- a/ra144.h Fri Jun 11 08:49:15 2010 +0000 +++ b/ra144.h Fri Jun 11 09:01:25 2010 +0000 @@ -23,13 +23,18 @@ #define AVCODEC_RA144_H #include <stdint.h> +#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 @@ 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];