[MPlayer-users] IYUV fourcc

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue May 15 08:09:32 CEST 2007


Hello,
On Mon, May 14, 2007 at 07:08:32PM +0200, Reimar D?ffinger wrote:
> On Mon, May 14, 2007 at 09:31:47AM -0700, Larry Reznick wrote:
[...]
> > Let me know what you discover.
> 
> IYUV to YV12 conversion is missing, but that is trivial (just need to
> exchange two pointers).
> No idea where to best fix it yet.

Unfortunately your sample consists only of black frames so I can't
check if the colours are correct, but it plays with attached patch.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: etc/codecs.conf
===================================================================
--- etc/codecs.conf	(revision 23315)
+++ etc/codecs.conf	(working copy)
@@ -2263,7 +2277,7 @@
   format 0x20776172
   fourcc i420,I420
   fourcc IYUV,iyuv
-  out I420,IYUV
+  out I420,IYUV,YV12
 
 videocodec rawyvu9
   info "RAW YVU9"
Index: libmpcodecs/vd_raw.c
===================================================================
--- libmpcodecs/vd_raw.c	(revision 23316)
+++ libmpcodecs/vd_raw.c	(working copy)
@@ -22,6 +22,7 @@
     switch(cmd){
     case VDCTRL_QUERY_FORMAT:
 	if (*(int *)arg == format) return CONTROL_TRUE;
+	if (*(int *)arg == IMGFMT_YV12 && format == IMGFMT_IYUV) return CONTROL_TRUE;
 	return CONTROL_FALSE;
     }
     return CONTROL_UNKNOWN;


More information about the MPlayer-users mailing list