Class Description
It is used for video decoding by providing related open APIs.
If the pre-allocated memory used for decoding is transferred by the user, the VideoDecoder class needs to be destructed, and the pre-allocated memory needs to be destroyed. During this process, it is recommended that a smart pointer be used to manage VideoDecoder because the reset method of the smart pointer can destruct the class in advance.
For details, see Video Decoding.
Supported Models
Atlas inference product
Atlas 800I A2 inference product
The VideoDecoder class involves resource allocation on the device, which conflicts with the scope of MxDeInit. Therefore, the scope of the VideoDecoder class must be smaller than the scope of MxDeInit.