Download Graphics Driver Manual for 2D core of S6E2D devices

Transcript
A P P L I C A T I O N
11.16.4.7
N O T E
MM_ERROR utMmanHeapFree
( MML_MMAN_HEAP_HANDLE hdlmem, void ∗ addr )
Free a block of memory previously allocated by utMmanHeapAlloc.
Note:
−
Typically, an application would not use this function (see utMmanCreateHeap).
Parameters
in
hdlmem
Heap to perform the free from.
in
addr
Pointer to the memory to free.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If hdlmem is NULL.
MML_ERR_MMAN_INVALID_MEMORY
If addr does not point to a currently allocated memory
block.
11.16.4.8
MM_ERROR utMmanReset (
void
)
Reset build in memory heap(s).
This function must be called before mmlGdcVideoAlloc(), etc. are called.
Return values
MML_OK
on success
MML_ERR_MMAN_NO_MEMORY
if not enough system memory for internal data.
11.17 Utility functions for matrix calculations
Macros
− #define MML_GDC_2D_MATRIX_API extern
Typedefs
−
−
−
−
−
typedef MM_FLOAT Mat3x2 [6]
typedef MM_FLOAT Mat3x3 [9]
typedef MM_FLOAT Mat4x4 [16]
typedef MM_FLOAT Mat4x3 [12]
typedef MM_FLOAT Mat5x4 [20]
Matrix functions for geometric operations
− MML_GDC_2D_MATRIX_API void utMat3x2Copy (Mat3x2 dst, const Mat3x2 src)
− MML_GDC_2D_MATRIX_API void utMat3x2Multiply (Mat3x2 dst, const Mat3x2 src1, const Mat3x2
src2)
− MML_GDC_2D_MATRIX_API void utMat3x2LoadIdentity (Mat3x2 m)
− MML_GDC_2D_MATRIX_API void utMat3x2Translate (Mat3x2 m, MM_FLOAT x, MM_FLOAT y)
− MML_GDC_2D_MATRIX_API void utMat3x2TranslatePre (Mat3x2 m, MM_FLOAT x, MM_FLOAT y)
September 11, 2015, S6E2DH_AN709-00022-1v0-E
CONFIDENTIAL
177