FFmpeg
aacdec.h
Go to the documentation of this file.
1 /*
2  * AAC decoder definitions and structures
3  * Copyright (c) 2005-2006 Oded Shimon ( ods15 ods15 dyndns org )
4  * Copyright (c) 2006-2007 Maxim Gavrilov ( maxim.gavrilov gmail com )
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 /**
24  * @file
25  * AAC decoder definitions and structures
26  * @author Oded Shimon ( ods15 ods15 dyndns org )
27  * @author Maxim Gavrilov ( maxim.gavrilov gmail com )
28  */
29 
30 #ifndef AVCODEC_AAC_AACDEC_H
31 #define AVCODEC_AAC_AACDEC_H
32 
33 #include <stdint.h>
34 
36 #include "libavutil/float_dsp.h"
37 #include "libavutil/fixed_dsp.h"
38 #include "libavutil/mem_internal.h"
39 #include "libavutil/tx.h"
40 
41 #include "libavcodec/aac.h"
42 #include "libavcodec/mpeg4audio.h"
43 
44 typedef struct AACDecContext AACDecContext;
45 
46 /**
47  * Output configuration status
48  */
49 enum OCStatus {
50  OC_NONE, ///< Output unconfigured
51  OC_TRIAL_PCE, ///< Output configuration under trial specified by an inband PCE
52  OC_TRIAL_FRAME, ///< Output configuration under trial specified by a frame header
53  OC_GLOBAL_HDR, ///< Output configuration set in a global header but not yet locked
54  OC_LOCKED, ///< Output configuration locked in place
55 };
56 
60 };
61 
62 /**
63  * The point during decoding at which channel coupling is applied.
64  */
69 };
70 
71 // Supposed to be equal to AAC_RENAME() in case of USE_FIXED.
72 #define RENAME_FIXED(name) name ## _fixed
73 
74 #define INTFLOAT_UNION(name, elems) \
75  union { \
76  int RENAME_FIXED(name) elems; \
77  float name elems; \
78  }
79 
80 #define INTFLOAT_ALIGNED_UNION(alignment, name, nb_elems) \
81  union { \
82  DECLARE_ALIGNED(alignment, int, RENAME_FIXED(name))[nb_elems]; \
83  DECLARE_ALIGNED(alignment, float, name)[nb_elems]; \
84  }
85 /**
86  * Long Term Prediction
87  */
88 typedef struct LongTermPrediction {
89  int8_t present;
90  int16_t lag;
94 
95 /**
96  * Individual Channel Stream
97  */
98 typedef struct IndividualChannelStream {
99  uint8_t max_sfb; ///< number of scalefactor bands per group
101  uint8_t use_kb_window[2]; ///< If set, use Kaiser-Bessel window, otherwise use a sine window.
103  uint8_t group_len[8];
105  const uint16_t *swb_offset; ///< table of offsets to the lowest spectral coefficient of a scalefactor band, sfb, for a particular window
106  int num_swb; ///< number of scalefactor window bands
112  uint8_t prediction_used[41];
113  uint8_t window_clipping[8]; ///< set if a certain window is near clipping
115 
116 /**
117  * Temporal Noise Shaping
118  */
119 typedef struct TemporalNoiseShaping {
120  int present;
121  int n_filt[8];
122  int length[8][4];
123  int direction[8][4];
124  int order[8][4];
127 
128 /**
129  * coupling parameters
130  */
131 typedef struct ChannelCoupling {
132  enum CouplingPoint coupling_point; ///< The point during decoding at which coupling is applied.
133  int num_coupled; ///< number of target elements
134  enum RawDataBlockType type[8]; ///< Type of channel element to be coupled - SCE or CPE.
135  int id_select[8]; ///< element id
136  int ch_select[8]; /**< [0] shared list of gains; [1] list of gains for right channel;
137  * [2] list of gains for left channel; [3] lists of gains for both channels
138  */
139  INTFLOAT_UNION(gain, [16][120]);
141 
142 /**
143  * Single Channel Element - used for both SCE and LFE elements.
144  */
145 typedef struct SingleChannelElement {
148  enum BandType band_type[128]; ///< band types
149  int band_type_run_end[120]; ///< band type run end points
150  int sfo[120]; ///< scalefactor offsets
151  INTFLOAT_UNION(sf, [120]); ///< scalefactors
152  INTFLOAT_ALIGNED_UNION(32, coeffs, 1024); ///< coefficients for IMDCT, maybe processed
153  INTFLOAT_ALIGNED_UNION(32, saved, 1536); ///< overlap
154  INTFLOAT_ALIGNED_UNION(32, ret_buf, 2048); ///< PCM output buffer
155  INTFLOAT_ALIGNED_UNION(16, ltp_state, 3072); ///< time signal for LTP
156  union {
157  struct PredictorStateFixed *RENAME_FIXED(predictor_state);
159  };
160  union {
161  float *output; ///< PCM output
162  int *RENAME_FIXED(output); ///< PCM output
163  };
165 
166 /**
167  * channel element - generic struct for SCE/CPE/CCE/LFE
168  */
169 typedef struct ChannelElement {
170  int present;
171  // CPE specific
172  uint8_t ms_mask[128]; ///< Set if mid/side stereo is used for each scalefactor window band
173  // shared
175  // CCE specific
178 
179 typedef struct OutputConfiguration {
181  uint8_t layout_map[MAX_ELEM_ID*4][3];
186 
187 /**
188  * Dynamic Range Control - decoded from the bitstream but not processed further.
189  */
190 typedef struct DynamicRangeControl {
191  int pce_instance_tag; ///< Indicates with which program the DRC info is associated.
192  int dyn_rng_sgn[17]; ///< DRC sign information; 0 - positive, 1 - negative
193  int dyn_rng_ctl[17]; ///< DRC magnitude information
194  int exclude_mask[MAX_CHANNELS]; ///< Channels to be excluded from DRC processing.
195  int band_incr; ///< Number of DRC bands greater than 1 having DRC info.
196  int interpolation_scheme; ///< Indicates the interpolation scheme used in the SBR QMF domain.
197  int band_top[17]; ///< Indicates the top of the i-th DRC band in units of 4 spectral lines.
198  int prog_ref_level; /**< A reference level for the long-term program audio level for all
199  * channels combined.
200  */
202 
203 /**
204  * Decode-specific primitives
205  */
206 typedef struct AACDecProc {
208  GetBitContext *gb,
209  const Pulse *pulse,
210  SingleChannelElement *sce);
211 
213 } AACDecProc;
214 
215 /**
216  * DSP-specific primitives
217  */
218 typedef struct AACDecDSP {
220 
222 
225  int ms_present);
226 
227  void (*apply_tns)(void *_coef_param, TemporalNoiseShaping *tns,
228  IndividualChannelStream *ics, int decode);
229 
232 
234 
236  SingleChannelElement *target,
237  ChannelElement *cce, int index);
239  SingleChannelElement *target,
240  ChannelElement *cce, int index);
241 
246 
247  void (*clip_output)(AACDecContext *ac, ChannelElement *che, int type, int samples);
248 } AACDecDSP;
249 
250 /**
251  * main AAC decoding context
252  */
254  const struct AVClass *class;
256 
259 
260  struct AVFrame *frame;
261 
262  int is_saved; ///< Set if elements have stored overlap from previous frame.
264 
265  /**
266  * @name Channel element related data
267  * @{
268  */
273  /** @} */
274 
275  /**
276  * @name temporary aligned temporary buffers
277  * (We do not want to have these on the stack.)
278  * @{
279  */
280  INTFLOAT_ALIGNED_UNION(32, buf_mdct, 1024);
281  INTFLOAT_ALIGNED_UNION(32, temp, 128);
282  /** @} */
283 
284  /**
285  * @name Computed / set up during initialization
286  * @{
287  */
295 
303  union {
306  };
308  /** @} */
309 
310  /**
311  * @name Members used for output
312  * @{
313  */
314  SingleChannelElement *output_element[MAX_CHANNELS]; ///< Points to each SingleChannelElement
315  /** @} */
316 
317 
318  /**
319  * @name Japanese DTV specific extension
320  * @{
321  */
322  int force_dmono_mode;///< 0->not dmono, 1->use first channel, 2->use second channel
323  int dmono_mode; ///< 0->not dmono, 1->use first channel, 2->use second channel
324  /** @} */
325 
327 
331  unsigned warned_71_wide;
334 
335  int is_fixed;
336 };
337 
338 #if defined(USE_FIXED) && USE_FIXED
339 #define fdsp RENAME_FIXED(fdsp)
340 #endif
341 
342 extern const AACDecDSP aac_dsp;
343 extern const AACDecDSP aac_dsp_fixed;
344 
345 extern const AACDecProc aac_proc;
346 extern const AACDecProc aac_proc_fixed;
347 
349  GetBitContext *gb, int common_window, int scale_flag);
350 
351 #endif /* AVCODEC_AAC_AACDEC_H */
ChannelCoupling::type
enum RawDataBlockType type[8]
Type of channel element to be coupled - SCE or CPE.
Definition: aacdec.h:134
CouplingPoint
CouplingPoint
The point during decoding at which channel coupling is applied.
Definition: aacdec.h:65
MAX_ELEM_ID
#define MAX_ELEM_ID
Definition: aac.h:34
AACDecProc::decode_spectrum_and_dequant
int(* decode_spectrum_and_dequant)(AACDecContext *ac, GetBitContext *gb, const Pulse *pulse, SingleChannelElement *sce)
Definition: aacdec.h:207
AACDecContext::mdct960_fn
av_tx_fn mdct960_fn
Definition: aacdec.h:300
AACOutputChannelOrder
AACOutputChannelOrder
Definition: aacdec.h:57
SingleChannelElement::predictor_state
struct PredictorState * predictor_state
Definition: aacdec.h:158
BETWEEN_TNS_AND_IMDCT
@ BETWEEN_TNS_AND_IMDCT
Definition: aacdec.h:67
AACDecDSP::apply_intensity_stereo
void(* apply_intensity_stereo)(AACDecContext *ac, ChannelElement *cpe, int ms_present)
Definition: aacdec.h:224
mem_internal.h
AACDecContext::mdct1024_fn
av_tx_fn mdct1024_fn
Definition: aacdec.h:301
AACDecContext::warned_he_aac_mono
int warned_he_aac_mono
Definition: aacdec.h:333
LongTermPrediction::INTFLOAT_UNION
INTFLOAT_UNION(coef,)
AVTXContext
Definition: tx_priv.h:235
aac_proc_fixed
const AACDecProc aac_proc_fixed
LongTermPrediction::used
int8_t used[MAX_LTP_LONG_SFB]
Definition: aacdec.h:92
OC_TRIAL_PCE
@ OC_TRIAL_PCE
Output configuration under trial specified by an inband PCE.
Definition: aacdec.h:51
AVFrame
This structure describes decoded (raw) audio or video data.
Definition: frame.h:374
LongTermPrediction::coef
float coef
Definition: aacenc.h:84
AACDecContext::mdct960
AVTXContext * mdct960
Definition: aacdec.h:292
TemporalNoiseShaping::present
int present
Definition: aacdec.h:120
AACDecContext::tag_che_map
ChannelElement * tag_che_map[4][MAX_ELEM_ID]
Definition: aacdec.h:270
AVFixedDSPContext
Definition: fixed_dsp.h:55
AACDecDSP::apply_tns
void(* apply_tns)(void *_coef_param, TemporalNoiseShaping *tns, IndividualChannelStream *ics, int decode)
Definition: aacdec.h:227
AACDecContext::warned_remapping_once
int warned_remapping_once
Definition: aacdec.h:272
AACDecContext::proc
AACDecProc proc
Definition: aacdec.h:258
AACDecContext::mdct512_fn
av_tx_fn mdct512_fn
Definition: aacdec.h:299
AACDecDSP::apply_prediction
void(* apply_prediction)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:233
ChannelElement::ch
SingleChannelElement ch[2]
Definition: aacdec.h:174
ChannelElement::present
int present
Definition: aacdec.h:170
AACDecContext::dmono_mode
int dmono_mode
0->not dmono, 1->use first channel, 2->use second channel
Definition: aacdec.h:323
MPEG4AudioConfig
Definition: mpeg4audio.h:29
DynamicRangeControl
Dynamic Range Control - decoded from the bitstream but not processed further.
Definition: aacdec.h:190
IndividualChannelStream::num_swb
int num_swb
number of scalefactor window bands
Definition: aacdec.h:106
ChannelCoupling::INTFLOAT_UNION
INTFLOAT_UNION(gain, [16][120])
ChannelCoupling::coupling_point
enum CouplingPoint coupling_point
The point during decoding at which coupling is applied.
Definition: aacdec.h:132
SingleChannelElement::coeffs
float coeffs[1024]
coefficients for IMDCT, maybe processed
Definition: aacenc.h:139
AACDecContext::force_dmono_mode
int force_dmono_mode
0->not dmono, 1->use first channel, 2->use second channel
Definition: aacdec.h:322
AACDecContext::warned_960_sbr
int warned_960_sbr
Definition: aacdec.h:330
AACDecContext::mdct480
AVTXContext * mdct480
Definition: aacdec.h:290
mpeg4audio.h
ChannelElement::coup
ChannelCoupling coup
Definition: aacdec.h:176
ChannelCoupling::id_select
int id_select[8]
element id
Definition: aacdec.h:135
SingleChannelElement::ret_buf
float ret_buf[2048]
PCM output buffer.
Definition: aacenc.h:140
AACDecContext::warned_71_wide
unsigned warned_71_wide
Definition: aacdec.h:331
GetBitContext
Definition: get_bits.h:108
IndividualChannelStream::window_clipping
uint8_t window_clipping[8]
set if a certain window is near clipping
Definition: aacdec.h:113
AACDecContext::tags_mapped
int tags_mapped
Definition: aacdec.h:271
OutputConfiguration::status
enum OCStatus status
Definition: aacdec.h:184
type
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
Definition: writing_filters.txt:86
AACDecContext::che_drc
DynamicRangeControl che_drc
Definition: aacdec.h:263
MAX_LTP_LONG_SFB
#define MAX_LTP_LONG_SFB
Definition: aac.h:37
SingleChannelElement::ics
IndividualChannelStream ics
Definition: aacdec.h:146
AACDecContext::mdct480_fn
av_tx_fn mdct480_fn
Definition: aacdec.h:298
aac_dsp_fixed
const AACDecDSP aac_dsp_fixed
AACDecDSP::dequant_scalefactors
void(* dequant_scalefactors)(SingleChannelElement *sce)
Definition: aacdec.h:221
DynamicRangeControl::exclude_mask
int exclude_mask[MAX_CHANNELS]
Channels to be excluded from DRC processing.
Definition: aacdec.h:194
av_tx_fn
void(* av_tx_fn)(AVTXContext *s, void *out, void *in, ptrdiff_t stride)
Function pointer to a function to perform the transform.
Definition: tx.h:151
OC_GLOBAL_HDR
@ OC_GLOBAL_HDR
Output configuration set in a global header but not yet locked.
Definition: aacdec.h:53
SingleChannelElement::ltp_state
float ltp_state[3072]
time signal for LTP
Definition: aacenc.h:141
AACDecContext::mdct_ltp
AVTXContext * mdct_ltp
Definition: aacdec.h:294
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:72
AACDecDSP::apply_mid_side_stereo
void(* apply_mid_side_stereo)(AACDecContext *ac, ChannelElement *cpe)
Definition: aacdec.h:223
ChannelCoupling::num_coupled
int num_coupled
number of target elements
Definition: aacdec.h:133
TemporalNoiseShaping::direction
int direction[8][4]
Definition: aacdec.h:123
AACDecProc::decode_cce
int(* decode_cce)(AACDecContext *ac, GetBitContext *gb, ChannelElement *che)
Definition: aacdec.h:212
PredictorState
Predictor State.
Definition: aac_defines.h:130
AACDecDSP::imdct_and_windowing_ld
void(* imdct_and_windowing_ld)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:244
LongTermPrediction::present
int8_t present
Definition: aacdec.h:89
fixed_dsp.h
IndividualChannelStream
Individual Channel Stream.
Definition: aacdec.h:98
AACDecContext::che
ChannelElement * che[4][MAX_ELEM_ID]
Definition: aacdec.h:269
aac_proc
const AACDecProc aac_proc
AACDecContext::fdsp
AVFloatDSPContext * fdsp
Definition: aacdec.h:305
AACDecContext::warned_num_aac_frames
int warned_num_aac_frames
Definition: aacdec.h:329
AACDecDSP::init
int(* init)(AACDecContext *ac)
Definition: aacdec.h:219
AVClass
Describe the class of an AVClass context structure.
Definition: log.h:66
IndividualChannelStream::use_kb_window
uint8_t use_kb_window[2]
If set, use Kaiser-Bessel window, otherwise use a sine window.
Definition: aacdec.h:101
IndividualChannelStream::num_window_groups
int num_window_groups
Definition: aacdec.h:102
BEFORE_TNS
@ BEFORE_TNS
Definition: aacdec.h:66
ChannelElement::ms_mask
uint8_t ms_mask[128]
Set if mid/side stereo is used for each scalefactor window band.
Definition: aacdec.h:172
aac.h
IndividualChannelStream::predictor_present
int predictor_present
Definition: aacdec.h:109
DynamicRangeControl::band_top
int band_top[17]
Indicates the top of the i-th DRC band in units of 4 spectral lines.
Definition: aacdec.h:197
TNS_MAX_ORDER
#define TNS_MAX_ORDER
Definition: aac.h:36
AACDecContext::mdct120
AVTXContext * mdct120
Definition: aacdec.h:288
OC_LOCKED
@ OC_LOCKED
Output configuration locked in place.
Definition: aacdec.h:54
index
int index
Definition: gxfenc.c:90
SingleChannelElement::band_type_run_end
int band_type_run_end[120]
band type run end points
Definition: aacdec.h:149
float_dsp.h
OutputConfiguration::layout_map_tags
int layout_map_tags
Definition: aacdec.h:182
AACDecDSP
DSP-specific primitives.
Definition: aacdec.h:218
OutputConfiguration::layout_map
uint8_t layout_map[MAX_ELEM_ID *4][3]
Definition: aacdec.h:181
AACDecDSP::update_ltp
void(* update_ltp)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:231
AACDecDSP::apply_independent_coupling
void(* apply_independent_coupling)(AACDecContext *ac, SingleChannelElement *target, ChannelElement *cce, int index)
Definition: aacdec.h:238
IndividualChannelStream::window_sequence
enum WindowSequence window_sequence[2]
Definition: aacdec.h:100
AACDecContext::dsp
AACDecDSP dsp
Definition: aacdec.h:257
AACDecDSP::clip_output
void(* clip_output)(AACDecContext *ac, ChannelElement *che, int type, int samples)
Definition: aacdec.h:247
OC_NONE
@ OC_NONE
Output unconfigured.
Definition: aacdec.h:50
AACDecDSP::apply_dependent_coupling
void(* apply_dependent_coupling)(AACDecContext *ac, SingleChannelElement *target, ChannelElement *cce, int index)
Definition: aacdec.h:235
AVChannelLayout
An AVChannelLayout holds information about the channel layout of audio data.
Definition: channel_layout.h:303
AACDecContext::mdct1024
AVTXContext * mdct1024
Definition: aacdec.h:293
BandType
BandType
Definition: aac.h:66
AACDecDSP::imdct_and_windowing
void(* imdct_and_windowing)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:242
OCStatus
OCStatus
Output configuration status.
Definition: aacdec.h:49
DynamicRangeControl::prog_ref_level
int prog_ref_level
A reference level for the long-term program audio level for all channels combined.
Definition: aacdec.h:198
aac_dsp
const AACDecDSP aac_dsp
AACDecContext::output_element
SingleChannelElement * output_element[MAX_CHANNELS]
Points to each SingleChannelElement.
Definition: aacdec.h:314
AVFloatDSPContext
Definition: float_dsp.h:22
AACDecContext::output_channel_order
enum AACOutputChannelOrder output_channel_order
Definition: aacdec.h:326
SingleChannelElement::sfo
int sfo[120]
scalefactor offsets
Definition: aacdec.h:150
OutputConfiguration
Definition: aacdec.h:179
AACDecContext::INTFLOAT_ALIGNED_UNION
INTFLOAT_ALIGNED_UNION(32, buf_mdct, 1024)
SingleChannelElement::band_type
enum BandType band_type[128]
band types
Definition: aacdec.h:148
MAX_CHANNELS
#define MAX_CHANNELS
Definition: aac.h:33
AACDecContext::mdct128
AVTXContext * mdct128
Definition: aacdec.h:289
DynamicRangeControl::dyn_rng_ctl
int dyn_rng_ctl[17]
DRC magnitude information.
Definition: aacdec.h:193
AACDecDSP::apply_ltp
void(* apply_ltp)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:230
SingleChannelElement::output
float * output
PCM output.
Definition: aacdec.h:161
AACDecDSP::imdct_and_windowing_960
void(* imdct_and_windowing_960)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:243
ff_aac_decode_ics
int ff_aac_decode_ics(AACDecContext *ac, SingleChannelElement *sce, GetBitContext *gb, int common_window, int scale_flag)
Decode an individual_channel_stream payload; reference: table 4.44.
Definition: aacdec.c:1693
CHANNEL_ORDER_CODED
@ CHANNEL_ORDER_CODED
Definition: aacdec.h:59
RawDataBlockType
RawDataBlockType
Definition: aac.h:39
SingleChannelElement
Single Channel Element - used for both SCE and LFE elements.
Definition: aacdec.h:145
AACDecContext::is_fixed
int is_fixed
Definition: aacdec.h:335
IndividualChannelStream::num_windows
int num_windows
Definition: aacdec.h:107
AACDecContext::warned_gain_control
int warned_gain_control
Definition: aacdec.h:332
AACDecContext::random_state
int random_state
Definition: aacdec.h:307
ChannelElement
channel element - generic struct for SCE/CPE/CCE/LFE
Definition: aacdec.h:169
IndividualChannelStream::swb_offset
const uint16_t * swb_offset
table of offsets to the lowest spectral coefficient of a scalefactor band, sfb, for a particular wind...
Definition: aacdec.h:105
RENAME_FIXED
#define RENAME_FIXED(name)
Definition: aacdec.h:72
LongTermPrediction::lag
int16_t lag
Definition: aacdec.h:90
TemporalNoiseShaping::order
int order[8][4]
Definition: aacdec.h:124
AACDecContext::oc
OutputConfiguration oc[2]
Definition: aacdec.h:328
IndividualChannelStream::tns_max_bands
int tns_max_bands
Definition: aacdec.h:108
TemporalNoiseShaping::length
int length[8][4]
Definition: aacdec.h:122
AACDecDSP::imdct_and_windowing_eld
void(* imdct_and_windowing_eld)(AACDecContext *ac, SingleChannelElement *sce)
Definition: aacdec.h:245
SingleChannelElement::INTFLOAT_ALIGNED_UNION
INTFLOAT_ALIGNED_UNION(32, coeffs, 1024)
coefficients for IMDCT, maybe processed
DynamicRangeControl::pce_instance_tag
int pce_instance_tag
Indicates with which program the DRC info is associated.
Definition: aacdec.h:191
AACDecContext::frame
struct AVFrame * frame
Definition: aacdec.h:260
TemporalNoiseShaping::coef
float coef[8][4][TNS_MAX_ORDER]
Definition: aacenc.h:121
CHANNEL_ORDER_DEFAULT
@ CHANNEL_ORDER_DEFAULT
Definition: aacdec.h:58
ChannelCoupling::ch_select
int ch_select[8]
[0] shared list of gains; [1] list of gains for right channel; [2] list of gains for left channel; [3...
Definition: aacdec.h:136
SingleChannelElement::tns
TemporalNoiseShaping tns
Definition: aacdec.h:147
TemporalNoiseShaping::INTFLOAT_UNION
INTFLOAT_UNION(coef, [8][4][TNS_MAX_ORDER])
AACDecContext
main AAC decoding context
Definition: aacdec.h:253
AVCodecContext
main external API structure.
Definition: avcodec.h:445
LongTermPrediction
Long Term Prediction.
Definition: aacdec.h:88
channel_layout.h
AACDecContext::avctx
struct AVCodecContext * avctx
Definition: aacdec.h:255
IndividualChannelStream::prediction_used
uint8_t prediction_used[41]
Definition: aacdec.h:112
TemporalNoiseShaping
Temporal Noise Shaping.
Definition: aacdec.h:119
temp
else temp
Definition: vf_mcdeint.c:263
samples
Filter the word “frame” indicates either a video frame or a group of audio samples
Definition: filter_design.txt:8
DynamicRangeControl::band_incr
int band_incr
Number of DRC bands greater than 1 having DRC info.
Definition: aacdec.h:195
AACDecContext::mdct_ltp_fn
av_tx_fn mdct_ltp_fn
Definition: aacdec.h:302
OutputConfiguration::m4ac
MPEG4AudioConfig m4ac
Definition: aacdec.h:180
OutputConfiguration::ch_layout
AVChannelLayout ch_layout
Definition: aacdec.h:183
AACDecContext::is_saved
int is_saved
Set if elements have stored overlap from previous frame.
Definition: aacdec.h:262
DynamicRangeControl::dyn_rng_sgn
int dyn_rng_sgn[17]
DRC sign information; 0 - positive, 1 - negative.
Definition: aacdec.h:192
ChannelCoupling
coupling parameters
Definition: aacdec.h:131
AACDecProc
Decode-specific primitives.
Definition: aacdec.h:206
IndividualChannelStream::max_sfb
uint8_t max_sfb
number of scalefactor bands per group
Definition: aacdec.h:99
Pulse
Definition: aac.h:99
AACDecContext::mdct512
AVTXContext * mdct512
Definition: aacdec.h:291
DynamicRangeControl::interpolation_scheme
int interpolation_scheme
Indicates the interpolation scheme used in the SBR QMF domain.
Definition: aacdec.h:196
WindowSequence
WindowSequence
Definition: aac.h:59
AFTER_IMDCT
@ AFTER_IMDCT
Definition: aacdec.h:68
IndividualChannelStream::ltp
LongTermPrediction ltp
Definition: aacdec.h:104
int
int
Definition: ffmpeg_filter.c:424
IndividualChannelStream::group_len
uint8_t group_len[8]
Definition: aacdec.h:103
TemporalNoiseShaping::n_filt
int n_filt[8]
Definition: aacdec.h:121
OC_TRIAL_FRAME
@ OC_TRIAL_FRAME
Output configuration under trial specified by a frame header.
Definition: aacdec.h:52
SingleChannelElement::INTFLOAT_UNION
INTFLOAT_UNION(sf, [120])
scalefactors
IndividualChannelStream::predictor_reset_group
int predictor_reset_group
Definition: aacdec.h:111
tx.h
AACDecContext::mdct120_fn
av_tx_fn mdct120_fn
Definition: aacdec.h:296
AACDecContext::mdct128_fn
av_tx_fn mdct128_fn
Definition: aacdec.h:297
IndividualChannelStream::predictor_initialized
int predictor_initialized
Definition: aacdec.h:110