Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
183
utSurfSetPixel(surf, x, y, red, green, blue, alpha);
}
}
}
11.19.2 Macro Definition Documentation
11.19.2.1 #define UTIL_ERR_OUT_OF_MEMORY MM_ERRCODE(0x31000001)
Out of memory
11.19.2.2 #define UTIL_SUCCESS( rc, execute )
Value:
do
\
{ \
if
((rc) == MML_OK) \
{ \
rc = (execute); \
if
(rc != MML_OK)
printf
("Error %x in %s (%s line %d)\n", (int)rc, FUNCTION, FILE, LINE);\
} \
}
while
(0)
This macro avoids execution if the previous instruction failed.
11.19.3 Function Documentation
11.19.3.1 MM_ERROR utSurfCreateBuffer ( MML_GDC_SURFACE surf, MM_U32 w, MM_U32 h,
MML_GDC_SURF_FORMAT eFormat )
Create a buffer with the given dimension and color format and set the related surface object properties. Please
note the surface object must be created before.
Parameters
in
surf
The surface object
in
w
Width of the surface
in
h
Height of the surface
in
eFormat
The requested color format
Return values
MML_OK
on success, otherwise the related error code.