Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
109
11.5.5.12 MM_ERROR mmlGdcDispWinGetAttribute ( MML_GDC_DISP_WINDOW win,
MML_GDC_DISP_WIN_ATTR pname, MM_U32
∗
pParam )
Gets the value for attribute pname. win specify for which window the attribute should be retrieved.
Parameters
in
win
An MML_GDC_DISP_WINDOW returned from a previous call to mmlGdcDispWinCreate.
in
pname
Parameter name. See MML_GDC_DISP_WIN_ATTR for valid values.
in
pParam
Address where the read value of the attribute is stored.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If one of the parameters is invalid.
MM_ERROR mmlGdcDispWinSetAttribute(MML_GDC_DISP_WINDOW win, MML_GDC_DISP_WIN_ATTR pname,
MM_U32 param)
Sets the attribute pname to param. win specify for which window the attribute should be set.
Note:
Any attribute settings of the window does not becomes active immediately with the related
mmlGdcDispWinSetAttribute call, but will be queued together with other settings of this window. Use
mmlGdcDispWinCommit to submit these settings for processing.
Parameters
in
win
An MML_GDC_DISP_WINDOW returned from a previous call to mmlGdcDispWinCreate.
in
pname
Parameter name. See MML_GDC_DISP_WIN_ATTR for valid values.
in
param
Value to set for parameter pname.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If one of the parameters is invalid.
11.5.5.13 MM_ERROR mmlGdcDispWinSetBlendMode ( MML_GDC_DISP_WINDOW win, MM_U32
blend_mode )
Sets blending mode.
Csrc: Source color
Asrc: Source alpha
Agbl: Global alpha
Aext: External alpha
Cdst: (Blend) destination color (alpha value of destination is not used)
Ctrans: Transparency color
Cout: Output color from this layer blend unit
As = 1;
if
(((mode & MML_GDC_DISP_BLEND_TRANSPARENCY) == MML_GDC_DISP_BLEND_TRANSPARENCY) &&
(Ctrans == Csrc))
As = 0;
if
((mode & MML_GDC_DISP_BLEND_GLOBAL_ALPHA) == MML_GDC_DISP_BLEND_GLOBAL_ALPHA)