libavcodec/wmadata.h File Reference

Various WMA tables. More...

#include <stdint.h>
#include "wma.h"

Go to the source code of this file.

Variables

static const uint16_t wma_critical_freqs [25]
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 uint16_t ff_wma_hgain_huffcodes [37]
const uint8_t ff_wma_hgain_huffbits [37]
const float ff_wma_lsp_codebook [NB_LSP_COEFS][16]
const uint32_t ff_wma_scale_huffcodes [121]
const uint8_t ff_wma_scale_huffbits [121]
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

const uint8_t coef0_huffbits[666] [static]

Definition at line 220 of file wmadata.h.

const uint32_t coef0_huffcodes[666] [static]

Definition at line 133 of file wmadata.h.

const uint8_t coef1_huffbits[555] [static]

Definition at line 380 of file wmadata.h.

const uint32_t coef1_huffcodes[555] [static]

Definition at line 307 of file wmadata.h.

const uint8_t coef2_huffbits[1336] [static]

Definition at line 623 of file wmadata.h.

const uint32_t coef2_huffcodes[1336] [static]

Definition at line 453 of file wmadata.h.

const uint8_t coef3_huffbits[1072] [static]

Definition at line 930 of file wmadata.h.

const uint32_t coef3_huffcodes[1072] [static]

Definition at line 793 of file wmadata.h.

const uint8_t coef4_huffbits[476] [static]

Definition at line 1130 of file wmadata.h.

const uint32_t coef4_huffcodes[476] [static]

Definition at line 1067 of file wmadata.h.

const uint8_t coef5_huffbits[435] [static]

Definition at line 1251 of file wmadata.h.

const uint32_t coef5_huffcodes[435] [static]

Definition at line 1193 of file wmadata.h.

const CoefVLCTable coef_vlcs[6] [static]

Initial value:

Definition at line 1420 of file wmadata.h.

Referenced by encode_block().

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 41 of file wmadata.h.

Referenced by ff_wma_init().

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 47 of file wmadata.h.

Referenced by ff_wma_init().

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 53 of file wmadata.h.

Referenced by ff_wma_init().

const uint8_t ff_wma_hgain_huffbits[37]

Initial value:

 {
 10, 12, 10, 13,  9, 13,  9,  8,
  7,  5,  5,  4,  4,  3,  3,  3,
  4,  3,  4,  4,  5,  5,  6,  8,
  7, 10,  8, 10,  9,  8,  9,  9,
 13, 10, 13, 13, 13,
}

Definition at line 67 of file wmadata.h.

Referenced by wma_decode_init().

const uint16_t ff_wma_hgain_huffcodes[37]

Initial value:

 {
 0x00003, 0x002e7, 0x00001, 0x005cd, 0x0005d, 0x005c9, 0x0005e, 0x00003,
 0x00016, 0x0000b, 0x00001, 0x00006, 0x00001, 0x00006, 0x00004, 0x00005,
 0x00004, 0x00007, 0x00003, 0x00007, 0x00004, 0x0000a, 0x0000a, 0x00002,
 0x00003, 0x00000, 0x00005, 0x00002, 0x0005f, 0x00004, 0x00003, 0x00002,
 0x005c8, 0x000b8, 0x005ca, 0x005cb, 0x005cc,
}

Definition at line 59 of file wmadata.h.

Referenced by wma_decode_init().

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 75 of file wmadata.h.

Referenced by decode_exp_lsp().

const uint8_t ff_wma_scale_huffbits[121]

Initial value:

 {
 18, 18, 18, 18, 19, 19, 19, 19,
 19, 19, 19, 19, 19, 19, 19, 19,
 19, 19, 19, 18, 19, 18, 17, 17,
 16, 17, 16, 16, 16, 16, 15, 15,
 14, 14, 14, 14, 14, 14, 13, 13,
 12, 12, 12, 11, 12, 11, 10, 10,
 10,  9,  9,  8,  8,  8,  7,  6,
  6,  5,  4,  3,  1,  4,  4,  5,
  6,  6,  7,  7,  8,  8,  9,  9,
 10, 10, 10, 11, 11, 11, 11, 12,
 12, 13, 13, 13, 14, 14, 16, 15,
 16, 15, 18, 19, 19, 19, 19, 19,
 19, 19, 19, 19, 19, 19, 19, 19,
 19, 19, 19, 19, 19, 19, 19, 19,
 19, 19, 19, 19, 19, 19, 19, 19,
 19,
}

Definition at line 114 of file wmadata.h.

Referenced by encode_exp_vlc(), and wma_decode_init().

const uint32_t ff_wma_scale_huffcodes[121]

Initial value:

 {
 0x3ffe8, 0x3ffe6, 0x3ffe7, 0x3ffe5, 0x7fff5, 0x7fff1, 0x7ffed, 0x7fff6,
 0x7ffee, 0x7ffef, 0x7fff0, 0x7fffc, 0x7fffd, 0x7ffff, 0x7fffe, 0x7fff7,
 0x7fff8, 0x7fffb, 0x7fff9, 0x3ffe4, 0x7fffa, 0x3ffe3, 0x1ffef, 0x1fff0,
 0x0fff5, 0x1ffee, 0x0fff2, 0x0fff3, 0x0fff4, 0x0fff1, 0x07ff6, 0x07ff7,
 0x03ff9, 0x03ff5, 0x03ff7, 0x03ff3, 0x03ff6, 0x03ff2, 0x01ff7, 0x01ff5,
 0x00ff9, 0x00ff7, 0x00ff6, 0x007f9, 0x00ff4, 0x007f8, 0x003f9, 0x003f7,
 0x003f5, 0x001f8, 0x001f7, 0x000fa, 0x000f8, 0x000f6, 0x00079, 0x0003a,
 0x00038, 0x0001a, 0x0000b, 0x00004, 0x00000, 0x0000a, 0x0000c, 0x0001b,
 0x00039, 0x0003b, 0x00078, 0x0007a, 0x000f7, 0x000f9, 0x001f6, 0x001f9,
 0x003f4, 0x003f6, 0x003f8, 0x007f5, 0x007f4, 0x007f6, 0x007f7, 0x00ff5,
 0x00ff8, 0x01ff4, 0x01ff6, 0x01ff8, 0x03ff8, 0x03ff4, 0x0fff0, 0x07ff4,
 0x0fff6, 0x07ff5, 0x3ffe2, 0x7ffd9, 0x7ffda, 0x7ffdb, 0x7ffdc, 0x7ffdd,
 0x7ffde, 0x7ffd8, 0x7ffd2, 0x7ffd3, 0x7ffd4, 0x7ffd5, 0x7ffd6, 0x7fff2,
 0x7ffdf, 0x7ffe7, 0x7ffe8, 0x7ffe9, 0x7ffea, 0x7ffeb, 0x7ffe6, 0x7ffe0,
 0x7ffe1, 0x7ffe2, 0x7ffe3, 0x7ffe4, 0x7ffe5, 0x7ffd7, 0x7ffec, 0x7fff4,
 0x7fff3,
}

Definition at line 95 of file wmadata.h.

Referenced by encode_exp_vlc(), and wma_decode_init().

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 1309 of file wmadata.h.

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 1320 of file wmadata.h.

const uint16_t levels2[340] [static]

Definition at line 1328 of file wmadata.h.

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 1374 of file wmadata.h.

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 1400 of file wmadata.h.

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 1412 of file wmadata.h.

const uint16_t wma_critical_freqs[25] [static]

Initial value:

 {
    100,   200,  300, 400,   510,  630,  770,    920,
    1080, 1270, 1480, 1720, 2000, 2320, 2700,   3150,
    3700, 4400, 5300, 6400, 7700, 9500, 12000, 15500,
    24500,
}

Definition at line 33 of file wmadata.h.

Referenced by ff_wma_init().


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8