Mercurial > libavcodec.hg
comparison sp5x.h @ 2753:ba8ecddf5598 libavcodec
adding a few const
author | michael |
---|---|
date | Wed, 01 Jun 2005 21:19:00 +0000 |
parents | b44267fc5ec4 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2752:23665209e823 | 2753:ba8ecddf5598 |
---|---|
18 */ | 18 */ |
19 | 19 |
20 #ifndef SP5X_H | 20 #ifndef SP5X_H |
21 #define SP5X_H | 21 #define SP5X_H |
22 | 22 |
23 static uint8_t sp5x_data_sof[] = | 23 static const uint8_t sp5x_data_sof[] = |
24 { | 24 { |
25 0xFF, 0xC0, /* SOF */ | 25 0xFF, 0xC0, /* SOF */ |
26 0x00, 0x11, /* len */ | 26 0x00, 0x11, /* len */ |
27 0x08, /* bits */ | 27 0x08, /* bits */ |
28 0x00, 0xf0, /* height (default: 240) */ | 28 0x00, 0xf0, /* height (default: 240) */ |
31 0x01, 0x22, 0x00, /* 21 vs 22 ? */ | 31 0x01, 0x22, 0x00, /* 21 vs 22 ? */ |
32 0x02, 0x11, 0x01, | 32 0x02, 0x11, 0x01, |
33 0x03, 0x11, 0x01 | 33 0x03, 0x11, 0x01 |
34 }; | 34 }; |
35 | 35 |
36 static uint8_t sp5x_data_sos[] = | 36 static const uint8_t sp5x_data_sos[] = |
37 { | 37 { |
38 0xFF, 0xDA, /* SOS */ | 38 0xFF, 0xDA, /* SOS */ |
39 0x00, 0x0C, /* len */ | 39 0x00, 0x0C, /* len */ |
40 0x03, /* nb components */ | 40 0x03, /* nb components */ |
41 0x01, 0x00, | 41 0x01, 0x00, |
44 0x00, /* Ss */ | 44 0x00, /* Ss */ |
45 0x3F, /* Se */ | 45 0x3F, /* Se */ |
46 0x00 /* Ah/Al */ | 46 0x00 /* Ah/Al */ |
47 }; | 47 }; |
48 | 48 |
49 static uint8_t sp5x_data_dqt[] = | 49 static const uint8_t sp5x_data_dqt[] = |
50 { | 50 { |
51 0xFF, 0xDB, /* DQT */ | 51 0xFF, 0xDB, /* DQT */ |
52 0x00, 0x84, /* len */ | 52 0x00, 0x84, /* len */ |
53 0x00, | 53 0x00, |
54 0x05, 0x03, 0x04, 0x04, 0x04, 0x03, 0x05, 0x04, | 54 0x05, 0x03, 0x04, 0x04, 0x04, 0x03, 0x05, 0x04, |
68 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, | 68 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, |
69 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, | 69 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, |
70 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22 | 70 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22 |
71 }; | 71 }; |
72 | 72 |
73 static uint8_t sp5x_data_dht[] = { | 73 static const uint8_t sp5x_data_dht[] = { |
74 0xFF, 0xC4, /* DHT */ | 74 0xFF, 0xC4, /* DHT */ |
75 0x01, 0xA2, /* len */ | 75 0x01, 0xA2, /* len */ |
76 0x00, 0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, | 76 0x00, 0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, |
77 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 77 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
78 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, | 78 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, |
126 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF2, | 126 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF2, |
127 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA | 127 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA |
128 }; | 128 }; |
129 | 129 |
130 | 130 |
131 static uint8_t sp5x_quant_table[20][64]= | 131 static const uint8_t sp5x_quant_table[20][64]= |
132 { | 132 { |
133 /* index 0, Q50 */ | 133 /* index 0, Q50 */ |
134 { 16, 11, 12, 14, 12, 10, 16, 14, 13, 14, 18, 17, 16, 19, 24, 40, | 134 { 16, 11, 12, 14, 12, 10, 16, 14, 13, 14, 18, 17, 16, 19, 24, 40, |
135 26, 24, 22, 22, 24, 49, 35, 37, 29, 40, 58, 51, 61, 60, 57, 51, | 135 26, 24, 22, 22, 24, 49, 35, 37, 29, 40, 58, 51, 61, 60, 57, 51, |
136 56, 55, 64, 72, 92, 78, 64, 68, 87, 69, 55, 56, 80,109, 81, 87, | 136 56, 55, 64, 72, 92, 78, 64, 68, 87, 69, 55, 56, 80,109, 81, 87, |
231 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124 } | 231 124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124 } |
232 }; | 232 }; |
233 | 233 |
234 #if 0 | 234 #if 0 |
235 /* 4NF-M, not ZigZag */ | 235 /* 4NF-M, not ZigZag */ |
236 static uint8_t sp5x_quant_table_orig[18][64] = | 236 static const uint8_t sp5x_quant_table_orig[18][64] = |
237 { | 237 { |
238 /* index 0, Q50 */ | 238 /* index 0, Q50 */ |
239 { 16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, | 239 { 16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, |
240 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, | 240 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, |
241 18, 22, 37, 56, 68,109,103, 77, 24, 35, 55, 64, 81,104,113, 92, | 241 18, 22, 37, 56, 68,109,103, 77, 24, 35, 55, 64, 81,104,113, 92, |