hi_venc_h265_cbr_param

Description

Defines the advanced CBR parameters of an H.265 encoding channel.

Prototype

typedef struct {
    hi_u32 max_i_proportion;
    hi_u32 min_i_proportion;
    hi_u32 max_qp;
    hi_u32 min_qp;
    hi_u32 max_i_qp;
    hi_u32 min_i_qp;
    hi_s32 max_reencode_times;
    hi_bool qpmap_en;
    hi_venc_rc_qpmap_mode qpmap_mode;
}hi_venc_h265_cbr_param;

Members

Member

Description

min_i_proportion

Reserved.

max_i_proportion

Maximum ratio of bits allocated to I-frames and P-frames.

Value range: [1, 100]

Default value: 100

max_qp

Maximum frame-level QP for controlling the encoding quality.

Value range: [0, 51]

Default value: 51

min_qp

Minimum frame-level QP for stabilizing bit rate fluctuation.

Value range: [0, max_qp]

Default value: 10

max_i_qp

Maximum QP value of I-frames. Used to limit the minimum number of bits allocated to I-frames.

Value range: [0, 51]

Default value: 51

min_i_qp

Minimum QP value of I-frames. Used to limit the maximum number of bits allocated to I-frames.

Value range: [0, max_i_qp]

Default value: 10

max_reencode_times

Number of times that each frame is re-encoded. If it is set to 0, re-encoding is disabled.

Value range: [0, 3]

Default value: 2

qpmap_en

Whether to enable the QpMap function. Only the Atlas inference products support this parameter. For other product models, qpmap_en is reserved and not supported.

The options are as follows:

  • HI_TRUE: enabled
  • HI_FALSE: disabled

qpmap_mode

Method of assigning the QP values for CU32 and CU64 when the VENC channel uses the QpMap mode. Only the Atlas inference products support this parameter. For other product models, qpmap_mode is reserved and not supported.