hi_venc_h265_attr

Description

Defines the H.265 encoding attributes.

Prototype

typedef struct {
    hi_bool rcn_ref_share_buf_en; 
    hi_u32 frame_buf_ratio;
} hi_venc_h265_attr;

Members

Member

Description

rcn_ref_share_buf_en

Buffer sharing enable for the reference frame and write-back frame. Reserved.

Either 1 (enabled) or 0 (disabled).

This is a static attribute.

frame_buf_ratio

Frame buffer ratio. After being set, the system compresses the frame buffer based on the ratio.

Value range: [70, 100] For example, if frame_buf_ratio is set to 80, the frame buffer size is 80% of the original size.

  • The default value is 100, indicating that the frame buffer is not compressed.
  • If the value is not within the value range, the frame buffer is not compressed.
  • If the value is within the range of [70, 100), the frame buffer is compressed proportionally, which may affect the encoding quality. You are advised to set this parameter to a value within the range of [70, 100) when the image texture is not complex, the resolution is greater than 640 x 480, and there is a requirement on the memory bandwidth.