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:
  • Ascend 950PR/Ascend 950DT
  • 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:
  • Ascend 950PR/Ascend 950DT
  • 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:
  • Ascend 950PR/Ascend 950DT
  • 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 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:
  • Ascend 950PR/Ascend 950DT
  • 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:
  • Ascend 950PR/Ascend 950DT
  • 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 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.