#include "avcodec.h"
#include "ac3tab.h"
Go to the source code of this file.
Defines | |
| #define | COMMON_CHANNEL_MAP |
Variables | |
| const uint16_t | ff_ac3_frame_size_tab [38][3] |
| Possible frame sizes. | |
| const uint8_t | ff_ac3_channels_tab [8] |
| Maps audio coding mode (acmod) to number of full-bandwidth channels. | |
| const uint16_t | ff_ac3_channel_layout_tab [8] |
| Maps audio coding mode (acmod) to channel layout mask. | |
| const uint8_t | ff_ac3_enc_channel_map [8][2][6] |
| Table to remap channels from SMPTE order to AC-3 order. | |
| const uint8_t | ff_ac3_dec_channel_map [8][2][6] |
| Table to remap channels from from AC-3 order to SMPTE order. | |
| const uint16_t | ff_ac3_sample_rate_tab [3] = { 48000, 44100, 32000 } |
| const uint16_t | ff_ac3_bitrate_tab [19] |
| const int16_t | ff_ac3_window [256] |
| const uint8_t | ff_ac3_log_add_tab [260] |
| const uint16_t | ff_ac3_hearing_threshold_tab [50][3] |
| const uint8_t | ff_ac3_bap_tab [64] |
| const uint8_t | ff_ac3_slow_decay_tab [4] |
| const uint8_t | ff_ac3_fast_decay_tab [4] |
| const uint16_t | ff_ac3_slow_gain_tab [4] |
| const uint16_t | ff_ac3_db_per_bit_tab [4] |
| const int16_t | ff_ac3_floor_tab [8] |
| const uint16_t | ff_ac3_fast_gain_tab [8] |
| const uint8_t | ff_ac3_critical_band_size_tab [50] |
| const uint16_t | ff_eac3_default_chmap [8] |
| Default channel map for a dependent substream defined by acmod. | |
Definition in file ac3tab.c.
| #define COMMON_CHANNEL_MAP |
| const uint8_t ff_ac3_bap_tab[64] |
Initial value:
{
0, 1, 1, 1, 1, 1, 2, 2, 3, 3,
3, 4, 4, 5, 5, 6, 6, 6, 6, 7,
7, 7, 7, 8, 8, 8, 8, 9, 9, 9,
9, 10, 10, 10, 10, 11, 11, 11, 11, 12,
12, 12, 12, 13, 13, 13, 13, 14, 14, 14,
14, 14, 14, 14, 14, 15, 15, 15, 15, 15,
15, 15, 15, 15,
}
Definition at line 254 of file ac3tab.c.
Referenced by ac3_parametric_bit_allocation(), bit_alloc(), and decode_audio_block().
| const uint16_t ff_ac3_bitrate_tab[19] |
Initial value:
{
32, 40, 48, 56, 64, 80, 96, 112, 128,
160, 192, 224, 256, 320, 384, 448, 512, 576, 640
}
Definition at line 129 of file ac3tab.c.
Referenced by AC3_encode_init(), and ff_ac3_parse_header().
| const uint16_t ff_ac3_channel_layout_tab[8] |
Initial value:
{
CH_LAYOUT_STEREO,
CH_LAYOUT_MONO,
CH_LAYOUT_STEREO,
CH_LAYOUT_SURROUND,
CH_LAYOUT_2_1,
CH_LAYOUT_4POINT0,
CH_LAYOUT_2_2,
CH_LAYOUT_5POINT0
}
Definition at line 86 of file ac3tab.c.
Referenced by ac3_decode_frame(), and ff_ac3_parse_header().
| const uint8_t ff_ac3_channels_tab[8] |
Initial value:
{
2, 1, 2, 3, 3, 4, 4, 5
}
from ATSC A/52 Table 5.8 Audio Coding Mode
Definition at line 79 of file ac3tab.c.
Referenced by ff_ac3_parse_header().
| const uint8_t ff_ac3_critical_band_size_tab[50] |
Initial value:
{
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
3, 6, 6, 6, 6, 6, 6, 12, 12, 12, 12, 24, 24, 24, 24, 24
}
Definition at line 288 of file ac3tab.c.
Referenced by ac3_common_init().
| const uint16_t ff_ac3_db_per_bit_tab[4] |
Initial value:
{
0x000, 0x700, 0x900, 0xb00,
}
Definition at line 276 of file ac3tab.c.
Referenced by compute_bit_allocation(), decode_audio_block(), and ff_eac3_parse_header().
| const uint8_t ff_ac3_dec_channel_map[8][2][6] |
Initial value:
{
COMMON_CHANNEL_MAP
{ { 0, 1, 2, 3, }, { 0, 1, 4, 2, 3, } },
{ { 0, 2, 1, 3, 4, }, { 0, 2, 1, 5, 3, 4 } },
}
[channel_mode][lfe][ch]
Definition at line 119 of file ac3tab.c.
Referenced by ac3_decode_frame().
| const uint8_t ff_ac3_enc_channel_map[8][2][6] |
Initial value:
{
COMMON_CHANNEL_MAP
{ { 0, 1, 2, 3, }, { 0, 1, 3, 4, 2, } },
{ { 0, 2, 1, 3, 4, }, { 0, 2, 1, 4, 5, 3 } },
}
[channel_mode][lfe][ch]
Definition at line 109 of file ac3tab.c.
Referenced by set_channel_info().
| const uint8_t ff_ac3_fast_decay_tab[4] |
Initial value:
{
0x3f, 0x53, 0x67, 0x7b,
}
Definition at line 268 of file ac3tab.c.
Referenced by compute_bit_allocation(), decode_audio_block(), and ff_eac3_parse_header().
| const uint16_t ff_ac3_fast_gain_tab[8] |
Initial value:
{
0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400,
}
Definition at line 284 of file ac3tab.c.
Referenced by bit_alloc_masking(), and decode_audio_block().
| const int16_t ff_ac3_floor_tab[8] |
Initial value:
{
0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
}
Definition at line 280 of file ac3tab.c.
Referenced by compute_bit_allocation(), decode_audio_block(), and ff_eac3_parse_header().
| const uint16_t ff_ac3_frame_size_tab[38][3] |
Possible frame sizes.
from ATSC A/52 Table 5.18 Frame Size Code Table.
Definition at line 34 of file ac3tab.c.
Referenced by AC3_encode_init(), and ff_ac3_parse_header().
| const uint16_t ff_ac3_hearing_threshold_tab[50][3] |
| const uint8_t ff_ac3_log_add_tab[260] |
Initial value:
{
0x40,0x3f,0x3e,0x3d,0x3c,0x3b,0x3a,0x39,0x38,0x37,
0x36,0x35,0x34,0x34,0x33,0x32,0x31,0x30,0x2f,0x2f,
0x2e,0x2d,0x2c,0x2c,0x2b,0x2a,0x29,0x29,0x28,0x27,
0x26,0x26,0x25,0x24,0x24,0x23,0x23,0x22,0x21,0x21,
0x20,0x20,0x1f,0x1e,0x1e,0x1d,0x1d,0x1c,0x1c,0x1b,
0x1b,0x1a,0x1a,0x19,0x19,0x18,0x18,0x17,0x17,0x16,
0x16,0x15,0x15,0x15,0x14,0x14,0x13,0x13,0x13,0x12,
0x12,0x12,0x11,0x11,0x11,0x10,0x10,0x10,0x0f,0x0f,
0x0f,0x0e,0x0e,0x0e,0x0d,0x0d,0x0d,0x0d,0x0c,0x0c,
0x0c,0x0c,0x0b,0x0b,0x0b,0x0b,0x0a,0x0a,0x0a,0x0a,
0x0a,0x09,0x09,0x09,0x09,0x09,0x08,0x08,0x08,0x08,
0x08,0x08,0x07,0x07,0x07,0x07,0x07,0x07,0x06,0x06,
0x06,0x06,0x06,0x06,0x06,0x06,0x05,0x05,0x05,0x05,
0x05,0x05,0x05,0x05,0x04,0x04,0x04,0x04,0x04,0x04,
0x04,0x04,0x04,0x04,0x04,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}
Definition at line 172 of file ac3tab.c.
Referenced by ff_ac3_bit_alloc_calc_psd().
| const uint16_t ff_ac3_sample_rate_tab[3] = { 48000, 44100, 32000 } |
Definition at line 126 of file ac3tab.c.
Referenced by AC3_encode_init(), and ff_ac3_parse_header().
| const uint8_t ff_ac3_slow_decay_tab[4] |
Initial value:
{
0x0f, 0x11, 0x13, 0x15,
}
Definition at line 264 of file ac3tab.c.
Referenced by compute_bit_allocation(), decode_audio_block(), and ff_eac3_parse_header().
| const uint16_t ff_ac3_slow_gain_tab[4] |
Initial value:
{
0x540, 0x4d8, 0x478, 0x410,
}
Definition at line 272 of file ac3tab.c.
Referenced by compute_bit_allocation(), decode_audio_block(), and ff_eac3_parse_header().
| const int16_t ff_ac3_window[256] |
| const uint16_t ff_eac3_default_chmap[8] |
Initial value:
{
AC3_CHMAP_L | AC3_CHMAP_R,
AC3_CHMAP_C,
AC3_CHMAP_L | AC3_CHMAP_R,
AC3_CHMAP_L | AC3_CHMAP_C | AC3_CHMAP_R,
AC3_CHMAP_L | AC3_CHMAP_R | AC3_CHMAP_C_SUR,
AC3_CHMAP_L | AC3_CHMAP_C | AC3_CHMAP_R | AC3_CHMAP_C_SUR,
AC3_CHMAP_L | AC3_CHMAP_R | AC3_CHMAP_L_SUR | AC3_CHMAP_R_SUR,
AC3_CHMAP_L | AC3_CHMAP_C | AC3_CHMAP_R | AC3_CHMAP_L_SUR | AC3_CHMAP_R_SUR
}
Definition at line 296 of file ac3tab.c.
Referenced by ff_ac3_parse_header_full().
1.5.8