定义通道状态字典。
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 decode,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 has been received. valid when send by frame. "dec_stream_frames": dec_stream_frames, # R; how many frames of stream has been decoded. valid when send by frame. "dec_err": hi_vdec_dec_err, # R; information about decode error. "width": width, "height": height, "latest_frame_pts": latest_frame_pts }
成员名称 |
描述 |
---|---|
type |
整型,解码协议。 |
left_stream_bytes |
整型,码流buffer中待解码的byte数,包括正在解码的当前帧中未解码的byte数。 |
left_stream_frames |
整型,码流buffer中待解码的帧数,不包括正在解码的当前帧。-1表示无效。仅按帧发送时有效。 |
left_decoded_frames |
整型,图像 buffer 中剩余的 pic 数目。 |
is_started |
整型,解码器是否已经启动接收码流。 |
recv_stream_frames |
整型,码流 buffer 中已接收码流帧数。-1 表示无效。仅按帧发送时有效。 |
dec_stream_frames |
整型,码流 buffer 中已解码帧数。仅按帧发送时有效。 |
dec_err |
字典,解码错误信息。 |
width |
整型,解码后输出图片的宽。 |
height |
整型,解码后输出图片的高。 |
latest_frame_pts |
最新解码图像的时间戳。预留参数,暂不支持。 |