mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
examples: vaenc-dynamic: support target percentage change in QVBR
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6465>
This commit is contained in:
parent
a9d839b8a3
commit
d18d6a70ac
1 changed files with 6 additions and 4 deletions
|
@ -200,8 +200,8 @@ print_keyboard_help (void)
|
||||||
"<", "Decrease bitrate by 100 kbps"}, {
|
"<", "Decrease bitrate by 100 kbps"}, {
|
||||||
"]", "Increase target usage"}, {
|
"]", "Increase target usage"}, {
|
||||||
"[", "Decrease target usage"}, {
|
"[", "Decrease target usage"}, {
|
||||||
"}", "Increase target percentage by 10% (only in VBR)"}, {
|
"}", "Increase target percentage by 10% (only in [Q]VBR)"}, {
|
||||||
"{", "Decrease target percentage by 10% (only in VBR)"}, {
|
"{", "Decrease target percentage by 10% (only in [Q]VBR)"}, {
|
||||||
"I", "Increase QP-I"}, {
|
"I", "Increase QP-I"}, {
|
||||||
"i", "Decrease QP-I"}, {
|
"i", "Decrease QP-I"}, {
|
||||||
"P", "Increase QP-P (only in CQP)"}, {
|
"P", "Increase QP-P (only in CQP)"}, {
|
||||||
|
@ -329,7 +329,8 @@ keyboard_cb (gchar input, gboolean is_ascii, gpointer user_data)
|
||||||
case '}':{
|
case '}':{
|
||||||
guint target;
|
guint target;
|
||||||
|
|
||||||
if (!is_ratectl (data->encoder, 0x00000004 /* VA_RC_VBR */ ))
|
if (!is_ratectl (data->encoder, 0x00000004 /* VA_RC_VBR */ )
|
||||||
|
|| is_ratectl (data->encoder, 0x00000400 /* VA_RC_QVBR */ ))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
g_object_get (data->encoder, "target-percentage", &target, NULL);
|
g_object_get (data->encoder, "target-percentage", &target, NULL);
|
||||||
|
@ -341,7 +342,8 @@ keyboard_cb (gchar input, gboolean is_ascii, gpointer user_data)
|
||||||
case '{':{
|
case '{':{
|
||||||
guint target;
|
guint target;
|
||||||
|
|
||||||
if (!is_ratectl (data->encoder, 0x00000004 /* VA_RC_VBR */ ))
|
if (!is_ratectl (data->encoder, 0x00000004 /* VA_RC_VBR */ )
|
||||||
|
|| is_ratectl (data->encoder, 0x00000400 /* VA_RC_QVBR */ ))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
g_object_get (data->encoder, "target-percentage", &target, NULL);
|
g_object_get (data->encoder, "target-percentage", &target, NULL);
|
||||||
|
|
Loading…
Reference in a new issue