Mercurial > libavcodec.hg
comparison aac.h @ 8199:8a8d40fe77d9 libavcodec
AAC: Frequency domain prediction and hence Main profile support
Patch by Alex Converse ( alex converse gmail com )
author | superdump |
---|---|
date | Mon, 24 Nov 2008 00:13:50 +0000 |
parents | 7baa25290231 |
children | e06b2b848b74 |
comparison
equal
deleted
inserted
replaced
8198:de344498875e | 8199:8a8d40fe77d9 |
---|---|
131 BETWEEN_TNS_AND_IMDCT, | 131 BETWEEN_TNS_AND_IMDCT, |
132 AFTER_IMDCT = 3, | 132 AFTER_IMDCT = 3, |
133 }; | 133 }; |
134 | 134 |
135 /** | 135 /** |
136 * Predictor State | |
137 */ | |
138 typedef struct { | |
139 float cor0; | |
140 float cor1; | |
141 float var0; | |
142 float var1; | |
143 float r0; | |
144 float r1; | |
145 } PredictorState; | |
146 | |
147 #define MAX_PREDICTORS 672 | |
148 | |
149 /** | |
136 * Individual Channel Stream | 150 * Individual Channel Stream |
137 */ | 151 */ |
138 typedef struct { | 152 typedef struct { |
139 uint8_t max_sfb; ///< number of scalefactor bands per group | 153 uint8_t max_sfb; ///< number of scalefactor bands per group |
140 enum WindowSequence window_sequence[2]; | 154 enum WindowSequence window_sequence[2]; |
143 uint8_t group_len[8]; | 157 uint8_t group_len[8]; |
144 const uint16_t *swb_offset; ///< table of offsets to the lowest spectral coefficient of a scalefactor band, sfb, for a particular window | 158 const uint16_t *swb_offset; ///< table of offsets to the lowest spectral coefficient of a scalefactor band, sfb, for a particular window |
145 int num_swb; ///< number of scalefactor window bands | 159 int num_swb; ///< number of scalefactor window bands |
146 int num_windows; | 160 int num_windows; |
147 int tns_max_bands; | 161 int tns_max_bands; |
162 int predictor_present; | |
163 int predictor_initialized; | |
164 int predictor_reset_group; | |
165 uint8_t prediction_used[41]; | |
166 PredictorState predictor_state[MAX_PREDICTORS]; | |
148 } IndividualChannelStream; | 167 } IndividualChannelStream; |
149 | 168 |
150 /** | 169 /** |
151 * Temporal Noise Shaping | 170 * Temporal Noise Shaping |
152 */ | 171 */ |