comparison vc1data.h @ 4180:85e1f5ceb97e libavcodec

make more tables static
author mru
date Sun, 12 Nov 2006 23:14:20 +0000
parents c8c591fe26f8
children 4638532defe5
comparison
equal deleted inserted replaced
4179:46d38e3d7038 4180:85e1f5ceb97e
45 #else 45 #else
46 /* Denominator used for vc1_bfraction_lut */ 46 /* Denominator used for vc1_bfraction_lut */
47 #define B_FRACTION_DEN 256 47 #define B_FRACTION_DEN 256
48 48
49 /* pre-computed scales for all bfractions and base=256 */ 49 /* pre-computed scales for all bfractions and base=256 */
50 const int16_t vc1_bfraction_lut[23] = { 50 static const int16_t vc1_bfraction_lut[23] = {
51 128 /*1/2*/, 85 /*1/3*/, 170 /*2/3*/, 64 /*1/4*/, 51 128 /*1/2*/, 85 /*1/3*/, 170 /*2/3*/, 64 /*1/4*/,
52 192 /*3/4*/, 51 /*1/5*/, 102 /*2/5*/, 52 192 /*3/4*/, 51 /*1/5*/, 102 /*2/5*/,
53 153 /*3/5*/, 204 /*4/5*/, 43 /*1/6*/, 215 /*5/6*/, 53 153 /*3/5*/, 204 /*4/5*/, 43 /*1/6*/, 215 /*5/6*/,
54 37 /*1/7*/, 74 /*2/7*/, 111 /*3/7*/, 148 /*4/7*/, 54 37 /*1/7*/, 74 /*2/7*/, 111 /*3/7*/, 148 /*4/7*/,
55 185 /*5/7*/, 222 /*6/7*/, 32 /*1/8*/, 96 /*3/8*/, 55 185 /*5/7*/, 222 /*6/7*/, 32 /*1/8*/, 96 /*3/8*/,
56 160 /*5/8*/, 224 /*7/8*/, 56 160 /*5/8*/, 224 /*7/8*/,
57 -1 /*inv.*/, 0 /*BI fm*/ 57 -1 /*inv.*/, 0 /*BI fm*/
58 }; 58 };
59 #endif 59 #endif
60 60
61 const uint8_t vc1_bfraction_bits[23] = { 61 static const uint8_t vc1_bfraction_bits[23] = {
62 3, 3, 3, 3, 62 3, 3, 3, 3,
63 3, 3, 3, 63 3, 3, 3,
64 7, 7, 7, 7, 64 7, 7, 7, 7,
65 7, 7, 7, 7, 65 7, 7, 7, 7,
66 7, 7, 7, 7, 66 7, 7, 7, 7,
67 7, 7, 67 7, 7,
68 7, 7 68 7, 7
69 }; 69 };
70 const uint8_t vc1_bfraction_codes[23] = { 70 static const uint8_t vc1_bfraction_codes[23] = {
71 0, 1, 2, 3, 71 0, 1, 2, 3,
72 4, 5, 6, 72 4, 5, 6,
73 112, 113, 114, 115, 73 112, 113, 114, 115,
74 116, 117, 118, 119, 74 116, 117, 118, 119,
75 120, 121, 122, 123, 75 120, 121, 122, 123,