Lines Matching refs:buf_u8

44     uint8_t * buf_u8 = (uint8_t *)dsc->data;  in lv_img_buf_get_px_color()  local
50 lv_memcpy_small(&p_color, &buf_u8[px], sizeof(lv_color_t)); in lv_img_buf_get_px_color()
56 buf_u8 += 4 * 2; in lv_img_buf_get_px_color()
64 p_color.full = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_color()
67 buf_u8 += 4 * 4; in lv_img_buf_get_px_color()
75 p_color.full = (buf_u8[px] & (3 << (6 - bit))) >> (6 - bit); in lv_img_buf_get_px_color()
78 buf_u8 += 4 * 16; in lv_img_buf_get_px_color()
86 p_color.full = (buf_u8[px] & (0xF << (4 - bit))) >> (4 - bit); in lv_img_buf_get_px_color()
89 buf_u8 += 4 * 256; in lv_img_buf_get_px_color()
91 p_color.full = buf_u8[px]; in lv_img_buf_get_px_color()
102 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_alpha() local
106 return buf_u8[px + LV_IMG_PX_SIZE_ALPHA_BYTE - 1]; in lv_img_buf_get_px_alpha()
116 uint8_t px_opa = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_alpha()
129 uint8_t px_opa = (buf_u8[px] & (3 << (6 - bit))) >> (6 - bit); in lv_img_buf_get_px_alpha()
144 uint8_t px_opa = (buf_u8[px] & (0xF << (4 - bit))) >> (4 - bit); in lv_img_buf_get_px_alpha()
149 return buf_u8[px]; in lv_img_buf_get_px_alpha()
157 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_set_px_alpha() local
162 buf_u8[px + px_size - 1] = opa; in lv_img_buf_set_px_alpha()
173 buf_u8[px] = buf_u8[px] & ~(1 << (7 - bit)); in lv_img_buf_set_px_alpha()
174 buf_u8[px] = buf_u8[px] | ((opa & 0x1) << (7 - bit)); in lv_img_buf_set_px_alpha()
185 buf_u8[px] = buf_u8[px] & ~(3 << (6 - bit)); in lv_img_buf_set_px_alpha()
186 buf_u8[px] = buf_u8[px] | ((opa & 0x3) << (6 - bit)); in lv_img_buf_set_px_alpha()
197 buf_u8[px] = buf_u8[px] & ~(0xF << (4 - bit)); in lv_img_buf_set_px_alpha()
198 buf_u8[px] = buf_u8[px] | ((opa & 0xF) << (4 - bit)); in lv_img_buf_set_px_alpha()
202 buf_u8[px] = opa; in lv_img_buf_set_px_alpha()
208 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_set_px_color() local
213 lv_memcpy_small(&buf_u8[px], &c, px_size); in lv_img_buf_set_px_color()
218 lv_memcpy_small(&buf_u8[px], &c, px_size - 1); /*-1 to not overwrite the alpha value*/ in lv_img_buf_set_px_color()
221 buf_u8 += sizeof(lv_color32_t) * 2; /*Skip the palette*/ in lv_img_buf_set_px_color()
230 buf_u8[px] = buf_u8[px] & ~(1 << (7 - bit)); in lv_img_buf_set_px_color()
231 buf_u8[px] = buf_u8[px] | ((c.full & 0x1) << (7 - bit)); in lv_img_buf_set_px_color()
234 buf_u8 += sizeof(lv_color32_t) * 4; /*Skip the palette*/ in lv_img_buf_set_px_color()
243 buf_u8[px] = buf_u8[px] & ~(3 << (6 - bit)); in lv_img_buf_set_px_color()
244 buf_u8[px] = buf_u8[px] | ((c.full & 0x3) << (6 - bit)); in lv_img_buf_set_px_color()
247 buf_u8 += sizeof(lv_color32_t) * 16; /*Skip the palette*/ in lv_img_buf_set_px_color()
255 buf_u8[px] = buf_u8[px] & ~(0xF << (4 - bit)); in lv_img_buf_set_px_color()
256 buf_u8[px] = buf_u8[px] | ((c.full & 0xF) << (4 - bit)); in lv_img_buf_set_px_color()
259 buf_u8 += sizeof(lv_color32_t) * 256; /*Skip the palette*/ in lv_img_buf_set_px_color()
261 buf_u8[px] = c.full; in lv_img_buf_set_px_color()