surface: add helper function to get chroma type from GstVideoFormat.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 10 Jul 2013 07:48:40 +0000 (09:48 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 10 Jul 2013 15:03:47 +0000 (17:03 +0200)
commite3da054e482b85a80c4e323db1195237f8dd32ce
treeb15480f24220e36cc51b1056936a06a2a4ae9bd1
parentd633e0d072b8de38a42713c40406bc94353116c5
surface: add helper function to get chroma type from GstVideoFormat.

Add gst_video_format_get_chroma_type() helper function to determine
the GstVaapiChromaType from a standard GStreamer video format. It is
possible to reconstruct that from GstVideoFormatInfo but it is much
simpler (and faster?) to use the local GstVideoFormatMap table.
docs/reference/libs/libs-sections.txt
gst-libs/gst/vaapi/video-format.c
gst-libs/gst/vaapi/video-format.h