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.
This commit is contained in:
Stefano Pigozzi 2013-08-15 11:08:15 +02:00
parent e437ecf729
commit 30f2db5930
1 changed files with 5 additions and 0 deletions

View File

@ -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;