[Mplayer-cvslog] CVS: main/libmpcodecs vd_qtvideo.c,1.5,1.6

Arpi of Ize arpi at mplayerhq.hu
Thu Nov 28 00:47:32 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv24439

Modified Files:
	vd_qtvideo.c 
Log Message:
- fixed 10l bug (imagedesc handle allocation)
- enabled colorspace selection support, fixed yvu9, added yv12


Index: vd_qtvideo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_qtvideo.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vd_qtvideo.c	25 Nov 2002 18:04:19 -0000	1.5
+++ vd_qtvideo.c	27 Nov 2002 23:47:14 -0000	1.6
@@ -201,14 +201,16 @@
   fclose(f);
 }
 #else
-    framedescHandle=&(sh->ImageDesc);
+    printf("ImageDescription size: %d\n",((ImageDescription*)(sh->ImageDesc))->idSize);
+    framedescHandle=(ImageDescriptionHandle)NewHandleClear(((ImageDescription*)(sh->ImageDesc))->idSize);
+    memcpy(*framedescHandle,sh->ImageDesc,((ImageDescription*)(sh->ImageDesc))->idSize);
 #endif
 //Find codecscomponent for video decompression
 //    result = FindCodec ('SVQ1',anyCodec,&compressor,&decompressor );                 
 //    printf("FindCodec SVQ1 returned:%i compressor: 0x%X decompressor: 0x%X\n",result,compressor,decompressor);
 
     sh->context = kYUVSPixelFormat;
-#if 0
+#if 1
     {
 	int imgfmt = sh->codec->outfmt[sh->outfmtidx];
 	int qt_imgfmt;
@@ -218,7 +220,10 @@
 	    qt_imgfmt = kYUVSPixelFormat;
 	    break;
 	case IMGFMT_YVU9:
-	    qt_imgfmt = kYVU9PixelFormat;
+	    qt_imgfmt = 0x73797639; //kYVU9PixelFormat;
+	    break;
+	case IMGFMT_YV12:
+	    qt_imgfmt = 0x79343230;
 	    break;
 	case IMGFMT_UYVY:
 	    qt_imgfmt = kUYVY422PixelFormat;




More information about the MPlayer-cvslog mailing list