aac.h File Reference

AAC definitions and structures. More...

#include "libavutil/float_dsp.h"
#include "avcodec.h"
#include "fft.h"
#include "mpeg4audio.h"
#include "sbr.h"
#include "fmtconvert.h"
#include <stdint.h>
Include dependency graph for aac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  OutputConfiguration
 
struct  PredictorState
 Predictor State. More...
 
struct  LongTermPrediction
 Long Term Prediction. More...
 
struct  IndividualChannelStream
 Individual Channel Stream. More...
 
struct  TemporalNoiseShaping
 Temporal Noise Shaping. More...
 
struct  DynamicRangeControl
 Dynamic Range Control - decoded from the bitstream but not processed further. More...
 
struct  Pulse
 
struct  ChannelCoupling
 coupling parameters More...
 
struct  SingleChannelElement
 Single Channel Element - used for both SCE and LFE elements. More...
 
struct  ChannelElement
 channel element - generic struct for SCE/CPE/CCE/LFE More...
 
struct  AACContext
 main AAC context More...
 

Macros

#define MAX_CHANNELS   64
 
#define MAX_ELEM_ID   16
 
#define TNS_MAX_ORDER   20
 
#define MAX_LTP_LONG_SFB   40
 
#define IS_CODEBOOK_UNSIGNED(x)   ((x - 1) & 10)
 
#define MAX_PREDICTORS   672
 
#define SCALE_DIV_512   36
 scalefactor difference that corresponds to scale difference in 512 times More...
 
#define SCALE_ONE_POS   140
 scalefactor index that corresponds to scale=1.0 More...
 
#define SCALE_MAX_POS   255
 scalefactor index maximum value More...
 
#define SCALE_MAX_DIFF   60
 maximum scalefactor difference allowed by standard More...
 
#define SCALE_DIFF_ZERO   60
 codebook index corresponding to zero scalefactor indices difference More...
 

Typedefs

typedef struct OutputConfiguration OutputConfiguration
 
typedef struct PredictorState PredictorState
 Predictor State. More...
 
typedef struct LongTermPrediction LongTermPrediction
 Long Term Prediction. More...
 
typedef struct IndividualChannelStream IndividualChannelStream
 Individual Channel Stream. More...
 
typedef struct TemporalNoiseShaping TemporalNoiseShaping
 Temporal Noise Shaping. More...
 
typedef struct DynamicRangeControl DynamicRangeControl
 Dynamic Range Control - decoded from the bitstream but not processed further. More...
 
typedef struct Pulse Pulse
 
typedef struct ChannelCoupling ChannelCoupling
 coupling parameters More...
 
typedef struct SingleChannelElement SingleChannelElement
 Single Channel Element - used for both SCE and LFE elements. More...
 
typedef struct ChannelElement ChannelElement
 channel element - generic struct for SCE/CPE/CCE/LFE More...
 

Enumerations

enum  RawDataBlockType {
  TYPE_SCE, TYPE_CPE, TYPE_CCE, TYPE_LFE,
  TYPE_DSE, TYPE_PCE, TYPE_FIL, TYPE_END
}
 
enum  ExtensionPayloadID {
  EXT_FILL, EXT_FILL_DATA, EXT_DATA_ELEMENT, EXT_DYNAMIC_RANGE = 0xb,
  EXT_SBR_DATA = 0xd, EXT_SBR_DATA_CRC = 0xe
}
 
enum  WindowSequence { ONLY_LONG_SEQUENCE, LONG_START_SEQUENCE, EIGHT_SHORT_SEQUENCE, LONG_STOP_SEQUENCE }
 
enum  BandType {
  ZERO_BT = 0, FIRST_PAIR_BT = 5, ESC_BT = 11, NOISE_BT = 13,
  INTENSITY_BT2 = 14, INTENSITY_BT = 15
}
 
enum  ChannelPosition {
  AAC_CHANNEL_OFF = 0, AAC_CHANNEL_FRONT = 1, AAC_CHANNEL_SIDE = 2, AAC_CHANNEL_BACK = 3,
  AAC_CHANNEL_LFE = 4, AAC_CHANNEL_CC = 5
}
 
enum  CouplingPoint { BEFORE_TNS, BETWEEN_TNS_AND_IMDCT, AFTER_IMDCT = 3 }
 The point during decoding at which channel coupling is applied. More...
 
enum  OCStatus {
  OC_NONE, OC_TRIAL_PCE, OC_TRIAL_FRAME, OC_GLOBAL_HDR,
  OC_LOCKED
}
 Output configuration status. More...
 

Functions

void ff_aacdec_init_mips (AACContext *c)
 

Detailed Description

AAC definitions and structures.

Author
Oded Shimon ( ods15 ods15 dyndns org )
Maxim Gavrilov ( maxim.gavrilov gmail com )

Definition in file aac.h.

Macro Definition Documentation

#define IS_CODEBOOK_UNSIGNED (   x)    ((x - 1) & 10)

Definition at line 84 of file aac.h.

#define MAX_CHANNELS   64
#define MAX_ELEM_ID   16
#define MAX_LTP_LONG_SFB   40

Definition at line 46 of file aac.h.

Referenced by apply_ltp(), and decode_ltp().

#define MAX_PREDICTORS   672

Definition at line 136 of file aac.h.

Referenced by reset_all_predictors(), and reset_predictor_group().

#define SCALE_DIFF_ZERO   60

codebook index corresponding to zero scalefactor indices difference

Definition at line 142 of file aac.h.

Referenced by encode_scale_factors(), search_for_quantizers_anmr(), and search_for_quantizers_twoloop().

#define SCALE_DIV_512   36

scalefactor difference that corresponds to scale difference in 512 times

Definition at line 138 of file aac.h.

Referenced by coef2maxsf(), coef2minsf(), find_min_book(), quantize_and_encode_band_cost_template(), search_for_quantizers_anmr(), search_for_quantizers_faac(), and search_for_quantizers_fast().

#define SCALE_MAX_DIFF   60

maximum scalefactor difference allowed by standard

Definition at line 141 of file aac.h.

Referenced by search_for_quantizers_faac(), and search_for_quantizers_twoloop().

#define SCALE_MAX_POS   255

scalefactor index maximum value

Definition at line 140 of file aac.h.

Referenced by search_for_quantizers_faac().

#define SCALE_ONE_POS   140
#define TNS_MAX_ORDER   20

Definition at line 45 of file aac.h.

Referenced by apply_tns().

Typedef Documentation

coupling parameters

channel element - generic struct for SCE/CPE/CCE/LFE

Dynamic Range Control - decoded from the bitstream but not processed further.

Individual Channel Stream.

Long Term Prediction.

Predictor State.

typedef struct Pulse Pulse

Single Channel Element - used for both SCE and LFE elements.

Temporal Noise Shaping.

Enumeration Type Documentation

enum BandType
Enumerator
ZERO_BT 

Scalefactors and spectral data are all zero.

FIRST_PAIR_BT 

This and later band types encode two values (rather than four) with one code word.

ESC_BT 

Spectral data are coded with an escape sequence.

NOISE_BT 

Spectral data are scaled white noise not coded in the bitstream.

INTENSITY_BT2 

Scalefactor data are intensity stereo positions.

INTENSITY_BT 

Scalefactor data are intensity stereo positions.

Definition at line 75 of file aac.h.

Enumerator
AAC_CHANNEL_OFF 
AAC_CHANNEL_FRONT 
AAC_CHANNEL_SIDE 
AAC_CHANNEL_BACK 
AAC_CHANNEL_LFE 
AAC_CHANNEL_CC 

Definition at line 86 of file aac.h.

The point during decoding at which channel coupling is applied.

Enumerator
BEFORE_TNS 
BETWEEN_TNS_AND_IMDCT 
AFTER_IMDCT 

Definition at line 98 of file aac.h.

Enumerator
EXT_FILL 
EXT_FILL_DATA 
EXT_DATA_ELEMENT 
EXT_DYNAMIC_RANGE 
EXT_SBR_DATA 
EXT_SBR_DATA_CRC 

Definition at line 59 of file aac.h.

enum OCStatus

Output configuration status.

Enumerator
OC_NONE 

Output unconfigured.

OC_TRIAL_PCE 

Output configuration under trial specified by an inband PCE.

OC_TRIAL_FRAME 

Output configuration under trial specified by a frame header.

OC_GLOBAL_HDR 

Output configuration set in a global header but not yet locked.

OC_LOCKED 

Output configuration locked in place.

Definition at line 107 of file aac.h.

Enumerator
TYPE_SCE 
TYPE_CPE 
TYPE_CCE 
TYPE_LFE 
TYPE_DSE 
TYPE_PCE 
TYPE_FIL 
TYPE_END 

Definition at line 48 of file aac.h.

Enumerator
ONLY_LONG_SEQUENCE 
LONG_START_SEQUENCE 
EIGHT_SHORT_SEQUENCE 
LONG_STOP_SEQUENCE 

Definition at line 68 of file aac.h.

Function Documentation

void ff_aacdec_init_mips ( AACContext c)

Definition at line 822 of file aacdec_mips.c.

Referenced by aacdec_init().