gst/ffmpegcolorspace/gstffmpegcodecmap.c: Add a mapping for YUV format "IYU1", which...
authorJan Schmidt <thaytan@mad.scientist.com>
Fri, 29 Jun 2007 14:47:42 +0000 (14:47 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Fri, 29 Jun 2007 14:47:42 +0000 (14:47 +0000)
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
gst/ffmpegcolorspace/gstffmpegcodecmap.c

index cdf3c20..f7fd9d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-06-29  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * 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  <slomo@circular-chaos.org>
 
        * gst/audioconvert/Makefile.am:
index cf4ba20..cd7de37 100644 (file)
@@ -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;