changeset 8301:d867439e3940

- fixed 10l bug (imagedesc handle allocation) - enabled colorspace selection support, fixed yvu9, added yv12
author arpi
date Wed, 27 Nov 2002 23:47:14 +0000
parents bf8e8144dfa6
children c7fa49f1de0a
files libmpcodecs/vd_qtvideo.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_qtvideo.c	Wed Nov 27 23:11:49 2002 +0000
+++ b/libmpcodecs/vd_qtvideo.c	Wed Nov 27 23:47:14 2002 +0000
@@ -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;