Ascend 310 acldvpp API |
Ascend 310P hi_mpi API |
What You Need to Do |
|---|---|---|
Call acldvppJpegPredictEncSize to predict the size of the output buffer required for JPEGD, and then call acldvppMalloc to allocate the output buffer. |
The output buffer can be managed by the system. In this mode, you do not need to allocate the output buffer by yourself. The output buffer can also be managed by the user. In this mode, you can call hi_mpi_venc_get_jpege_predicted_size to predict the size of the output buffer required for JPEGE, and then call hi_mpi_dvpp_malloc to allocate the buffer. |
Modify your code to allocate memory required by the media data processing function using hi_mpi_dvpp_malloc. |
Free memory: acldvppFree |
Free memory: hi_mpi_dvpp_free |
Modify your code to free memory by using the hi_mpi_dvpp_free API. |