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]

The default value is 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 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 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 set to 0, disables re-encoding.

Value range: [0, 3]

Default value: 2

qpmap_en

Whether to enable the QpMap function. : Only Atlas inference product supports this parameter. For other product models, qpmap_en is a reserved parameter and is not supported currently.

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 Atlas inference product supports this parameter. For other product models, qpmap_mode is a reserved parameter and is not supported currently.