summaryrefslogtreecommitdiff
path: root/libavcodec/ra144.h
diff options
context:
space:
mode:
authorFrancesco Lavra <francescolavra@interfree.it>2010-06-11 09:01:25 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-06-11 09:01:25 +0000
commitd31ba23185ad4f9b7b9714585db9aaf90268e115 (patch)
tree9633b80f0464e8d32cd32e212120b8dcb8469ac4 /libavcodec/ra144.h
parentb6c265ec2bfc37a34b58a80af38b876c2500d0a8 (diff)
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.h7
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];