gst/ffmpegcolorspace/gstffmpegcodecmap.c: Patch from Eric Jonas to support conversions to/from UYVY (Fixes: #324626)

Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt):
Patch from Eric Jonas to support conversions to/from UYVY
(Fixes: #324626)
This commit is contained in:
Eric Jonas 2006-01-30 14:42:28 +00:00 committed by Jan Schmidt
parent 950ab0ef96
commit 6757e87c91
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-01-30 Jan Schmidt <thaytan@mad.scientist.com>
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt):
Patch from Eric Jonas to support conversions to/from UYVY
(Fixes: #324626)
2006-01-30 Julien MOUTTE <julien@moutte.net> 2006-01-30 Julien MOUTTE <julien@moutte.net>
* gst/playback/gstplaybasebin.c: (group_commit), (queue_overrun), * gst/playback/gstplaybasebin.c: (group_commit), (queue_overrun),

View file

@ -132,6 +132,9 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context)
case PIX_FMT_YUV422: case PIX_FMT_YUV422:
fmt = GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'); fmt = GST_MAKE_FOURCC ('Y', 'U', 'Y', '2');
break; break;
case PIX_FMT_UYVY422:
fmt = GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y');
break;
case PIX_FMT_RGB24: case PIX_FMT_RGB24:
bpp = depth = 24; bpp = depth = 24;
endianness = G_BIG_ENDIAN; endianness = G_BIG_ENDIAN;
@ -475,6 +478,9 @@ gst_ffmpeg_caps_to_pixfmt (const GstCaps * caps,
case GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'): case GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'):
context->pix_fmt = PIX_FMT_YUV422; context->pix_fmt = PIX_FMT_YUV422;
break; break;
case GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'):
context->pix_fmt = PIX_FMT_UYVY422;
break;
case GST_MAKE_FOURCC ('I', '4', '2', '0'): case GST_MAKE_FOURCC ('I', '4', '2', '0'):
context->pix_fmt = PIX_FMT_YUV420P; context->pix_fmt = PIX_FMT_YUV420P;
break; break;