changeset 3703:3717145636b5

i420 support
author alex
date Mon, 24 Dec 2001 11:01:16 +0000
parents e16996f5497d
children 80bccac9819a
files libmpdemux/tv.c libmpdemux/tvi_v4l.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tv.c	Mon Dec 24 10:54:11 2001 +0000
+++ b/libmpdemux/tv.c	Mon Dec 24 11:01:16 2001 +0000
@@ -109,6 +109,8 @@
 
     if (!strcasecmp(tv_param_outfmt, "yv12"))
 	picture_format = IMGFMT_YV12;
+    else if (!strcasecmp(tv_param_outfmt, "i420"))
+	picture_format = IMGFMT_I420;
     else if (!strcasecmp(tv_param_outfmt, "uyvy"))
 	picture_format = IMGFMT_UYVY;
     else if (!strcasecmp(tv_param_outfmt, "rgb32"))
--- a/libmpdemux/tvi_v4l.c	Mon Dec 24 10:54:11 2001 +0000
+++ b/libmpdemux/tvi_v4l.c	Mon Dec 24 11:01:16 2001 +0000
@@ -128,6 +128,7 @@
 	case IMGFMT_RGB32:
 	    return(VIDEO_PALETTE_RGB32);
 	case IMGFMT_YV12:
+	case IMGFMT_I420:
 	    return(VIDEO_PALETTE_YUV420P);
 	case IMGFMT_UYVY:
 	    return(VIDEO_PALETTE_YUV422);