From: Sebastian Dröge Date: Fri, 21 Aug 2020 07:35:11 +0000 (+0300) Subject: x264enc: Allow maximum quantizer value of 63 instead of 51 X-Git-Tag: 1.19.3~505^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60337ffed99e173d58c4f4f6cd084df7e00c527d;p=platform%2Fupstream%2Fgstreamer.git x264enc: Allow maximum quantizer value of 63 instead of 51 QP_MAX_SPEC in x264 is set to 63 nowadays and in theory it allows even up to 81 (QP_MAX) but that seems to be outside the spec. Part-of: --- diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json index 304fbcf..fb6d824 100644 --- a/docs/gst_plugins_cache.json +++ b/docs/gst_plugins_cache.json @@ -1504,7 +1504,7 @@ "construct-only": false, "controllable": false, "default": "51", - "max": "51", + "max": "63", "min": "0", "mutable": "null", "readable": true, @@ -1518,7 +1518,7 @@ "construct-only": false, "controllable": false, "default": "10", - "max": "51", + "max": "63", "min": "0", "mutable": "null", "readable": true, @@ -1532,7 +1532,7 @@ "construct-only": false, "controllable": false, "default": "4", - "max": "50", + "max": "63", "min": "0", "mutable": "null", "readable": true, diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index c6248fe..4490181 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1137,18 +1137,18 @@ gst_x264_enc_class_init (GstX264EncClass * klass) g_string_append_printf (x264enc_defaults, ":cabac=%d", ARG_CABAC_DEFAULT); g_object_class_install_property (gobject_class, ARG_QP_MIN, g_param_spec_uint ("qp-min", "Minimum Quantizer", - "Minimum quantizer", 0, 51, ARG_QP_MIN_DEFAULT, + "Minimum quantizer", 0, 63, ARG_QP_MIN_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_string_append_printf (x264enc_defaults, ":qpmin=%d", ARG_QP_MIN_DEFAULT); g_object_class_install_property (gobject_class, ARG_QP_MAX, g_param_spec_uint ("qp-max", "Maximum Quantizer", - "Maximum quantizer", 0, 51, ARG_QP_MAX_DEFAULT, + "Maximum quantizer", 0, 63, ARG_QP_MAX_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_string_append_printf (x264enc_defaults, ":qpmax=%d", ARG_QP_MAX_DEFAULT); g_object_class_install_property (gobject_class, ARG_QP_STEP, g_param_spec_uint ("qp-step", "Maximum Quantizer Difference", "Maximum quantizer difference between frames", - 0, 50, ARG_QP_STEP_DEFAULT, + 0, 63, ARG_QP_STEP_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_string_append_printf (x264enc_defaults, ":qpstep=%d", ARG_QP_STEP_DEFAULT); g_object_class_install_property (gobject_class, ARG_IP_FACTOR,