FFmpeg
Functions | Variables
mpegaudiodec_common.c File Reference
#include <stddef.h>
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/libm.h"
#include "libavutil/thread.h"
#include "mpegaudiodata.h"
#include "mpegaudiodec_common_tablegen.h"

Go to the source code of this file.

Functions

static av_cold void mpegaudiodec_common_init_static (void)
 
av_cold void ff_mpegaudiodec_common_init_static (void)
 

Variables

uint16_t ff_scale_factor_modshift [64]
 
static int16_t division_tab3 [1<< 6]
 
static int16_t division_tab5 [1<< 8]
 
static int16_t division_tab9 [1<< 11]
 
int16_t *const ff_division_tabs [4]
 
const uint8_t ff_slen_table [2][16]
 
const uint8_t ff_lsf_nsf_table [6][3][4]
 
VLC ff_huff_vlc [16]
 
static VLC_TYPE huff_vlc_tables [128+128+128+130+128+154+166+142+204+190+170+542+460+662+414][2]
 
VLC ff_huff_quad_vlc [2]
 
static VLC_TYPE huff_quad_vlc_tables [64+16][2]
 
static const uint8_t mpa_hufflens []
 
static const uint8_t mpa_huffsymbols []
 
static const uint8_t mpa_huff_sizes_minus_one []
 
const uint8_t ff_mpa_huff_data [32][2]
 
static const uint8_t mpa_quad_codes [2][16]
 
static const uint8_t mpa_quad_bits [2][16]
 
const uint8_t ff_band_size_long [9][22]
 
const uint8_t ff_band_size_short [9][13]
 
uint16_t ff_band_index_long [9][23]
 
const uint8_t ff_mpa_pretab [2][22]
 

Detailed Description

mpeg audio layer decoder tables.

Definition in file mpegaudiodec_common.c.

Function Documentation

◆ mpegaudiodec_common_init_static()

static av_cold void mpegaudiodec_common_init_static ( void  )
static

Definition at line 402 of file mpegaudiodec_common.c.

Referenced by ff_mpegaudiodec_common_init_static().

◆ ff_mpegaudiodec_common_init_static()

av_cold void ff_mpegaudiodec_common_init_static ( void  )

Definition at line 478 of file mpegaudiodec_common.c.

Referenced by decode_init_static().

Variable Documentation

◆ ff_scale_factor_modshift

uint16_t ff_scale_factor_modshift[64]

◆ division_tab3

int16_t division_tab3[1<< 6]
static

Definition at line 40 of file mpegaudiodec_common.c.

◆ division_tab5

int16_t division_tab5[1<< 8]
static

Definition at line 41 of file mpegaudiodec_common.c.

◆ division_tab9

int16_t division_tab9[1<< 11]
static

Definition at line 42 of file mpegaudiodec_common.c.

◆ ff_division_tabs

int16_t* const ff_division_tabs[4]
Initial value:

Definition at line 44 of file mpegaudiodec_common.c.

Referenced by mp_decode_layer2(), and mpegaudiodec_common_init_static().

◆ ff_slen_table

const uint8_t ff_slen_table[2][16]
Initial value:
= {
{ 0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4 },
{ 0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3 },
}

Definition at line 52 of file mpegaudiodec_common.c.

Referenced by mp_decode_layer3().

◆ ff_lsf_nsf_table

const uint8_t ff_lsf_nsf_table[6][3][4]
Initial value:
= {
{ { 6, 5, 5, 5 }, { 9, 9, 9, 9 }, { 6, 9, 9, 9 } },
{ { 6, 5, 7, 3 }, { 9, 9, 12, 6 }, { 6, 9, 12, 6 } },
{ { 11, 10, 0, 0 }, { 18, 18, 0, 0 }, { 15, 18, 0, 0 } },
{ { 7, 7, 7, 0 }, { 12, 12, 12, 0 }, { 6, 15, 12, 0 } },
{ { 6, 6, 6, 3 }, { 12, 9, 9, 6 }, { 6, 12, 9, 6 } },
{ { 8, 8, 5, 0 }, { 15, 12, 9, 0 }, { 6, 18, 9, 0 } },
}

Definition at line 57 of file mpegaudiodec_common.c.

Referenced by mp_decode_layer3().

◆ ff_huff_vlc

VLC ff_huff_vlc[16]

Definition at line 67 of file mpegaudiodec_common.c.

Referenced by huffman_decode(), and mpegaudiodec_common_init_static().

◆ huff_vlc_tables

VLC_TYPE huff_vlc_tables[128+128+128+130+128+154+166+142+ 204+190+170+542+460+662+414][2]
static

Definition at line 69 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ ff_huff_quad_vlc

VLC ff_huff_quad_vlc[2]

Definition at line 70 of file mpegaudiodec_common.c.

Referenced by huffman_decode(), and mpegaudiodec_common_init_static().

◆ huff_quad_vlc_tables

VLC_TYPE huff_quad_vlc_tables[64+16][2]
static

Definition at line 71 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ mpa_hufflens

const uint8_t mpa_hufflens[]
static

Definition at line 73 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ mpa_huffsymbols

const uint8_t mpa_huffsymbols[]
static

Definition at line 170 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ mpa_huff_sizes_minus_one

const uint8_t mpa_huff_sizes_minus_one[]
static
Initial value:
=
{
3, 8, 8, 15, 15, 35, 35, 35, 63, 63, 63, 255, 255, 255, 255
}

Definition at line 310 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ ff_mpa_huff_data

const uint8_t ff_mpa_huff_data[32][2]

Definition at line 315 of file mpegaudiodec_common.c.

Referenced by huffman_decode().

◆ mpa_quad_codes

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

Definition at line 352 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ mpa_quad_bits

const uint8_t mpa_quad_bits[2][16]
static
Initial value:
= {
{ 1, 4, 4, 5, 4, 6, 5, 6, 4, 5, 5, 6, 5, 6, 6, 6, },
{ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, },
}

Definition at line 357 of file mpegaudiodec_common.c.

Referenced by mpegaudiodec_common_init_static().

◆ ff_band_size_long

const uint8_t ff_band_size_long[9][22]
Initial value:
= {
{ 4, 4, 4, 4, 4, 4, 6, 6, 8, 8, 10,
12, 16, 20, 24, 28, 34, 42, 50, 54, 76, 158, },
{ 4, 4, 4, 4, 4, 4, 6, 6, 6, 8, 10,
12, 16, 18, 22, 28, 34, 40, 46, 54, 54, 192, },
{ 4, 4, 4, 4, 4, 4, 6, 6, 8, 10, 12,
16, 20, 24, 30, 38, 46, 56, 68, 84, 102, 26, },
{ 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, },
{ 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
18, 22, 26, 32, 38, 46, 52, 64, 70, 76, 36, },
{ 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, },
{ 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, },
{ 6, 6, 6, 6, 6, 6, 8, 10, 12, 14, 16,
20, 24, 28, 32, 38, 46, 52, 60, 68, 58, 54, },
{ 12, 12, 12, 12, 12, 12, 16, 20, 24, 28, 32,
40, 48, 56, 64, 76, 90, 2, 2, 2, 2, 2, },
}

Definition at line 362 of file mpegaudiodec_common.c.

Referenced by compute_stereo(), exponents_from_scale_factors(), and mpegaudiodec_common_init_static().

◆ ff_band_size_short

const uint8_t ff_band_size_short[9][13]
Initial value:
= {
{ 4, 4, 4, 4, 6, 8, 10, 12, 14, 18, 22, 30, 56, },
{ 4, 4, 4, 4, 6, 6, 10, 12, 14, 16, 20, 26, 66, },
{ 4, 4, 4, 4, 6, 8, 12, 16, 20, 26, 34, 42, 12, },
{ 4, 4, 4, 6, 6, 8, 10, 14, 18, 26, 32, 42, 18, },
{ 4, 4, 4, 6, 8, 10, 12, 14, 18, 24, 32, 44, 12, },
{ 4, 4, 4, 6, 8, 10, 12, 14, 18, 24, 30, 40, 18, },
{ 4, 4, 4, 6, 8, 10, 12, 14, 18, 24, 30, 40, 18, },
{ 4, 4, 4, 6, 8, 10, 12, 14, 18, 24, 30, 40, 18, },
{ 8, 8, 8, 12, 16, 20, 24, 28, 36, 2, 2, 2, 26, },
}

Definition at line 383 of file mpegaudiodec_common.c.

Referenced by compute_stereo(), exponents_from_scale_factors(), and reorder_block().

◆ ff_band_index_long

uint16_t ff_band_index_long[9][23]

Definition at line 395 of file mpegaudiodec_common.c.

Referenced by init_long_region(), and mpegaudiodec_common_init_static().

◆ ff_mpa_pretab

const uint8_t ff_mpa_pretab[2][22]
Initial value:
= {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 2, 0 },
}

Definition at line 397 of file mpegaudiodec_common.c.

Referenced by exponents_from_scale_factors().

division_tab5
static int16_t division_tab5[1<< 8]
Definition: mpegaudiodec_common.c:41
NULL
#define NULL
Definition: coverity.c:32
division_tab3
static int16_t division_tab3[1<< 6]
Definition: mpegaudiodec_common.c:40
division_tab9
static int16_t division_tab9[1<< 11]
Definition: mpegaudiodec_common.c:42