[FFmpeg-cvslog] Increase Psygnosis YOP 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:49:53 2011 +0100| [9780c33eca3e03f146970e25196b8363e9ef4790] | committer: Carl Eugen Hoyos
Increase Psygnosis YOP palette dynamics.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9780c33eca3e03f146970e25196b8363e9ef4790
---
libavcodec/yop.c | 3 ++-
tests/ref/fate/yop | 14 +++++++-------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index 597fe89..e5333db 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -221,7 +221,8 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
palette[i + firstcolor] = (s->srcptr[0] << 18) |
(s->srcptr[1] << 10) |
(s->srcptr[2] << 2);
- palette[i + firstcolor] |= 0xFF << 24;
+ palette[i + firstcolor] |= 0xFF << 24 |
+ (palette[i + firstcolor] >> 6) & 0x30303;
}
s->frame.palette_has_changed = 1;
diff --git a/tests/ref/fate/yop b/tests/ref/fate/yop
index 782fd47..9010b99 100644
--- a/tests/ref/fate/yop
+++ b/tests/ref/fate/yop
@@ -1,7 +1,7 @@
-0, 0, 302760, 0x78939253
-0, 7500, 302760, 0x534f5253
-0, 15000, 302760, 0xe991aa82
-0, 22500, 302760, 0xc34b20bd
-0, 30000, 302760, 0x461d29a1
-0, 37500, 302760, 0x45abca02
-0, 45000, 302760, 0xb05448b9
+0, 0, 302760, 0xf24dfa37
+0, 7500, 302760, 0xcedcbb6c
+0, 15000, 302760, 0x8c2d19a2
+0, 22500, 302760, 0xe0fc92da
+0, 30000, 302760, 0xd7699bb4
+0, 37500, 302760, 0x26e93266
+0, 45000, 302760, 0x4cddb216
More information about the ffmpeg-cvslog
mailing list