aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac.h
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2008-11-24 00:13:50 +0000
committerRobert Swain <robert.swain@gmail.com>2008-11-24 00:13:50 +0000
commit7633a0415d80b6813a0ea23405f3857127c02dab (patch)
treee6a21a24c80dc1dc271c787ff70c5994720c1558 /libavcodec/aac.h
parente9d0fdef533fc9ec158d27fe73f5461387155c49 (diff)
downloadffmpeg-7633a0415d80b6813a0ea23405f3857127c02dab.tar.gz
AAC: Frequency domain prediction and hence Main profile support
Patch by Alex Converse ( alex converse gmail com ) Originally committed as revision 15919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac.h')
-rw-r--r--libavcodec/aac.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/aac.h b/libavcodec/aac.h
index eec0828533..6022ca66be 100644
--- a/libavcodec/aac.h
+++ b/libavcodec/aac.h
@@ -133,6 +133,20 @@ enum CouplingPoint {
};
/**
+ * Predictor State
+ */
+typedef struct {
+ float cor0;
+ float cor1;
+ float var0;
+ float var1;
+ float r0;
+ float r1;
+} PredictorState;
+
+#define MAX_PREDICTORS 672
+
+/**
* Individual Channel Stream
*/
typedef struct {
@@ -145,6 +159,11 @@ typedef struct {
int num_swb; ///< number of scalefactor window bands
int num_windows;
int tns_max_bands;
+ int predictor_present;
+ int predictor_initialized;
+ int predictor_reset_group;
+ uint8_t prediction_used[41];
+ PredictorState predictor_state[MAX_PREDICTORS];
} IndividualChannelStream;
/**