Lines Matching full:x

41 lv_color_t lv_img_buf_get_px_color(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t…  in lv_img_buf_get_px_color()  argument
49 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
57 uint8_t bit = x & 0x7; in lv_img_buf_get_px_color()
58 x = x >> 3; in lv_img_buf_get_px_color()
63 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
68 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_color()
69 x = x >> 2; in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
79 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_color()
80 x = x >> 1; in lv_img_buf_get_px_color()
85 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color()
90 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color()
100 lv_opa_t lv_img_buf_get_px_alpha(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y) in lv_img_buf_get_px_alpha() argument
105 uint32_t px = dsc->header.w * y * LV_IMG_PX_SIZE_ALPHA_BYTE + x * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_img_buf_get_px_alpha()
109 uint8_t bit = x & 0x7; in lv_img_buf_get_px_alpha()
110 x = x >> 3; in lv_img_buf_get_px_alpha()
115 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha()
122 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_alpha()
123 x = x >> 2; in lv_img_buf_get_px_alpha()
128 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha()
137 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_alpha()
138 x = x >> 1; in lv_img_buf_get_px_alpha()
143 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_alpha()
148 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_alpha()
155 void lv_img_buf_set_px_alpha(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_opa_t opa) in lv_img_buf_set_px_alpha() argument
161 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_alpha()
166 uint8_t bit = x & 0x7; in lv_img_buf_set_px_alpha()
167 x = x >> 3; in lv_img_buf_set_px_alpha()
172 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_set_px_alpha()
178 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_set_px_alpha()
179 x = x >> 2; in lv_img_buf_set_px_alpha()
184 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_set_px_alpha()
190 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_set_px_alpha()
191 x = x >> 1; in lv_img_buf_set_px_alpha()
196 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_set_px_alpha()
201 uint32_t px = dsc->header.w * y + x; in lv_img_buf_set_px_alpha()
206 void lv_img_buf_set_px_color(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t c) in lv_img_buf_set_px_color() argument
212 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
217 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
223 uint8_t bit = x & 0x7; in lv_img_buf_set_px_color()
224 x = x >> 3; in lv_img_buf_set_px_color()
229 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_set_px_color()
235 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_set_px_color()
236 x = x >> 2; in lv_img_buf_set_px_color()
241 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_set_px_color()
248 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_set_px_color()
249 x = x >> 1; in lv_img_buf_set_px_color()
254 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_set_px_color()
260 uint32_t px = dsc->header.w * y + x; in lv_img_buf_set_px_color()
374 res->x1 = LV_MIN4(p[0].x, p[1].x, p[2].x, p[3].x) - 2; in _lv_img_buf_get_transformed_area()
375 res->x2 = LV_MAX4(p[0].x, p[1].x, p[2].x, p[3].x) + 2; in _lv_img_buf_get_transformed_area()