Updated on 2022-03-13 GMT+08:00

Image and Video Encoding and Decoding

The Matrix module provides APIs for image processing and video encoding/decoding. You can perform image/video decoding on the device to reduce the data traffic between the host and device, the data transmission time, and the bandwidth pressure.

On the host, the HIAI_DMalloc API provided by the Matrix module is called to allocate memory on the device. The allocated memory is used as the input of image and video encoding and decoding. It is recommended that the start address of the memory for data storage be 128-byte aligned. On the device, after image or video pre-processing, the DVPP calls the HIAI_DVPP_DMalloc API provided by the Matrix module to allocate memory. The memory is used to store the image/video pre-processing output.