hi_venc_h265_mod_param

Description

Defines the H.265E module parameters of VENC on the device.

Prototype

typedef struct {
    hi_u32 one_stream_buf; 
    hi_u32 mini_buf_mode; 
    hi_u32 low_power_mode; 
    hi_vb_src vb_src; 
    hi_bool qp_hist_en; 
    hi_u32 max_user_data_len; 
} hi_venc_h265_mod_param;

Members

Member

Description

one_stream_buf

Configuration mode of encoding stream frames. Defaults to 1.

  • 0: multi-packet mode
  • 1: single-packet mode.

mini_buf_mode

Stream buffer allocation mode. Reserved. Defaults to 1.

  • 0: The stream buffers are allocated based on the resolution.
  • 1: The stream buffer size is 32 KB at a minimum.

low_power_mode

Low-power mode. Reserved. Defaults to 0.

  • 0: The low-power mode is disabled.
  • 1: The low-power mode is enabled.
  • 2: The ultra-low-power mode is enabled.

Note that enabling the low-power mode and the ultra-low-power mode can cause image quality loss.

vb_src

Frame buffer allocation mode for the reference frame and reconstruction frame. Defaults to HI_VB_SRC_PRIVATE.

  • HI_VB_SRC_PRIVATE: private VB. The driver internally allocates frame buffers.
  • HI_VB_SRC_USER (reserved): user VB. The frame buffers are allocated by the user.

qp_hist_en

QP histogram output control. Reserved. Defaults to 1.

  • 0: The QP histogram is not output. That is, qp_hist in hi_venc_h265_adv_stream_info is all 0s.
  • 1: The QP histogram is output. That is, qp_hist in hi_venc_h265_adv_stream_info indicates the QP histogram of the current frame.

max_user_data_len

Maximum memory allocation in bytes for user data. Reserved. Defaults to 1024.