diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-04-09 12:42:56 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-04-09 13:14:18 +0200 |
commit | d4bc0cb6da56091945e771bddd52e81f28b11688 (patch) | |
tree | 93c4f873a5c23aad7e3b7e2e2d3e09c3fea25ba0 | |
parent | 81203a6098038d347e3ff54a4d1aff321209da10 (diff) |
libs: encoder: h264,h265: initial and minimal QP can be zero
Currently the minimal value for either min_qp and init_qp are 1,
but VA documentation specifiy that zero is also valid and means
to ignore the quantiser.
The default value is not changed though to avoid behaivor changes
to users.
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h264.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h265.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c index d3bda05b..e6947204 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c @@ -3623,7 +3623,7 @@ gst_vaapi_encoder_h264_get_default_properties (void) GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, GST_VAAPI_ENCODER_H264_PROP_INIT_QP, g_param_spec_uint ("init-qp", - "Initial QP", "Initial quantizer value", 1, 51, 26, + "Initial QP", "Initial quantizer value", 0, 51, 26, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** @@ -3634,7 +3634,7 @@ gst_vaapi_encoder_h264_get_default_properties (void) GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, GST_VAAPI_ENCODER_H264_PROP_MIN_QP, g_param_spec_uint ("min-qp", - "Minimum QP", "Minimum quantizer value", 1, 51, 1, + "Minimum QP", "Minimum quantizer value", 0, 51, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c index b4d41c63..1ed8255a 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c @@ -4050,7 +4050,7 @@ gst_vaapi_encoder_h264_fei_get_default_properties (void) GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, GST_VAAPI_ENCODER_H264_FEI_PROP_INIT_QP, g_param_spec_uint ("init-qp", - "Initial QP", "Initial quantizer value", 1, 51, 26, + "Initial QP", "Initial quantizer value", 0, 51, 26, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** @@ -4061,7 +4061,7 @@ gst_vaapi_encoder_h264_fei_get_default_properties (void) GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, GST_VAAPI_ENCODER_H264_FEI_PROP_MIN_QP, g_param_spec_uint ("min-qp", - "Minimum QP", "Minimum quantizer value", 1, 51, 1, + "Minimum QP", "Minimum quantizer value", 0, 51, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c index 3679dafa..a2e61d80 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c @@ -2755,7 +2755,7 @@ gst_vaapi_encoder_h265_get_default_properties (void) GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, GST_VAAPI_ENCODER_H265_PROP_INIT_QP, g_param_spec_uint ("init-qp", - "Initial QP", "Initial quantizer value", 1, 51, 26, + "Initial QP", "Initial quantizer value", 0, 51, 26, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** @@ -2766,7 +2766,7 @@ gst_vaapi_encoder_h265_get_default_properties (void) GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, GST_VAAPI_ENCODER_H265_PROP_MIN_QP, g_param_spec_uint ("min-qp", - "Minimum QP", "Minimum quantizer value", 1, 51, 1, + "Minimum QP", "Minimum quantizer value", 0, 51, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** |