Secondary Memory Allocation
If secondary memory allocation is required after memory management APIs are called, comply with the restrictions of each API to prevent memory overwriting.
Memory can be allocated in either of the following ways:
- Allocate memory independently as required without split or second allocation.
- Allocate a memory pool in advance and then allocate a memory block from the pool during use as required.
Call the following APIs for memory re-allocation. Pay attention to the restrictions on the memory address and memory size of each API. Otherwise, memory overwriting may occur.
For details about memory management, see Precautions for Memory Usage.
In the computer vision field, the media data processing function is often used. Therefore, multiple memory allocation APIs are involved. The memory start address involves 64-byte or 128-byte alignment. To facilitate unified management, you are advised to select a large alignment value, for example, 128-byte alignment.
The following describes the typical scenarios where the memory is managed by the user during media data processing. DVPP Image/Video Processing (V1) details the available media data processing features.
Figure 1 VDEC scenario
Figure 2 JPEGD scenario
Parent topic: Additional Features