comparison huffyuv.c @ 1082:82c3ba139e51 libavcodec

* const arrays
author kabi
date Mon, 24 Feb 2003 13:28:22 +0000
parents a150aba978de
children 7104c8561512
comparison
equal deleted inserted replaced
1081:18157900b434 1082:82c3ba139e51
60 AVFrame picture; 60 AVFrame picture;
61 uint8_t __align8 bitstream_buffer[1024*1024*3]; //FIXME dynamic alloc or some other solution 61 uint8_t __align8 bitstream_buffer[1024*1024*3]; //FIXME dynamic alloc or some other solution
62 DSPContext dsp; 62 DSPContext dsp;
63 }HYuvContext; 63 }HYuvContext;
64 64
65 static unsigned char classic_shift_luma[] = { 65 static const unsigned char classic_shift_luma[] = {
66 34,36,35,69,135,232,9,16,10,24,11,23,12,16,13,10,14,8,15,8, 66 34,36,35,69,135,232,9,16,10,24,11,23,12,16,13,10,14,8,15,8,
67 16,8,17,20,16,10,207,206,205,236,11,8,10,21,9,23,8,8,199,70, 67 16,8,17,20,16,10,207,206,205,236,11,8,10,21,9,23,8,8,199,70,
68 69,68, 0 68 69,68, 0
69 }; 69 };
70 70
71 static unsigned char classic_shift_chroma[] = { 71 static const unsigned char classic_shift_chroma[] = {
72 66,36,37,38,39,40,41,75,76,77,110,239,144,81,82,83,84,85,118,183, 72 66,36,37,38,39,40,41,75,76,77,110,239,144,81,82,83,84,85,118,183,
73 56,57,88,89,56,89,154,57,58,57,26,141,57,56,58,57,58,57,184,119, 73 56,57,88,89,56,89,154,57,58,57,26,141,57,56,58,57,58,57,184,119,
74 214,245,116,83,82,49,80,79,78,77,44,75,41,40,39,38,37,36,34, 0 74 214,245,116,83,82,49,80,79,78,77,44,75,41,40,39,38,37,36,34, 0
75 }; 75 };
76 76
77 static unsigned char classic_add_luma[256] = { 77 static const unsigned char classic_add_luma[256] = {
78 3, 9, 5, 12, 10, 35, 32, 29, 27, 50, 48, 45, 44, 41, 39, 37, 78 3, 9, 5, 12, 10, 35, 32, 29, 27, 50, 48, 45, 44, 41, 39, 37,
79 73, 70, 68, 65, 64, 61, 58, 56, 53, 50, 49, 46, 44, 41, 38, 36, 79 73, 70, 68, 65, 64, 61, 58, 56, 53, 50, 49, 46, 44, 41, 38, 36,
80 68, 65, 63, 61, 58, 55, 53, 51, 48, 46, 45, 43, 41, 39, 38, 36, 80 68, 65, 63, 61, 58, 55, 53, 51, 48, 46, 45, 43, 41, 39, 38, 36,
81 35, 33, 32, 30, 29, 27, 26, 25, 48, 47, 46, 44, 43, 41, 40, 39, 81 35, 33, 32, 30, 29, 27, 26, 25, 48, 47, 46, 44, 43, 41, 40, 39,
82 37, 36, 35, 34, 32, 31, 30, 28, 27, 26, 24, 23, 22, 20, 19, 37, 82 37, 36, 35, 34, 32, 31, 30, 28, 27, 26, 24, 23, 22, 20, 19, 37,
91 62, 64, 66, 67, 69, 35, 37, 39, 40, 42, 43, 45, 47, 48, 51, 52, 91 62, 64, 66, 67, 69, 35, 37, 39, 40, 42, 43, 45, 47, 48, 51, 52,
92 54, 55, 57, 59, 60, 62, 63, 66, 67, 69, 71, 72, 38, 40, 42, 43, 92 54, 55, 57, 59, 60, 62, 63, 66, 67, 69, 71, 72, 38, 40, 42, 43,
93 46, 47, 49, 51, 26, 28, 30, 31, 33, 34, 18, 19, 11, 13, 7, 8, 93 46, 47, 49, 51, 26, 28, 30, 31, 33, 34, 18, 19, 11, 13, 7, 8,
94 }; 94 };
95 95
96 static unsigned char classic_add_chroma[256] = { 96 static const unsigned char classic_add_chroma[256] = {
97 3, 1, 2, 2, 2, 2, 3, 3, 7, 5, 7, 5, 8, 6, 11, 9, 97 3, 1, 2, 2, 2, 2, 3, 3, 7, 5, 7, 5, 8, 6, 11, 9,
98 7, 13, 11, 10, 9, 8, 7, 5, 9, 7, 6, 4, 7, 5, 8, 7, 98 7, 13, 11, 10, 9, 8, 7, 5, 9, 7, 6, 4, 7, 5, 8, 7,
99 11, 8, 13, 11, 19, 15, 22, 23, 20, 33, 32, 28, 27, 29, 51, 77, 99 11, 8, 13, 11, 19, 15, 22, 23, 20, 33, 32, 28, 27, 29, 51, 77,
100 43, 45, 76, 81, 46, 82, 75, 55, 56,144, 58, 80, 60, 74,147, 63, 100 43, 45, 76, 81, 46, 82, 75, 55, 56,144, 58, 80, 60, 74,147, 63,
101 143, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 101 143, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,