Graphics Driver Manual for 2D core of S6E2D devices Download

Transcript
A P P L I C A T I O N
N O T E
Parameters
in
hdlmem
Heap to get information for.
out
size
Pointer to variable to receive the information.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If hdlmem is NULL.
11.16.4.5
MM_ERROR utMmanGetSize ( MML_MMAN_HEAP_HANDLE
hdlmem, MM_U32 ∗ size )
Get the size of the heap.
Note:
−
Typically, an application would not use this function, but call mmlGdcVideoGetSize()
Parameters
in
hdlmem
Heap to get information for.
out
size
Pointer to variable to receive the information.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If hdlmem is NULL.
11.16.4.6
MM_ERROR utMmanHeapAlloc
( MML_MMAN_HEAP_HANDLE hdlmem, MM_U32 size,
MM_U32 alignment, MM_ADDR ∗ addr )
Allocate a block of memory from the specified heap.
Note:
−
Typically, an application would not use this function (see utMmanCreateHeap).
Parameters
in
hdlmem
Heap to perform the allocation from.
in
size
Number of bytes to allocate.
in
alignment
Alignment to use for the allocation.
out
addr
Pointer to the newly allocated memory.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If a parameter is invalid.
MML_ERR_MMAN_NO_MEMORY
If not enough system memory for internal data.
MML_ERR_MMAN_NO_VRAM
If no contiguous block of size bytes with alignment is
available.
176
CONFIDENTIAL
S6E2DH_AN709-00022-1v0-E, September 11, 2015