[Mplayer-cvslog] CVS: main/libmpdemux tvi_v4l.c,1.11,1.12

Alex Beregszaszi alex at mplayer.dev.hu
Fri Nov 30 17:59:04 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv27198

Modified Files:
	tvi_v4l.c 
Log Message:
update

Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- tvi_v4l.c	16 Nov 2001 22:59:07 -0000	1.11
+++ tvi_v4l.c	30 Nov 2001 16:59:02 -0000	1.12
@@ -88,6 +88,7 @@
 {
     switch(palette)
     {
+	/* component */
 	case VIDEO_PALETTE_RGB555:
 	    return(15);
 	case VIDEO_PALETTE_RGB565:
@@ -96,10 +97,18 @@
 	    return(24);
 	case VIDEO_PALETTE_RGB32:
 	    return(32);
+	/* planar */
+	case VIDEO_PALETTE_YUV422P:
+	case VIDEO_PALETTE_YUV411P:
 	case VIDEO_PALETTE_YUV420P:
+	case VIDEO_PALETTE_YUV410P:
 	    return(12);
+	/* packed */
 	case VIDEO_PALETTE_YUV422:
+	case VIDEO_PALETTE_YUYV:
 	case VIDEO_PALETTE_UYVY:
+	case VIDEO_PALETTE_YUV420:
+	case VIDEO_PALETTE_YUV411:
 	    return(16);
     }
     return(-1);
@@ -479,33 +488,6 @@
 	{
 	    int output_fmt = -1;
 
-#if 0	    
-	    switch(priv->palette)
-	    {
-		case VIDEO_PALETTE_RGB555:
-		    output_fmt = IMGFMT_RGB15;
-		    break;
-		case VIDEO_PALETTE_RGB565:
-		    output_fmt = IMGFMT_RGB16;
-		    break;
-		case VIDEO_PALETTE_RGB24:
-		    output_fmt = IMGFMT_RGB24;
-		    break;
-		case VIDEO_PALETTE_RGB32:
-		    output_fmt = IMGFMT_RGB32;
-		    break;
-		case VIDEO_PALETTE_UYVY:
-		    output_fmt = IMGFMT_UYVY;
-		    break;
-		case VIDEO_PALETTE_YUV420P:
-		    output_fmt = IMGFMT_YV12;
-		    break;
-		default:
-		    mp_msg(MSGT_TV, MSGL_ERR, "no suitable output format found (%s)\n",
-			PALETTE(priv->palette));
-		    return(TVI_CONTROL_FALSE);
-	    }
-#endif
 	    output_fmt = priv->format;
 	    (int)*(void **)arg = output_fmt;
 	    mp_msg(MSGT_TV, MSGL_INFO, "Output format: %s\n", vo_format_name(output_fmt));
@@ -515,7 +497,7 @@
 	    priv->format = (int)*(void **)arg;
 	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_GET_PLANES:
-	    (int)*(void **)arg = 1;
+	    (int)*(void **)arg = 1; /* FIXME, also not needed at this time */
 	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_GET_BITS:
 	    (int)*(void **)arg = palette2depth(format2palette(priv->format));




More information about the MPlayer-cvslog mailing list