Defines the states of an encoding channel.
typedef struct {
hi_u32 left_pics;
hi_u32 left_stream_bytes;
hi_u32 left_stream_frames;
hi_u32 cur_packs;
hi_u32 left_recv_pics;
hi_u32 left_enc_pics;
hi_bool is_jpeg_snap_end;
hi_u64 release_pic_pts;
hi_venc_stream_info stream_info;
} hi_venc_chn_status;
Member |
Description |
|---|---|
left_pics |
Number of images to be encoded. Reserved. |
left_stream_bytes |
Number of bytes that are not fetched by the user in the stream buffer. Reserved. |
left_stream_frames |
Number of frames that are not fetched by the user in the stream buffer. Reserved. |
cur_packs |
Number of packets in the current frame. |
left_recv_pics |
Number of remaining frames to receive. Valid only when hi_mpi_venc_start_chn is called to set the number of frames to receive. Reserved. |
left_enc_pics |
Number of remaining frames to encode. Valid only when hi_mpi_venc_start_chn is called to set the number of frames to receive. Reserved. |
is_jpeg_snap_end |
JPEGE snapshot completion flag. Reserved. |
release_pic_pts |
Reserved. |
stream_info |
Stream information. Reserved. |
If frame loss occurs in the snapshot frames received by VENC, the is_jpeg_snap_end flag may fail to correctly mark the end of snapshot.