Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
108
11.5.5.10 MM_ERROR mmlGdcDispWinCreate ( MML_GDC_DISPLAY display,
MML_GDC_DISP_WINDOW_PROPERTIES
∗
properties, MML_GDC_DISP_WINDOW
∗
pWin)
Used to create a window. By default this function is blocked until previous operations of device display and device
window are completely executed. Use mmlGdcConfigSetAttribute(), set
MML_GDC_CONFIG_ATTR_DISPLAY_NOBLOCK to 1 to make it non-blocking.
Note:
This function will not initiate any hardware updates. Only the hardware resources are reserved for this window.
Updates are applied after the call of mmlGdcDispWinCommit.
It is suggested to create windows in following order:
Window with feature MML_GDC_DISP_FEATURE_DECODE.
Window with feature MML_GDC_DISP_FEATURE_MULTI_LAYER.
Window with feature MML_GDC_DISP_FEATURE_INDEX_COLOR or no feature.
Parameters
in
display
An MML_GDC_DISPLAY returned from a previous call to mmlGdcDispOpenDisplay,
identifying the display to create the window on.
in
properties
A pointer to an MML_GDC_DISP_WINDOW_PROPERTIES structure which specifies the
properties of the window to create.
out
pWin
On success will contain an MML_GDC_DISP_WINDOW.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_LAYER_ALREADY_USED
if the specified layer is already in use.
MML_ERR_GDC_DISP_INVALID_ARG
If an invalid argument was passed.
MML_ERR_GDC_DISP_FAILED
If internal error occurred.
MML_ERR_GDC_DISP_DEV_BUSY
If the writing to the device display or device window
is denied, because the previous commit, open or
destroy call is not completely executed (e.g. shadow
load request is pending). Call again later!
11.5.5.11 MM_ERROR mmlGdcDispWinDestroy ( MML_GDC_DISP_WINDOW win )
Used to destroy a window. By default this function is blocked until previous operations of device display and device
window are completely executed. Use mmlGdcConfigSetAttribute(), set
MML_GDC_CONFIG_ATTR_DISPLAY_NOBLOCK to 1 to make it non-blocking.
Parameters
in
win
An MML_GDC_DISP_WINDOW returned from a previous call to mmlGdcDispWinCreate.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If an invalid argument was passed.
MML_ERR_GDC_DISP_FAILED
If an unexpected error occurs.
MML_ERR_GDC_DISP_DEV_BUSY
If the writing to the device display or device window
is denied, because the previous commit, open or
create call is not completely executed (e.g. shadow
load request is pending). Call again later!