Lines Matching refs:x

52 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
60 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
68 uint8_t bit = x & 0x7; in lv_img_buf_get_px_color()
69 x = x >> 3; in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
79 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_color()
80 x = x >> 2; in lv_img_buf_get_px_color()
85 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
90 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_color()
91 x = x >> 1; in lv_img_buf_get_px_color()
96 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color()
101 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color()
119 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
124 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()
128 uint8_t bit = x & 0x7; in lv_img_buf_get_px_alpha()
129 x = x >> 3; in lv_img_buf_get_px_alpha()
134 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha()
141 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_alpha()
142 x = x >> 2; in lv_img_buf_get_px_alpha()
147 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha()
156 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_alpha()
157 x = x >> 1; in lv_img_buf_get_px_alpha()
162 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_alpha()
167 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_alpha()
182 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
188 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_alpha()
193 uint8_t bit = x & 0x7; in lv_img_buf_set_px_alpha()
194 x = x >> 3; in lv_img_buf_set_px_alpha()
199 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_set_px_alpha()
205 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_set_px_alpha()
206 x = x >> 2; in lv_img_buf_set_px_alpha()
211 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_set_px_alpha()
217 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_set_px_alpha()
218 x = x >> 1; in lv_img_buf_set_px_alpha()
223 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_set_px_alpha()
228 uint32_t px = dsc->header.w * y + x; in lv_img_buf_set_px_alpha()
241 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
247 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
252 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_set_px_color()
258 uint8_t bit = x & 0x7; in lv_img_buf_set_px_color()
259 x = x >> 3; in lv_img_buf_set_px_color()
264 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_set_px_color()
270 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_set_px_color()
271 x = x >> 2; in lv_img_buf_set_px_color()
276 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_set_px_color()
283 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_set_px_color()
284 x = x >> 1; in lv_img_buf_set_px_color()
289 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_set_px_color()
295 uint32_t px = dsc->header.w * y + x; in lv_img_buf_set_px_color()
489 res->x1 = (((-pivot->x) * zoom) >> 8) - 1; in _lv_img_buf_get_transformed_area()
491 res->x2 = (((w - pivot->x) * zoom) >> 8) + 2; in _lv_img_buf_get_transformed_area()
495 res->x1 += pivot->x; in _lv_img_buf_get_transformed_area()
497 res->x2 += pivot->x; in _lv_img_buf_get_transformed_area()
529 lt.x = ((cosma * xt - sinma * yt) >> _LV_TRANSFORM_TRIGO_SHIFT) + pivot->x; in _lv_img_buf_get_transformed_area()
534 rt.x = ((cosma * xt - sinma * yt) >> _LV_TRANSFORM_TRIGO_SHIFT) + pivot->x; in _lv_img_buf_get_transformed_area()
539 lb.x = ((cosma * xt - sinma * yt) >> _LV_TRANSFORM_TRIGO_SHIFT) + pivot->x; in _lv_img_buf_get_transformed_area()
544 rb.x = ((cosma * xt - sinma * yt) >> _LV_TRANSFORM_TRIGO_SHIFT) + pivot->x; in _lv_img_buf_get_transformed_area()
547 res->x1 = LV_MATH_MIN4(lb.x, lt.x, rb.x, rt.x); in _lv_img_buf_get_transformed_area()
548 res->x2 = LV_MATH_MAX4(lb.x, lt.x, rb.x, rt.x); in _lv_img_buf_get_transformed_area()