mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 11:02:10 +00:00
- 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
This commit is contained in:
parent
bb208729b3
commit
00bd3d6184
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user