hi_venc_stream

说明

定义帧码流类型结构体。

定义

typedef struct {
    hi_venc_pack ATTRIBUTE* pack; // R; stream pack attribute
    hi_u32      ATTRIBUTE pack_cnt; // R; the pack number of one frame stream
    hi_u32      seq; // R; the list number of stream

    union {
        hi_venc_h264_stream_info h264_info; // R; the stream info of h264
        hi_venc_jpeg_stream_info jpeg_info; // R; the stream info of jpeg
        hi_venc_h265_stream_info h265_info; // R; the stream info of h265
        hi_venc_prores_stream_info prores_info; // R; the stream info of prores
    };

    union {
        hi_venc_h264_adv_stream_info h264_adv_info; // R; the stream info of h264
        hi_venc_h265_adv_stream_info h265_adv_info; // R; the stream info of h265
    };
} hi_venc_stream;

成员

成员名称

描述

pack

帧码流包结构。

pack_cnt

一帧码流的所有包的个数。

seq

码流序列号。昇腾310 AI处理器暂不支持该参数,预留。

按帧获取时,此处为帧序号;按包获取时,此处为包序号。

h264_info/jpeg_info

/h265_info/prores_info

码流特征信息,暂不支持。

h264_adv_info/

h265_adv_info

码流高级特征信息,暂不支持。