hi_vdec_chn_status

Function

Defines the channel states.

Definition

typedef struct {
    hi_payload_type type;
    hi_u32 left_stream_bytes;
    hi_u32 left_stream_frames;
    hi_u32 left_decoded_frames;
    hi_bool is_started;
    hi_u32 recv_stream_frames;
    hi_u32 dec_stream_frames;
    hi_vdec_dec_err dec_err;
    hi_u32 width;
    hi_u32 height;
    hi_u64 latest_frame_pts;
} hi_vdec_chn_status;

For details about basic data types hi_u32 and hi_u64, see Basic Data Types.

Members

Member

Description

type

Decoding protocol. For details, see hi_payload_type.

left_stream_bytes

Number of bytes in the stream buffer to be decoded, including the number of bytes that are not decoded yet in the current frame in the decode progress.

left_stream_frames

Number of frames in the stream buffer to be decoded, excluding the current frame in the decode progress. -1 indicates invalid. It is valid only when the streams are sent by frame.

left_decoded_frames

Number of remaining images in the image buffer.

is_started

Whether the decoder has started to receive a stream.

recv_stream_frames

Number of received frames in the stream buffer. -1 indicates invalid. It is valid only when the streams are sent by frame.

dec_stream_frames

Number of decoded frames in the stream buffer. Valid only in frame mode.

dec_err

Decode error. For details, see hi_vdec_dec_err.

width

Image width of the decode output.

height

Image height of the decode output.

latest_frame_pts

PTS of the latest decoded image. Reserved parameter, not supported currently.