定义视频/图像解码的码流结构体。
typedef struct { hi_bool end_of_frame; // W; is the end of a frame. hi_bool end_of_stream; // W; is the end of all stream. hi_bool need_display; // W; is the current frame displayed. only valid by HI_VDEC_SEND_MODE_FRAME. hi_u64 pts; // W; time stamp hi_u64 private_data; // W; private data,reserved hi_u32 len; // W; length of stream hi_u8 *ATTRIBUTE addr; // W; stream address } hi_vdec_stream;
成员 |
描述 |
---|---|
end_of_frame |
当前帧是否结束(此值目前暂无效)。 |
end_of_stream |
是否发完所有码流。 |
need_display |
当前帧是否输出显示。 0:不显示,输出Buffer无解码数据,允许输出Buffer设为NULL; 1:显示,设置为1,才能输出解码结果。 |
pts |
码流包的时间戳,以us为单位。 |
private_data |
私有数据。预留参数,暂不支持。 |
len |
码流包的长度,以Byte为单位。 |
addr |
码流包的地址。 |