Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 646) sorted by relevance

12345678910>>...26

/lvgl-latest/src/libs/gif/
Dgifdec_mve.h23 #define GIFDEC_FILL_BG(dst, w, h, stride, color, opa) \ argument
24 _gifdec_fill_bg_mve(dst, w, h, stride, color, opa)
26 #define GIFDEC_RENDER_FRAME(dst, w, h, stride, frame, pattern, tindex) \ argument
27 _gifdec_render_frame_mve(dst, w, h, stride, frame, pattern, tindex)
41 static inline void _gifdec_fill_bg_mve(uint8_t * dst, uint16_t w, uint16_t h, uint16_t stride, uint… in _gifdec_fill_bg_mve() argument
63 [h] "+r"(h) in _gifdec_fill_bg_mve()
70 static inline void _gifdec_render_frame_mve(uint8_t * dst, uint16_t w, uint16_t h, uint16_t stride,… in _gifdec_render_frame_mve() argument
73 if(w == 0 || h == 0) { in _gifdec_render_frame_mve()
128 [h] "+r"(h) in _gifdec_render_frame_mve()
/lvgl-latest/src/libs/thorvg/
DtvgPicture.cpp41 if (w != loader->w || h != loader->h) { in load()
44 h = loader->h; in load()
46 loader->resize(paint, w, h); in load()
96 bool Picture::Impl::size(float w, float h) in size() argument
99 this->h = h; in size()
128 this->h = loader->h; in load()
190 Result Picture::load(uint32_t* data, uint32_t w, uint32_t h, bool copy) noexcept in load() argument
192 if (!data || w <= 0 || h <= 0) return Result::InvalidArguments; in load()
194 return pImpl->load(data, w, h, copy); in load()
198 Result Picture::size(float w, float h) noexcept in size() argument
[all …]
DtvgPicture.h68 float w = 0, h = 0; member
75 bool size(float w, float h);
103 auto sy = h / loader->h; in update()
110 loader->resize(paint, w, h); in update()
119 bool bounds(float* x, float* y, float* w, float* h, bool stroking) in bounds()
124 if (h) *h = this->h; in bounds()
149 Result load(uint32_t* data, uint32_t w, uint32_t h, bool copy) in load()
153 auto loader = static_cast<ImageLoader*>(LoaderMgr::loader(data, w, h, copy)); in load()
178 dup->h = h; in duplicate()
190 uint32_t* data(uint32_t* w, uint32_t* h) in data()
[all …]
DtvgRender.cpp55 auto y1 = y + h; in intersect()
57 auto y2 = rhs.y + rhs.h; in intersect()
62 h = ((y1 < y2) ? y1 : y2) - y; in intersect()
65 if (h < 0) h = 0; in intersect()
76 h += (y - rhs.y); in add()
80 if (rhs.y + rhs.h > y + h) h = (rhs.y + rhs.h) - y; in add()
DtvgRawLoader.cpp51 bool RawLoader::open(const uint32_t* data, uint32_t w, uint32_t h, bool copy) in open() argument
55 if (!data || w == 0 || h == 0) return false; in open()
58 this->h = (float)h; in open()
62 surface.buf32 = (uint32_t*)malloc(sizeof(uint32_t) * w * h); in open()
64 memcpy((void*)surface.buf32, data, sizeof(uint32_t) * w * h); in open()
71 surface.h = h; in open()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_border.c119 int32_t h; in draw_border_complex() local
200 for(h = 0; h < max_h; h++) { in draw_border_complex()
201 int32_t top_y = outer_area->y1 + h; in draw_border_complex()
202 int32_t bottom_y = outer_area->y2 - h; in draw_border_complex()
228 for(h = draw_area.y1; h < core_area.y1; h++) { in draw_border_complex()
229 blend_area.y1 = h; in draw_border_complex()
230 blend_area.y2 = h; in draw_border_complex()
233 … blend_dsc.mask_res = lv_draw_sw_mask_apply(mask_list, mask_buf, blend_area.x1, h, blend_w); in draw_border_complex()
239 for(h = core_area.y2 + 1; h <= draw_area.y2; h++) { in draw_border_complex()
240 blend_area.y1 = h; in draw_border_complex()
[all …]
Dlv_draw_sw_fill.c95 int32_t h; in lv_draw_sw_fill() local
153 for(h = 0; h < rout; h++) { in lv_draw_sw_fill()
154 int32_t top_y = bg_coords.y1 + h; in lv_draw_sw_fill()
155 int32_t bottom_y = bg_coords.y2 - h; in lv_draw_sw_fill()
290 for(h = h_start; h <= h_end; h++) { in lv_draw_sw_fill()
291 blend_area.y1 = h; in lv_draw_sw_fill()
292 blend_area.y2 = h; in lv_draw_sw_fill()
297 blend_dsc.color = grad->color_map[h - bg_coords.y1]; in lv_draw_sw_fill()
298 if(opa >= LV_OPA_MAX) blend_dsc.opa = grad->opa_map[h - bg_coords.y1]; in lv_draw_sw_fill()
299 else blend_dsc.opa = LV_OPA_MIX2(grad->opa_map[h - bg_coords.y1], opa); in lv_draw_sw_fill()
[all …]
/lvgl-latest/docs/intro/add-lvgl-to-your-project/
Dconfiguration.rst11 lv_conf.h
15 Creating lv_conf.h argument
18 When setting up your project for the first time, copy ``lvgl/lv_conf_template.h`` to
19 ``lv_conf.h`` next to the ``lvgl`` folder. Change the first ``#if 0`` to ``1`` to
21 the color depth used by your display panel. See comments in ``lv_conf.h`` for
27 lv_conf.h
30 Alternatively, ``lv_conf.h`` can be copied to another place but then you
34 will attempt to include ``lv_conf.h`` simply with ``#include "lv_conf.h"``.
36 You can even use a different name for ``lv_conf.h``. The custom path can
38 ``-DLV_CONF_PATH="/home/joe/my_project/my_custom_conf.h"``. If this define
[all …]
/lvgl-latest/src/libs/lodepng/
Dlodepng.h156 unsigned lodepng_decode_memory(unsigned char ** out, unsigned * w, unsigned * h,
161 unsigned lodepng_decode32(unsigned char ** out, unsigned * w, unsigned * h,
165 unsigned lodepng_decode24(unsigned char ** out, unsigned * w, unsigned * h,
175 unsigned lodepng_decode_file(unsigned char ** out, unsigned * w, unsigned * h,
183 unsigned lodepng_decode32_file(unsigned char ** out, unsigned * w, unsigned * h,
190 unsigned lodepng_decode24_file(unsigned char ** out, unsigned * w, unsigned * h,
214 const unsigned char * image, unsigned w, unsigned h,
219 const unsigned char * image, unsigned w, unsigned h);
223 const unsigned char * image, unsigned w, unsigned h);
235 const unsigned char * image, unsigned w, unsigned h,
[all …]
/lvgl-latest/src/draw/
Dlv_draw_buf.c37 static uint32_t _calculate_draw_buf_size(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t str…
173 lv_memzero(buf, header->h * stride); in lv_draw_buf_clear()
183 a_draw_buf.y2 = draw_buf->header.h - 1; in lv_draw_buf_clear()
256 end_y = dest->header.h - 1; in lv_draw_buf_copy()
271 lv_result_t lv_draw_buf_init(lv_draw_buf_t * draw_buf, uint32_t w, uint32_t h, lv_color_format_t cf… in lv_draw_buf_init() argument
279 if(stride * h > data_size) { in lv_draw_buf_init()
280 … LV_LOG_WARN("Data size too small, required: %" LV_PRId32 ", provided: %" LV_PRId32, stride * h, in lv_draw_buf_init()
287 header->h = h; in lv_draw_buf_init()
303 lv_draw_buf_t * lv_draw_buf_create(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t stride) in lv_draw_buf_create() argument
305 return lv_draw_buf_create_ex(&default_handlers, w, h, cf, stride); in lv_draw_buf_create()
[all …]
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_border.c37 int32_t x, int32_t y, int32_t w, int32_t h,
66 int32_t h = lv_area_get_height(coords); in lv_draw_vg_lite_border() local
69 float r_short = LV_MIN(w, h) / 2.0f; in lv_draw_vg_lite_border()
80 w, h, in lv_draw_vg_lite_border()
84 … vg_lite_fill_t fill_rule = path_append_inner_rect(path, dsc, coords->x1, coords->y1, w, h, r_out); in lv_draw_vg_lite_border()
118 int32_t x, int32_t y, int32_t w, int32_t h, in path_append_inner_rect() argument
124 const float half_h = h / 2.0f; in path_append_inner_rect()
140 w - border_w * 2, h - border_w * 2, in path_append_inner_rect()
151 int32_t h_inner = h; in path_append_inner_rect()
187 const float c3_y = y + h - r; in path_append_inner_rect()
[all …]
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_border.c117 float h = width; in lv_draw_nema_gfx_border() local
119 nema_fill_rect_f(x, y, w, h, bg_color); in lv_draw_nema_gfx_border()
126 float h = width; in lv_draw_nema_gfx_border() local
128 nema_fill_rect_f(x, y, w, h, bg_color); in lv_draw_nema_gfx_border()
135 float h = border_height - 2 * width; in lv_draw_nema_gfx_border() local
137 nema_fill_rect_f(x, y, w, h, bg_color); in lv_draw_nema_gfx_border()
144 float h = border_height - 2 * width; in lv_draw_nema_gfx_border() local
146 nema_fill_rect_f(x, y, w, h, bg_color); in lv_draw_nema_gfx_border()
155 float h = width; in lv_draw_nema_gfx_border() local
164 nema_fill_rect_f(x, y, w, h, bg_color); in lv_draw_nema_gfx_border()
[all …]
/lvgl-latest/src/others/snapshot/
Dlv_snapshot.c51 int32_t h = lv_obj_get_height(obj); in lv_snapshot_create_draw_buf() local
54 h += ext_size * 2; in lv_snapshot_create_draw_buf()
55 if(w == 0 || h == 0) return NULL; in lv_snapshot_create_draw_buf()
57 return lv_draw_buf_create(w, h, cf, LV_STRIDE_AUTO); in lv_snapshot_create_draw_buf()
64 int32_t h = lv_obj_get_height(obj); in lv_snapshot_reshape_draw_buf() local
67 h += ext_size * 2; in lv_snapshot_reshape_draw_buf()
68 if(w == 0 || h == 0) return LV_RESULT_INVALID; in lv_snapshot_reshape_draw_buf()
70 draw_buf = lv_draw_buf_reshape(draw_buf, LV_COLOR_FORMAT_UNKNOWN, w, h, LV_STRIDE_AUTO); in lv_snapshot_reshape_draw_buf()
106 int32_t h = draw_buf->header.h; in lv_snapshot_take_to_draw_buf() local
118 layer.buf_area.y2 = snapshot_area.y1 + h - 1; in lv_snapshot_take_to_draw_buf()
/lvgl-latest/src/draw/dma2d/
Dlv_draw_dma2d_fill.c37 void lv_draw_dma2d_opaque_fill(lv_draw_dma2d_unit_t * u, void * first_pixel, int32_t w, int32_t h, … in lv_draw_dma2d_opaque_fill() argument
50 .height = h, in lv_draw_dma2d_opaque_fill()
59 .h = h, in lv_draw_dma2d_opaque_fill()
70 void lv_draw_dma2d_fill(lv_draw_dma2d_unit_t * u, void * first_pixel, int32_t w, int32_t h, int32_t… in lv_draw_dma2d_fill() argument
84 .height = h, in lv_draw_dma2d_fill()
97 .h = h, in lv_draw_dma2d_fill()
Dlv_draw_dma2d_img.c41 int32_t h = lv_area_get_height(clipped_coords); in lv_draw_dma2d_opaque_image() local
61 .height = h, in lv_draw_dma2d_opaque_image()
79 .height = h, in lv_draw_dma2d_opaque_image()
90 .h = h, in lv_draw_dma2d_opaque_image()
127 int32_t h = lv_area_get_height(clipped_coords); in lv_draw_dma2d_image() local
148 .height = h, in lv_draw_dma2d_image()
164 .height = h, in lv_draw_dma2d_image()
175 .h = h, in lv_draw_dma2d_image()
/lvgl-latest/scripts/
Dcode-format.cfg37 --exclude=../src/lv_conf_internal.h
39 --exclude=../src/core/lv_obj_style_gen.h
41 --exclude=../src/libs/gif/gifdec.h
43 --exclude=../src/libs/lodepng/lodepng.h
45 --exclude=../src/libs/qrcode/qrcodegen.h
47 --exclude=../src/libs/tjpgd/tjpgd.h
48 --exclude=../src/libs/tjpgd/tjpgdcnf.h
52 --exclude=../src/others/vg_lite_tvg/vg_lite.h
55 --exclude=../tests/unity/unity_internals.h
57 --exclude=../tests/unity/unity_support.h
DLVGLImage.py286 for h, l, a in zip(H, L, A):
287 p = (h << 8) | (l)
307 w: int, h: int,
393 h: int = 0,
400 self.h = h & 0xffff
401 if w > 0xffff or h > 0xffff:
434 binary += uint16_t(self.h) # 16bits height
449 self.h = int.from_bytes(data[6:8], 'little')
496 h: int = 0,
501 self.set_data(cf, w, h, data)
[all …]
/lvgl-latest/src/misc/
Dlv_color.c137 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb() argument
139 h = (uint32_t)((uint32_t)h * 255) / 360; in lv_color_hsv_to_rgb()
151 region = h / 43; in lv_color_hsv_to_rgb()
152 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb()
211 hsv.h = 0; in lv_color_rgb_to_hsv()
219 hsv.h = 0; in lv_color_rgb_to_hsv()
224 int32_t h; in lv_color_rgb_to_hsv() local
226 h = (((g - b) << 10) / delta) + (g < b ? (6 << 10) : 0); // between yellow & magenta in lv_color_rgb_to_hsv()
228 h = (((b - r) << 10) / delta) + (2 << 10); // between cyan & yellow in lv_color_rgb_to_hsv()
230 h = (((r - g) << 10) / delta) + (4 << 10); // between magenta & cyan in lv_color_rgb_to_hsv()
[all …]
Dlv_lru.c269 uint32_t h = cache->seed ^ key_length; in lv_lru_hash() local
277 h *= m; in lv_lru_hash()
278 h ^= k; in lv_lru_hash()
284 h ^= data[2] << 16; in lv_lru_hash()
287 h ^= data[1] << 8; in lv_lru_hash()
290 h ^= data[0]; in lv_lru_hash()
291 h *= m; in lv_lru_hash()
294 h ^= h >> 13; in lv_lru_hash()
295 h *= m; in lv_lru_hash()
296 h ^= h >> 15; in lv_lru_hash()
[all …]
/lvgl-latest/docs/
Dexample_list.py149 for h in h1:
150 write_header(1, h1[h], fout)
152 if h == "widgets":
155 print_item(h + "/" + w, 3, d_all, fout)
156 elif h == "layouts":
159 print_item(h + "/" + l, 3, d_all, fout)
161 print_item(h, 2, d_all, fout)
/lvgl-latest/examples/widgets/spinbox/
Dlv_example_spinbox_1.c31 int32_t h = lv_obj_get_height(spinbox); in lv_example_spinbox_1() local
34 lv_obj_set_size(btn, h, h); in lv_example_spinbox_1()
40 lv_obj_set_size(btn, h, h); in lv_example_spinbox_1()
/lvgl-latest/src/draw/sw/blend/
Dlv_draw_sw_blend_to_l8.c184 int32_t h = dsc->dest_h; in lv_draw_sw_blend_color_to_l8() local
194 LV_UNUSED(h); in lv_draw_sw_blend_color_to_l8()
207 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_l8()
243 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_l8()
257 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_l8()
272 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_l8()
333 int32_t h = dsc->dest_h; in i1_image_blend() local
349 for(y = 0; y < h; y++) { in i1_image_blend()
361 for(y = 0; y < h; y++) { in i1_image_blend()
373 for(y = 0; y < h; y++) { in i1_image_blend()
[all …]
Dlv_draw_sw_blend_to_rgb888.c187 int32_t h = dsc->dest_h; in lv_draw_sw_blend_color_to_rgb888() local
197 LV_UNUSED(h); in lv_draw_sw_blend_color_to_rgb888()
221 for(y = 1; y < h; y++) { in lv_draw_sw_blend_color_to_rgb888()
229 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_rgb888()
266 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_rgb888()
282 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_rgb888()
299 for(y = 0; y < h; y++) { in lv_draw_sw_blend_color_to_rgb888()
362 int32_t h = dsc->dest_h; in i1_image_blend() local
378 for(y = 0; y < h; y++) { in i1_image_blend()
392 for(y = 0; y < h; y++) { in i1_image_blend()
[all …]
/lvgl-latest/.devcontainer/
D__main.c__10 #include <stdlib.h>
11 #include <unistd.h>
13 #include <SDL2/SDL.h>
14 #include <emscripten.h>
15 #include "lvgl/lvgl.h"
16 #include "lvgl/demos/lv_demos.h"
17 #include "lvgl/examples/lv_examples.h"
/lvgl-latest/env_support/cmake/
Dcustom.cmake5 "Use #include \"lvgl.h\" instead of #include \"../../lvgl.h\"" ON)
9 "Use #include \"lv_conf.h\" instead of #include \"../../lv_conf.h\"" ON)
11 # Option LV_CONF_PATH, which should be the path for lv_conf.h
79 "${LVGL_ROOT_DIR}/lvgl.h"
80 "${LVGL_ROOT_DIR}/lv_version.h")
88 "${CMAKE_SOURCE_DIR}/lv_conf.h")
108 PATTERN "*.h")
122 PATTERN "*.h")
131 PATTERN "*.h")
136 configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" ${CMAKE_CURRENT_BINARY_DIR}/lv_version.h @ONLY)

12345678910>>...26