hi_venc_h265_attr

Description

Defines the H.265 encoding attributes.

For the Atlas inference products, this dictionary is reserved.

For the Atlas A2 products, this dictionary is reserved.

For the Atlas A3 products, this dictionary is reserved.

Prototype

hi_venc_h265_attr = {"rcn_ref_share_buf_en": rcn_ref_share_buf_en, # RW; Range:[0, 1];Whether to enable the Share Buf of Rcn and Ref
                     "frame_buf_ratio": frame_buf_ratio}

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