Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 80) sorted by relevance

1234

/lvgl-latest/tests/src/test_cases/draw/
Dtest_draw_letter.c65 letter_dsc.rotation = lv_atan2(y - pre_y, x - pre_x); in test_draw_sin_wave()
66 …letter_dsc.rotation = (letter_dsc.rotation > 180 ? letter_dsc.rotation - 360 : letter_dsc.rotation in test_draw_sin_wave()
87 letter_dsc.rotation = lv_atan2(y - pre_y, x - pre_x) * 10; in test_draw_sin_wave()
/lvgl-latest/src/draw/sw/arm2d/
Dlv_draw_sw_arm2d.h340 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
354 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
387 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
399 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
417 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
426 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
441 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
467 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
479 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
496 ARM_2D_ANGLE((draw_dsc->rotation / 10.0f)), in lv_draw_sw_image_helium()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_letter.c64 glyph_dsc.rotation = dsc->rotation; in lv_draw_sw_letter()
120 … if(glyph_draw_dsc->rotation % 3600 == 0 && glyph_draw_dsc->format != LV_FONT_GLYPH_FORMAT_IMAGE) { in draw_letter_cb()
140 img_dsc.rotation = glyph_draw_dsc->rotation; in draw_letter_cb()
Dlv_draw_sw_utils.h95 … int32_t dest_stride, lv_display_rotation_t rotation, lv_color_format_t color_format);
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_label.c94 glyph_dsc.rotation = dsc->rotation; in lv_draw_vg_lite_letter()
158 image_dsc.rotation = glyph_draw_dsc->rotation; in draw_letter_cb()
205 const bool is_rotated = dsc->rotation % 3600 != 0; in draw_letter_bitmap()
212 vg_lite_rotate(dsc->rotation / 10.0f, &matrix); in draw_letter_bitmap()
260 if(is_rotated) vg_lite_rotate(dsc->rotation / 10.0f, &path_matrix); in draw_letter_bitmap()
309 const bool is_rotated = dsc->rotation % 3600 != 0; in draw_letter_outline()
321 vg_lite_rotate(dsc->rotation / 10.0f, &matrix); in draw_letter_outline()
/lvgl-latest/src/drivers/display/fb/
Dlv_linux_fbdev.c268 lv_display_rotation_t rotation = lv_display_get_rotation(disp); in flush_cb() local
271 …if(rotation != LV_DISPLAY_ROTATION_0 && LV_LINUX_FBDEV_RENDER_MODE == LV_DISPLAY_RENDER_MODE_PARTI… in flush_cb()
283 switch(rotation) { in flush_cb()
287 … lv_draw_sw_rotate(color_p, dsc->rotated_buf, w, h, w_stride, h_stride, rotation, cf); in flush_cb()
290 … lv_draw_sw_rotate(color_p, dsc->rotated_buf, w, h, w_stride, w_stride, rotation, cf); in flush_cb()
293 … lv_draw_sw_rotate(color_p, dsc->rotated_buf, w, h, w_stride, h_stride, rotation, cf); in flush_cb()
303 if(rotation != LV_DISPLAY_ROTATION_180) { in flush_cb()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_vglite_matrix.c62 bool has_rotation = (dsc->rotation != 0); in vglite_set_transformation_matrix()
67 vg_lite_rotate(dsc->rotation / 10.0f, &_vgmatrix); /* angle is 1/10 degree */ in vglite_set_transformation_matrix()
Dlv_draw_vglite_layer.c78 bool has_transform = (draw_dsc->rotation != 0 || draw_dsc->scale_x != LV_SCALE_NONE || in lv_draw_vglite_layer()
85 …lv_image_buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc… in lv_draw_vglite_layer()
/lvgl-latest/src/widgets/image/
Dlv_image.c243 if(img->rotation || img->scale_x != LV_SCALE_NONE || img->scale_y != LV_SCALE_NONE) { in lv_image_set_src()
283 if((uint32_t)angle == img->rotation) return; in lv_image_set_rotation()
291 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_rotation()
298 img->rotation = angle; in lv_image_set_rotation()
307 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_rotation()
333 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_pivot()
350 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_pivot()
494 return img->rotation; in lv_image_get_rotation()
586 img->rotation = 0; in lv_image_constructor()
641 if(img->rotation || img->scale_x != LV_SCALE_NONE || img->scale_y != LV_SCALE_NONE) { in lv_image_event()
[all …]
Dlv_image_private.h40 uint32_t rotation; /**< Rotation angle of the image*/ member
/lvgl-latest/src/drivers/display/renesas_glcdc/
Dlv_renesas_glcdc.c289 lv_display_rotation_t rotation = lv_display_get_rotation(display); in flush_partial() local
291 if(rotation != LV_DISPLAY_ROTATION_0) { in flush_partial()
303 if(rotation == LV_DISPLAY_ROTATION_180) in flush_partial()
304 lv_draw_sw_rotate(img, rotation_buffer, w, h, w_stride, w_stride, rotation, cf); in flush_partial()
306 lv_draw_sw_rotate(img, rotation_buffer, w, h, w_stride, h_stride, rotation, cf); in flush_partial()
/lvgl-latest/docs/details/integration/driver/display/
Dst_ltdc.rst89 The driver supports display rotation with
90 :cpp:expr:`lv_display_set_rotation(disp, rotation)` where rotation is one of
92 or :cpp:enumerator:`LV_DISP_ROTATION_270`. The rotation is initially
95 The rotation is done in software and only works if the display was
97 :c:macro:`LV_ST_LTDC_USE_DMA2D_FLUSH` will be have no effect if rotation
/lvgl-latest/src/widgets/arc/
Dlv_arc.c197 void lv_arc_set_rotation(lv_obj_t * obj, int32_t rotation) in lv_arc_set_rotation() argument
203 while(rotation < 0) rotation += 360; in lv_arc_set_rotation()
204 while(rotation >= 360) rotation -= 360; in lv_arc_set_rotation()
205 arc->rotation = rotation; in lv_arc_set_rotation()
347 return ((lv_arc_t *)obj)->rotation; in lv_arc_get_rotation()
420 arc->rotation = 0; in lv_arc_constructor()
509 angle -= arc->rotation; in lv_arc_event()
664 angle -= arc->rotation; in lv_arc_event()
727 arc_dsc.start_angle = arc->bg_angle_start + arc->rotation; in lv_arc_draw()
728 arc_dsc.end_angle = arc->bg_angle_end + arc->rotation; in lv_arc_draw()
[all …]
Dlv_arc_private.h31 int32_t rotation; member
/lvgl-latest/src/draw/
Dlv_draw_label.h47 int32_t rotation; member
73 int32_t rotation; member
Dlv_draw_label_private.h53 int32_t rotation; member
Dlv_draw_image.c84 dsc->rotation, dsc->scale_x, dsc->scale_y, &dsc->pivot); in lv_draw_layer()
126 dsc->rotation, dsc->scale_x, dsc->scale_y, &dsc->pivot); in lv_draw_image()
160 …if(draw_dsc->rotation || draw_dsc->scale_x != LV_SCALE_NONE || draw_dsc->scale_y != LV_SCALE_NONE)… in lv_draw_image_normal_helper()
164 …lv_image_buf_get_transformed_area(&draw_area, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_ds… in lv_draw_image_normal_helper()
/lvgl-latest/src/draw/renesas/dave2d/
Dlv_draw_dave2d_image.c66 bool transformed = draw_dsc->rotation != 0 || draw_dsc->scale_x != LV_SCALE_NONE || in img_draw_core()
254 …lv_point_transform(&p[0], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
255 …lv_point_transform(&p[1], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
256 …lv_point_transform(&p[2], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
257 …lv_point_transform(&p[3], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
259 int32_t angle_limited = draw_dsc->rotation; in img_draw_core()
/lvgl-latest/src/libs/thorvg/
DtvgLottieModel.h194 LottieFloat rotation = 0.0f; member
408 if (rotation.ix == ix) return &rotation; in property()
418 LottieFloat rotation = 0.0f; member
477 if (rotation.ix == ix) return &rotation; in property()
491 LottieFloat rotation = 0.0f; //z rotation member
677 if (rotation.ix == ix) return &rotation; in property()
690 LottieFloat rotation = 0.0f; member
/lvgl-latest/src/widgets/scale/
Dlv_scale.c173 void lv_scale_set_rotation(lv_obj_t * obj, int32_t rotation) in lv_scale_set_rotation() argument
177 int32_t normalized_angle = rotation; in lv_scale_set_rotation()
180 normalized_angle = rotation % 360; in lv_scale_set_rotation()
187 scale->rotation = normalized_angle; in lv_scale_set_rotation()
239 …needle_length_x = (actual_needle_length * lv_trigo_cos(scale->rotation + angle)) >> LV_TRIGO_SHIFT; in lv_scale_set_line_needle_value()
240 …needle_length_y = (actual_needle_length * lv_trigo_sin(scale->rotation + angle)) >> LV_TRIGO_SHIFT; in lv_scale_set_line_needle_value()
293 lv_image_set_rotation(needle_img, (scale->rotation + angle) * 10); in lv_scale_set_image_needle_value()
406 return scale->rotation; in lv_scale_get_rotation()
455 scale->rotation = LV_SCALE_DEFAULT_ROTATION; in lv_scale_constructor()
686 angle_upscale += scale->rotation * 10; in scale_draw_label()
[all …]
/lvgl-latest/src/indev/
Dlv_indev_gesture_private.h66 float rotation; /* Rotation & previous rotation*/ member
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_pxp_layer.c81 …if(draw_dsc->rotation || draw_dsc->scale_x != LV_SCALE_NONE || draw_dsc->scale_y != LV_SCALE_NONE)… in lv_draw_pxp_layer()
85 …lv_image_buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc… in lv_draw_pxp_layer()
Dlv_draw_pxp.c109 int32_t src_stride, int32_t dest_stride, lv_display_rotation_t rotation, in lv_draw_pxp_rotate() argument
116 switch(rotation) { in lv_draw_pxp_rotate()
207 bool has_transform = (draw_dsc->rotation != 0 || draw_dsc->scale_x != LV_SCALE_NONE || in _pxp_draw_img_supported()
225 if(draw_dsc->rotation % 900) in _pxp_draw_img_supported()
Dlv_draw_pxp.h59 int32_t src_stride, int32_t dest_stride, lv_display_rotation_t rotation,
/lvgl-latest/src/display/
Dlv_display.c297 switch(disp->rotation) { in lv_display_get_horizontal_resolution()
315 switch(disp->rotation) { in lv_display_get_vertical_resolution()
333 switch(disp->rotation) { in lv_display_get_physical_horizontal_resolution()
351 switch(disp->rotation) { in lv_display_get_physical_vertical_resolution()
369 switch(disp->rotation) { in lv_display_get_offset_x()
390 switch(disp->rotation) { in lv_display_get_offset_y()
861 void lv_display_set_rotation(lv_display_t * disp, lv_display_rotation_t rotation) in lv_display_set_rotation() argument
866 disp->rotation = rotation; in lv_display_set_rotation()
874 return disp->rotation; in lv_display_get_rotation()
1006 lv_display_rotation_t rotation = lv_display_get_rotation(disp); in lv_display_rotate_area() local
[all …]

1234