hi_venc_h265_attr

Function

Defines the H.265 encoding attributes.

For Ascend 950PR/Ascend 950DT, this structure is not supported.

For Atlas A3 training products/Atlas A3 inference products, this structure is not supported.

For Atlas A2 training products/Atlas A2 inference products, this structure is not supported.

For Atlas inference products, this structure is reserved.

Definition

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

For details about basic data types hi_bool and hi_u32, see Basic Data Types.

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 × 480, and there is a requirement on the memory bandwidth.