Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
111
Note:
The matrix settings of the window does not becomes active immediately with the related mmlGdcDispWinSetMatrix
call, but will be queued together with other settings of this window. Use mmlGdcDispWinCommit to submit these
settings for processing.
The allowed matrix properties differ depending on the window features. All windows support a panning matrix
(surface move inside the layer) except if the feature MML_GDC_DISP_FEATURE_DECODE was requested.
�
1 0
𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥
0 1
𝑦𝑦𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥�
A mirror matrix can be used for windows without the above features and
MML_GDC_DISP_FEATURE_MULTI_LAYER.
�−
1
0
𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥
0
−
1
𝑦𝑦𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥𝑥�
Down scaling is not supported by display.
Not all of rotation angles are supported by display. A rotation must be 0, 90, 180 or 270 degrees. The extern alpha
buffer cannot be scaled.
The buffer larger than window will be cut to fit the window size. The YUV buffer cannot be cut to odd pixel width.
Parameters
in
win
An MML_GDC_DISP_WINDOW returned from a previous call to mmlGdcDispWinCreate.
in
target
The target where the matrix is set to, the related parameter must be:
MML_GDC_DISP_BUFF_TARGET_COLOR_BUFF = Color buffer as target.
in
matrix
Transformation 3x2 matrix for scaling, rotation and flip.
Return values
MML_OK
On success. Otherwise the related error code.
11.5.5.15 MM_ERROR mmlGdcDispWinSetSurface ( MML_GDC_DISP_WINDOW win, MM_U32
target, MML_GDC_SURFACE surf )
Show the surface content on a previously opened window.
Note:
The function will not be executed immediately but will be queued together with other modifications of this window.
Use mmlGdcDispWinCommit to submit for processing.
If the surface describes an indexed color format, the driver will apply this color table to the hardware only if the
window was created with the feature MML_GDC_DISP_FEATURE_INDEX_COLOR.
Parameters
in
win
An MML_GDC_DISP_WINDOW returned from a previous call to mmlGdcDispWinCreate.
in
target
The target where the surface is set to, must be:
MML_GDC_DISP_BUFF_TARGET_COLOR_BUFF = Color buffer as target.
in
surf
The MML_GDC_SURFACE object to show.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If an invalid argument was passed.