hi_venc_stream

Function

Defines the information of a stream.

Definition

typedef struct {
    hi_venc_pack ATTRIBUTE* pack;
    hi_u32      ATTRIBUTE pack_cnt;
    hi_u32      seq;

    union {
        hi_venc_h264_stream_info h264_info;
        hi_venc_jpeg_stream_info jpeg_info;
        hi_venc_h265_stream_info h265_info;
        hi_venc_prores_stream_info prores_info;
    };

    union {
        hi_venc_h264_adv_stream_info h264_adv_info;
        hi_venc_h265_adv_stream_info h265_adv_info;
    };
} hi_venc_stream;

For details about basic data type hi_u32, see Basic Data Types.

Members

Member

Description

pack

Structure of stream packets. For details, see hi_venc_pack.

pack_cnt

Total number of packets in a frame.

seq

Stream sequence number.

When the streams are obtained by frame, it represents the frame sequence number. When the streams are obtained by packet, it represents the packet sequence number.

h264_info/h265_info

Stream feature information. For details, see hi_venc_h264_stream_info and hi_venc_h265_stream_info.

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.

Atlas inference products: This parameter is not supported.

jpeg_info/prores_info

Stream features. Reserved. For details, see hi_venc_jpeg_stream_info and hi_venc_prores_stream_info.

h264_adv_info/

h265_adv_info

Advanced features of a stream. For details, see hi_venc_h264_adv_stream_info and hi_venc_h265_adv_stream_info.

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.

Atlas inference products: This parameter is not supported.