Defines the stream for video or image decoding.
typedef struct {
hi_bool end_of_frame;
hi_bool end_of_stream;
hi_bool need_display;
hi_u64 pts;
hi_u64 private_data;
hi_u32 len;
hi_u8 *ATTRIBUTE addr;
} hi_vdec_stream;
Member |
Description |
|---|---|
end_of_frame |
End of frame flag. Reserved. |
end_of_stream |
End of stream flag. |
need_display |
Whether to display the current output frame. 0: not displayed. The output buffer has no decoded data, and the output buffer can be set to NULL. 1: displayed. The decoding result can be output only when this parameter is set to 1. |
pts |
PTS (μs) of a packet. Valid only in frame mode. |
private_data |
Private data. Reserved. |
len |
Length in bytes of a packet. |
addr |
Packet address. |