Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__H264__App
comparison libavcodec/cell/h264_tables.h @ 2:897f711a7157
rearrange to work with autoconf
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 25 Sep 2012 15:55:33 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:51b8c34eed61 |
|---|---|
| 1 #ifndef H264_TABLES_H | |
| 2 #define H264_TABLES_H | |
| 3 | |
| 4 #define MAX_NEG_CROP 1024 | |
| 5 | |
| 6 extern uint8_t ff_cropTbl[256+2 *MAX_NEG_CROP]; | |
| 7 extern int block_offset[16+4+4]; | |
| 8 | |
| 9 static const uint8_t scan8[16 + 2*4]={ | |
| 10 4+1*8, 5+1*8, 4+2*8, 5+2*8, | |
| 11 6+1*8, 7+1*8, 6+2*8, 7+2*8, | |
| 12 4+3*8, 5+3*8, 4+4*8, 5+4*8, | |
| 13 6+3*8, 7+3*8, 6+4*8, 7+4*8, | |
| 14 1+1*8, 2+1*8, | |
| 15 1+2*8, 2+2*8, | |
| 16 1+4*8, 2+4*8, | |
| 17 1+5*8, 2+5*8, | |
| 18 }; | |
| 19 | |
| 20 static const uint8_t ff_zigzag_direct[64] = { | |
| 21 0, 1, 8, 16, 9, 2, 3, 10, | |
| 22 17, 24, 32, 25, 18, 11, 4, 5, | |
| 23 12, 19, 26, 33, 40, 48, 41, 34, | |
| 24 27, 20, 13, 6, 7, 14, 21, 28, | |
| 25 35, 42, 49, 56, 57, 50, 43, 36, | |
| 26 29, 22, 15, 23, 30, 37, 44, 51, | |
| 27 58, 59, 52, 45, 38, 31, 39, 46, | |
| 28 53, 60, 61, 54, 47, 55, 62, 63 | |
| 29 }; | |
| 30 | |
| 31 static const uint8_t zigzag_scan[16]={ | |
| 32 0+0*4, 1+0*4, 0+1*4, 0+2*4, | |
| 33 1+1*4, 2+0*4, 3+0*4, 2+1*4, | |
| 34 1+2*4, 0+3*4, 1+3*4, 2+2*4, | |
| 35 3+1*4, 3+2*4, 2+3*4, 3+3*4, | |
| 36 }; | |
| 37 | |
| 38 static const uint8_t luma_dc_zigzag_scan[16]={ | |
| 39 0*16 + 0*64, 1*16 + 0*64, 2*16 + 0*64, 0*16 + 2*64, | |
| 40 3*16 + 0*64, 0*16 + 1*64, 1*16 + 1*64, 2*16 + 1*64, | |
| 41 1*16 + 2*64, 2*16 + 2*64, 3*16 + 2*64, 0*16 + 3*64, | |
| 42 3*16 + 1*64, 1*16 + 3*64, 2*16 + 3*64, 3*16 + 3*64, | |
| 43 }; | |
| 44 | |
| 45 static const uint8_t chroma_dc_scan[4]={ | |
| 46 (0+0*2)*16, (1+0*2)*16, | |
| 47 (0+1*2)*16, (1+1*2)*16, //FIXME | |
| 48 }; | |
| 49 | |
| 50 static const uint8_t rem6[52]={ | |
| 51 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, | |
| 52 }; | |
| 53 | |
| 54 static const uint8_t div6[52]={ | |
| 55 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, | |
| 56 }; | |
| 57 | |
| 58 static const uint8_t dequant4_coeff_init[6][3]={ | |
| 59 {10,13,16}, | |
| 60 {11,14,18}, | |
| 61 {13,16,20}, | |
| 62 {14,18,23}, | |
| 63 {16,20,25}, | |
| 64 {18,23,29}, | |
| 65 }; | |
| 66 | |
| 67 static const uint8_t dequant8_coeff_init_scan[16] = { | |
| 68 0,3,4,3, 3,1,5,1, 4,5,2,5, 3,1,5,1 | |
| 69 }; | |
| 70 static const uint8_t dequant8_coeff_init[6][6]={ | |
| 71 {20,18,32,19,25,24}, | |
| 72 {22,19,35,21,28,26}, | |
| 73 {26,23,42,24,33,31}, | |
| 74 {28,25,45,26,35,33}, | |
| 75 {32,28,51,30,40,38}, | |
| 76 {36,32,58,34,46,43}, | |
| 77 }; | |
| 78 | |
| 79 | |
| 80 void init_block_offset(int linesize, int uvlinesize); | |
| 81 void ff_cropTbl_init(); | |
| 82 | |
| 83 #endif |
