Home
last modified time | relevance | path

Searched hist:f11adcecbd5f2495be7b64bcd7537515c25c7dcd (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_tcon.cdiff f11adcecbd5f2495be7b64bcd7537515c25c7dcd Thu Sep 06 23:19:45 CDT 2018 Jonathan Liu <net147@gmail.com> drm/sun4i: tcon: Add dithering support for RGB565/RGB666 LCD panels

The hardware supports dithering on TCON channel 0 which is used for LCD
panels.

Dithering is a method of approximating a color from a mixture of other
colors when the required color isn't available. It reduces color
banding artifacts that can be observed when displaying gradients
(e.g. grayscale gradients). This may occur when the image that needs
to be displayed is 24-bit but the LCD panel is a lower bit depth and
does not perform dithering on its own.

Signed-off-by: Jonathan Liu <net147@gmail.com>
[wens@csie.org: check display_info.bpc first; handle LVDS and MIPI DSI]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180907041948.19913-4-wens@csie.org