changeset 35019:c879d6314c11

corevideo: Support also support UYVY. Patch by Xidorn Quan [quanxunzhen gmail com]
author reimar
date Wed, 22 Aug 2012 18:29:37 +0000
parents 5f3501f7f4d9
children 3967b253e915
files libvo/vo_corevideo.m
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Wed Aug 22 18:24:56 2012 +0000
+++ b/libvo/vo_corevideo.m	Wed Aug 22 18:29:37 2012 +0000
@@ -113,6 +113,9 @@
 		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 @@
 			image_bytes = 4;
 			break;
 		case IMGFMT_YUY2:
+		case IMGFMT_UYVY:
 			image_bytes = 2;
 			break;
 	}
@@ -314,6 +318,10 @@
 			pixelFormat = kYUVSPixelFormat;
 			return supportflags;
 
+		case IMGFMT_UYVY:
+			pixelFormat = k2vuyPixelFormat;
+			return supportflags;
+
 		case IMGFMT_RGB24:
 			pixelFormat = k24RGBPixelFormat;
 			return supportflags;