hi_venc_chn_status
Function
Defines the states of an encoding channel.
Definition
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;For details about basic data types hi_u32, hi_bool, and hi_u64, see Basic Data Types.
Members
Member |
Description |
|---|---|
left_pics |
Number of pictures to be encoded. In the JPEGE image encoding scenario, this parameter is not supported by the following models:
|
left_stream_bytes |
Number of bytes that are not fetched by the user in the stream buffer. In the JPEGE image encoding scenario, this parameter is not supported by the following models:
|
left_stream_frames |
Number of frames that are not fetched by the user in the stream buffer. In the JPEGE image encoding scenario, this parameter is not supported by the following models:
|
cur_packs |
Number of current stream packets. |
left_recv_pics |
Number of remaining frames to be received. This member is valid after the number of frames to be received is set by calling hi_mpi_venc_start_chn. In the JPEGE image encoding scenario, this parameter is not supported by the following models:
|
left_enc_pics |
Number of remaining frames to be encoded. This member is valid after the number of frames to be received is set by calling hi_mpi_venc_start_chn. In the JPEGE image encoding scenario, this parameter is not supported by the following models:
|
is_jpeg_snap_end |
JPEGE snapshot completion flag. Reserved parameter, not supported currently. |
release_pic_pts |
Reserved parameter, not supported currently. |
stream_info |
Stream information. For details, see hi_venc_stream_info. This parameter is not supported in the JPEGE scenario. |
Precautions
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.