Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
130
11.6.5.11 MML_GDC_PE_API MM_ERROR mmlGdcPeFinish ( void )
This API is used to wait on blitting and drawing completion for synchronization.
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.12 MML_GDC_PE_API MM_ERROR mmlGdcPeFlush ( void )
Force execution of PixEng commands in finite time.
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.13 MML_GDC_PE_API MM_ERROR mmlGdcPeGetDrawBox ( MML_GDC_PE_CONTEXT
pectx, MM_U32
∗
x, MM_U32
∗
y, MM_U32
∗
w, MM_U32
∗
h, MM_U32 reset )
mmlGdcPeGetDrawBox is a function to get the last draw box. Each Blt function calculates a store surface, draw
rectangle basing on the mmlGdcPeSelectArea settings and the related surface properties (active area, matrix). The
bounding box of this rectangle and the previously stored draw box will be stored as the new draw box. The draw box
will be cleared if the reset parameter of mmlGdcPeGetDrawBox is different from 0. An application can use the draw
box to get the minimal rectangle of a (frame) buffer that must be restored. The function returns an error if no blit
operation was executed since the last reset.
Note:
The draw box calculation based only on bounding box calculations for SRC, DST and MASK. Possible STORE
settings does not influence the calculation.
The draw box is not influenced by Fill operations.
Parameters
in,out
pectx
Pixel Engine context (!=NULL).
in,out
x
Pointer to get horizontal start point.
in,out
y
Pointer to get vertical start point (zero point depends on
MML_GDC_PE_ATTR_ZERO_POINT).
in,out
w
Pointer to get width.
in,out
h
Pointer to get height.
in
reset
Reset flag (see above).
Return values
MML_OK
On success. Otherwise the related error code.
11.6.5.14 MML_GDC_PE_API MM_ERROR mmlGdcPeResetContext ( MML_GDC_PE_CONTEXT
pectx )
Reset all parameters of the context object.
Parameters
in,out
pectx
Pixel Engine context.
Return values
MML_OK
On success. Otherwise the related error code.