decode(inputData, frameId)

Function Usage

Video decoding API of the VideoDecoder class.

Input Parameter Description

Parameter

Type

Description

inputData

py::buffer (binary data type)

Binary data of video frames

frameId

int

Video frame ID before decoding

Return Parameter Description

None (The default decoding mode is non-real time frame output. Buffer frames exist during decoding. The VDEC outputs the decoding result only after receiving multiple frames in a stream.)

Exception Throwing Interface

If decoding fails, a runtime exception occurs.