Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
124
11.6.5.4 MML_GDC_PE_API MM_ERROR mmlGdcPeBlendFunc ( MML_GDC_PE_CONTEXT
pectx, MML_GDC_PE_BF func_red_src, MML_GDC_PE_BF func_red_dst,
MML_GDC_PE_BF func_green_src, MML_GDC_PE_BF func_green_dst,
MML_GDC_PE_BF func_blue_src, MML_GDC_PE_BF func_blue_dst, MML_GDC_PE_BF
func_alpha_src, MML_GDC_PE_BF func_alpha_dst )
Set the blending parameter. If pectx is equal to NULL, mmlGdcPeBlendFunc is terminated without any operation.
The following table shows the possible blend functions
F stands for the selected blend function. See mmlGdcPeBlendMode for further usage.
Cs, Cd represent the incoming color or alpha component.
As, Ad represent the incoming alpha component.
Cc, Ac represent the constant color or alpha component defined by mmlGdcPeColor.
Note:
The incoming color components Cs, Cd, As and Ad can be the original image color or a result of a previous
operation. See MML_GDC_PE_SURF_ATTR_ALPHAMULTI and MML_GDC_PE_SURF_ATTR_COLORMULTI.
Blend Function
RGBA Components
MML_GDC_PE_BF_GL_ZERO
F = 0
MML_GDC_PE_BF_GL_ONE
F = 1
MML_GDC_PE_BF_GL_SRC_COLOR
F = Cs
MML_GDC_PE_BF_GL_ONE_MINUS_SRC_COLOR
F = 1 - Cs
MML_GDC_PE_BF_GL_SRC_ALPHA
F = As
MML_GDC_PE_BF_GL_ONE_MINUS_SRC_ALPHA
F = 1 - As
MML_GDC_PE_BF_GL_DST_ALPHA
F = Ad
MML_GDC_PE_BF_GL_ONE_MINUS_DST_ALPHA
F = 1 - Ad
MML_GDC_PE_BF_GL_DST_COLOR
F = Cd
MML_GDC_PE_BF_GL_ONE_MINUS_DST_COLOR
F = 1 - Cd
MML_GDC_PE_BF_GL_SRC_ALPHA_SATURATE
F = min(As, 1 - Ad)
MML_GDC_PE_BF_GL_CONSTANT_COLOR
F = Cc
MML_GDC_PE_BF_GL_ONE_MINUS_CONSTANT_COLOR
F = 1 - Cc
MML_GDC_PE_BF_GL_CONSTANT_ALPHA
F = Ac
MML_GDC_PE_BF_GL_ONE_MINUS_CONSTANT_ALPHA
F = 1 - Ac
Note:
If OpenVG blend mode (See mmlGdcPeBlendMode) is used, setting for this function is ignored in drawing image.