va: decoder: Add helper functions to get and change the resolution.
authorHe Junyan <junyan.he@intel.com>
Wed, 14 Jul 2021 06:27:34 +0000 (14:27 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 15 Jul 2021 09:42:51 +0000 (09:42 +0000)
commit6887e772016c5e4ab9f82228f9ca95d6c7eb3d70
tree624e7b1c9b4e50876b54e0df1c48577195abb2bb
parent30e105561d537f0a00e93ac1fcc126f22b2d5e35
va: decoder: Add helper functions to get and change the resolution.

Some codecs such as VP9, its config and context have the ability to
dynamically. When we only change the width and height, no need to
re-create the config and context. The helper function can just change
the resolution without re-creating config and context.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2407>
sys/va/gstvadecoder.c
sys/va/gstvadecoder.h