[0.11] gst-plugins-base: video: add macro to check interlaced

Wim Taymans wtay at kemper.freedesktop.org
Tue Jan 3 01:42:31 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: 21ed12739ebe9d919c9e5ea18ae15f3214b2e229
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=21ed12739ebe9d919c9e5ea18ae15f3214b2e229

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Jan  3 10:41:51 2012 +0100

video: add macro to check interlaced

Add a convenience macro to check if the video is interlaced.

---

 gst-libs/gst/video/video.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h
index 788607f..d4dd5f0 100644
--- a/gst-libs/gst/video/video.h
+++ b/gst-libs/gst/video/video.h
@@ -553,6 +553,7 @@ struct _GstVideoInfo {
 #define GST_VIDEO_INFO_HAS_ALPHA(i)      (GST_VIDEO_FORMAT_INFO_HAS_ALPHA((i)->finfo))
 
 #define GST_VIDEO_INFO_INTERLACE_MODE(i) ((i)->interlace_mode)
+#define GST_VIDEO_INFO_IS_INTERLACED(i)  ((i)->interlace_mode != GST_VIDEO_INTERLACE_MODE_PROGRESSIVE)
 #define GST_VIDEO_INFO_FLAGS(i)          ((i)->flags)
 #define GST_VIDEO_INFO_WIDTH(i)          ((i)->width)
 #define GST_VIDEO_INFO_HEIGHT(i)         ((i)->height)



More information about the gstreamer-commits mailing list