FFmpeg
Variables
wmadata.h File Reference
#include <stdint.h>
#include "wma.h"

Go to the source code of this file.

Variables

static const uint8_t exponent_band_22050 [3][25]
 
static const uint8_t exponent_band_32000 [3][25]
 
static const uint8_t exponent_band_44100 [3][25]
 
const uint8_t ff_wma_hgain_hufftab [37][2]
 
const float ff_wma_lsp_codebook [NB_LSP_COEFS][16]
 
static const uint32_t coef0_huffcodes [666]
 
static const uint8_t coef0_huffbits [666]
 
static const uint32_t coef1_huffcodes [555]
 
static const uint8_t coef1_huffbits [555]
 
static const uint32_t coef2_huffcodes [1336]
 
static const uint8_t coef2_huffbits [1336]
 
static const uint32_t coef3_huffcodes [1072]
 
static const uint8_t coef3_huffbits [1072]
 
static const uint32_t coef4_huffcodes [476]
 
static const uint8_t coef4_huffbits [476]
 
static const uint32_t coef5_huffcodes [435]
 
static const uint8_t coef5_huffbits [435]
 
static const uint16_t levels0 [60]
 
static const uint16_t levels1 [40]
 
static const uint16_t levels2 [340]
 
static const uint16_t levels3 [180]
 
static const uint16_t levels4 [70]
 
static const uint16_t levels5 [40]
 
static const CoefVLCTable coef_vlcs [6]
 

Detailed Description

Various WMA tables.

Definition in file wmadata.h.

Variable Documentation

◆ exponent_band_22050

const uint8_t exponent_band_22050[3][25]
static
Initial value:
= {
{ 10, 4, 8, 4, 8, 8, 12, 20, 24, 24, 16, },
{ 14, 4, 8, 8, 4, 12, 12, 16, 24, 16, 20, 24, 32, 40, 36, },
{ 23, 4, 4, 4, 8, 4, 4, 8, 8, 8, 8, 8, 12, 12, 16, 16,
24, 24, 32, 44, 48, 60, 84, 72, },
}

Definition at line 35 of file wmadata.h.

Referenced by ff_wma_init().

◆ exponent_band_32000

const uint8_t exponent_band_32000[3][25]
static
Initial value:
= {
{ 11, 4, 4, 8, 4, 4, 12, 16, 24, 20, 28, 4, },
{ 15, 4, 8, 4, 4, 8, 8, 16, 20, 12, 20, 20, 28, 40, 56, 8, },
{ 16, 8, 4, 8, 8, 12, 16, 20, 24, 40, 32, 32, 44, 56, 80, 112, 16, },
}

Definition at line 42 of file wmadata.h.

Referenced by ff_wma_init().

◆ exponent_band_44100

const uint8_t exponent_band_44100[3][25]
static
Initial value:
= {
{ 12, 4, 4, 4, 4, 4, 8, 8, 8, 12, 16, 20, 36, },
{ 15, 4, 8, 4, 8, 8, 4, 8, 8, 12, 12, 12, 24, 28, 40, 76, },
{ 17, 4, 8, 8, 4, 12, 12, 8, 8, 24, 16, 20, 24, 32, 40, 60, 80, 152, },
}

Definition at line 48 of file wmadata.h.

Referenced by ff_wma_init().

◆ ff_wma_hgain_hufftab

const uint8_t ff_wma_hgain_hufftab[37][2]
Initial value:
= {
{ 25, 10 }, { 2, 10 }, { 27, 10 }, { 0, 10 }, { 31, 9 }, { 30, 9 },
{ 23, 8 }, { 7, 8 }, { 29, 8 }, { 26, 8 }, { 24, 7 }, { 10, 5 },
{ 12, 4 }, { 20, 5 }, { 22, 6 }, { 8, 7 }, { 33, 10 }, { 32, 13 },
{ 5, 13 }, { 34, 13 }, { 35, 13 }, { 36, 13 }, { 3, 13 }, { 1, 12 },
{ 4, 9 }, { 6, 9 }, { 28, 9 }, { 18, 4 }, { 16, 4 }, { 21, 5 },
{ 9, 5 }, { 11, 4 }, { 19, 4 }, { 14, 3 }, { 15, 3 }, { 13, 3 },
{ 17, 3 },
}

Definition at line 54 of file wmadata.h.

Referenced by wma_decode_init().

◆ ff_wma_lsp_codebook

const float ff_wma_lsp_codebook[NB_LSP_COEFS][16]
Initial value:
= {
{ 1.98732877, 1.97944528, 1.97179088, 1.96260549, 1.95038374, 1.93336114, 1.90719232, 1.86191415, },
{ 1.97260000, 1.96083160, 1.94982586, 1.93806164, 1.92516608, 1.91010199, 1.89232331, 1.87149812,
1.84564818, 1.81358067, 1.77620070, 1.73265264, 1.67907855, 1.60959081, 1.50829650, 1.33120330, },
{ 1.90109110, 1.86482426, 1.83419671, 1.80168452, 1.76650116, 1.72816320, 1.68502700, 1.63738256,
1.58501580, 1.51795181, 1.43679906, 1.33950585, 1.24176208, 1.12260729, 0.96749668, 0.74048265, },
{ 1.76943864, 1.67822463, 1.59946365, 1.53560582, 1.47470796, 1.41210167, 1.34509536, 1.27339507,
1.19303814, 1.09765169, 0.98818722, 0.87239446, 0.74369172, 0.59768184, 0.43168630, 0.17977021, },
{ 1.43428349, 1.32038354, 1.21074086, 1.10577988, 1.00561746, 0.90335924, 0.80437489, 0.70709671,
0.60427395, 0.49814048, 0.38509539, 0.27106800, 0.14407416, 0.00219910, -0.16725141, -0.36936085, },
{ 0.99895687, 0.84188166, 0.70753739, 0.57906595, 0.47055563, 0.36966965, 0.26826648, 0.17163380,
0.07208392, -0.03062936, -1.40037388, -0.25128968, -0.37213937, -0.51075646, -0.64887512, -0.80308031, },
{ 0.26515280, 0.06313551, -0.08872080, -0.21103548, -0.31069678, -0.39680323, -0.47223474, -0.54167135,
-0.61444740, -0.68943343, -0.76580211, -0.85170082, -0.95289061, -1.06514703, -1.20510707, -1.37617746, },
{ -0.53940301, -0.73770929, -0.88424876, -1.01117930, -1.13389091, -1.26830073, -1.42041987, -1.62033919,
-1.10158808, -1.16512566, -1.23337128, -1.30414401, -1.37663312, -1.46853845, -1.57625798, -1.66893638, },
{ -0.38601997, -0.56009350, -0.66978483, -0.76028471, -0.83846064, -0.90868087, -0.97408881, -1.03694962, },
{ -1.56144989, -1.65944032, -1.72689685, -1.77857740, -1.82203011, -1.86220079, -1.90283983, -1.94820479, },
}

Definition at line 64 of file wmadata.h.

Referenced by decode_exp_lsp().

◆ coef0_huffcodes

const uint32_t coef0_huffcodes[666]
static

Definition at line 84 of file wmadata.h.

◆ coef0_huffbits

const uint8_t coef0_huffbits[666]
static

Definition at line 171 of file wmadata.h.

◆ coef1_huffcodes

const uint32_t coef1_huffcodes[555]
static

Definition at line 258 of file wmadata.h.

◆ coef1_huffbits

const uint8_t coef1_huffbits[555]
static

Definition at line 331 of file wmadata.h.

◆ coef2_huffcodes

const uint32_t coef2_huffcodes[1336]
static

Definition at line 404 of file wmadata.h.

◆ coef2_huffbits

const uint8_t coef2_huffbits[1336]
static

Definition at line 574 of file wmadata.h.

◆ coef3_huffcodes

const uint32_t coef3_huffcodes[1072]
static

Definition at line 744 of file wmadata.h.

◆ coef3_huffbits

const uint8_t coef3_huffbits[1072]
static

Definition at line 881 of file wmadata.h.

◆ coef4_huffcodes

const uint32_t coef4_huffcodes[476]
static

Definition at line 1018 of file wmadata.h.

◆ coef4_huffbits

const uint8_t coef4_huffbits[476]
static

Definition at line 1081 of file wmadata.h.

◆ coef5_huffcodes

const uint32_t coef5_huffcodes[435]
static

Definition at line 1144 of file wmadata.h.

◆ coef5_huffbits

const uint8_t coef5_huffbits[435]
static

Definition at line 1202 of file wmadata.h.

◆ levels0

const uint16_t levels0[60]
static
Initial value:
= {
317, 92, 62, 60, 19, 17, 10, 7,
6, 5, 5, 3, 3, 3, 2, 2,
2, 2, 2, 2, 2, 1, 2, 2,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1,
}

Definition at line 1260 of file wmadata.h.

◆ levels1

const uint16_t levels1[40]
static
Initial value:
= {
311, 91, 61, 28, 10, 6, 5, 2,
2, 2, 2, 2, 2, 2, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
}

Definition at line 1271 of file wmadata.h.

◆ levels2

const uint16_t levels2[340]
static

Definition at line 1279 of file wmadata.h.

◆ levels3

const uint16_t levels3[180]
static
Initial value:
= {
351, 122, 76, 61, 41, 42, 24, 30,
22, 19, 11, 9, 10, 8, 5, 5,
4, 5, 5, 3, 3, 3, 3, 3,
3, 3, 2, 2, 3, 2, 2, 2,
3, 3, 2, 2, 2, 3, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 1,
2, 2, 1, 2, 1, 2, 2, 2,
2, 2, 2, 1, 2, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 2,
2, 1, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1,
}

Definition at line 1325 of file wmadata.h.

◆ levels4

const uint16_t levels4[70]
static
Initial value:
= {
113, 68, 49, 42, 40, 32, 27, 15,
10, 5, 3, 3, 3, 3, 2, 2,
2, 2, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
}

Definition at line 1351 of file wmadata.h.

◆ levels5

const uint16_t levels5[40]
static
Initial value:
= {
214, 72, 42, 40, 18, 4, 4, 2,
2, 2, 2, 2, 1, 1, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
}

Definition at line 1363 of file wmadata.h.

◆ coef_vlcs

const CoefVLCTable coef_vlcs[6]
static
Initial value:

Definition at line 1371 of file wmadata.h.

Referenced by encode_block().

coef3_huffbits
static const uint8_t coef3_huffbits[1072]
Definition: wmadata.h:881
coef2_huffcodes
static const uint32_t coef2_huffcodes[1336]
Definition: wmadata.h:404
coef1_huffbits
static const uint8_t coef1_huffbits[555]
Definition: wmadata.h:331
coef4_huffbits
static const uint8_t coef4_huffbits[476]
Definition: wmadata.h:1081
coef1_huffcodes
static const uint32_t coef1_huffcodes[555]
Definition: wmadata.h:258
levels0
static const uint16_t levels0[60]
Definition: wmadata.h:1260
coef3_huffcodes
static const uint32_t coef3_huffcodes[1072]
Definition: wmadata.h:744
levels1
static const uint16_t levels1[40]
Definition: wmadata.h:1271
coef2_huffbits
static const uint8_t coef2_huffbits[1336]
Definition: wmadata.h:574
levels4
static const uint16_t levels4[70]
Definition: wmadata.h:1351
coef4_huffcodes
static const uint32_t coef4_huffcodes[476]
Definition: wmadata.h:1018
coef5_huffcodes
static const uint32_t coef5_huffcodes[435]
Definition: wmadata.h:1144
coef0_huffbits
static const uint8_t coef0_huffbits[666]
Definition: wmadata.h:171
levels3
static const uint16_t levels3[180]
Definition: wmadata.h:1325
coef0_huffcodes
static const uint32_t coef0_huffcodes[666]
Definition: wmadata.h:84
levels2
static const uint16_t levels2[340]
Definition: wmadata.h:1279
coef5_huffbits
static const uint8_t coef5_huffbits[435]
Definition: wmadata.h:1202
levels5
static const uint16_t levels5[40]
Definition: wmadata.h:1363