Choosing a Proper Output Format for VPC to Reduce Buffer Allocation
Background
The VPC function supports YUV400 output images (grayscale images). If grayscale images are input for model inference, you can use the VPC function directly, and AIPP CSC is not needed.
Principles
The VPC function can be used to output YUV400 images (grayscale images). In this way, the AIPP CSC function is not required, reducing the load of the AI Core unit and improving performance.
Instructions
The YUV400 format is supported. You can directly set the output format to YUV400 and set the memory size to a value greater than or equal to widthStride × heightStride to save memory.
For details about the sample code of VPC functions, see Typical Functions of VPC.
Parent topic: Using Media Data Processing V1 APIs