hi_venc_gop_attr

Function

Defines the GOP attributes of the VENC encoder.

Definition

typedef struct {
    hi_venc_gop_mode gop_mode;
    union {
        hi_venc_gop_normal_p normal_p;
        hi_venc_gop_dual_p dual_p;
        hi_venc_gop_smart_p smart_p;
        hi_venc_gop_adv_smart_p adv_smart_p;
        hi_venc_gop_bipred_b bipred_b;
    };
} hi_venc_gop_attr;

Members

Member

Description

gop_mode

GOP mode for encoding. For details, see hi_venc_gop_mode.

normal_p

Structure of the GOP attributes for encoding a single reference P-frame. For details, see hi_venc_gop_normal_p.

dual_p

Structure of the GOP attributes for encoding two reference P-frames. For details, see hi_venc_gop_dual_p.

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

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

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

For Atlas inference products, this parameter is reserved and is not supported currently.

smart_p

Structure of the GOP attributes for encoding the smart P-frame. For details, see hi_venc_gop_smart_p.

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

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

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

For Atlas inference products, this parameter is reserved and is not supported currently.

adv_smart_p

(Reserved) Structure of the GOP attributes for advanced smart P-frame encoding. For details, see hi_venc_gop_adv_smart_p.

bipred_b

(Reserved) GOP attributes struct for B-frame encoding. For details, see hi_venc_gop_bipred_b.