plugins: add gst_vaapi_caps_set_width_and_height_range()
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 25 May 2020 15:02:26 +0000 (17:02 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 31 Jul 2020 08:14:34 +0000 (10:14 +0200)
commit99ac072673c12e3f81cc2e774bb2536ace2508c1
treec8bb3bcf13dcfab1f4c423fb4f1dc91550ea9157
parent6ab488475a399f3f34bc5dedb7e4828099ccc1e5
plugins: add gst_vaapi_caps_set_width_and_height_range()

This utility function is called internally by
gst_vaapi_build_caps_from_formats() and can be used outside.

This function sets frame size and framerates ranges.

Also gst_vaapi_build_caps_from_formats() is simplified.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/374>
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapipluginutil.c
gst/vaapi/gstvaapipluginutil.h