MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _lcd_format_get

Function _lcd_format_get

bsp/allwinner/libraries/drivers/drv_lcd.c:191–202  ·  view source on GitHub ↗

pixel format, only 565 (2 bytes) or 666 (4 bytes) are supported */

Source from the content-addressed store, hash-verified

189
190/* pixel format, only 565 (2 bytes) or 666 (4 bytes) are supported */
191static inline int _lcd_format_get(rt_uint8_t pixel_format)
192{
193 switch (pixel_format)
194 {
195 case RTGRAPHIC_PIXEL_FORMAT_RGB565:
196 return DISP_FORMAT_RGB_565;
197 case RTGRAPHIC_PIXEL_FORMAT_ARGB888:
198 return DISP_FORMAT_ARGB_8888;
199 default:
200 return -1;
201 }
202}
203
204static int _lcd_drv_init(lcd_device_t lcd_drv)
205{

Callers 1

_lcd_layer_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected