[MPlayer-dev-eng] [patch] Quicktime yv12 support

Tuukka Toivonen tuukkat at ee.oulu.fi
Wed Oct 15 12:28:22 CEST 2003


On Tue, 14 Oct 2003, Alex Beregszaszi wrote:

>>  > >http://www.ee.oulu.fi/~tuukkat/mplayer/mplayer-1.0pre1.yv12.patch
>rawi420 is for i420 data not yv12

But yv12 *is* I420 (is i420 same as I420? At least it's not in the specs.
Note that yv12 and YV12 are very different things.

, if you have something swapped, use
>-vf swapuv, or fix the demuxing/whatever.

Ok, so what about this?

--- mplayer-1.0pre1/libmpcodecs/vf_format.c.orig	Sat Mar 15 22:51:35 2003
+++ mplayer-1.0pre1/libmpcodecs/vf_format.c	Wed Oct 15 13:24:15 2003
@@ -39,7 +39,8 @@
 	if(!strcasecmp(args,"422p")) vf->priv->fmt=IMGFMT_422P; else
 	if(!strcasecmp(args,"411p")) vf->priv->fmt=IMGFMT_411P; else
 	if(!strcasecmp(args,"yuy2")) vf->priv->fmt=IMGFMT_YUY2; else
-	if(!strcasecmp(args,"yv12")) vf->priv->fmt=IMGFMT_YV12; else
+	if(!strcmp(args,"YV12")) vf->priv->fmt=IMGFMT_YV12; else
+	if(!strcmp(args,"yv12")) vf->priv->fmt=IMGFMT_I420; else
 	if(!strcasecmp(args,"i420")) vf->priv->fmt=IMGFMT_I420; else
 	if(!strcasecmp(args,"yvu9")) vf->priv->fmt=IMGFMT_YVU9; else
 	if(!strcasecmp(args,"if09")) vf->priv->fmt=IMGFMT_IF09; else

>> --- mplayer-1.0pre1/etc/codecs.conf	Mon Sep  1 11:29:23 2003
>> +++ etc/mplayer/codecs.conf	Thu Sep  4 01:37:37 2003
>> @@ -1559,6 +1559,7 @@
>>    format 0x20776172
>>    fourcc i420,I420
>>    fourcc IYUV,iyuv
>> +  fourcc yv12 I420
>>    out I420,IYUV



More information about the MPlayer-dev-eng mailing list