FFmpeg
Macros | Variables
aacenctab.h File Reference
#include "libavutil/channel_layout.h"
#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_t *const ff_aac_swb_size_1024 []
 
const int ff_aac_swb_size_1024_len
 
const uint8_t *const ff_aac_swb_size_128 []
 
const int ff_aac_swb_size_128_len
 
static const AVChannelLayout 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 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 35 of file aacenctab.h.

◆ CB_TOT_ALL

#define CB_TOT_ALL   15

Total number of codebooks, including special ones.

Definition at line 38 of file aacenctab.h.

◆ AAC_MAX_CHANNELS

#define AAC_MAX_CHANNELS   16

Definition at line 40 of file aacenctab.h.

Variable Documentation

◆ ff_aac_swb_size_1024

const uint8_t* const 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* const 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 AVChannelLayout aac_normal_chan_layouts[7]
static

◆ aac_chan_configs

const uint8_t aac_chan_configs[AAC_MAX_CHANNELS][6]
static
Initial value:

default channel configurations

Definition at line 59 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 73 of file aacenctab.h.

Referenced by aac_encode_init().

◆ 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 85 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 93 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 98 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 102 of file aacenctab.h.

◆ tns_min_sfb

const uint8_t* const tns_min_sfb[2]
static
Initial value:

Definition at line 106 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:

Definition at line 110 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 115 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 117 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 119 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 120 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 122 of file aacenctab.h.

Referenced by find_min_book().

◆ aacenc_profiles

const int aacenc_profiles[]
static
Initial value:

Definition at line 126 of file aacenctab.h.

Referenced by aac_encode_init().

AV_CHANNEL_LAYOUT_STEREO
#define AV_CHANNEL_LAYOUT_STEREO
Definition: channel_layout.h:369
FF_PROFILE_AAC_MAIN
#define FF_PROFILE_AAC_MAIN
Definition: avcodec.h:1569
FF_PROFILE_AAC_LTP
#define FF_PROFILE_AAC_LTP
Definition: avcodec.h:1572
FF_PROFILE_MPEG2_AAC_LOW
#define FF_PROFILE_MPEG2_AAC_LOW
Definition: avcodec.h:1577
TYPE_CPE
@ TYPE_CPE
Definition: aac.h:56
AV_CHANNEL_LAYOUT_SURROUND
#define AV_CHANNEL_LAYOUT_SURROUND
Definition: channel_layout.h:372
tns_min_sfb_long
static const uint8_t tns_min_sfb_long[16]
Definition: aacenctab.h:102
AV_CHANNEL_LAYOUT_4POINT0
#define AV_CHANNEL_LAYOUT_4POINT0
Definition: channel_layout.h:374
AV_CHANNEL_LAYOUT_7POINT1
#define AV_CHANNEL_LAYOUT_7POINT1
Definition: channel_layout.h:390
AV_CHANNEL_LAYOUT_5POINT0_BACK
#define AV_CHANNEL_LAYOUT_5POINT0_BACK
Definition: channel_layout.h:380
run_value_bits_long
static const uint8_t run_value_bits_long[64]
bits needed to code codebook run value for long windows
Definition: aacenctab.h:85
FF_PROFILE_AAC_LOW
#define FF_PROFILE_AAC_LOW
Definition: avcodec.h:1570
run_value_bits_short
static const uint8_t run_value_bits_short[16]
bits needed to code codebook run value for short windows
Definition: aacenctab.h:93
TYPE_LFE
@ TYPE_LFE
Definition: aac.h:58
TYPE_SCE
@ TYPE_SCE
Definition: aac.h:55
tns_min_sfb_short
static const uint8_t tns_min_sfb_short[16]
Definition: aacenctab.h:98
AV_CHANNEL_LAYOUT_MONO
#define AV_CHANNEL_LAYOUT_MONO
Definition: channel_layout.h:368
AV_CHANNEL_LAYOUT_5POINT1_BACK
#define AV_CHANNEL_LAYOUT_5POINT1_BACK
Definition: channel_layout.h:381