video-format: add interlace flag
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 1 Feb 2013 10:42:58 +0000 (11:42 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Feb 2013 14:05:59 +0000 (15:05 +0100)
Add an interlaced flag that can be used to control the unpack/pack
functions.

gst-libs/gst/video/video-format.h

index e070bc8..fd22afd 100644 (file)
@@ -229,13 +229,17 @@ typedef enum
  *   to 0. This is likely sightly faster but less accurate. When this flag
  *   is not specified, the most significant bits of the source are duplicated
  *   in the least significant bits of the destination.
+ * @GST_VIDEO_PACK_FLAG_INTERLACED: The source is interlaced. The unpacked
+ *   format will be interlaced as well with each line containing
+ *   information from alternating fields.
  *
  * The different flags that can be used when packing and unpacking.
  */
 typedef enum
 {
   GST_VIDEO_PACK_FLAG_NONE           = 0,
-  GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE = 1
+  GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE = (1 << 0),
+  GST_VIDEO_PACK_FLAG_INTERLACED     = (1 << 1)
 } GstVideoPackFlags;
 
 /**