[Mplayer-cvslog] CVS: main dll_init.c,1.32,1.33
Alex Beregszaszi
alex at mplayer.dev.hu
Mon Nov 5 16:25:33 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv17752
Modified Files:
dll_init.c
Log Message:
exporting palette from cram
Index: dll_init.c
===================================================================
RCS file: /cvsroot/mplayer/main/dll_init.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- dll_init.c 5 Nov 2001 14:59:51 -0000 1.32
+++ dll_init.c 5 Nov 2001 15:25:20 -0000 1.33
@@ -172,7 +172,20 @@
temp_len = sh_video->o_bih.biSize;
temp = malloc(temp_len);
- printf("ICDecompressGetFormatSize ret: %d\n", temp_len);
+ mp_msg(MSGT_WIN32, MSGL_V, "ICDecompressGetFormatSize ret: %d\n", temp_len);
+
+{
+ extern char *vo_palette;
+ /* dirty hack for CRAM to export palette */
+ if ((temp_len > sh_video->o_bih.biSize) &&
+ (sh_video->bih->biCompression == mmioFOURCC('C','R','A','M')))
+ {
+ vo_palette = malloc(temp_len-sh_video->o_bih.biSize);
+ memcpy(vo_palette, (temp+sh_video->o_bih.biSize), temp_len-sh_video->o_bih.biSize);
+ mp_msg(MSGT_WIN32, MSGL_V, "Found palette: %d bytes, mapped to %p\n",
+ temp_len-sh_video->o_bih.biSize, vo_palette);
+ }
+}
#if 0
{
More information about the MPlayer-cvslog
mailing list