Mercurial > libavcodec.hg
comparison vp3data.h @ 1239:fe46bd7c64d4 libavcodec
get those permutations straight
author | tmmm |
---|---|
date | Sun, 11 May 2003 02:51:07 +0000 |
parents | 3fa9a3de913f |
children | 7f7aa6ac3723 |
comparison
equal
deleted
inserted
replaced
1238:6eab0df78d47 | 1239:fe46bd7c64d4 |
---|---|
58 33, 32, 30, 29, 28, 25, 24, 22, | 58 33, 32, 30, 29, 28, 25, 24, 22, |
59 21, 19, 18, 17, 15, 13, 12, 10 | 59 21, 19, 18, 17, 15, 13, 12, 10 |
60 }; | 60 }; |
61 | 61 |
62 /* table used to convert natural order <-> zigzag order */ | 62 /* table used to convert natural order <-> zigzag order */ |
63 static const int dequant_index[64] = | 63 static const int dezigzag_index[64] = |
64 { 0, 1, 8, 16, 9, 2, 3, 10, | 64 { 0, 1, 8, 16, 9, 2, 3, 10, |
65 17, 24, 32, 25, 18, 11, 4, 5, | 65 17, 24, 32, 25, 18, 11, 4, 5, |
66 12, 19, 26, 33, 40, 48, 41, 34, | 66 12, 19, 26, 33, 40, 48, 41, 34, |
67 27, 20, 13, 6, 7, 14, 21, 28, | 67 27, 20, 13, 6, 7, 14, 21, 28, |
68 35, 42, 49, 56, 57, 50, 43, 36, | 68 35, 42, 49, 56, 57, 50, 43, 36, |
69 29, 22, 15, 23, 30, 37, 44, 51, | 69 29, 22, 15, 23, 30, 37, 44, 51, |
70 58, 59, 52, 45, 38, 31, 39, 46, | 70 58, 59, 52, 45, 38, 31, 39, 46, |
71 53, 60, 61, 54, 47, 55, 62, 63 | 71 53, 60, 61, 54, 47, 55, 62, 63 |
72 }; | 72 }; |
73 | 73 |
74 /* inverse of dequant index */ | 74 /* inverse of dezigzag index */ |
75 static int quant_index[64]; | 75 static int zigzag_index[64]; |
76 | 76 |
77 static const uint16_t dc_bias[16][32][2] = { | 77 static const uint16_t dc_bias[16][32][2] = { |
78 { /* DC bias table 0 */ | 78 { /* DC bias table 0 */ |
79 { 0x2D, 6 }, | 79 { 0x2D, 6 }, |
80 { 0x26, 7 }, | 80 { 0x26, 7 }, |