libs: video-format: add a helper function of get_formats_by_chroma.
authorHe Junyan <junyan.he@hotmail.com>
Fri, 10 Apr 2020 13:21:43 +0000 (21:21 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 16 May 2020 19:58:15 +0000 (19:58 +0000)
commit2b1809e9d384c143487ef6065af0cf0112669b06
tree464ea16a91e88c0bee8b80d69e0394bc8a3df4d8
parent5d56ce69277c844d10d54b2dfd278cd44ca79db6
libs: video-format: add a helper function of get_formats_by_chroma.

The function iterates all supported video formats and returns the
formats belong to the specified chroma type.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/315>
gst-libs/gst/vaapi/video-format.c
gst-libs/gst/vaapi/video-format.h