Lines Matching refs:x

51 lv_color_t lv_img_buf_get_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t color)  in lv_img_buf_get_px_color()  argument
59 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
67 uint8_t bit = x & 0x7; in lv_img_buf_get_px_color()
68 x = x >> 3; in lv_img_buf_get_px_color()
73 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
78 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_color()
79 x = x >> 2; in lv_img_buf_get_px_color()
84 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
89 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_color()
90 x = x >> 1; in lv_img_buf_get_px_color()
95 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color()
100 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color()
118 lv_opa_t lv_img_buf_get_px_alpha(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y) in lv_img_buf_get_px_alpha() argument
123 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()
127 uint8_t bit = x & 0x7; in lv_img_buf_get_px_alpha()
128 x = x >> 3; in lv_img_buf_get_px_alpha()
133 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha()
140 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_alpha()
141 x = x >> 2; in lv_img_buf_get_px_alpha()
146 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha()
155 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_alpha()
156 x = x >> 1; in lv_img_buf_get_px_alpha()
161 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_alpha()
166 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_alpha()
181 void lv_img_buf_set_px_alpha(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
187 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_alpha()
192 uint8_t bit = x & 0x7; in lv_img_buf_set_px_alpha()
193 x = x >> 3; in lv_img_buf_set_px_alpha()
198 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_set_px_alpha()
204 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_set_px_alpha()
205 x = x >> 2; in lv_img_buf_set_px_alpha()
210 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_set_px_alpha()
216 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_set_px_alpha()
217 x = x >> 1; in lv_img_buf_set_px_alpha()
222 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_set_px_alpha()
227 uint32_t px = dsc->header.w * y + x; in lv_img_buf_set_px_alpha()
240 void lv_img_buf_set_px_color(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
246 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
251 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
257 uint8_t bit = x & 0x7; in lv_img_buf_set_px_color()
258 x = x >> 3; in lv_img_buf_set_px_color()
263 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_set_px_color()
269 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_set_px_color()
270 x = x >> 2; in lv_img_buf_set_px_color()
275 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_set_px_color()
282 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_set_px_color()
283 x = x >> 1; in lv_img_buf_set_px_color()
288 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_set_px_color()
294 uint32_t px = dsc->header.w * y + x; in lv_img_buf_set_px_color()
445 res->x1 = LV_MIN4(p[0].x, p[1].x, p[2].x, p[3].x) - 2; in _lv_img_buf_get_transformed_area()
446 res->x2 = LV_MAX4(p[0].x, p[1].x, p[2].x, p[3].x) + 2; in _lv_img_buf_get_transformed_area()