Browse code

Increase AVS palette dynamics.

Carl Eugen Hoyos authored on 2011/11/13 04:47:33
Showing 2 changed files
... ...
@@ -87,7 +87,7 @@ avs_decode_frame(AVCodecContext * avctx,
87 87
         buf += 4;
88 88
         for (i=first; i<last; i++, buf+=3) {
89 89
             pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
90
-            pal[i] |= 0xFF << 24;
90
+            pal[i] |= 0xFF << 24 | (pal[i] >> 6) & 0x30303;
91 91
         }
92 92
 
93 93
         sub_type = buf[0];
... ...
@@ -1,92 +1,92 @@
1
-0, 0, 188892, 0xcb5be3dd
1
+0, 0, 188892, 0x9f47a5ec
2 2
 1, 0, 16372, 0xfaaab59d
3
-0, 6000, 188892, 0x0f313ebc
4
-0, 12000, 188892, 0xc0da25cc
5
-0, 18000, 188892, 0xad6e1d44
6
-0, 24000, 188892, 0xb1103b40
7
-0, 30000, 188892, 0xae033450
3
+0, 6000, 188892, 0xdece0269
4
+0, 12000, 188892, 0xd097e86e
5
+0, 18000, 188892, 0x1cf2de83
6
+0, 24000, 188892, 0xb664fd10
7
+0, 30000, 188892, 0xc654f4c1
8 8
 1, 33154, 4028, 0xc2daed72
9
-0, 36000, 188892, 0xb31f03b4
9
+0, 36000, 188892, 0x5adac3ff
10 10
 1, 41310, 5486, 0xf7fd794d
11
-0, 42000, 188892, 0xacb2d3f9
12
-0, 48000, 188892, 0x7d77ecbd
11
+0, 42000, 188892, 0x5928954e
12
+0, 48000, 188892, 0x5e4cad6c
13 13
 1, 52420, 5790, 0xfd5a369f
14
-0, 54000, 188892, 0x7faa2f6c
15
-0, 60000, 188892, 0x28f4fdf1
14
+0, 54000, 188892, 0xbbb5f11b
15
+0, 60000, 188892, 0xcb6bbdee
16 16
 1, 64145, 1068, 0x0b602cd0
17
-0, 66000, 188892, 0x4b53f3b9
17
+0, 66000, 188892, 0xa5b3b316
18 18
 1, 66307, 4908, 0xfe870aad
19
-0, 72000, 188892, 0x1f09bb29
19
+0, 72000, 188892, 0x9bf87b5d
20 20
 1, 76246, 6062, 0x8a4d6e0f
21
-0, 78000, 188892, 0x3afcc11d
22
-0, 84000, 188892, 0x6b918e49
21
+0, 78000, 188892, 0xcc3981be
22
+0, 84000, 188892, 0x2eb44dfa
23 23
 1, 88522, 5402, 0x71fd352f
24
-0, 90000, 188892, 0x9630a04d
25
-0, 96000, 188892, 0x9381b4c1
24
+0, 90000, 188892, 0x11c861b9
25
+0, 96000, 188892, 0x7c1b767b
26 26
 1, 99461, 544, 0xeb766d34
27 27
 1, 100563, 5906, 0x47ac7e08
28
-0, 102000, 188892, 0xa7dea7e5
29
-0, 108000, 188892, 0xd277c41d
28
+0, 102000, 188892, 0x5078694c
29
+0, 108000, 188892, 0xa24485c2
30 30
 1, 112522, 5916, 0x0d26eb56
31
-0, 114000, 188892, 0xafa2a6c9
32
-0, 120000, 188892, 0x13a38839
31
+0, 114000, 188892, 0xc8016946
32
+0, 120000, 188892, 0x71e3493b
33 33
 1, 124502, 4006, 0x9941c71a
34
-0, 126000, 188892, 0xcd5e5a6d
35
-0, 132000, 188892, 0xe7da71e9
34
+0, 126000, 188892, 0xa9771a0d
35
+0, 132000, 188892, 0x98be33fd
36 36
 1, 132615, 2100, 0xc9a2ee36
37 37
 1, 136867, 5894, 0xd2ba4eaa
38
-0, 138000, 188892, 0x06928add
39
-0, 144000, 188892, 0x4a108eb9
38
+0, 138000, 188892, 0x193e4cda
39
+0, 144000, 188892, 0x3b444fd1
40 40
 1, 148803, 6090, 0xf43e73d0
41
-0, 150000, 188892, 0xea2598f5
42
-0, 156000, 188892, 0x17ed6839
41
+0, 150000, 188892, 0x8bfe594c
42
+0, 156000, 188892, 0xaab8267b
43 43
 1, 161135, 2288, 0x5a8b7aa0
44
-0, 162000, 188892, 0x9de6ab65
44
+0, 162000, 188892, 0x03206c55
45 45
 1, 165768, 3850, 0x7f66eb2c
46
-0, 168000, 188892, 0xb4ee326f
46
+0, 168000, 188892, 0x8ed7ea7d
47 47
 1, 173564, 5796, 0xc5cf3ee8
48
-0, 174000, 188892, 0x3f85095b
49
-0, 180000, 188892, 0xaab7e331
48
+0, 174000, 188892, 0x2a1bc3e1
49
+0, 180000, 188892, 0xa6a12aa7
50 50
 1, 185302, 6042, 0xed80136d
51
-0, 186000, 188892, 0xc2a079e1
52
-0, 192000, 188892, 0x612080c2
51
+0, 186000, 188892, 0xa96ca4fa
52
+0, 192000, 188892, 0x3e3a6d70
53 53
 1, 197537, 684, 0xc42bd137
54
-0, 198000, 188892, 0xa7232d47
54
+0, 198000, 188892, 0x47e173dd
55 55
 1, 198922, 5436, 0xb7f8a6fd
56
-0, 204000, 188892, 0xc053297d
56
+0, 204000, 188892, 0xfcf183ba
57 57
 1, 209930, 6098, 0xee6354a2
58
-0, 210000, 188892, 0x1ecc3bfe
59
-0, 216000, 188892, 0xcc4ac803
60
-0, 222000, 188892, 0x4b90047b
58
+0, 210000, 188892, 0xf051be46
59
+0, 216000, 188892, 0x8aa6b100
60
+0, 222000, 188892, 0x36c86b01
61 61
 1, 222278, 4838, 0x129e61d0
62
-0, 228000, 188892, 0xd863b643
62
+0, 228000, 188892, 0x15ae396e
63 63
 1, 232075, 1074, 0x9da90634
64
-0, 234000, 188892, 0x93a25fb1
64
+0, 234000, 188892, 0xc876eabf
65 65
 1, 234250, 6084, 0x8ffed952
66
-0, 240000, 188892, 0xf969e131
67
-0, 246000, 188892, 0x73bd2469
66
+0, 240000, 188892, 0xc5c65fae
67
+0, 246000, 188892, 0x4feec932
68 68
 1, 246571, 6038, 0xa07b4276
69
-0, 252000, 188892, 0x265a9ce2
70
-0, 258000, 188892, 0xd59ccd39
69
+0, 252000, 188892, 0x21374e88
70
+0, 258000, 188892, 0x52e689f1
71 71
 1, 258798, 3176, 0xebef63c1
72
-0, 264000, 188892, 0xe50fc068
72
+0, 264000, 188892, 0x9e2492e8
73 73
 1, 265229, 2794, 0xbe1000db
74
-0, 270000, 188892, 0x83113a86
74
+0, 270000, 188892, 0xac841247
75 75
 1, 270887, 6020, 0xd8e34961
76
-0, 276000, 188892, 0xa0203504
77
-0, 282000, 188892, 0x9e2d518c
76
+0, 276000, 188892, 0x8467aab2
77
+0, 282000, 188892, 0x552b6029
78 78
 1, 283078, 6020, 0xc07cf461
79
-0, 288000, 188892, 0x5f610e66
80
-0, 294000, 188892, 0x9b77f900
79
+0, 288000, 188892, 0x836eb46e
80
+0, 294000, 188892, 0x93eb9f1b
81 81
 1, 295268, 1538, 0xc975ae02
82 82
 1, 298383, 4230, 0x0827111b
83
-0, 300000, 188892, 0xaaf279c2
84
-0, 306000, 188892, 0x4ac97cc2
83
+0, 300000, 188892, 0xa3661fdd
84
+0, 306000, 188892, 0x433d22dd
85 85
 1, 306949, 6084, 0x2cf0a407
86
-0, 312000, 188892, 0xddd91642
87
-0, 318000, 188892, 0x4f32dcd1
86
+0, 312000, 188892, 0xd64dbc4e
87
+0, 318000, 188892, 0x4a2aa0e3
88 88
 1, 319269, 5828, 0x12750279
89
-0, 324000, 188892, 0xdc126b42
89
+0, 324000, 188892, 0xd98e4d4b
90 90
 0, 330000, 188892, 0x00000000
91 91
 1, 331071, 230, 0xc9c03f3b
92 92
 1, 331536, 768, 0x6137a04d