mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
libs: context: roi_rc_qp_delta_support should not be checked when CQP.
VA_ROI_RC_QP_DELTA_SUPPORT return value will be ignored when the rate control mode is set as CQP. In CQP mode, it shouldn't check roi_rc_qp_delta_support return value from driver backend. https://bugzilla.gnome.org/show_bug.cgi?id=797087
This commit is contained in:
parent
ce96f2d1fa
commit
d8442e479e
1 changed files with 8 additions and 4 deletions
|
@ -320,10 +320,14 @@ config_create (GstVaapiContext * context)
|
|||
if (!context_get_attribute (context, attrib->type, &value))
|
||||
goto cleanup;
|
||||
roi_config = (VAConfigAttribValEncROI *) & value;
|
||||
if (roi_config->bits.num_roi_regions != config->roi_num_supported ||
|
||||
VA_ROI_RC_QP_DELTA_SUPPORT (roi_config) == 0) {
|
||||
GST_ERROR ("Mismatched ROI support: number of regions supported: %d"
|
||||
" ROI delta QP: %d", roi_config->bits.num_roi_regions,
|
||||
if (roi_config->bits.num_roi_regions != config->roi_num_supported) {
|
||||
GST_ERROR ("Mismatched ROI support: number of regions supported: %d",
|
||||
roi_config->bits.num_roi_regions);
|
||||
goto cleanup;
|
||||
}
|
||||
if (config->rc_mode != GST_VAAPI_RATECONTROL_CQP
|
||||
&& VA_ROI_RC_QP_DELTA_SUPPORT (roi_config) == 0) {
|
||||
GST_ERROR ("Mismatched ROI support: ROI delta QP: %d",
|
||||
VA_ROI_RC_QP_DELTA_SUPPORT (roi_config));
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue