Video decoding API of the VideoDecoder class.
1 | decode(inputData: buffer, frameId: int) |
Parameter |
Type |
Description |
|---|---|---|
inputData |
Binary data type |
Binary data of video frames |
frameId |
int |
Video frame ID before decoding |
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.)
If decoding fails, a runtime exception is thrown.