VideoDecoder(pyVdecConfig, pyVdecCallBacker, deviceId, channelId)
Function Usage
Constructor of the VideoDecoder class.
If the memory is insufficient, pyVdecCallBacker does not register the callback, or the processor cannot be identified, the "std::runtime_error: exception occurs.
On the Atlas 200/300/500 inference product, if the configured width and height of vDecodeConfig are inconsistent with the actual width and height, a resizing operation is performed.
Input Parameter Description
Parameter |
Type |
Description |
|---|---|---|
pyVdecConfig |
VideoDecodeConfig |
Parameter for video decoding |
pyVdecCallBacker |
VdecCallBacker |
VdecCallBacker that binds callbacks. (A call must be registered. Otherwise, VideoDecoder throws an exception.) |
deviceId |
int |
Processor where the video decoder is deployed. The default ID is 0. Value range: [0, Number of identified processors - 1]. |
channelId |
int |
Video stream index of the video decoder
|
Return Parameter Description
VideoDecoder objects