Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
105
11.5.5.4 MM_ERROR mmlGdcDispDitherCtrl ( MML_GDC_DISPLAY display,
MML_GDC_DISP_DITHER_ENABLE enable, MML_GDC_DISP_DITHER_MODE mode,
MML_GDC_DISP_DITHER_RANGE range, MML_GDC_DISP_DITHER_FORMAT format )
Used to configure dithering on the display controller. The dither processing is active if MML_GDC_DISP_DITHON is
set. Dithering improves the display images, if the display has less color levels than the original picture. The number
of bits per pixel is lowered from the original value e.g. RGB888 to RGB666 with MML_GDC_DISP_DITHER106. The
value of lower bits are randomly round up or down based on location of the pixel in the frame
(MML_GDC_DISP_SPATDITH). Or, a random vector is generated to address the dither matrix
(MML_GDC_DISP_TEMPDITH).
Note:
This setting will not be active immediately. Use mmlGdcDispCommit to submit for processing.
Parameters
in
display
An MML_GDC_DISPLAY returned from a previous call to mmlGdcDispOpenDisplay.
in
enable
Enable Dithering:
MML_GDC_DISP_DITHOFF = Disable dithering.
MML_GDC_DISP_DITHON = Enable dithering.
in
mode
Select mode for dithering:
MML_GDC_DISP_TEMPDITH = Temporal dithering.
MML_GDC_DISP_SPATDITH = Spatial dithering.
in
range
Sets dither range:
MML_GDC_DISP_DITHRS11LOW = adds 0s to lower bits.
in
format
Select output format for dithering:
MML_GDC_DISP_DITHER108 = 10x10x10->8x8x8
MML_GDC_DISP_DITHER107 = 10x10x10->7x7x7
MML_GDC_DISP_DITHER106 = 10x10x10->6x6x6
MML_GDC_DISP_DITHER105 = 10x10x10->5x6x5
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If an invalid argument was passed.
11.5.5.5 MM_ERROR mmlGdcDispGetAttribute ( MML_GDC_DISPLAY display,
MML_GDC_DISP_ATTR pname, MM_U32
∗
pParam )
Gets the value for attribute pname. display specify for which display controller the attribute should be retrieved.
Parameters
in
display
An MML_GDC_DISPLAY returned from a previous call to mmlGdcDispOpenDisplay().
in
pname
Parameter name. See MML_GDC_DISP_ATTR for valid values.
out
pParam
Address where the read value of the attribute is stored.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If one of the parameters is invalid.