Searched refs:px_size (Results 1 – 6 of 6) sorted by relevance
58 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color() local59 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() local187 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() local246 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() local251 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()[all …]
94 uint8_t px_size = 0; in lv_img_cf_get_px_size() local99 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()
379 uint8_t px_size = lv_img_cf_get_px_size(cf); in lv_img_decoder_built_in_open() local380 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() local518 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() local564 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 …]
179 uint8_t px_size; member
68 uint8_t px_size = lv_img_cf_get_px_size(cf); in lv_snapshot_buf_size_needed() local69 return w * h * ((px_size + 7) >> 3); in lv_snapshot_buf_size_needed()
149 uint32_t px_size = lv_img_cf_get_px_size(canvas->dsc.header.cf) >> 3; in lv_canvas_copy_buf() local150 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()