[FFmpeg-cvslog] Increase AVS palette dynamics.

Carl Eugen Hoyos git at videolan.org
Sat Nov 12 20:57:04 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:47:33 2011 +0100| [0e8da94c2fec8fa5c66ee8df6e516913271c7863] | committer: Carl Eugen Hoyos

Increase AVS palette dynamics.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e8da94c2fec8fa5c66ee8df6e516913271c7863
---

 libavcodec/avs.c                 |    2 +-
 tests/ref/fate/creatureshock-avs |  110 +++++++++++++++++++-------------------
 2 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index 4179821..3ba781c 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -87,7 +87,7 @@ avs_decode_frame(AVCodecContext * avctx,
         buf += 4;
         for (i=first; i<last; i++, buf+=3) {
             pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
-            pal[i] |= 0xFF << 24;
+            pal[i] |= 0xFF << 24 | (pal[i] >> 6) & 0x30303;
         }
 
         sub_type = buf[0];
diff --git a/tests/ref/fate/creatureshock-avs b/tests/ref/fate/creatureshock-avs
index bd6739f..4ce3603 100644
--- a/tests/ref/fate/creatureshock-avs
+++ b/tests/ref/fate/creatureshock-avs
@@ -1,92 +1,92 @@
-0, 0, 188892, 0xcb5be3dd
+0, 0, 188892, 0x9f47a5ec
 1, 0, 16372, 0xfaaab59d
-0, 6000, 188892, 0x0f313ebc
-0, 12000, 188892, 0xc0da25cc
-0, 18000, 188892, 0xad6e1d44
-0, 24000, 188892, 0xb1103b40
-0, 30000, 188892, 0xae033450
+0, 6000, 188892, 0xdece0269
+0, 12000, 188892, 0xd097e86e
+0, 18000, 188892, 0x1cf2de83
+0, 24000, 188892, 0xb664fd10
+0, 30000, 188892, 0xc654f4c1
 1, 33154, 4028, 0xc2daed72
-0, 36000, 188892, 0xb31f03b4
+0, 36000, 188892, 0x5adac3ff
 1, 41310, 5486, 0xf7fd794d
-0, 42000, 188892, 0xacb2d3f9
-0, 48000, 188892, 0x7d77ecbd
+0, 42000, 188892, 0x5928954e
+0, 48000, 188892, 0x5e4cad6c
 1, 52420, 5790, 0xfd5a369f
-0, 54000, 188892, 0x7faa2f6c
-0, 60000, 188892, 0x28f4fdf1
+0, 54000, 188892, 0xbbb5f11b
+0, 60000, 188892, 0xcb6bbdee
 1, 64145, 1068, 0x0b602cd0
-0, 66000, 188892, 0x4b53f3b9
+0, 66000, 188892, 0xa5b3b316
 1, 66307, 4908, 0xfe870aad
-0, 72000, 188892, 0x1f09bb29
+0, 72000, 188892, 0x9bf87b5d
 1, 76246, 6062, 0x8a4d6e0f
-0, 78000, 188892, 0x3afcc11d
-0, 84000, 188892, 0x6b918e49
+0, 78000, 188892, 0xcc3981be
+0, 84000, 188892, 0x2eb44dfa
 1, 88522, 5402, 0x71fd352f
-0, 90000, 188892, 0x9630a04d
-0, 96000, 188892, 0x9381b4c1
+0, 90000, 188892, 0x11c861b9
+0, 96000, 188892, 0x7c1b767b
 1, 99461, 544, 0xeb766d34
 1, 100563, 5906, 0x47ac7e08
-0, 102000, 188892, 0xa7dea7e5
-0, 108000, 188892, 0xd277c41d
+0, 102000, 188892, 0x5078694c
+0, 108000, 188892, 0xa24485c2
 1, 112522, 5916, 0x0d26eb56
-0, 114000, 188892, 0xafa2a6c9
-0, 120000, 188892, 0x13a38839
+0, 114000, 188892, 0xc8016946
+0, 120000, 188892, 0x71e3493b
 1, 124502, 4006, 0x9941c71a
-0, 126000, 188892, 0xcd5e5a6d
-0, 132000, 188892, 0xe7da71e9
+0, 126000, 188892, 0xa9771a0d
+0, 132000, 188892, 0x98be33fd
 1, 132615, 2100, 0xc9a2ee36
 1, 136867, 5894, 0xd2ba4eaa
-0, 138000, 188892, 0x06928add
-0, 144000, 188892, 0x4a108eb9
+0, 138000, 188892, 0x193e4cda
+0, 144000, 188892, 0x3b444fd1
 1, 148803, 6090, 0xf43e73d0
-0, 150000, 188892, 0xea2598f5
-0, 156000, 188892, 0x17ed6839
+0, 150000, 188892, 0x8bfe594c
+0, 156000, 188892, 0xaab8267b
 1, 161135, 2288, 0x5a8b7aa0
-0, 162000, 188892, 0x9de6ab65
+0, 162000, 188892, 0x03206c55
 1, 165768, 3850, 0x7f66eb2c
-0, 168000, 188892, 0xb4ee326f
+0, 168000, 188892, 0x8ed7ea7d
 1, 173564, 5796, 0xc5cf3ee8
-0, 174000, 188892, 0x3f85095b
-0, 180000, 188892, 0xaab7e331
+0, 174000, 188892, 0x2a1bc3e1
+0, 180000, 188892, 0xa6a12aa7
 1, 185302, 6042, 0xed80136d
-0, 186000, 188892, 0xc2a079e1
-0, 192000, 188892, 0x612080c2
+0, 186000, 188892, 0xa96ca4fa
+0, 192000, 188892, 0x3e3a6d70
 1, 197537, 684, 0xc42bd137
-0, 198000, 188892, 0xa7232d47
+0, 198000, 188892, 0x47e173dd
 1, 198922, 5436, 0xb7f8a6fd
-0, 204000, 188892, 0xc053297d
+0, 204000, 188892, 0xfcf183ba
 1, 209930, 6098, 0xee6354a2
-0, 210000, 188892, 0x1ecc3bfe
-0, 216000, 188892, 0xcc4ac803
-0, 222000, 188892, 0x4b90047b
+0, 210000, 188892, 0xf051be46
+0, 216000, 188892, 0x8aa6b100
+0, 222000, 188892, 0x36c86b01
 1, 222278, 4838, 0x129e61d0
-0, 228000, 188892, 0xd863b643
+0, 228000, 188892, 0x15ae396e
 1, 232075, 1074, 0x9da90634
-0, 234000, 188892, 0x93a25fb1
+0, 234000, 188892, 0xc876eabf
 1, 234250, 6084, 0x8ffed952
-0, 240000, 188892, 0xf969e131
-0, 246000, 188892, 0x73bd2469
+0, 240000, 188892, 0xc5c65fae
+0, 246000, 188892, 0x4feec932
 1, 246571, 6038, 0xa07b4276
-0, 252000, 188892, 0x265a9ce2
-0, 258000, 188892, 0xd59ccd39
+0, 252000, 188892, 0x21374e88
+0, 258000, 188892, 0x52e689f1
 1, 258798, 3176, 0xebef63c1
-0, 264000, 188892, 0xe50fc068
+0, 264000, 188892, 0x9e2492e8
 1, 265229, 2794, 0xbe1000db
-0, 270000, 188892, 0x83113a86
+0, 270000, 188892, 0xac841247
 1, 270887, 6020, 0xd8e34961
-0, 276000, 188892, 0xa0203504
-0, 282000, 188892, 0x9e2d518c
+0, 276000, 188892, 0x8467aab2
+0, 282000, 188892, 0x552b6029
 1, 283078, 6020, 0xc07cf461
-0, 288000, 188892, 0x5f610e66
-0, 294000, 188892, 0x9b77f900
+0, 288000, 188892, 0x836eb46e
+0, 294000, 188892, 0x93eb9f1b
 1, 295268, 1538, 0xc975ae02
 1, 298383, 4230, 0x0827111b
-0, 300000, 188892, 0xaaf279c2
-0, 306000, 188892, 0x4ac97cc2
+0, 300000, 188892, 0xa3661fdd
+0, 306000, 188892, 0x433d22dd
 1, 306949, 6084, 0x2cf0a407
-0, 312000, 188892, 0xddd91642
-0, 318000, 188892, 0x4f32dcd1
+0, 312000, 188892, 0xd64dbc4e
+0, 318000, 188892, 0x4a2aa0e3
 1, 319269, 5828, 0x12750279
-0, 324000, 188892, 0xdc126b42
+0, 324000, 188892, 0xd98e4d4b
 0, 330000, 188892, 0x00000000
 1, 331071, 230, 0xc9c03f3b
 1, 331536, 768, 0x6137a04d



More information about the ffmpeg-cvslog mailing list