[svn] / branches / dev-api-4 / xvidcore / src / bitstream / zigzag.h Repository:
ViewVC logotype

Annotation of /branches/dev-api-4/xvidcore/src/bitstream/zigzag.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (view) (download)
Original Path: trunk/xvidcore/src/bitstream/zigzag.h

1 : Isibaar 3 #ifndef _ZIGZAG_H_
2 :     #define _ZIGZAG_H_
3 :    
4 :     static const uint16_t scan_tables[3][64] =
5 :     {
6 :     { // zig_zag_scan
7 :     0, 1, 8, 16, 9, 2, 3, 10,
8 :     17, 24, 32, 25, 18, 11, 4, 5,
9 :     12, 19, 26, 33, 40, 48, 41, 34,
10 :     27, 20, 13, 6, 7, 14, 21, 28,
11 :     35, 42, 49, 56, 57, 50, 43, 36,
12 :     29, 22, 15, 23, 30, 37, 44, 51,
13 :     58, 59, 52, 45, 38, 31, 39, 46,
14 :     53, 60, 61, 54, 47, 55, 62, 63
15 :     },
16 :    
17 :     { // horizontal_scan
18 :     0, 1, 2, 3, 8, 9, 16, 17,
19 :     10, 11, 4, 5, 6, 7, 15, 14,
20 :     13, 12, 19, 18, 24, 25, 32, 33,
21 :     26, 27, 20, 21, 22, 23, 28, 29,
22 :     30, 31, 34, 35, 40, 41, 48, 49,
23 :     42, 43, 36, 37, 38, 39, 44, 45,
24 :     46, 47, 50, 51, 56, 57, 58, 59,
25 :     52, 53, 54, 55, 60, 61, 62, 63
26 :     },
27 :    
28 :     { // vertical_scan
29 :     0, 8, 16, 24, 1, 9, 2, 10,
30 :     17, 25, 32, 40, 48, 56, 57, 49,
31 :     41, 33, 26, 18, 3, 11, 4, 12,
32 :     19, 27, 34, 42, 50, 58, 35, 43,
33 :     51, 59, 20, 28, 5, 13, 6, 14,
34 :     21, 29, 36, 44, 52, 60, 37, 45,
35 :     53, 61, 22, 30, 7, 15, 23, 31,
36 :     38, 46, 54, 62, 39, 47, 55, 63
37 :     }
38 :     };
39 :    
40 :     #endif /* _ZIGZAG_H_ */

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4