diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-27 23:47:14 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-27 23:47:14 +0000 |
commit | 00bd3d61849aac4d16b7e183c86393ef23e36b31 (patch) | |
tree | 43a58f0ccffa8d8d61d1841786a72bd07b773eb8 | |
parent | bb208729b33c8e8f8f00967fc722071c689dc873 (diff) | |
download | mpv-00bd3d61849aac4d16b7e183c86393ef23e36b31.tar.bz2 mpv-00bd3d61849aac4d16b7e183c86393ef23e36b31.tar.xz |
- fixed 10l bug (imagedesc handle allocation)
- enabled colorspace selection support, fixed yvu9, added yv12
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8302 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_qtvideo.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libmpcodecs/vd_qtvideo.c b/libmpcodecs/vd_qtvideo.c index 353df55ad5..9aaeaeb33f 100644 --- a/libmpcodecs/vd_qtvideo.c +++ b/libmpcodecs/vd_qtvideo.c @@ -201,14 +201,16 @@ static int init(sh_video_t *sh){ 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 @@ static int init(sh_video_t *sh){ 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; |