FFmpeg  4.0
Macros | Variables
aacenctab.h File Reference

AAC encoder data. More...

#include "aac.h"

Go to the source code of this file.

Macros

#define CB_TOT   12
 Total number of usable codebooks. More...
 
#define CB_TOT_ALL   15
 Total number of codebooks, including special ones. More...
 
#define AAC_MAX_CHANNELS   16
 

Variables

const uint8_tff_aac_swb_size_1024 []
 
const int ff_aac_swb_size_1024_len
 
const uint8_tff_aac_swb_size_128 []
 
const int ff_aac_swb_size_128_len
 
static const int64_t aac_normal_chan_layouts [7]
 
static const uint8_t aac_chan_configs [AAC_MAX_CHANNELS][6]
 default channel configurations More...
 
static const uint8_t aac_chan_maps [AAC_MAX_CHANNELS][AAC_MAX_CHANNELS]
 Table to remap channels from libavcodec's default order to AAC order. More...
 
static const int mpeg4audio_sample_rates [16]
 
static const uint8_t run_value_bits_long [64]
 bits needed to code codebook run value for long windows More...
 
static const uint8_t run_value_bits_short [16]
 bits needed to code codebook run value for short windows More...
 
static const uint8_t tns_min_sfb_short [16]
 
static const uint8_t tns_min_sfb_long [16]
 
static const uint8_t *const tns_min_sfb [2]
 
static const uint8_t *const run_value_bits [2]
 
static const uint8_t aac_cb_out_map [CB_TOT_ALL] = {0,1,2,3,4,5,6,7,8,9,10,11,13,14,15}
 Map to convert values from BandCodingPath index to a codebook index. More...
 
static const uint8_t aac_cb_in_map [CB_TOT_ALL+1] = {0,1,2,3,4,5,6,7,8,9,10,11,0,12,13,14}
 Inverse map to convert from codebooks to BandCodingPath indices. More...
 
static const uint8_t aac_cb_range [12] = {0, 3, 3, 3, 3, 9, 9, 8, 8, 13, 13, 17}
 
static const uint8_t aac_cb_maxval [12] = {0, 1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 16}
 
static const unsigned char aac_maxval_cb []
 
static const int aacenc_profiles []
 

Detailed Description

AAC encoder data.

Author
Rostislav Pehlivanov ( atomnuker gmail com )

Definition in file aacenctab.h.

Macro Definition Documentation

◆ CB_TOT

#define CB_TOT   12

Total number of usable codebooks.

Definition at line 34 of file aacenctab.h.

◆ CB_TOT_ALL

#define CB_TOT_ALL   15

Total number of codebooks, including special ones.

Definition at line 37 of file aacenctab.h.

Referenced by codebook_trellis_rate(), and encode_window_bands_info().

◆ AAC_MAX_CHANNELS

#define AAC_MAX_CHANNELS   16

Definition at line 39 of file aacenctab.h.

Referenced by aac_encode_frame(), and aac_encode_init().

Variable Documentation

◆ ff_aac_swb_size_1024

const uint8_t* ff_aac_swb_size_1024[]

Definition at line 99 of file aacenctab.c.

Referenced by aac_encode_init().

◆ ff_aac_swb_size_1024_len

const int ff_aac_swb_size_1024_len

Definition at line 108 of file aacenctab.c.

Referenced by aac_encode_init().

◆ ff_aac_swb_size_128

const uint8_t* ff_aac_swb_size_128[]

Definition at line 91 of file aacenctab.c.

Referenced by aac_encode_init().

◆ ff_aac_swb_size_128_len

const int ff_aac_swb_size_128_len

Definition at line 107 of file aacenctab.c.

Referenced by aac_encode_init().

◆ aac_normal_chan_layouts

const int64_t aac_normal_chan_layouts[7]
static
Initial value:
= {
}
#define AV_CH_LAYOUT_7POINT1
#define AV_CH_LAYOUT_SURROUND
#define AV_CH_LAYOUT_4POINT0
#define AV_CH_LAYOUT_STEREO
#define AV_CH_LAYOUT_5POINT1_BACK
#define AV_CH_LAYOUT_5POINT0_BACK
#define AV_CH_LAYOUT_MONO

Definition at line 47 of file aacenctab.h.

Referenced by aac_encode_init().

◆ aac_chan_configs

const uint8_t aac_chan_configs[AAC_MAX_CHANNELS][6]
static
Initial value:
= {
{1, TYPE_SCE},
{1, TYPE_CPE},
{3, TYPE_SCE, TYPE_CPE, TYPE_CPE},
{0},
{5, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_LFE},
}
Definition: aac.h:56
Definition: aac.h:57
Definition: aac.h:59

default channel configurations

Definition at line 58 of file aacenctab.h.

Referenced by aac_encode_init().

◆ aac_chan_maps

const uint8_t aac_chan_maps[AAC_MAX_CHANNELS][AAC_MAX_CHANNELS]
static
Initial value:
= {
{ 0 },
{ 0, 1 },
{ 2, 0, 1 },
{ 2, 0, 1, 3 },
{ 2, 0, 1, 3, 4 },
{ 2, 0, 1, 4, 5, 3 },
{ 0 },
{ 2, 0, 1, 6, 7, 4, 5, 3 },
}

Table to remap channels from libavcodec's default order to AAC order.

Definition at line 72 of file aacenctab.h.

Referenced by aac_encode_init().

◆ mpeg4audio_sample_rates

const int mpeg4audio_sample_rates[16]
static
Initial value:
= {
96000, 88200, 64000, 48000, 44100, 32000,
24000, 22050, 16000, 12000, 11025, 8000, 7350
}

Definition at line 85 of file aacenctab.h.

Referenced by flv_write_codec_header().

◆ run_value_bits_long

const uint8_t run_value_bits_long[64]
static
Initial value:
= {
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 15
}

bits needed to code codebook run value for long windows

Definition at line 91 of file aacenctab.h.

◆ run_value_bits_short

const uint8_t run_value_bits_short[16]
static
Initial value:
= {
3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
}

bits needed to code codebook run value for short windows

Definition at line 99 of file aacenctab.h.

◆ tns_min_sfb_short

const uint8_t tns_min_sfb_short[16]
static
Initial value:
= {
2, 2, 2, 3, 3, 4, 6, 6, 8, 10, 10, 12, 12, 12, 12, 12
}

Definition at line 104 of file aacenctab.h.

◆ tns_min_sfb_long

const uint8_t tns_min_sfb_long[16]
static
Initial value:
= {
12, 13, 15, 16, 17, 20, 25, 26, 24, 28, 30, 31, 31, 31, 31, 31
}

Definition at line 108 of file aacenctab.h.

◆ tns_min_sfb

const uint8_t* const tns_min_sfb[2]
static
Initial value:
= {
}
static const uint8_t tns_min_sfb_short[16]
Definition: aacenctab.h:104
static const uint8_t tns_min_sfb_long[16]
Definition: aacenctab.h:108

Definition at line 112 of file aacenctab.h.

Referenced by ff_aac_search_for_tns().

◆ run_value_bits

const uint8_t* const run_value_bits[2]
static
Initial value:
= {
}
static const uint8_t run_value_bits_short[16]
bits needed to code codebook run value for short windows
Definition: aacenctab.h:99
static const uint8_t run_value_bits_long[64]
bits needed to code codebook run value for long windows
Definition: aacenctab.h:91

Definition at line 116 of file aacenctab.h.

Referenced by codebook_trellis_rate(), and encode_window_bands_info().

◆ aac_cb_out_map

const uint8_t aac_cb_out_map[CB_TOT_ALL] = {0,1,2,3,4,5,6,7,8,9,10,11,13,14,15}
static

Map to convert values from BandCodingPath index to a codebook index.

Definition at line 121 of file aacenctab.h.

Referenced by codebook_trellis_rate(), and encode_window_bands_info().

◆ aac_cb_in_map

const uint8_t aac_cb_in_map[CB_TOT_ALL+1] = {0,1,2,3,4,5,6,7,8,9,10,11,0,12,13,14}
static

Inverse map to convert from codebooks to BandCodingPath indices.

Definition at line 123 of file aacenctab.h.

Referenced by codebook_trellis_rate(), and encode_window_bands_info().

◆ aac_cb_range

const uint8_t aac_cb_range[12] = {0, 3, 3, 3, 3, 9, 9, 8, 8, 13, 13, 17}
static

Definition at line 125 of file aacenctab.h.

Referenced by quantize_and_encode_band_cost_template().

◆ aac_cb_maxval

const uint8_t aac_cb_maxval[12] = {0, 1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 16}
static

Definition at line 126 of file aacenctab.h.

Referenced by quantize_and_encode_band_cost_template().

◆ aac_maxval_cb

const unsigned char aac_maxval_cb[]
static
Initial value:
= {
0, 1, 3, 5, 5, 7, 7, 7, 9, 9, 9, 9, 9, 11
}

Definition at line 128 of file aacenctab.h.

Referenced by find_min_book().

◆ aacenc_profiles

const int aacenc_profiles[]
static
Initial value:
= {
}
#define FF_PROFILE_AAC_MAIN
Definition: avcodec.h:2847
#define FF_PROFILE_AAC_LTP
Definition: avcodec.h:2850
#define FF_PROFILE_MPEG2_AAC_LOW
Definition: avcodec.h:2855
#define FF_PROFILE_AAC_LOW
Definition: avcodec.h:2848

Definition at line 132 of file aacenctab.h.

Referenced by aac_encode_init().