Input and Output Memory
For details about the HIAI_DMalloc/HIAI_DFree and HIAI_DVPP_DMalloc/HIAI_DVPP_DFree APIs as well as the graph configuration file (receive_memory_without_dvpp parameter), see Matrix API Reference.
Module |
Input Memory |
Output Memory |
---|---|---|
VPC |
Use the APIs provided by Matrix to allocate or free memory.
|
Use the APIs provided by Matrix to allocate or free memory.
|
JPEGE and JPEGD |
Use the APIs provided by Matrix to allocate or free memory.
|
|
PNGD |
Use the APIs provided by Matrix to allocate or free memory.
|
If the output memory is specified by the user, it should also be freed by the user. Use the APIs provided by Matrix to allocate or free memory.
|
VDEC and VENC |
There is no requirement on the memory. Native APIs such as malloc/free and new/delete can be called to allocate or free the memory. The HIAI_DMalloc/HIAI_DFree and HIAI_DVPP_DMalloc/HIAI_DVPP_DFree APIs provided by Matrix can also be called to allocate or free the memory. The receive_memory_without_dvpp parameter provided by Matrix can be used to control whether the memory is used by DVPP. |
The HFBC data output by the VDEC is directly used as the input of the VPC. The VENC output memory is internally managed by the DVPP. You can copy the data in the output memory when using the VENC. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot