Home
last modified time | relevance | path

Searched refs:px_size (Results 1 – 6 of 6) sorted by relevance

/lvgl-3.4.0/src/draw/
Dlv_img_buf.c58 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color() local
59 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
186 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_set_px_alpha() local
187 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_alpha()
188 buf_u8[px + px_size - 1] = opa; in lv_img_buf_set_px_alpha()
245 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_set_px_color() local
246 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
247 lv_memcpy_small(&buf_u8[px], &c, px_size); in lv_img_buf_set_px_color()
250 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_set_px_color() local
251 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
[all …]
Dlv_draw_img.c94 uint8_t px_size = 0; in lv_img_cf_get_px_size() local
99 px_size = 0; in lv_img_cf_get_px_size()
103 px_size = LV_COLOR_SIZE; in lv_img_cf_get_px_size()
106 px_size = LV_IMG_PX_SIZE_ALPHA_BYTE << 3; in lv_img_cf_get_px_size()
110 px_size = 1; in lv_img_cf_get_px_size()
114 px_size = 2; in lv_img_cf_get_px_size()
118 px_size = 4; in lv_img_cf_get_px_size()
122 px_size = 8; in lv_img_cf_get_px_size()
125 px_size = 0; in lv_img_cf_get_px_size()
129 return px_size; in lv_img_cf_get_px_size()
Dlv_img_decoder.c379 uint8_t px_size = lv_img_cf_get_px_size(cf); in lv_img_decoder_built_in_open() local
380 uint32_t palette_size = 1 << px_size; in lv_img_decoder_built_in_open()
516 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf); in lv_img_decoder_built_in_line_true_color() local
518 uint32_t pos = ((y * dsc->header.w + x) * px_size) >> 3; in lv_img_decoder_built_in_line_true_color()
525 uint32_t btr = len * (px_size >> 3); in lv_img_decoder_built_in_line_true_color()
563 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf); in lv_img_decoder_built_in_line_alpha() local
564 uint16_t mask = (1 << px_size) - 1; /*E.g. px_size = 2; mask = 0x03*/ in lv_img_decoder_built_in_line_alpha()
617 pos -= px_size; in lv_img_decoder_built_in_line_alpha()
619 pos = 8 - px_size; in lv_img_decoder_built_in_line_alpha()
630 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf); in lv_img_decoder_built_in_line_indexed() local
[all …]
Dlv_img_buf.h179 uint8_t px_size; member
/lvgl-3.4.0/src/extra/others/snapshot/
Dlv_snapshot.c68 uint8_t px_size = lv_img_cf_get_px_size(cf); in lv_snapshot_buf_size_needed() local
69 return w * h * ((px_size + 7) >> 3); in lv_snapshot_buf_size_needed()
/lvgl-3.4.0/src/widgets/
Dlv_canvas.c149 uint32_t px_size = lv_img_cf_get_px_size(canvas->dsc.header.cf) >> 3; in lv_canvas_copy_buf() local
150 uint32_t px = canvas->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
154 lv_memcpy((void *)&canvas->dsc.data[px], to_copy8, w * px_size); in lv_canvas_copy_buf()
155 px += canvas->dsc.header.w * px_size; in lv_canvas_copy_buf()
156 to_copy8 += w * px_size; in lv_canvas_copy_buf()