Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
184
11.19.3.2 void utSurfDeleteBuffer ( MML_GDC_SURFACE surf )
Delete the surface buffers.
Parameters
in
surf
The surface object
11.19.3.3 MM_ERROR utSurfGetPixel ( MML_GDC_SURFACE src, MM_U32 x, MM_U32 y, MM_U08
∗
r, MM_U08
∗
g, MM_U08
∗
b, MM_U08
∗
a )
Get the r, g, b, a pixel data of a surface at position x, y. The pixel with the coordinates 0, 0 is the upper, left pixel
analoge to the the memory organisation of the memory buffer. Please note that this is different to the
glReadPixels specification. Please note not all possible surface formates are supported.
Parameters
in
src
The surface object
in
x
x positon of the pixel
in
y
y positon of the pixel
in
r
Pointer to get the red value
in
g
Pointer to get the green value
in
b
Pointer to get the blue value
in
a
Pointer to get the alpha value
Return values
MML_OK
on success, otherwise the related error code.
11.19.3.4 MM_S32 utSurfHeight ( MML_GDC_SURFACE surf )
Return the height of a given surface object
Parameters
in
surf
The surface object
Return values
Height
of the surface.
11.19.3.5 MM_ERROR utSurfLoadBitmap ( MML_GDC_SURFACE surface, const void
∗
pImage,
MM_BOOL bCopyToVRAM )
Read a bitmap structure, set the related surface attributes, allocate the required memory for pixel and CLUT
buffer and copy the related data. Please note the surface object must be created before.
Parameters
in
surface
The surface object
in
pImage
pointer to the image
in
bCopyToVRAM
MM_TRUE if the bitmap and color look up table memory should be copied into VRAM.
Return values
MML_OK
on success, otherwise the related error code.