Using Frame Skipping of VDEC to Reduce Buffer Allocation

Background

In the video decoding+model inference scenario, if the number of video frames is large and not every frame needs to be inferred, you are advised to call aclvdecSendSkippedFrame to decode the frames that do not need to be inferred. In this case, the decoding result is not output.

Principles

Video decoding requires continuous data and needs to output YUV data. Therefore, after each frame of data is decoded, VDEC needs to decompress and resize data and convert its format by using VPC.

If you do not want to obtain the decoding result of a frame, you can call aclvdecSendSkippedFrame. In this case, you do not need to allocate the output buffer, and the VDEC does not perform decompression, scaling, and format conversion by using the VPC module. This reduces buffer allocation and VPC workload to improve performance.

Instructions for Use

For details, see the description of aclvdecSendSkippedFrame.