FFmpeg
Macros | Enumerations | Variables
ac3tab.h File Reference
#include <stdint.h>
#include "ac3defs.h"

Go to the source code of this file.

Macros

#define COMMON_CHANNEL_MAP
 

Enumerations

enum  CustomChannelMapLocation {
  AC3_CHMAP_L = 1<<(15-0), AC3_CHMAP_C = 1<<(15-1), AC3_CHMAP_R = 1<<(15-2), AC3_CHMAP_L_SUR = 1<<(15-3),
  AC3_CHMAP_R_SUR = 1<<(15-4), AC3_CHMAP_C_SUR = 1<<(15-7), AC3_CHMAP_LFE = 1<<(15-15)
}
 Custom channel map locations bitmask Other channels described in documentation: Lc/Rc pair, Lrs/Rrs pair, Ts, Lsd/Rsd pair, Lw/Rw pair, Lvh/Rvh pair, Cvh, Reserved, LFE2. More...
 

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 uint16_t ff_ac3_channel_layout_tab [8]
 Map audio coding mode (acmod) to channel layout mask. 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 []
 
const uint16_t ff_ac3_bitrate_tab [19]
 
const uint8_t ff_ac3_rematrix_band_tab [5]
 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 uint8_t ff_ac3_band_start_tab [AC3_CRITICAL_BANDS+1]
 Starting frequency coefficient bin for each critical band. More...
 
const uint8_t ff_ac3_bin_to_band_tab [253]
 Map each frequency coefficient bin to the critical band that contains it. More...
 
const uint64_t ff_eac3_custom_channel_map_locations [16][2]
 

Macro Definition Documentation

◆ COMMON_CHANNEL_MAP

#define COMMON_CHANNEL_MAP
Value:
{ { 0, 1, }, { 0, 1, 2, } },\
{ { 0, }, { 0, 1, } },\
{ { 0, 1, }, { 0, 1, 2, } },\
{ { 0, 2, 1, }, { 0, 2, 1, 3, } },\
{ { 0, 1, 2, }, { 0, 1, 3, 2, } },\
{ { 0, 2, 1, 3, }, { 0, 2, 1, 4, 3, } },

Definition at line 64 of file ac3tab.h.

Enumeration Type Documentation

◆ CustomChannelMapLocation

Custom channel map locations bitmask Other channels described in documentation: Lc/Rc pair, Lrs/Rrs pair, Ts, Lsd/Rsd pair, Lw/Rw pair, Lvh/Rvh pair, Cvh, Reserved, LFE2.

Enumerator
AC3_CHMAP_L 
AC3_CHMAP_C 
AC3_CHMAP_R 
AC3_CHMAP_L_SUR 
AC3_CHMAP_R_SUR 
AC3_CHMAP_C_SUR 
AC3_CHMAP_LFE 

Definition at line 54 of file ac3tab.h.

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]

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_channel_layout_tab

const uint16_t ff_ac3_channel_layout_tab[8]

Map audio coding mode (acmod) to channel layout mask.

Definition at line 31 of file ac3_channel_layout_tab.h.

Referenced by ac3_decode_frame(), ff_hls_senc_parse_audio_setup_info(), mov_read_dac3(), and mov_read_dec3().

◆ ff_ac3_dec_channel_map

const uint8_t ff_ac3_dec_channel_map[8][2][6]

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[]

Definition at line 95 of file ac3tab.c.

Referenced by validate_options().

◆ ff_ac3_bitrate_tab

const uint16_t ff_ac3_bitrate_tab[19]

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]

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]

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]

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]

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]

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]

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]

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]

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]

Definition at line 146 of file ac3tab.c.

Referenced by bit_alloc_masking(), and decode_audio_block().

◆ ff_ac3_band_start_tab

const uint8_t ff_ac3_band_start_tab[AC3_CRITICAL_BANDS+1]

Starting frequency coefficient bin for each critical band.

Definition at line 36 of file ac3.c.

Referenced by ac3_bit_alloc_calc_bap_c(), and ff_ac3_bit_alloc_calc_psd().

◆ ff_ac3_bin_to_band_tab

const uint8_t ff_ac3_bin_to_band_tab[253]

Map each frequency coefficient bin to the critical band that contains it.

Definition at line 47 of file ac3.c.

Referenced by ac3_bit_alloc_calc_bap_c(), ff_ac3_bit_alloc_calc_mask(), and ff_ac3_bit_alloc_calc_psd().

◆ ff_eac3_custom_channel_map_locations

const uint64_t ff_eac3_custom_channel_map_locations[16][2]

Definition at line 150 of file ac3tab.c.

Referenced by ac3_decode_frame(), and ff_eac3_parse_header().