FFmpeg
Variables
ac3tab.c File Reference
#include "libavutil/channel_layout.h"
#include "ac3tab.h"

Go to the source code of this file.

Variables

const uint16_t ff_ac3_frame_size_tab [38][3]
 Possible frame sizes. More...
 
const uint8_t ff_ac3_channels_tab [8]
 Map audio coding mode (acmod) to number of full-bandwidth channels. More...
 
const uint8_t ff_ac3_dec_channel_map [8][2][6]
 Table to remap channels from AC-3 order to SMPTE order. More...
 
const int ff_ac3_sample_rate_tab [] = { 48000, 44100, 32000, 0 }
 
const uint16_t ff_ac3_bitrate_tab [19]
 
const uint8_t ff_ac3_rematrix_band_tab [5] = { 13, 25, 37, 61, 253 }
 Table of bin locations for rematrixing bands reference: Section 7.5.2 Rematrixing : Frequency Band Definitions. More...
 
const uint8_t ff_eac3_default_cpl_band_struct [18]
 Table E2.16 Default Coupling Banding Structure. More...
 
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 uint64_t ff_eac3_custom_channel_map_locations [16][2]
 

Detailed Description

tables taken directly from the AC-3 spec.

Definition in file ac3tab.c.

Variable Documentation

◆ ff_ac3_frame_size_tab

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 35 of file ac3tab.c.

Referenced by validate_options().

◆ ff_ac3_channels_tab

const uint8_t ff_ac3_channels_tab[8]
Initial value:
= {
2, 1, 2, 3, 3, 4, 4, 5
}

Map audio coding mode (acmod) to number of full-bandwidth channels.

from ATSC A/52 Table 5.8 Audio Coding Mode

Definition at line 80 of file ac3tab.c.

Referenced by ac3_decode_frame().

◆ ff_ac3_dec_channel_map

const uint8_t ff_ac3_dec_channel_map[8][2][6]
Initial value:
= {
{ { 0, 1, 2, 3, }, { 0, 1, 4, 2, 3, } },
{ { 0, 2, 1, 3, 4, }, { 0, 2, 1, 5, 3, 4 } },
}

Table to remap channels from AC-3 order to SMPTE order.

[channel_mode][lfe][ch]

Definition at line 88 of file ac3tab.c.

Referenced by ac3_decode_frame().

◆ ff_ac3_sample_rate_tab

const int ff_ac3_sample_rate_tab[] = { 48000, 44100, 32000, 0 }

Definition at line 95 of file ac3tab.c.

Referenced by validate_options().

◆ ff_ac3_bitrate_tab

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 98 of file ac3tab.c.

Referenced by validate_options().

◆ ff_ac3_rematrix_band_tab

const uint8_t ff_ac3_rematrix_band_tab[5] = { 13, 25, 37, 61, 253 }

Table of bin locations for rematrixing bands reference: Section 7.5.2 Rematrixing : Frequency Band Definitions.

Definition at line 107 of file ac3tab.c.

Referenced by ac3_apply_rematrixing(), compute_rematrixing_strategy(), and do_rematrixing().

◆ ff_eac3_default_cpl_band_struct

const uint8_t ff_eac3_default_cpl_band_struct[18]
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1
}

Table E2.16 Default Coupling Banding Structure.

Definition at line 112 of file ac3tab.c.

Referenced by coupling_strategy(), output_audio_block(), and set_bandwidth().

◆ ff_ac3_bap_tab

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 116 of file ac3tab.c.

Referenced by bit_alloc(), and decode_audio_block().

◆ ff_ac3_slow_decay_tab

const uint8_t ff_ac3_slow_decay_tab[4]
Initial value:
={
0x0f, 0x11, 0x13, 0x15,
}

Definition at line 126 of file ac3tab.c.

Referenced by bit_alloc_init(), decode_audio_block(), and ff_eac3_parse_header().

◆ ff_ac3_fast_decay_tab

const uint8_t ff_ac3_fast_decay_tab[4]
Initial value:
={
0x3f, 0x53, 0x67, 0x7b,
}

Definition at line 130 of file ac3tab.c.

Referenced by bit_alloc_init(), decode_audio_block(), and ff_eac3_parse_header().

◆ ff_ac3_slow_gain_tab

const uint16_t ff_ac3_slow_gain_tab[4]
Initial value:
= {
0x540, 0x4d8, 0x478, 0x410,
}

Definition at line 134 of file ac3tab.c.

Referenced by bit_alloc_init(), decode_audio_block(), and ff_eac3_parse_header().

◆ ff_ac3_db_per_bit_tab

const uint16_t ff_ac3_db_per_bit_tab[4]
Initial value:
= {
0x000, 0x700, 0x900, 0xb00,
}

Definition at line 138 of file ac3tab.c.

Referenced by bit_alloc_init(), decode_audio_block(), and ff_eac3_parse_header().

◆ ff_ac3_floor_tab

const int16_t ff_ac3_floor_tab[8]
Initial value:
= {
0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
}

Definition at line 142 of file ac3tab.c.

Referenced by bit_alloc_init(), decode_audio_block(), and ff_eac3_parse_header().

◆ ff_ac3_fast_gain_tab

const uint16_t ff_ac3_fast_gain_tab[8]
Initial value:
= {
0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400,
}

Definition at line 146 of file ac3tab.c.

Referenced by bit_alloc_masking(), and decode_audio_block().

◆ ff_eac3_custom_channel_map_locations

const uint64_t ff_eac3_custom_channel_map_locations[16][2]
AV_CH_TOP_FRONT_CENTER
#define AV_CH_TOP_FRONT_CENTER
Definition: channel_layout.h:177
AV_CH_LOW_FREQUENCY_2
#define AV_CH_LOW_FREQUENCY_2
Definition: channel_layout.h:188
COMMON_CHANNEL_MAP
#define COMMON_CHANNEL_MAP
Definition: ac3tab.h:64
AV_CH_TOP_FRONT_RIGHT
#define AV_CH_TOP_FRONT_RIGHT
Definition: channel_layout.h:178
AV_CH_TOP_FRONT_LEFT
#define AV_CH_TOP_FRONT_LEFT
Definition: channel_layout.h:176
AV_CH_WIDE_LEFT
#define AV_CH_WIDE_LEFT
Definition: channel_layout.h:184
AV_CH_SURROUND_DIRECT_RIGHT
#define AV_CH_SURROUND_DIRECT_RIGHT
Definition: channel_layout.h:187
AV_CH_WIDE_RIGHT
#define AV_CH_WIDE_RIGHT
Definition: channel_layout.h:185
AV_CH_TOP_BACK_LEFT
#define AV_CH_TOP_BACK_LEFT
Definition: channel_layout.h:179
AV_CH_BACK_LEFT
#define AV_CH_BACK_LEFT
Definition: channel_layout.h:168
AV_CH_LOW_FREQUENCY
#define AV_CH_LOW_FREQUENCY
Definition: channel_layout.h:167
AV_CH_TOP_CENTER
#define AV_CH_TOP_CENTER
Definition: channel_layout.h:175
AV_CH_FRONT_CENTER
#define AV_CH_FRONT_CENTER
Definition: channel_layout.h:166
AV_CH_FRONT_LEFT_OF_CENTER
#define AV_CH_FRONT_LEFT_OF_CENTER
Definition: channel_layout.h:170
AV_CH_TOP_BACK_RIGHT
#define AV_CH_TOP_BACK_RIGHT
Definition: channel_layout.h:181
AV_CH_FRONT_RIGHT_OF_CENTER
#define AV_CH_FRONT_RIGHT_OF_CENTER
Definition: channel_layout.h:171
AV_CH_BACK_CENTER
#define AV_CH_BACK_CENTER
Definition: channel_layout.h:172
AV_CH_FRONT_LEFT
#define AV_CH_FRONT_LEFT
Definition: channel_layout.h:164
AV_CH_SIDE_RIGHT
#define AV_CH_SIDE_RIGHT
Definition: channel_layout.h:174
AV_CH_SURROUND_DIRECT_LEFT
#define AV_CH_SURROUND_DIRECT_LEFT
Definition: channel_layout.h:186
AV_CH_FRONT_RIGHT
#define AV_CH_FRONT_RIGHT
Definition: channel_layout.h:165
AV_CH_BACK_RIGHT
#define AV_CH_BACK_RIGHT
Definition: channel_layout.h:169
AV_CH_SIDE_LEFT
#define AV_CH_SIDE_LEFT
Definition: channel_layout.h:173