vah264enc: Fail if unsupported rate control.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 11 Aug 2022 10:51:17 +0000 (12:51 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 26 Oct 2022 08:19:32 +0000 (08:19 +0000)
commit4ffb3663a807f7fba6eeae3b1644cc5117c426da
treef0dcee23efe087ae5e76d41b6ad7a5d8e71f4723
parent5e531c1a88693d7f2a807f9faafff6c77fdd2aad
vah264enc: Fail if unsupported rate control.

Handle when encoder doesn't support rate control, which is set as
VA_RC_NONE, and if the set rate control mode is not supported by the
GStreamer element, the element configuration fails.

Also it logs out max and target bitrate.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3063>
subprojects/gst-plugins-bad/sys/va/gstvaencoder.c
subprojects/gst-plugins-bad/sys/va/gstvah264enc.c