Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
125
Parameters
in,out
pectx
Pixel Engine context (!=NULL).
in
func_red_src
Blend function of source red (default: MML_GDC_PE_BF_GL_SRC_ALPHA).
in
func_red_dst
Blend function of destination red (default:
MML_GDC_PE_BF_GL_ONE_MINUS_SRC_ALPHA).
in
func_green_src
Blend function of source green (default: MML_GDC_PE_BF_GL_SRC_ALPHA).
in
func_green_dst
Blend function of destination green (default:
MML_GDC_PE_BF_GL_ONE_MINUS_SRC_ALPHA).
in
func_blue_src
Blend function of source blue (default: MML_GDC_PE_BF_GL_SRC_ALPHA).
in
func_blue_dst
Blend function of destination blue (default:
MML_GDC_PE_BF_GL_ONE_MINUS_SRC_ALPHA).
in
func_alpha_src
Blend function of source alpha (default: MML_GDC_PE_BF_GL_ONE).
in
func_alpha_dst
Blend function of destination alpha (default:
MML_GDC_PE_BF_GL_ONE_MINUS_SRC_ALPHA).
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.5 MML_GDC_PE_API MM_ERROR mmlGdcPeBlendMode ( MML_GDC_PE_CONTEXT
pectx, MML_GDC_PE_BM mode_red, MML_GDC_PE_BM mode_green,
MML_GDC_PE_BM mode_blue, MML_GDC_PE_BM mode_alpha )
Set the blending parameter. If pectx is equal to NULL, mmlGdcPeBlendMode is terminated without any operation.
Note:
The output of a blend operation is always alpha pre-multiplied. For the detail blend function, refer to chapter 13.2 in
OpenVG specification Version 1.1 (March 27, 2007).
The following table is a brief description of the different blend modes.
Cs, Cd and C represents the incoming source, blend destination and result component: red, green, blue or
alpha.
As and Ad stands for incoming source and blend destination alpha component.
Fs and Fd stands for incoming source and blend destination blend function. See mmlGdcPeBlendFunc.1
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.