OSDN Git Service

Encoding: ROI support for CQP/CBR on Haswell/Ivy
authorZhao Yakui <yakui.zhao@intel.com>
Sun, 1 Jan 2012 02:54:34 +0000 (02:54 +0000)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 15 Aug 2016 07:33:15 +0000 (15:33 +0800)
commitdfb64b3220a6df9be1bd6f667cd96f056d1a8cb6
treec790adb629b0ed6e0660ee96485bef51b485a0dd
parent3d12cd730f319c7f0fd23a978721ee2482342a79
Encoding: ROI support for CQP/CBR on Haswell/Ivy

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.

Signed-off-by: ceciliapeng <cecilia.peng@intel.com>
Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
src/gen6_mfc_common.c
src/i965_drv_video.c
src/i965_drv_video.h
src/i965_encoder.c