diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2016-04-25 18:24:19 +0300 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2016-04-25 18:24:19 +0300 |
commit | cb59f9d959677880cb5b29ce8c2f131123c6a415 (patch) | |
tree | fdf1af841133fc9b76c7b974da433ec7c5c7f087 /gst-libs | |
parent | 9ceefd1d78b339f1b7341c7ae9ceb41462a96ad9 (diff) |
encoder: h265: Enable cu_qp_delta_enabled_flag for CBRhevc_cbr
It seems driver requires cu_qp_delta_enabled_flag TRUE
for modifying QP values to controll the bitrate.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h265.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c index c3b4ab68..27feeda1 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c @@ -1637,7 +1637,9 @@ fill_picture (GstVaapiEncoderH265 * encoder, GstVaapiEncPicture * picture, pic_param->pic_fields.bits.reference_pic_flag = TRUE; pic_param->pic_fields.bits.sign_data_hiding_enabled_flag = FALSE; pic_param->pic_fields.bits.transform_skip_enabled_flag = TRUE; - pic_param->pic_fields.bits.cu_qp_delta_enabled_flag = FALSE; + /* it seems driver need cu_qp_delta_enabled_flag TRUE to modifiy QP values */ + if (GST_VAAPI_ENCODER_RATE_CONTROL (encoder) == GST_VAAPI_RATECONTROL_CBR) + pic_param->pic_fields.bits.cu_qp_delta_enabled_flag = TRUE; pic_param->pic_fields.bits.pps_loop_filter_across_slices_enabled_flag = TRUE; if (GST_VAAPI_ENC_PICTURE_IS_IDR (picture)) |