Function: dvpp_malloc
|
C Prototype |
aclError acldvppMalloc(void **devPtr, size_t size) |
|---|---|
|
Python Function |
dev_ptr, ret = acl.media.dvpp_malloc(size) |
|
Function Usage |
Allocates device memory for media processing. The allocated huge memory page meets the data processing requirements (for example, the start address is 128-byte aligned). |
|
Input Description |
size: int, size of the allocated memory, in bytes. |
|
Return Value |
dev_ptr: int, pointer address of the allocated device memory.
ret: int, error code.
|
|
Restrictions |
|
|
Reference |
For details about the API call sequence and example, see Media Data Processing V1. |