hi_venc_h264_attr

Description

(Reserved) Defines the H.264 encoding attributes.

Atlas 350 Accelerator Card does not support this structure.

Atlas A3 training product/Atlas A3 inference product does not support this structure.

Atlas A2 training product/Atlas A2 inference product does not support this structure.

For the Atlas inference product, this structure is reserved and is not supported currently.

Prototype

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

Members

Member

Description

rcn_ref_share_buf_en

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

Value range: [0, 1] 1: enabled; 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 the memory bandwidth is required.