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.

In the JPEGE image encoding scenario, this parameter is not supported by the following models:
  • Atlas A3 training products/Atlas A3 inference products
  • Atlas A2 training products/Atlas A2 inference products
  • Atlas 200I/500 A2 inference products

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:
  • Atlas A3 training products/Atlas A3 inference products
  • Atlas A2 training products/Atlas A2 inference products
  • Atlas 200I/500 A2 inference products

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:
  • Atlas A3 training products/Atlas A3 inference products
  • Atlas A2 training products/Atlas A2 inference products
  • Atlas 200I/500 A2 inference products

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.

In the JPEGE image encoding scenario, this parameter is not supported by the following models:
  • Atlas A3 training products/Atlas A3 inference products
  • Atlas A2 training products/Atlas A2 inference products
  • Atlas 200I/500 A2 inference products

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:
  • Atlas A3 training products/Atlas A3 inference products
  • Atlas A2 training products/Atlas A2 inference products
  • Atlas 200I/500 A2 inference products

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.