Encoding: ROI support for CQP/CBR on Haswell/Ivy

Graphics / Video Acceleration / VA-API - Zhao Yakui [intel.com] - 15 August 2016 02:33 UTC

v2: remove unused variable set max ROI number to 3 according low power mode or 8

v1: merge 3 ROI patches together Encoding: Add the support of ROI under CQP on Haswell/Ivybridge Encoding: Add the support of ROI for CBR Currently it will allocate the different qp for the ROI and non_ROI region based on the ROI ratio. The qp delta is related with the ratio of ROI region. Encoding: Expand to support multiple ROI regions. Encoding: bits.roi_rc_qp_delat_support

user guide: The first is that the driver should expose the feature of qp_delta in
VAConfigAttribValEncROI.

The second is that the user-app can pass the qp_delta flag in
VAEncMiscParameterBufferROI and then the driver will use the qp_delta to calculate the corresponding qp for ROI region. For the non-ROI region: I think that currently we can use the following model to predicate the qp. (qp_value = intel_qpvalue_from_qp(qp)) Qp_value_roi * ROI_area + qp_value_nonroi * area_nonroi = base_qp * total_area.

dfb64b3 Encoding: ROI support for CQP/CBR on Haswell/Ivy
src/gen6_mfc_common.c | 202 +++++++++++++++++++++++++++++++++++++++++++++++--
src/i965_drv_video.c | 34 +++++++--
src/i965_drv_video.h | 2 +
src/i965_encoder.c | 1 -
4 files changed, 227 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share