hi_mpi_dvpp_malloc

Description

Allocates device memory. The requested allocation must meet the media data processing requirements (for example,128-byte alignment of the start address).

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

Restrictions

Prototype

hi_s32 hi_mpi_dvpp_malloc(hi_u32 dev_id, hi_void **dev_ptr, hi_u64 size)

Parameters

Parameter

Input/Output

Description

dev_id

Input

Device ID. This parameter is reserved and invalid.

In standard form, when this API is called on the host, DVPP allocates memory on the device set by the call to the AscendCL aclrtSetDevice API.

dev_ptr

Output

Pointer to the pointer to the allocated device memory.

size

Input

Requested allocation size, in bytes.

Returns

See Also

For the API call sequence, see Media Data Processing V2.