Mercurial > libavcodec.hg
comparison vp3data.h @ 2695:5d4a6edbc99c libavcodec
remove duplicate zigzag tables
author | michael |
---|---|
date | Tue, 17 May 2005 11:36:07 +0000 |
parents | eed7d92a1dfc |
children | 5a4e5225cbb6 |
comparison
equal
deleted
inserted
replaced
2694:0d229cf036b9 | 2695:5d4a6edbc99c |
---|---|
70 2, 2, 2, 2, 2, 2, 2, 2, | 70 2, 2, 2, 2, 2, 2, 2, 2, |
71 0, 0, 0, 0, 0, 0, 0, 0, | 71 0, 0, 0, 0, 0, 0, 0, 0, |
72 0, 0, 0, 0, 0, 0, 0, 0 | 72 0, 0, 0, 0, 0, 0, 0, 0 |
73 }; | 73 }; |
74 | 74 |
75 /* table used to convert natural order <-> zigzag order */ | |
76 static const int dezigzag_index[64] = | |
77 { 0, 1, 8, 16, 9, 2, 3, 10, | |
78 17, 24, 32, 25, 18, 11, 4, 5, | |
79 12, 19, 26, 33, 40, 48, 41, 34, | |
80 27, 20, 13, 6, 7, 14, 21, 28, | |
81 35, 42, 49, 56, 57, 50, 43, 36, | |
82 29, 22, 15, 23, 30, 37, 44, 51, | |
83 58, 59, 52, 45, 38, 31, 39, 46, | |
84 53, 60, 61, 54, 47, 55, 62, 63 | |
85 }; | |
86 | |
87 /* inverse of dezigzag index */ | |
88 static __attribute__((unused)) int zigzag_index[64]; | |
89 | |
90 static const uint16_t dc_bias[16][32][2] = { | 75 static const uint16_t dc_bias[16][32][2] = { |
91 { /* DC bias table 0 */ | 76 { /* DC bias table 0 */ |
92 { 0x2D, 6 }, | 77 { 0x2D, 6 }, |
93 { 0x26, 7 }, | 78 { 0x26, 7 }, |
94 { 0x166, 9 }, | 79 { 0x166, 9 }, |