Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/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
65 [w] "r"(w), 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()
130 [w] "r"(w), in _gifdec_render_frame_mve()
/lvgl-latest/src/libs/thorvg/
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()
57 this->w = (float)w; 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()
69 surface.stride = w; in open()
70 surface.w = w; in open()
DtvgPicture.cpp41 if (w != loader->w || h != loader->h) { in load()
43 w = loader->w; in load()
46 loader->resize(paint, w, h); in load()
96 bool Picture::Impl::size(float w, float h) in size() argument
98 this->w = w; in size()
127 this->w = loader->w; 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);
102 auto sx = w / loader->w; 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()
123 if (w) *w = this->w; 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()
177 dup->w = w; in duplicate()
190 uint32_t* data(uint32_t* w, uint32_t* h) in data()
[all …]
DtvgRender.cpp54 auto x1 = x + w; in intersect()
56 auto x2 = rhs.x + rhs.w; in intersect()
61 w = ((x1 < x2) ? x1 : x2) - x; in intersect()
64 if (w < 0) w = 0; in intersect()
72 w += (x - rhs.x); in add()
79 if (rhs.x + rhs.w > x + w) w = (rhs.x + rhs.w) - x; in add()
DtvgSwPostEffect.cpp45 region.w = extra * 2; in _gaussianExtendRegion()
67 static void _gaussianBlur(uint8_t* src, uint8_t* dst, int32_t stride, int32_t w, int32_t h, const S… in _gaussianBlur() argument
88 auto id = (_gaussianRemap(w, x2, border) + p) * 4; in _gaussianBlur()
95 for (int x2 = 0; x2 < w; ++x2, ++r, ++l) { in _gaussianBlur()
96 auto rid = (_gaussianRemap(w, r, border) + p) * 4; in _gaussianBlur()
97 auto lid = (_gaussianRemap(w, l, border) + p) * 4; in _gaussianBlur()
168 auto w = (bbox.max.x - bbox.min.x); in effectGaussianBlur() local
176 auto threshold = (std::min(w, h) < 300) ? 2 : 1; in effectGaussianBlur()
185 _gaussianBlur(front, back, stride, w, h, bbox, k, params->border, false); in effectGaussianBlur()
193 …(reinterpret_cast<uint32_t*>(front), reinterpret_cast<uint32_t*>(back), stride, w, h, bbox, false); in effectGaussianBlur()
[all …]
DtvgSwRenderer.cpp65 region.w = bbox.max.x - region.x; in bounds()
67 if (region.w < 0) region.w = 0; in bounds()
226 image.w = source->w; in run()
234 if (!image.data || image.w == 0 || image.h == 0) goto end; in run()
333 vport.w = surface->w; in clear()
360 bool SwRenderer::target(pixel_t* data, uint32_t stride, uint32_t w, uint32_t h, ColorSpace cs) in target() argument
362 if (!data || stride == 0 || w == 0 || h == 0 || w > stride) return false; in target()
370 surface->w = w; in target()
570 cmp->compositor->image.w = surface->w; in request()
576 cmp->w = cmp->compositor->image.w; in request()
[all …]
DtvgSvgSceneBuilder.cpp59 float x, y, w, h; in _boundingBox() local
60 shape->bounds(&x, &y, &w, &h, false); in _boundingBox()
65 w -= strokeW; in _boundingBox()
69 return {x, y, w, h}; in _boundingBox()
75 float x, y, w, h; in _boundingBox() local
76 text->bounds(&x, &y, &w, &h, false); in _boundingBox()
77 return {x, y, w, h}; in _boundingBox()
104 g->linear->x1 = g->linear->x1 * vBox.w; in _applyLinearGradientProperty()
106 g->linear->x2 = g->linear->x2 * vBox.w; in _applyLinearGradientProperty()
109 Matrix m = {vBox.w, 0, vBox.x, 0, vBox.h, vBox.y, 0, 0, 1}; in _applyLinearGradientProperty()
[all …]
/lvgl-latest/src/draw/dma2d/
Dlv_draw_dma2d_img.c40 int32_t w = lv_area_get_width(clipped_coords); in lv_draw_dma2d_opaque_image() local
55 if(image_stride == 0) image_stride = image_cf_size * img_dsc->header.w; in lv_draw_dma2d_opaque_image()
60 .width_bytes = w * output_cf_size, in lv_draw_dma2d_opaque_image()
78 .width_bytes = w * image_cf_size, in lv_draw_dma2d_opaque_image()
86 uint32_t output_offset = (dest_stride / output_cf_size) - w; in lv_draw_dma2d_opaque_image()
89 .w = w, in lv_draw_dma2d_opaque_image()
97 .fg_offset = (image_stride / image_cf_size) - w, in lv_draw_dma2d_opaque_image()
126 int32_t w = lv_area_get_width(clipped_coords); in lv_draw_dma2d_image() local
142 if(image_stride == 0) image_stride = image_cf_size * img_dsc->header.w; in lv_draw_dma2d_image()
147 .width_bytes = w * output_cf_size, in lv_draw_dma2d_image()
[all …]
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
49 .width_bytes = w * cf_size, in lv_draw_dma2d_opaque_fill()
58 .w = w, in lv_draw_dma2d_opaque_fill()
62 .output_offset = (stride / cf_size) - w, 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
83 .width_bytes = w * cf_size, in lv_draw_dma2d_fill()
93 uint32_t output_offset = (stride / cf_size) - w; in lv_draw_dma2d_fill()
96 .w = w, in lv_draw_dma2d_fill()
/lvgl-latest/src/draw/
Dlv_draw_buf.c36 static uint32_t width_to_stride(uint32_t w, lv_color_format_t color_format);
37 static uint32_t _calculate_draw_buf_size(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t str…
96 uint32_t lv_draw_buf_width_to_stride(uint32_t w, lv_color_format_t color_format) in lv_draw_buf_width_to_stride() argument
98 return lv_draw_buf_width_to_stride_ex(&default_handlers, w, color_format); in lv_draw_buf_width_to_stride()
101 uint32_t lv_draw_buf_width_to_stride_ex(const lv_draw_buf_handlers_t * handlers, uint32_t w, in lv_draw_buf_width_to_stride_ex() argument
104 if(handlers->width_to_stride_cb) return handlers->width_to_stride_cb(w, color_format); in lv_draw_buf_width_to_stride_ex()
182 a_draw_buf.x2 = draw_buf->header.w - 1; in lv_draw_buf_clear()
225 if(dest_area == NULL) line_width = dest->header.w; in lv_draw_buf_copy()
236 if((src_area == NULL && line_width != src->header.w) || \ 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
[all …]
Dlv_draw_buf.h36 #define LV_DRAW_BUF_STRIDE(w, cf) \ argument
37 LV_ROUND_UP(((w) * LV_COLOR_FORMAT_GET_BPP(cf) + 7) / 8, LV_DRAW_BUF_STRIDE_ALIGN)
40 #define LV_DRAW_BUF_SIZE(w, h, cf) \ argument
41 (LV_DRAW_BUF_STRIDE(w, cf) * (h) + LV_DRAW_BUF_ALIGN + \
57 .w = (_w), \
70 …lv_draw_buf_init(&name, header->w, header->h, (lv_color_format_t)header->cf, header->stride, buf_#…
86 typedef uint32_t (*lv_draw_buf_width_to_stride_cb)(uint32_t w, lv_color_format_t color_format);
176 uint32_t lv_draw_buf_width_to_stride(uint32_t w, lv_color_format_t color_format);
185 uint32_t lv_draw_buf_width_to_stride_ex(const lv_draw_buf_handlers_t * handlers, uint32_t w,
220 lv_draw_buf_t * lv_draw_buf_create(uint32_t w, uint32_t h, lv_color_format_t cf, uint32_t stride);
[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/vg_lite/
Dlv_draw_vg_lite_border.c37 int32_t x, int32_t y, int32_t w, int32_t h,
65 int32_t w = lv_area_get_width(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
123 const float half_w = w / 2.0f; in path_append_inner_rect()
140 w - border_w * 2, h - border_w * 2, in path_append_inner_rect()
150 int32_t w_inner = w; in path_append_inner_rect()
184 const float c2_x = x + w - r; in path_append_inner_rect()
[all …]
Dlv_draw_buf_vg_lite.c29 static uint32_t width_to_stride(uint32_t w, lv_color_format_t color_format);
53 static uint32_t width_to_stride(uint32_t w, lv_color_format_t color_format) in width_to_stride() argument
55 return lv_vg_lite_width_to_stride(w, lv_vg_lite_vg_fmt(color_format)); in width_to_stride()
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_border.c116 float w = border_width - 2 * 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()
125 float w = border_width - 2 * 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()
134 float w = 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()
143 float w = 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()
154 float w = 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.c50 int32_t w = lv_obj_get_width(obj); in lv_snapshot_create_draw_buf() local
53 w += 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()
63 int32_t w = lv_obj_get_width(obj); in lv_snapshot_reshape_draw_buf() local
66 w += 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()
105 int32_t w = draw_buf->header.w; in lv_snapshot_take_to_draw_buf() local
117 layer.buf_area.x2 = snapshot_area.x1 + w - 1; in lv_snapshot_take_to_draw_buf()
/lvgl-latest/libs/nema_gfx/include/
Dnema_raster.h50 void nema_raster_rect(int x, int y, int w, int h);
53 void nema_raster_rounded_rect(int x0, int y0, int w, int h, int r);
73 void nema_raster_stroked_circle_aa(float x, float y, float r, float w);
79 void nema_raster_rect_f(float x, float y, float w, float h);
104 nema_raster_stroked_arc_aa( float x0, float y0, float r, float w, float start_angle, float end_angl…
111 nema_raster_stroked_arc_aa_mask( float x0, float y0, float r, float w, float start_angle, float end…
Dnema_graphics.h42 uint16_t w; member
234 void nema_set_clip(int32_t x, int32_t y, uint32_t w, uint32_t h);
488 nema_draw_line_aa(float x0, float y0, float x1, float y1, float w,
514 void nema_draw_circle_aa(float x, float y, float r, float w, uint32_t rgba8888);
528 void nema_draw_rounded_rect(int x0, int y0, int w, int h, int r, uint32_t rgba8888);
541 void nema_draw_rect(int x, int y, int w, int h, uint32_t rgba8888);
593 void nema_fill_rounded_rect(int x0, int y0, int w, int h, int r, uint32_t rgba8888);
606 void nema_fill_rect(int x, int y, int w, int h, uint32_t rgba8888);
637 void nema_fill_rect_f(float x, float y, float w, float h, uint32_t rgba8888);
704 void nema_blit_rect (int x, int y, int w, int h);
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_gradient.c76 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, int32_t w, int32_t h);
80 static inline int32_t extend_w(int32_t w, lv_grad_extend_t extend);
92 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, int32_t w, int32_t h) in allocate_item() argument
100 size = w; in allocate_item()
123 static inline int32_t extend_w(int32_t w, lv_grad_extend_t extend) in extend_w() argument
126 return w < 0 ? 0 : LV_MIN(w, 255); in extend_w()
129 return w & 255; in extend_w()
132 w &= 511; in extend_w()
133 if(w > 255) in extend_w()
134 w ^= 511; /* 511 - w */ in extend_w()
[all …]
/lvgl-latest/src/draw/sw/blend/
Dlv_draw_sw_blend_to_rgb888.c186 int32_t w = dsc->dest_w; in lv_draw_sw_blend_color_to_rgb888() local
196 LV_UNUSED(w); in lv_draw_sw_blend_color_to_rgb888()
211 w *= dest_px_size; in lv_draw_sw_blend_color_to_rgb888()
213 for(x = 0; x < w; x += 3) { in lv_draw_sw_blend_color_to_rgb888()
222 lv_memcpy(dest_buf_u8, dest_buf_ori, w); in lv_draw_sw_blend_color_to_rgb888()
230 for(x = 0; x <= w - 16; x += 16) { in lv_draw_sw_blend_color_to_rgb888()
251 for(; x < w; x ++) { in lv_draw_sw_blend_color_to_rgb888()
265 w *= dest_px_size; in lv_draw_sw_blend_color_to_rgb888()
267 for(x = 0; x < w; x += dest_px_size) { in lv_draw_sw_blend_color_to_rgb888()
280 w *= dest_px_size; in lv_draw_sw_blend_color_to_rgb888()
[all …]
Dlv_draw_sw_blend_to_l8.c183 int32_t w = dsc->dest_w; in lv_draw_sw_blend_color_to_l8() local
193 LV_UNUSED(w); in lv_draw_sw_blend_color_to_l8()
208 for(x = 0; x < w - 16; x += 16) { in lv_draw_sw_blend_color_to_l8()
229 for(; x < w; x ++) { in lv_draw_sw_blend_color_to_l8()
244 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_l8()
258 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_l8()
273 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_l8()
332 int32_t w = dsc->dest_w; in i1_image_blend() local
350 for(dest_x = 0, src_x = 0; src_x < w; dest_x++, src_x++) { in i1_image_blend()
362 for(dest_x = 0, src_x = 0; src_x < w; dest_x++, src_x++) { in i1_image_blend()
[all …]
Dlv_draw_sw_blend_to_al88.c199 int32_t w = dsc->dest_w; in lv_draw_sw_blend_color_to_al88() local
212 LV_UNUSED(w); in lv_draw_sw_blend_color_to_al88()
229 for(x = 0; x < w - 16; x += 16) { in lv_draw_sw_blend_color_to_al88()
250 for(; x < w; x ++) { in lv_draw_sw_blend_color_to_al88()
266 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_al88()
281 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_al88()
298 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_al88()
357 int32_t w = dsc->dest_w; in i1_image_blend() local
376 for(x = 0; x < w; x++) { in i1_image_blend()
388 for(x = 0; x < w; x++) { in i1_image_blend()
[all …]
Dlv_draw_sw_blend_to_rgb565.c213 int32_t w = dsc->dest_w; in lv_draw_sw_blend_color_to_rgb565() local
225 LV_UNUSED(w); in lv_draw_sw_blend_color_to_rgb565()
240 uint16_t * dest_end_final = dest_buf_u16 + w; in lv_draw_sw_blend_color_to_rgb565()
241 … uint32_t * dest_end_mid = (uint32_t *)((uint16_t *) dest_buf_u16 + ((w - 1) & ~(0xF))); in lv_draw_sw_blend_color_to_rgb565()
269 dest_buf_u16 -= w; in lv_draw_sw_blend_color_to_rgb565()
287 for(; x < w - 2; x += 2) { in lv_draw_sw_blend_color_to_rgb565()
308 for(; x < w ; x++) { in lv_draw_sw_blend_color_to_rgb565()
327 for(; x <= w - 2; x += 2) { in lv_draw_sw_blend_color_to_rgb565()
339 for(; x < w ; x++) { in lv_draw_sw_blend_color_to_rgb565()
352 for(x = 0; x < w; x++) { in lv_draw_sw_blend_color_to_rgb565()
[all …]
/lvgl-latest/src/widgets/lottie/
Dlv_lottie.c73 void lv_lottie_set_buffer(lv_obj_t * obj, int32_t w, int32_t h, void * buf) in lv_lottie_set_buffer() argument
76 int32_t stride = lv_draw_buf_width_to_stride(w, LV_COLOR_FORMAT_ARGB8888); in lv_lottie_set_buffer()
79 tvg_swcanvas_set_target(lottie->tvg_canvas, buf, stride / 4, w, h, TVG_COLORSPACE_ARGB8888); in lv_lottie_set_buffer()
81 lv_canvas_set_buffer(obj, buf, w, h, LV_COLOR_FORMAT_ARGB8888); in lv_lottie_set_buffer()
82 tvg_picture_set_size(lottie->tvg_paint, w, h); in lv_lottie_set_buffer()
103 draw_buf->header.w, draw_buf->header.h, TVG_COLORSPACE_ARGB8888); in lv_lottie_set_draw_buf()
106 tvg_picture_set_size(lottie->tvg_paint, draw_buf->header.w, draw_buf->header.h); in lv_lottie_set_draw_buf()
123 … tvg_picture_set_size(lottie->tvg_paint, canvas_draw_buf->header.w, canvas_draw_buf->header.h); in lv_lottie_set_src_data()
141 … tvg_picture_set_size(lottie->tvg_paint, canvas_draw_buf->header.w, canvas_draw_buf->header.h); in lv_lottie_set_src_file()

12345678910>>...22