FFmpeg
Variables
ac3dec_data.c File Reference
#include "ac3dec_data.h"

Go to the source code of this file.

Variables

const uint8_t ff_ac3_ungroup_3_in_5_bits_tab [32][3]
 Table used to ungroup 3 values stored in 5 bits. More...
 
const uint8_t ff_eac3_hebap_tab [64]
 
const uint8_t ff_eac3_default_spx_band_struct [17]
 Table E2.15 Default Spectral Extension Banding Structure. More...
 

Detailed Description

Tables taken directly from the AC-3 spec.

Definition in file ac3dec_data.c.

Variable Documentation

◆ ff_ac3_ungroup_3_in_5_bits_tab

const uint8_t ff_ac3_ungroup_3_in_5_bits_tab[32][3]
Initial value:
= {
{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 2 }, { 0, 1, 0 },
{ 0, 1, 1 }, { 0, 1, 2 }, { 0, 2, 0 }, { 0, 2, 1 },
{ 0, 2, 2 }, { 1, 0, 0 }, { 1, 0, 1 }, { 1, 0, 2 },
{ 1, 1, 0 }, { 1, 1, 1 }, { 1, 1, 2 }, { 1, 2, 0 },
{ 1, 2, 1 }, { 1, 2, 2 }, { 2, 0, 0 }, { 2, 0, 1 },
{ 2, 0, 2 }, { 2, 1, 0 }, { 2, 1, 1 }, { 2, 1, 2 },
{ 2, 2, 0 }, { 2, 2, 1 }, { 2, 2, 2 }, { 3, 0, 0 },
{ 3, 0, 1 }, { 3, 0, 2 }, { 3, 1, 0 }, { 3, 1, 1 }
}

Table used to ungroup 3 values stored in 5 bits.

Used by bap=1 mantissas and GAQ. ff_ac3_ungroup_3_in_5_bits_tab[i] = { i/9, (i%9)/3, (i%9)%3 }

Definition at line 34 of file ac3dec_data.c.

Referenced by ac3_tables_init(), and ff_eac3_decode_transform_coeffs_aht_ch().

◆ ff_eac3_hebap_tab

const uint8_t ff_eac3_hebap_tab[64]
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 8, 8,
8, 8, 9, 9, 9, 10, 10, 10, 10, 11,
11, 11, 11, 12, 12, 12, 12, 13, 13, 13,
13, 14, 14, 14, 14, 15, 15, 15, 15, 16,
16, 16, 16, 17, 17, 17, 17, 18, 18, 18,
18, 18, 18, 18, 18, 19, 19, 19, 19, 19,
19, 19, 19, 19,
}

Definition at line 45 of file ac3dec_data.c.

Referenced by decode_audio_block().

◆ ff_eac3_default_spx_band_struct

const uint8_t ff_eac3_default_spx_band_struct[17]
Initial value:
=
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 }

Table E2.15 Default Spectral Extension Banding Structure.

Definition at line 58 of file ac3dec_data.c.

Referenced by spx_strategy().