From 30f2db5930993184e125aa5ee46c73002f5de745 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 15 Aug 2013 11:08:15 +0200 Subject: vo_corevideo: add uyvy422 pixel format support Looks like the vda_h264_dec in ffmpeg likes to output this format and it inserted swscale to do pixfmt conversion to yuyv422. --- video/out/vo_corevideo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/video/out/vo_corevideo.c b/video/out/vo_corevideo.c index 2bc5e9b2dd..bad282436f 100644 --- a/video/out/vo_corevideo.c +++ b/video/out/vo_corevideo.c @@ -226,6 +226,10 @@ static int query_format(struct vo *vo, uint32_t format) p->pixelFormat = kYUVSPixelFormat; return flags; + case IMGFMT_UYVY: + p->pixelFormat = k2vuyPixelFormat; + return flags; + case IMGFMT_RGB24: p->pixelFormat = k24RGBPixelFormat; return flags; @@ -301,6 +305,7 @@ static int get_image_fmt(struct vo *vo) struct priv *p = vo->priv; switch (p->pixelFormat) { case kYUVSPixelFormat: return IMGFMT_YUYV; + case k2vuyPixelFormat: return IMGFMT_UYVY; case k24RGBPixelFormat: return IMGFMT_RGB24; case k32ARGBPixelFormat: return IMGFMT_ARGB; case k32BGRAPixelFormat: return IMGFMT_BGRA; -- cgit v1.2.3