hi_vdec_chn_status

Description

Defines the channel states.

Prototype

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;

Members

Member

Description

type

Decode protocol.

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. Valid only in frame mode.

left_decoded_frames

Number of remaining pictures in the picture 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. Valid only in frame mode.

dec_stream_frames

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

dec_err

Decode error.

width

Image width of the decoding output.

height

Image height of the decoding output.

latest_frame_pts

PTS of the latest decoded image. Reserved.