hi_venc_roi_attr

Defines the ROI information.

Prototype

hi_venc_roi_attr = {"idx": idx,
                    "enable": enable,
                    "is_abs_qp": is_abs_qp,
                    "qp": qp,
                    "rect": hi_rect}

Members

Member

Description

idx

Int, ROI index, ranging from 0 to 7.

A maximum of eight ROIs (indexed from 0 to 7) can be configured for each channel. The eight ROIs can be overlaid with each other, in an ascending overlaying priority according to the index numbers 0–7.

enable

Int, whether to enable the ROI.

Ensure that Cb and Cr components are the same.

is_abs_qp

Int, QP mode of the current ROI.

  • HI_FALSE: relative QP
  • HI_TURE: absolute QP

qp

Int, QP value.

  • When the QP mode is HI_FALSE, qp is the QP offset, and the value range of qp is [–51, 51].
  • When the QP mode is HI_TRUE, qp is the QP value of the macroblock, and the value range of qp is [0, 51].

rect

Dictionary, position coordinates and size of the current ROI.

The coordinates of the start point of an ROI must be within the image and 16-aligned.

The ROI must be within the image range. The height and width of the ROI must be 16-aligned and greater than 0. That is, the X-coordinate, Y-coordinate, width, and height must be multiples of 16.