hi_venc_chn_attr

Function

Defines the encoding channel attributes.

Definition

typedef struct {
    hi_venc_attr venc_attr;
    hi_venc_rc_attr rc_attr;
    hi_venc_gop_attr gop_attr;
}hi_venc_chn_attr;

Members

Member

Description

venc_attr

Encoder attributes. For details, see hi_venc_attr.

The encoder attributes except the channel width (pic_width) and channel height (pic_height) are static attributes. Once an encoding channel is created successfully, the static attributes are unmodifiable unless the channel is destroyed and re-created.

rc_attr

RC attributes. For details, see hi_venc_rc_attr.

You need to set the RC mode before setting the RC attributes. The RC attributes are required for H.264/H.265 encoding but are not required for JPEG encoding. The selected RC mode must match the encode protocol in use.

gop_attr

Structure of the GOP mode. For details, see hi_venc_gop_attr.

This parameter is valid only for the H.264 and H.265 protocols.