Mercurial > libavcodec.hg
comparison truemotion1data.h @ 2753:ba8ecddf5598 libavcodec
adding a few const
author | michael |
---|---|
date | Wed, 01 Jun 2005 21:19:00 +0000 |
parents | 2886ec9d113f |
children | 6c737a845f5e |
comparison
equal
deleted
inserted
replaced
2752:23665209e823 | 2753:ba8ecddf5598 |
---|---|
8 */ | 8 */ |
9 #ifndef TRUEMOTION1DATA_H | 9 #ifndef TRUEMOTION1DATA_H |
10 #define TRUEMOTION1DATA_H | 10 #define TRUEMOTION1DATA_H |
11 | 11 |
12 /* Y delta tables, skinny and fat */ | 12 /* Y delta tables, skinny and fat */ |
13 static int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 }; | 13 static const int16_t ydt1[8] = { 0, -2, 2, -6, 6, -12, 12, -12 }; |
14 static int16_t ydt2[8] = { 0, -2, 2, -6, 6, -12, 12, -12 }; | 14 static const int16_t ydt2[8] = { 0, -2, 2, -6, 6, -12, 12, -12 }; |
15 static int16_t ydt3[8] = { 4, -6, 20, -20, 46, -46, 94, -94 }; | 15 static const int16_t ydt3[8] = { 4, -6, 20, -20, 46, -46, 94, -94 }; |
16 static int16_t fat_ydt3[8] = { 0, -15, 50, -50, 115, -115, 235, -235 }; | 16 static const int16_t fat_ydt3[8] = { 0, -15, 50, -50, 115, -115, 235, -235 }; |
17 static int16_t ydt4[8] = { 0, -4, 4, -16, 16, -36, 36, -80 }; | 17 static const int16_t ydt4[8] = { 0, -4, 4, -16, 16, -36, 36, -80 }; |
18 static int16_t fat_ydt4[8] = { 0, 40, 80, -76, 160, -154, 236, -236 }; | 18 static const int16_t fat_ydt4[8] = { 0, 40, 80, -76, 160, -154, 236, -236 }; |
19 | 19 |
20 /* C delta tables, skinny and fat */ | 20 /* C delta tables, skinny and fat */ |
21 static int16_t cdt1[8] = { 0, -1, 1, -2, 3, -4, 5, -4 }; | 21 static const int16_t cdt1[8] = { 0, -1, 1, -2, 3, -4, 5, -4 }; |
22 static int16_t cdt2[8] = { 0, -4, 3, -16, 20, -32, 36, -32 }; | 22 static const int16_t cdt2[8] = { 0, -4, 3, -16, 20, -32, 36, -32 }; |
23 static int16_t fat_cdt2[8] = { 0, -20, 15, -80, 100, -160, 180, -160 }; | 23 static const int16_t fat_cdt2[8] = { 0, -20, 15, -80, 100, -160, 180, -160 }; |
24 static int16_t cdt3[8] = { 0, -2, 2, -8, 8, -18, 18, -40 }; | 24 static const int16_t cdt3[8] = { 0, -2, 2, -8, 8, -18, 18, -40 }; |
25 /* NOTE: This table breaks the [+,-] pattern that the rest of the | 25 /* NOTE: This table breaks the [+,-] pattern that the rest of the |
26 * tables maintain. Is this intentional? */ | 26 * tables maintain. Is this intentional? */ |
27 static int16_t fat_cdt3[8] = { 0, 40, 80, -76, 160, -154, 236, -236 }; | 27 static const int16_t fat_cdt3[8] = { 0, 40, 80, -76, 160, -154, 236, -236 }; |
28 | 28 |
29 /* all the delta tables to choose from, at all 4 delta levels */ | 29 /* all the delta tables to choose from, at all 4 delta levels */ |
30 static int16_t *ydts[] = { ydt1, ydt2, ydt3, ydt4, NULL }; | 30 static const int16_t *ydts[] = { ydt1, ydt2, ydt3, ydt4, NULL }; |
31 static int16_t *fat_ydts[] = { fat_ydt3, fat_ydt3, fat_ydt3, fat_ydt4, NULL }; | 31 static const int16_t *fat_ydts[] = { fat_ydt3, fat_ydt3, fat_ydt3, fat_ydt4, NULL }; |
32 static int16_t *cdts[] = { cdt1, cdt2, cdt3, cdt3, NULL }; | 32 static const int16_t *cdts[] = { cdt1, cdt2, cdt3, cdt3, NULL }; |
33 static int16_t *fat_cdts[] = { fat_cdt2, fat_cdt2, fat_cdt2, fat_cdt3, NULL }; | 33 static const int16_t *fat_cdts[] = { fat_cdt2, fat_cdt2, fat_cdt2, fat_cdt3, NULL }; |
34 | 34 |
35 static uint8_t pc_tbl2[] = { | 35 static const uint8_t pc_tbl2[] = { |
36 0x8,0x00,0x00,0x00,0x00, | 36 0x8,0x00,0x00,0x00,0x00, |
37 0x8,0x00,0x00,0x00,0x00, | 37 0x8,0x00,0x00,0x00,0x00, |
38 0x8,0x10,0x00,0x00,0x00, | 38 0x8,0x10,0x00,0x00,0x00, |
39 0x8,0x01,0x00,0x00,0x00, | 39 0x8,0x01,0x00,0x00,0x00, |
40 0x8,0x00,0x10,0x00,0x00, | 40 0x8,0x00,0x10,0x00,0x00, |
289 0x2,0x46, | 289 0x2,0x46, |
290 0x2,0x56, | 290 0x2,0x56, |
291 0x2,0x66 | 291 0x2,0x66 |
292 }; | 292 }; |
293 | 293 |
294 static uint8_t pc_tbl3[] = { | 294 static const uint8_t pc_tbl3[] = { |
295 0x6,0x00,0x00,0x00, | 295 0x6,0x00,0x00,0x00, |
296 0x6,0x00,0x00,0x00, | 296 0x6,0x00,0x00,0x00, |
297 0x6,0x00,0x00,0x01, | 297 0x6,0x00,0x00,0x01, |
298 0x6,0x00,0x00,0x10, | 298 0x6,0x00,0x00,0x10, |
299 0x6,0x00,0x00,0x11, | 299 0x6,0x00,0x00,0x11, |
548 0x2,0x57, | 548 0x2,0x57, |
549 0x2,0x67, | 549 0x2,0x67, |
550 0x2,0x77 | 550 0x2,0x77 |
551 }; | 551 }; |
552 | 552 |
553 static uint8_t pc_tbl4[] = { | 553 static const uint8_t pc_tbl4[] = { |
554 0x8,0x00,0x00,0x00,0x00, | 554 0x8,0x00,0x00,0x00,0x00, |
555 0x8,0x00,0x00,0x00,0x00, | 555 0x8,0x00,0x00,0x00,0x00, |
556 0x8,0x20,0x00,0x00,0x00, | 556 0x8,0x20,0x00,0x00,0x00, |
557 0x8,0x00,0x00,0x00,0x01, | 557 0x8,0x00,0x00,0x00,0x01, |
558 0x8,0x10,0x00,0x00,0x00, | 558 0x8,0x10,0x00,0x00,0x00, |
807 0x2,0x57, | 807 0x2,0x57, |
808 0x2,0x67, | 808 0x2,0x67, |
809 0x2,0x77 | 809 0x2,0x77 |
810 }; | 810 }; |
811 | 811 |
812 static uint8_t *tables[] = { pc_tbl2, pc_tbl3, pc_tbl4 }; | 812 static const uint8_t *tables[] = { pc_tbl2, pc_tbl3, pc_tbl4 }; |
813 #endif | 813 #endif |