From cae46813ca494fd5a8ea98c72a651d9dd5ef9970 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 29 Jun 2007 14:47:42 +0000 Subject: [PATCH] gst/ffmpegcolorspace/gstffmpegcodecmap.c: Add a mapping for YUV format "IYU1", which is a 4:1:1 packed pixel format, ... Original commit message from CVS: * gst/ffmpegcolorspace/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt): Add a mapping for YUV format "IYU1", which is a 4:1:1 packed pixel format, as produced by some dc1394 cameras like the iSight. See http://www.fourcc.org/yuv.php#IYU1 --- ChangeLog | 8 ++++++++ gst/ffmpegcolorspace/gstffmpegcodecmap.c | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index cdf3c20..f7fd9d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-06-29 Jan Schmidt + + * gst/ffmpegcolorspace/gstffmpegcodecmap.c: + (gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt): + Add a mapping for YUV format "IYU1", which is a 4:1:1 packed pixel + format, as produced by some dc1394 cameras like the iSight. + See http://www.fourcc.org/yuv.php#IYU1 + 2007-06-28 Sebastian Dröge * gst/audioconvert/Makefile.am: diff --git a/gst/ffmpegcolorspace/gstffmpegcodecmap.c b/gst/ffmpegcolorspace/gstffmpegcodecmap.c index cf4ba20..cd7de37 100644 --- a/gst/ffmpegcolorspace/gstffmpegcodecmap.c +++ b/gst/ffmpegcolorspace/gstffmpegcodecmap.c @@ -176,6 +176,9 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context) case PIX_FMT_UYVY422: fmt = GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'); break; + case PIX_FMT_UYVY411: + fmt = GST_MAKE_FOURCC ('I', 'Y', 'U', '1'); + break; case PIX_FMT_RGB24: bpp = depth = 24; endianness = G_BIG_ENDIAN; @@ -552,6 +555,9 @@ gst_ffmpeg_caps_to_pixfmt (const GstCaps * caps, case GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'): context->pix_fmt = PIX_FMT_UYVY422; break; + case GST_MAKE_FOURCC ('I', 'Y', 'U', '1'): + context->pix_fmt = PIX_FMT_UYVY411; + break; case GST_MAKE_FOURCC ('I', '4', '2', '0'): context->pix_fmt = PIX_FMT_YUV420P; break; -- 2.7.4