hi_venc_chn_status

Description

Defines the states of an encoding channel.

Prototype

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;

Members

Member

Description

left_pics

Number of pictures to be encoded.

left_stream_bytes

Number of bytes that are not fetched by the user in the stream buffer.

left_stream_frames

Number of frames that are not fetched by the user in the stream buffer.

cur_packs

Number of packets in the current frame.

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.

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.

is_jpeg_snap_end

JPEGE snapshot completion flag.

Reserved.

release_pic_pts

Reserved.

stream_info

Stream information.

This parameter is not supported in the JPEGE scenario.

Considerations

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.