decode
Function Usage
Video decoding API of the VideoDecoder class.
Prototype
1 | decode(inputData: buffer, frameId: int) |
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
inputData |
Binary data type |
Binary data of video frames |
frameId |
int |
Video frame ID before decoding |
Response Parameters
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 is thrown.
Parent topic: VideoDecoder