[Mplayer-cvslog] CVS: main/libmpdemux demux_mf.c,1.1,1.2

Arpi of Ize arpi at mplayer.dev.hu
Wed Feb 6 23:03:23 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv23728

Modified Files:
	demux_mf.c 
Log Message:
emulating BITMAPINFOHDR (for win32 codecs)

Index: demux_mf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- demux_mf.c	6 Feb 2002 20:15:36 -0000	1.1
+++ demux_mf.c	6 Feb 2002 22:03:19 -0000	1.2
@@ -38,7 +38,7 @@
   mf=(mf_t*)demuxer->stream->priv;
 
   stat( mf->names[dmf->curr_frame],&fs );
-//  printf( "[demux_mf] frame: %d (%s,%d)\n",dmf->curr_frame,mf->names[dmf->curr_frame],fs.st_size );
+  printf( "[demux_mf] frame: %d (%s,%d)\n",dmf->curr_frame,mf->names[dmf->curr_frame],fs.st_size );
 
   if ( !( f=fopen( mf->names[dmf->curr_frame],"r" ) ) ) return 0;
   {
@@ -93,6 +93,17 @@
   sh_video->disp_h = mf_h;
   sh_video->fps = mf_fps;
   sh_video->frametime = 1 / sh_video->fps;
+
+  // emulate BITMAPINFOHEADER:
+  sh_video->bih=malloc(sizeof(BITMAPINFOHEADER));
+  memset(sh_video->bih,0,sizeof(BITMAPINFOHEADER));
+  sh_video->bih->biSize=40;
+  sh_video->bih->biWidth = mf_w;
+  sh_video->bih->biHeight = mf_h;
+  sh_video->bih->biPlanes=1;
+  sh_video->bih->biBitCount=24;
+  sh_video->bih->biCompression=sh_video->format;
+  sh_video->bih->biSizeImage=sh_video->bih->biWidth*sh_video->bih->biHeight*3;
 
   /* disable seeking */
   demuxer->seekable = 0;




More information about the MPlayer-cvslog mailing list