hi_venc_h264_stream_info

Function

Defines the features of an H.264 stream.

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

For Atlas A3 products, this structure is not supported.

For Atlas A2 products, this structure is not supported.

For Atlas inference products, this structure is reserved.

Definition

typedef struct {
    hi_u32 pic_bytes;
    hi_u32 inter16x16_mb_num;
    hi_u32 inter8x8_mb_num;
    hi_u32 intra16_mb_num;
    hi_u32 intra8_mb_num;
    hi_u32 intra4_mb_num;
    hi_venc_ref_type ref_type;
    hi_u32 update_attr_cnt;
    hi_u32 start_qp;
    hi_u32 mean_qp;
    hi_bool is_p_skip;
} hi_venc_h264_stream_info;

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

Members

Member

Description

pic_bytes

Number of bytes in the current frame.

inter16x16_mb_num

Number of macroblocks in inter16×16 prediction mode in the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

inter8x8_mb_num

Number of macroblocks in inter8x8 prediction mode in the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

intra16_mb_num

Number of macroblocks in intra16 prediction mode in the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

intra8_mb_num

Number of macroblocks in intra8 prediction mode in the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

intra4_mb_num

Number of macroblocks in intra4 prediction mode in the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

ref_type

Type of the frame in advanced frame skipping reference mode. For details, see hi_venc_ref_type.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

update_attr_cnt

Number of times that channel attributes or parameters (including RC parameters) are updated.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

start_qp

Start QP of the current frame.

mean_qp

Mean QP of the current frame.

is_p_skip

P-Skip frame flag.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.