hi_vdec_chn_status

Description

Defines the channel status.

Prototype

hi_vdec_chn_status = {"type": hi_payload_type, # R; video type to be decoded
                      "left_stream_bytes": left_stream_bytes, # R; left stream bytes waiting for decode
                      "left_stream_frames": left_stream_frames, # R; left frames waiting for decoding, only valid for HI_VDEC_SEND_MODE_FRAME
                      "left_decoded_frames": left_decoded_frames, # R; pics waiting for output.
                      "is_started": is_started, # R; had started recv stream?
                      "recv_stream_frames": recv_stream_frames, # R; how many frames of stream have been received. Valid when sent by frame.
                      "dec_stream_frames": dec_stream_frames, # R; how many frames of stream have been decoded. Valid when sent by frame.
                      "dec_err": hi_vdec_dec_err, # R; information about decode error.
                      "width": width,
                      "height": height,
                      "latest_frame_pts": latest_frame_pts }

Members

Member

Description

type

Int, decoding protocol.

left_stream_bytes

Int, remaining number of bytes to be decoded in the stream buffer, including those in the current frame that is being decoded.

left_stream_frames

Int, remaining number of frames to be decoded in the stream buffer, excluding those in the current frame that is being decoded. -1 indicates invalid. Valid only in frame mode.

left_decoded_frames

Int, number of remaining images in the buffer.

is_started

Int, whether the decoder has started to receive streams.

recv_stream_frames

Int, number of received stream frames in the stream buffer. -1 indicates invalid. Valid only in frame mode.

dec_stream_frames

Int, number of decoded frames in the stream buffer. Valid only in frame mode.

dec_err

Dictionary, decoding error information.

width

Int, width of the output image after decoding.

height

Int, height of the output image after decoding.

latest_frame_pts

PTS of the latest decoded image. Reserved.