video: Add GST_VIDEO_INTERLACE_MODE_ALTERNATE
authorZeeshan Ali <zeenix@collabora.co.uk>
Fri, 4 May 2018 14:16:28 +0000 (16:16 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 29 Aug 2018 16:14:38 +0000 (12:14 -0400)
commitbd9c7b36d87b46c52a67d6a7372ec77d50778283
treebf78f9d43aa10e6c27a24e0bf685cacf0a6216fe
parent8fa9fda22693e199212d244c30a0302c185c58ee
video: Add GST_VIDEO_INTERLACE_MODE_ALTERNATE

Add a new interlace mode enum to represent buffers containing a single
field of an interlaced video in a buffer. The name is based on the
equivalent video format in the V4L2 API, V4L2_FIELD_ALTERNATE:

https://01.org/linuxgraphics/gfx-docs/drm/media/uapi/v4l/field-order.html

Since caps fields are optional, we also introduce a new caps feature,
"format:Interlaced" that always goes with "alternate" interlace mode to ensure
that caps for this incompatible format are incompatible with other interlaced
and progressive video caps.

https://bugzilla.gnome.org/show_bug.cgi?id=796106
gst-libs/gst/video/video-info.c
gst-libs/gst/video/video-info.h
tests/check/libs/video.c