comparison vc9data.h @ 2476:38dbec9a148d libavcodec

100000l (typos in the #define for selecting the NORM6 method -> wasnt compiled, after fixing typos new method doesnt even compile -> swicth back to old until its fixed)
author michael
date Sun, 30 Jan 2005 22:28:11 +0000
parents db05cb59c6fc
children 5d28ea40fd98
comparison
equal deleted inserted replaced
2475:db05cb59c6fc 2476:38dbec9a148d
5 5
6 #ifndef VC9DATA_H 6 #ifndef VC9DATA_H
7 #define VC9DATA_H 7 #define VC9DATA_H
8 8
9 /* Set a method for reading VLC in NORM6 bitplane decoding */ 9 /* Set a method for reading VLC in NORM6 bitplane decoding */
10 #define VLC_NORM6_METH0D 2 10 #define TILE_VLC_METHOD 1
11 11
12 /* bfraction is fractional, we scale to the GCD 3*5*7*8 = 840 */ 12 /* bfraction is fractional, we scale to the GCD 3*5*7*8 = 840 */
13 const int16_t vc9_bfraction_lut[23] = { 13 const int16_t vc9_bfraction_lut[23] = {
14 420 /*1/2*/, 280 /*1/3*/, 560 /*2/3*/, 210 /*1/4*/, 14 420 /*1/2*/, 280 /*1/3*/, 560 /*2/3*/, 210 /*1/4*/,
15 630 /*3/4*/, 168 /*1/5*/, 336 /*2/5*/, 15 630 /*3/4*/, 168 /*1/5*/, 336 /*2/5*/,
72 }; 72 };
73 static const uint8_t vc9_norm2_bits[4] = { 73 static const uint8_t vc9_norm2_bits[4] = {
74 1, 3, 3, 2 74 1, 3, 3, 2
75 }; 75 };
76 76
77 #if VLC_NORM6_METH0D == 1 77 #if TILE_VLC_METHOD == 1
78 static const uint16_t vc9_norm6_codes[64] = { 78 static const uint16_t vc9_norm6_codes[64] = {
79 0x001, 0x002, 0x003, 0x000, 0x004, 0x001, 0x002, 0x047, 0x005, 0x003, 0x004, 0x04B, 0x005, 0x04D, 0x04E, 0x30E, 79 0x001, 0x002, 0x003, 0x000, 0x004, 0x001, 0x002, 0x047, 0x005, 0x003, 0x004, 0x04B, 0x005, 0x04D, 0x04E, 0x30E,
80 0x006, 0x006, 0x007, 0x053, 0x008, 0x055, 0x056, 0x30D, 0x009, 0x059, 0x05A, 0x30C, 0x05C, 0x30B, 0x30A, 0x037, 80 0x006, 0x006, 0x007, 0x053, 0x008, 0x055, 0x056, 0x30D, 0x009, 0x059, 0x05A, 0x30C, 0x05C, 0x30B, 0x30A, 0x037,
81 0x007, 0x00A, 0x00B, 0x043, 0x00C, 0x045, 0x046, 0x309, 0x00D, 0x049, 0x04A, 0x308, 0x04C, 0x307, 0x306, 0x036, 81 0x007, 0x00A, 0x00B, 0x043, 0x00C, 0x045, 0x046, 0x309, 0x00D, 0x049, 0x04A, 0x308, 0x04C, 0x307, 0x306, 0x036,
82 0x00E, 0x051, 0x052, 0x305, 0x054, 0x304, 0x303, 0x035, 0x058, 0x302, 0x301, 0x034, 0x300, 0x033, 0x032, 0x007, 82 0x00E, 0x051, 0x052, 0x305, 0x054, 0x304, 0x303, 0x035, 0x058, 0x302, 0x301, 0x034, 0x300, 0x033, 0x032, 0x007,