vah264enc: Enable parameters change while running.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 20 Oct 2022 09:20:18 +0000 (11:20 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 9 Nov 2022 05:15:21 +0000 (06:15 +0100)
commitdbf8c386671226fd2b8317c934e06a8b2d1af049
tree3bfc12198f592835a42b1850784d3afcdd7302b7
parentbd3c50e50ff530e17d10a9ef96c53529fe965d19
vah264enc: Enable parameters change while running.

1. Removes the verification if the internal encoder is not opened
   yet to allow the property setting.

2. And toggles on the base class' reconf flag for each property
   variable that can be modified at run time.

3. Mark those modifiable properties as mutable while playing.

Currently the run-time modifiable properties are:

qpi, qpp, qpb, bitrate, target percentage, target usage and rate control

Other properties can be enabled too, but they need testing.

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