Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
133
11.6.5.18 MML_GDC_PE_API MM_ERROR mmlGdcPeSurfAttribute ( MML_GDC_PE_CONTEXT
pectx, MM_U32 target, MML_GDC_PE_SURF_ATTR pname, MM_U32 param )
Set an attribute for the surface that is bound to the specified target. If pectx is equal to NULL,
mmlGdcPeSurfAttribute is terminated without any operation.
Note:
The MASK surface does not support color multiplication. The function reports an error if a related parameter is set.
Parameters
in,out
pectx
Pixel Engine context (!=NULL).
in
target
Setting target
MML_GDC_PE_SRC (all attributes).
MML_GDC_PE_DST (all attributes).
MML_GDC_PE_MASK (all attributes).
or MML_GDC_PE_STORE (attribute MML_GDC_PE_SURF_ATTR_USE_CLIPPING only).
in
pname
State name for setting. Can be one of MML_GDC_PE_SURF_ATTR.
in
param
Parameter for target. See MML_GDC_PE_SURF_ATTR description.
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.19 MML_GDC_PE_API MM_ERROR mmlGdcPeSurfColor ( MML_GDC_PE_CONTEXT pectx,
MM_U32 target, MM_U08 red, MM_U08 green, MM_U08 blue, MM_U08 alpha )
Set the constant color for the specified target. Indicated color is used for following usage. (See also
mmlGdcPeSurfAttribute.)
Constant color in color multiplication.
Constant color in tiling.
Constant color used for the generation of a color component in format conversion (e.g., format conversion from
RGB565 to RGBA8888 if 0x1234_5678 is used as constant color 0xFFFF (RGB565) -> 0xFFFF_FF78
(RGBA8888)).
If pectx is equal to NULL, mmlGdcPeSurfColor is terminated without any operation.
Parameters
in,out
pectx
Pixel Engine context (!=NULL).
in
target
Setting target
MML_GDC_PE_SRC
MML_GDC_PE_DST
MML_GDC_PE_MASK
in
red
Red component of color (0 - 255, default 255).
in
green
Green component of color (0 - 255, default 255).
in
blue
Blue component of color (0 - 255, default 255).
in
alpha
Alpha component of color (0 - 255, default 255).
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.20 MML_GDC_PE_API MM_ERROR mmlGdcPeSync ( MML_GDC_SYNC sync )