Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
132
11.6.5.16 MML_GDC_PE_API MM_ERROR mmlGdcPeSelectArea ( MML_GDC_PE_CONTEXT
pectx, MM_U32 target )
mmlGdcPeSelectArea defines which surfaces are used to calculate the processing area. A default mmlGdcPeBlt
function processes rectangle in store surface defined by the active area (see mmlGdcPeActiveArea) of the src
surface and the given matrix transformation defined by mmlGdcPeSetMatrix. mmlGdcPeSelectArea changed it to
active area of any other bounded surfaces or a combination of surfaces. Combination can be defined like this:
mmlGdcPeSelectArea(pectx, MML_GDC_PE_SRC|GDC_PE_DST); If more than one surface defines to target, the
bounding box of all active areas will be used.
Parameters
in,out
pectx
Pixel Engine context (!=NULL)
in
target
[in] Selecting target. It is a single or OR combined value of:MML_GDC_PE_SRC (default)
MML_GDC_PE_DST MML_GDC_PE_STORE MML_GDC_PE_MASK
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.17 MML_GDC_PE_API MM_ERROR mmlGdcPeSetMatrix ( MML_GDC_PE_CONTEXT
pectx, MM_U32 target, MML_GDC_PE_GEO_MATRIX_FORMAT format, const MM_FLOAT
∗
fMatrix )
mmlGdcPeSetMatrix is setting function of transformation matrix for scaling, rotation, translation and flipping for all
source surfaces: MML_GDC_PE_SRC, MML_GDC_PE_DST and MML_GDC_PE_MASK. The formula for the
transformation based on this matrix is as follows:
xout = fMatrix[0] * xin + fMatrix[2] * yin + fMatrix[4]
yout = fMatrix[1] * xin + fMatrix[3] * yin + fMatrix[5]
If fMatrix = NULL an identity matrix (no transformation) will be set. If pectx is equal to NULL mmlGdcPeSetMatrix is
terminated without any operation.
Parameters
in,out
pectx
Pixel Engine context (!=NULL).
in
target
Setting target. It is a single or OR combined value of:MML_GDC_PE_SRC
MML_GDC_PE_DST MML_GDC_PE_MASK
in
format
Defines the matrix format (see above).
in
fMatrix
Transformation matrix (see above).
Return values
MML_OK
On success. Otherwise the related error code.