Home
last modified time | relevance | path

Searched refs:c16 (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/src/widgets/canvas/
Dlv_canvas.c226 lv_color16_t * c16 = (lv_color16_t *) px; in lv_canvas_get_px() local
227 ret.red = (c16[x].red * 2106) >> 8; /*To make it rounded*/ in lv_canvas_get_px()
228 ret.green = (c16[x].green * 1037) >> 8; in lv_canvas_get_px()
229 ret.blue = (c16[x].blue * 2106) >> 8; in lv_canvas_get_px()
308 uint16_t c16 = lv_color_to_u16(color); in lv_canvas_fill_bg() local
312 buf16[x] = c16; in lv_canvas_fill_bg()
/lvgl-latest/tests/unity/
Dunity_support.c392 const lv_color16_t * c16 = (const lv_color16_t *)&buf_in[x * 2]; in buf_to_xrgb8888() local
395 buf_out[x * 4 + 2] = (c16->blue * 2106) >> 8; /*To make it rounded*/ in buf_to_xrgb8888()
396 buf_out[x * 4 + 1] = (c16->green * 1037) >> 8; in buf_to_xrgb8888()
397 buf_out[x * 4 + 0] = (c16->red * 2106) >> 8; in buf_to_xrgb8888()