diff options
author | Francesco Lavra <francescolavra@interfree.it> | 2010-06-11 09:01:25 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-06-11 09:01:25 +0000 |
commit | d31ba23185ad4f9b7b9714585db9aaf90268e115 (patch) | |
tree | 9633b80f0464e8d32cd32e212120b8dcb8469ac4 /libavcodec/ra144.h | |
parent | b6c265ec2bfc37a34b58a80af38b876c2500d0a8 (diff) | |
download | ffmpeg-d31ba23185ad4f9b7b9714585db9aaf90268e115.tar.gz |
RealAudio 14.4k encoder.
Patch by Francesco Lavra (firstnamelastname@interfree.it)
Originally committed as revision 23579 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.h')
-rw-r--r-- | libavcodec/ra144.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <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 @@ 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]; |