FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Variables
mpegaudiodata.c File Reference

mpeg audio layer common tables. More...

#include "mpegaudiodata.h"

Go to the source code of this file.

Variables

const uint16_t avpriv_mpa_bitrate_tab [2][3][15]
 
const uint16_t avpriv_mpa_freq_tab [3] = { 44100, 48000, 32000 }
 
const int ff_mpa_sblimit_table [5] = { 27 , 30 , 8, 12 , 30 }
 
const int ff_mpa_quant_steps [17]
 
const int ff_mpa_quant_bits [17]
 
static const unsigned char alloc_table_1 []
 
static const unsigned char alloc_table_3 []
 
static const unsigned char alloc_table_4 []
 
const unsigned char *const ff_mpa_alloc_tables [5]
 

Detailed Description

mpeg audio layer common tables.

Definition in file mpegaudiodata.c.

Variable Documentation

const uint16_t avpriv_mpa_bitrate_tab[2][3][15]
Initial value:
= {
{ {0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448 },
{0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384 },
{0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 } },
{ {0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256},
{0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160},
{0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160}
}
}

Definition at line 30 of file mpegaudiodata.c.

Referenced by avpriv_mpegaudio_decode_header(), find_expected_header(), mp3_header_decompress(), mp3_write_xing(), and MPA_encode_init().

const uint16_t avpriv_mpa_freq_tab[3] = { 44100, 48000, 32000 }
const int ff_mpa_sblimit_table[5] = { 27 , 30 , 8, 12 , 30 }

Definition at line 45 of file mpegaudiodata.c.

Referenced by mp_decode_layer2(), and MPA_encode_init().

const int ff_mpa_quant_steps[17]
Initial value:
= {
3, 5, 7, 9, 15,
31, 63, 127, 255, 511,
1023, 2047, 4095, 8191, 16383,
32767, 65535
}

Definition at line 47 of file mpegaudiodata.c.

Referenced by decode_init_static(), encode_frame(), and mp_decode_layer2().

const int ff_mpa_quant_bits[17]
Initial value:
= {
-5, -7, 3, -10, 4,
5, 6, 7, 8, 9,
10, 11, 12, 13, 14,
15, 16
}

Definition at line 55 of file mpegaudiodata.c.

Referenced by decode_init_static(), encode_frame(), mp_decode_layer2(), and MPA_encode_init().

const unsigned char alloc_table_1[]
static

Definition at line 64 of file mpegaudiodata.c.

const unsigned char alloc_table_3[]
static
Initial value:
= {
4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
3, 0, 1, 3, 4, 5, 6, 7,
}

Definition at line 97 of file mpegaudiodata.c.

const unsigned char alloc_table_4[]
static

Definition at line 112 of file mpegaudiodata.c.

const unsigned char* const ff_mpa_alloc_tables[5]
Initial value:
=
static const unsigned char alloc_table_4[]
static const unsigned char alloc_table_3[]
Definition: mpegaudiodata.c:97
static const unsigned char alloc_table_1[]
Definition: mpegaudiodata.c:64

Definition at line 145 of file mpegaudiodata.c.

Referenced by mp_decode_layer2(), and MPA_encode_init().