hi_venc_chn_attr

Description

Defines the encoding channel attributes.

Prototype

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.

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.

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

GOP mode struct.

Valid only for the H.264 and H.265 protocols.