# HG changeset patch # User reimar # Date 1345660177 0 # Node ID c879d6314c114c014ecc48a1eac12c6f24f6ef93 # Parent 5f3501f7f4d9371d79f9df8f9a34359c07cc04a9 corevideo: Support also support UYVY. Patch by Xidorn Quan [quanxunzhen gmail com] diff -r 5f3501f7f4d9 -r c879d6314c11 libvo/vo_corevideo.m --- 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;