FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Variables
mpegaudiodectab.h File Reference

mpeg audio layer decoder tables. More...

#include <stddef.h>
#include <stdint.h>
#include "mpegaudio.h"

Go to the source code of this file.

Data Structures

struct  HuffTable
 Used to store optimal huffman encoding results. More...
 

Variables

static const uint8_t slen_table [2][16]
 
static const uint8_t lsf_nsf_table [6][3][4]
 
static const uint16_t mpa_huffcodes_1 [4]
 
static const uint8_t mpa_huffbits_1 [4]
 
static const uint16_t mpa_huffcodes_2 [9]
 
static const uint8_t mpa_huffbits_2 [9]
 
static const uint16_t mpa_huffcodes_3 [9]
 
static const uint8_t mpa_huffbits_3 [9]
 
static const uint16_t mpa_huffcodes_5 [16]
 
static const uint8_t mpa_huffbits_5 [16]
 
static const uint16_t mpa_huffcodes_6 [16]
 
static const uint8_t mpa_huffbits_6 [16]
 
static const uint16_t mpa_huffcodes_7 [36]
 
static const uint8_t mpa_huffbits_7 [36]
 
static const uint16_t mpa_huffcodes_8 [36]
 
static const uint8_t mpa_huffbits_8 [36]
 
static const uint16_t mpa_huffcodes_9 [36]
 
static const uint8_t mpa_huffbits_9 [36]
 
static const uint16_t mpa_huffcodes_10 [64]
 
static const uint8_t mpa_huffbits_10 [64]
 
static const uint16_t mpa_huffcodes_11 [64]
 
static const uint8_t mpa_huffbits_11 [64]
 
static const uint16_t mpa_huffcodes_12 [64]
 
static const uint8_t mpa_huffbits_12 [64]
 
static const uint16_t mpa_huffcodes_13 [256]
 
static const uint8_t mpa_huffbits_13 [256]
 
static const uint16_t mpa_huffcodes_15 [256]
 
static const uint8_t mpa_huffbits_15 [256]
 
static const uint16_t mpa_huffcodes_16 [256]
 
static const uint8_t mpa_huffbits_16 [256]
 
static const uint16_t mpa_huffcodes_24 [256]
 
static const uint8_t mpa_huffbits_24 [256]
 
static const HuffTable mpa_huff_tables [16]
 
static const uint8_t mpa_huff_data [32][2]
 
static const uint8_t mpa_quad_codes [2][16]
 
static const uint8_t mpa_quad_bits [2][16]
 
static const uint8_t band_size_long [9][22]
 
static const uint8_t band_size_short [9][13]
 
static const uint8_t mpa_pretab [2][22]
 
static const float ci_table [8]
 

Detailed Description

mpeg audio layer decoder tables.

Definition in file mpegaudiodectab.h.

Variable Documentation

const uint8_t slen_table[2][16]
static
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 46 of file mpegaudiodectab.h.

Referenced by mp_decode_layer3().

const uint8_t lsf_nsf_table[6][3][4]
static
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 52 of file mpegaudiodectab.h.

Referenced by mp_decode_layer3().

const uint16_t mpa_huffcodes_1[4]
static
Initial value:
= {
0x0001, 0x0001, 0x0001, 0x0000,
}

Definition at line 63 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_1[4]
static
Initial value:
= {
1, 3, 2, 3,
}

Definition at line 67 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_2[9]
static
Initial value:
= {
0x0001, 0x0002, 0x0001, 0x0003, 0x0001, 0x0001, 0x0003, 0x0002,
0x0000,
}

Definition at line 71 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_2[9]
static
Initial value:
= {
1, 3, 6, 3, 3, 5, 5, 5,
6,
}

Definition at line 76 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_3[9]
static
Initial value:
= {
0x0003, 0x0002, 0x0001, 0x0001, 0x0001, 0x0001, 0x0003, 0x0002,
0x0000,
}

Definition at line 81 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_3[9]
static
Initial value:
= {
2, 2, 6, 3, 2, 5, 5, 5,
6,
}

Definition at line 86 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_5[16]
static
Initial value:
= {
0x0001, 0x0002, 0x0006, 0x0005, 0x0003, 0x0001, 0x0004, 0x0004,
0x0007, 0x0005, 0x0007, 0x0001, 0x0006, 0x0001, 0x0001, 0x0000,
}

Definition at line 91 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_5[16]
static
Initial value:
= {
1, 3, 6, 7, 3, 3, 6, 7,
6, 6, 7, 8, 7, 6, 7, 8,
}

Definition at line 96 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_6[16]
static
Initial value:
= {
0x0007, 0x0003, 0x0005, 0x0001, 0x0006, 0x0002, 0x0003, 0x0002,
0x0005, 0x0004, 0x0004, 0x0001, 0x0003, 0x0003, 0x0002, 0x0000,
}

Definition at line 101 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_6[16]
static
Initial value:
= {
3, 3, 5, 7, 3, 2, 4, 5,
4, 4, 5, 6, 6, 5, 6, 7,
}

Definition at line 106 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_7[36]
static
Initial value:
= {
0x0001, 0x0002, 0x000a, 0x0013, 0x0010, 0x000a, 0x0003, 0x0003,
0x0007, 0x000a, 0x0005, 0x0003, 0x000b, 0x0004, 0x000d, 0x0011,
0x0008, 0x0004, 0x000c, 0x000b, 0x0012, 0x000f, 0x000b, 0x0002,
0x0007, 0x0006, 0x0009, 0x000e, 0x0003, 0x0001, 0x0006, 0x0004,
0x0005, 0x0003, 0x0002, 0x0000,
}

Definition at line 111 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_7[36]
static
Initial value:
= {
1, 3, 6, 8, 8, 9, 3, 4,
6, 7, 7, 8, 6, 5, 7, 8,
8, 9, 7, 7, 8, 9, 9, 9,
7, 7, 8, 9, 9, 10, 8, 8,
9, 10, 10, 10,
}

Definition at line 119 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_8[36]
static
Initial value:
= {
0x0003, 0x0004, 0x0006, 0x0012, 0x000c, 0x0005, 0x0005, 0x0001,
0x0002, 0x0010, 0x0009, 0x0003, 0x0007, 0x0003, 0x0005, 0x000e,
0x0007, 0x0003, 0x0013, 0x0011, 0x000f, 0x000d, 0x000a, 0x0004,
0x000d, 0x0005, 0x0008, 0x000b, 0x0005, 0x0001, 0x000c, 0x0004,
0x0004, 0x0001, 0x0001, 0x0000,
}

Definition at line 127 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_8[36]
static
Initial value:
= {
2, 3, 6, 8, 8, 9, 3, 2,
4, 8, 8, 8, 6, 4, 6, 8,
8, 9, 8, 8, 8, 9, 9, 10,
8, 7, 8, 9, 10, 10, 9, 8,
9, 9, 11, 11,
}

Definition at line 135 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_9[36]
static
Initial value:
= {
0x0007, 0x0005, 0x0009, 0x000e, 0x000f, 0x0007, 0x0006, 0x0004,
0x0005, 0x0005, 0x0006, 0x0007, 0x0007, 0x0006, 0x0008, 0x0008,
0x0008, 0x0005, 0x000f, 0x0006, 0x0009, 0x000a, 0x0005, 0x0001,
0x000b, 0x0007, 0x0009, 0x0006, 0x0004, 0x0001, 0x000e, 0x0004,
0x0006, 0x0002, 0x0006, 0x0000,
}

Definition at line 143 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_9[36]
static
Initial value:
= {
3, 3, 5, 6, 8, 9, 3, 3,
4, 5, 6, 8, 4, 4, 5, 6,
7, 8, 6, 5, 6, 7, 7, 8,
7, 6, 7, 7, 8, 9, 8, 7,
8, 8, 9, 9,
}

Definition at line 151 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_10[64]
static
Initial value:
= {
0x0001, 0x0002, 0x000a, 0x0017, 0x0023, 0x001e, 0x000c, 0x0011,
0x0003, 0x0003, 0x0008, 0x000c, 0x0012, 0x0015, 0x000c, 0x0007,
0x000b, 0x0009, 0x000f, 0x0015, 0x0020, 0x0028, 0x0013, 0x0006,
0x000e, 0x000d, 0x0016, 0x0022, 0x002e, 0x0017, 0x0012, 0x0007,
0x0014, 0x0013, 0x0021, 0x002f, 0x001b, 0x0016, 0x0009, 0x0003,
0x001f, 0x0016, 0x0029, 0x001a, 0x0015, 0x0014, 0x0005, 0x0003,
0x000e, 0x000d, 0x000a, 0x000b, 0x0010, 0x0006, 0x0005, 0x0001,
0x0009, 0x0008, 0x0007, 0x0008, 0x0004, 0x0004, 0x0002, 0x0000,
}

Definition at line 159 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_10[64]
static
Initial value:
= {
1, 3, 6, 8, 9, 9, 9, 10,
3, 4, 6, 7, 8, 9, 8, 8,
6, 6, 7, 8, 9, 10, 9, 9,
7, 7, 8, 9, 10, 10, 9, 10,
8, 8, 9, 10, 10, 10, 10, 10,
9, 9, 10, 10, 11, 11, 10, 11,
8, 8, 9, 10, 10, 10, 11, 11,
9, 8, 9, 10, 10, 11, 11, 11,
}

Definition at line 170 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_11[64]
static
Initial value:
= {
0x0003, 0x0004, 0x000a, 0x0018, 0x0022, 0x0021, 0x0015, 0x000f,
0x0005, 0x0003, 0x0004, 0x000a, 0x0020, 0x0011, 0x000b, 0x000a,
0x000b, 0x0007, 0x000d, 0x0012, 0x001e, 0x001f, 0x0014, 0x0005,
0x0019, 0x000b, 0x0013, 0x003b, 0x001b, 0x0012, 0x000c, 0x0005,
0x0023, 0x0021, 0x001f, 0x003a, 0x001e, 0x0010, 0x0007, 0x0005,
0x001c, 0x001a, 0x0020, 0x0013, 0x0011, 0x000f, 0x0008, 0x000e,
0x000e, 0x000c, 0x0009, 0x000d, 0x000e, 0x0009, 0x0004, 0x0001,
0x000b, 0x0004, 0x0006, 0x0006, 0x0006, 0x0003, 0x0002, 0x0000,
}

Definition at line 181 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_11[64]
static
Initial value:
= {
2, 3, 5, 7, 8, 9, 8, 9,
3, 3, 4, 6, 8, 8, 7, 8,
5, 5, 6, 7, 8, 9, 8, 8,
7, 6, 7, 9, 8, 10, 8, 9,
8, 8, 8, 9, 9, 10, 9, 10,
8, 8, 9, 10, 10, 11, 10, 11,
8, 7, 7, 8, 9, 10, 10, 10,
8, 7, 8, 9, 10, 10, 10, 10,
}

Definition at line 192 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_12[64]
static
Initial value:
= {
0x0009, 0x0006, 0x0010, 0x0021, 0x0029, 0x0027, 0x0026, 0x001a,
0x0007, 0x0005, 0x0006, 0x0009, 0x0017, 0x0010, 0x001a, 0x000b,
0x0011, 0x0007, 0x000b, 0x000e, 0x0015, 0x001e, 0x000a, 0x0007,
0x0011, 0x000a, 0x000f, 0x000c, 0x0012, 0x001c, 0x000e, 0x0005,
0x0020, 0x000d, 0x0016, 0x0013, 0x0012, 0x0010, 0x0009, 0x0005,
0x0028, 0x0011, 0x001f, 0x001d, 0x0011, 0x000d, 0x0004, 0x0002,
0x001b, 0x000c, 0x000b, 0x000f, 0x000a, 0x0007, 0x0004, 0x0001,
0x001b, 0x000c, 0x0008, 0x000c, 0x0006, 0x0003, 0x0001, 0x0000,
}

Definition at line 203 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_12[64]
static
Initial value:
= {
4, 3, 5, 7, 8, 9, 9, 9,
3, 3, 4, 5, 7, 7, 8, 8,
5, 4, 5, 6, 7, 8, 7, 8,
6, 5, 6, 6, 7, 8, 8, 8,
7, 6, 7, 7, 8, 8, 8, 9,
8, 7, 8, 8, 8, 9, 8, 9,
8, 7, 7, 8, 8, 9, 9, 10,
9, 8, 8, 9, 9, 9, 9, 10,
}

Definition at line 214 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_13[256]
static

Definition at line 225 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_13[256]
static

Definition at line 260 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_15[256]
static

Definition at line 295 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_15[256]
static

Definition at line 330 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_16[256]
static

Definition at line 365 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_16[256]
static

Definition at line 400 of file mpegaudiodectab.h.

const uint16_t mpa_huffcodes_24[256]
static

Definition at line 435 of file mpegaudiodectab.h.

const uint8_t mpa_huffbits_24[256]
static

Definition at line 470 of file mpegaudiodectab.h.

const HuffTable mpa_huff_tables[16]
static
Initial value:
= {
{ 1, NULL, NULL },
}
static const uint8_t mpa_huffbits_13[256]
#define NULL
Definition: coverity.c:32
static const uint8_t mpa_huffbits_16[256]
static const uint8_t mpa_huffbits_1[4]
static const uint8_t mpa_huffbits_15[256]
static const uint16_t mpa_huffcodes_2[9]
static const uint16_t mpa_huffcodes_10[64]
static const uint8_t mpa_huffbits_12[64]
static const uint16_t mpa_huffcodes_3[9]
static const uint8_t mpa_huffbits_7[36]
static const uint16_t mpa_huffcodes_11[64]
static const uint16_t mpa_huffcodes_16[256]
static const uint16_t mpa_huffcodes_24[256]
static const uint8_t mpa_huffbits_24[256]
static const uint16_t mpa_huffcodes_12[64]
static const uint8_t mpa_huffbits_10[64]
static const uint16_t mpa_huffcodes_1[4]
static const uint8_t mpa_huffbits_3[9]
static const uint16_t mpa_huffcodes_6[16]
static const uint16_t mpa_huffcodes_9[36]
static const uint8_t mpa_huffbits_11[64]
static const uint8_t mpa_huffbits_9[36]
static const uint16_t mpa_huffcodes_5[16]
static const uint16_t mpa_huffcodes_13[256]
static const uint16_t mpa_huffcodes_15[256]
static const uint16_t mpa_huffcodes_7[36]
static const uint8_t mpa_huffbits_6[16]
static const uint16_t mpa_huffcodes_8[36]
static const uint8_t mpa_huffbits_8[36]
static const uint8_t mpa_huffbits_2[9]
static const uint8_t mpa_huffbits_5[16]

Definition at line 505 of file mpegaudiodectab.h.

Referenced by decode_init_static().

const uint8_t mpa_huff_data[32][2]
static

Definition at line 524 of file mpegaudiodectab.h.

Referenced by huffman_decode().

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 561 of file mpegaudiodectab.h.

Referenced by decode_init_static().

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 566 of file mpegaudiodectab.h.

Referenced by decode_init_static().

const uint8_t band_size_long[9][22]
static
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 572 of file mpegaudiodectab.h.

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

const uint8_t band_size_short[9][13]
static
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 593 of file mpegaudiodectab.h.

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

const uint8_t mpa_pretab[2][22]
static
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 605 of file mpegaudiodectab.h.

Referenced by exponents_from_scale_factors().

const float ci_table[8]
static
Initial value:
= {
-0.6, -0.535, -0.33, -0.185, -0.095, -0.041, -0.0142, -0.0037,
}

Definition at line 611 of file mpegaudiodectab.h.

Referenced by decode_init_static().