[MPlayer-cvslog] r35113 - trunk/libvo/vo_corevideo.m

reimar subversion at mplayerhq.hu
Wed Aug 22 20:29:37 CEST 2012


Author: reimar
Date: Wed Aug 22 20:29:37 2012
New Revision: 35113

Log:
corevideo: Support also support UYVY.

Patch by Xidorn Quan [quanxunzhen gmail com]

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Wed Aug 22 20:24:56 2012	(r35112)
+++ trunk/libvo/vo_corevideo.m	Wed Aug 22 20:29:37 2012	(r35113)
@@ -113,6 +113,9 @@ static void draw_alpha(int x0, int y0, i
 		case IMGFMT_YUY2:
 			vo_draw_alpha_yuy2(w,h,src,srca,stride,dst,image_stride);
 			break;
+		case IMGFMT_UYVY:
+			vo_draw_alpha_uyvy(w,h,src,srca,stride,dst,image_stride);
+			break;
 	}
 }
 
@@ -179,6 +182,7 @@ static int config(uint32_t width, uint32
 			image_bytes = 4;
 			break;
 		case IMGFMT_YUY2:
+		case IMGFMT_UYVY:
 			image_bytes = 2;
 			break;
 	}
@@ -314,6 +318,10 @@ static int query_format(uint32_t format)
 			pixelFormat = kYUVSPixelFormat;
 			return supportflags;
 
+		case IMGFMT_UYVY:
+			pixelFormat = k2vuyPixelFormat;
+			return supportflags;
+
 		case IMGFMT_RGB24:
 			pixelFormat = k24RGBPixelFormat;
 			return supportflags;


More information about the MPlayer-cvslog mailing list