/lvgl-latest/src/libs/thorvg/ |
D | tvgSwImage.cpp | 40 static bool _genOutline(SwImage* image, const Matrix& transform, SwMpool* mpool, unsigned tid) in _genOutline() argument 42 image->outline = mpoolReqOutline(mpool, tid); in _genOutline() 43 auto outline = image->outline; in _genOutline() 51 auto w = static_cast<float>(image->w); in _genOutline() 52 auto h = static_cast<float>(image->h); in _genOutline() 68 image->outline = outline; in _genOutline() 78 bool imagePrepare(SwImage* image, const Matrix& transform, const SwBBox& clipRegion, SwBBox& render… in imagePrepare() argument 80 image->direct = _onlyShifted(transform); in imagePrepare() 83 if (image->direct) { in imagePrepare() 84 image->ox = -static_cast<int32_t>(nearbyint(transform.e13)); in imagePrepare() [all …]
|
D | tvgSwRaster.cpp | 233 static bool _compositeMaskImage(SwSurface* surface, const SwImage* image, const SwBBox& region) in _compositeMaskImage() argument 236 …auto sbuffer = image->buf8 + (region.min.y + image->oy) * image->stride + (region.min.x + image->o… in _compositeMaskImage() 245 sbuffer += image->stride; in _compositeMaskImage() 334 auto cstride = surface->compositor->image.stride; in _rasterCompositeMaskedRect() 335 …auto cbuffer = surface->compositor->image.buf8 + (region.min.y * cstride + region.min.x); //comp… in _rasterCompositeMaskedRect() 345 return _compositeMaskImage(surface, &surface->compositor->image, surface->compositor->bbox); in _rasterCompositeMaskedRect() 353 …auto cbuffer = surface->compositor->image.buf8 + (region.min.y * surface->compositor->image.stride… in _rasterDirectMaskedRect() 363 cbuffer += surface->compositor->image.stride; in _rasterDirectMaskedRect() 388 auto csize = surface->compositor->image.channelSize; in _rasterMattedRect() 389 …auto cbuffer = surface->compositor->image.buf8 + ((region.min.y * surface->compositor->image.strid… in _rasterMattedRect() [all …]
|
D | tvgSwRasterTexmap.h | 58 static bool _arrange(const SwImage* image, const SwBBox* region, int& yStart, int& yEnd) in _arrange() argument 66 regionTop = image->rle->spans->y; in _arrange() 67 regionBottom = image->rle->spans[image->rle->size - 1].y; in _arrange() 79 static bool _rasterMaskedPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBBox… 89 auto sbuf = image->buf8; 90 int32_t sw = static_cast<int32_t>(image->stride); 91 int32_t sh = image->h; 98 if (!_arrange(image, region, yStart, yEnd)) return false; 107 span = image->rle->spans; 124 while (span->y == y && spanIdx < image->rle->size) { [all …]
|
D | tvgSwRenderer.cpp | 208 SwImage image; member 225 image.data = source->data; in run() 226 image.w = source->w; in run() 227 image.h = source->h; in run() 228 image.stride = source->stride; in run() 229 image.channelSize = source->channelSize; in run() 233 imageReset(&image); in run() 234 if (!image.data || image.w == 0 || image.h == 0) goto end; in run() 236 if (!imagePrepare(&image, transform, clipRegion, bbox, mpool, tid)) goto end; in run() 239 if (!imageGenRle(&image, bbox, false)) goto end; in run() [all …]
|
D | tvgSwPostEffect.cpp | 158 bool effectGaussianBlur(SwImage& image, SwImage& buffer, const SwBBox& bbox, const RenderEffectGaus… in effectGaussianBlur() argument 162 if (image.channelSize != sizeof(uint32_t)) { in effectGaussianBlur() 170 auto stride = image.stride; in effectGaussianBlur() 171 auto front = image.buf8; in effectGaussianBlur() 208 if (swapped) std::swap(image.buf8, buffer.buf8); in effectGaussianBlur()
|
/lvgl-latest/docs/details/main-components/ |
D | image.rst | 7 An image can be a file or a variable which stores the bitmap itself and 33 - **data**: pointer to an array where the image itself is stored 70 the set opacity. The source image has to be an alpha channel. This is 71 ideal for bitmaps similar to fonts where the whole image is one color 91 needs to be used to decode the image. 93 - :cpp:enumerator:`LV_COLOR_FORMAT_RAW`: Indicates a basic raw image (e.g. a PNG or JPG image). 94 - :cpp:enumerator:`LV_COLOR_FORMAT_RAW_ALPHA`: Indicates that an image has alpha and an alpha byte … 110 Adding an image to LVGL via the online converter is easy. 112 1. You need to select a *BMP*, *PNG* or *JPG* image first. 113 2. Give the image a name that will be used within LVGL. [all …]
|
/lvgl-latest/docs/details/widgets/ |
D | image.rst | 13 Using the :ref:`Image decoder interface <overview_image_decoder>`, custom image formats 22 background style properties <typical bg props>`, and the image itself uses the image 33 To provide maximum flexibility, the source of the image can be: 39 To set the source of an image, use :cpp:expr:`lv_image_set_src(img, src)`. 41 To generate a pixel array from a PNG, JPG or BMP image, use the `Online image converter tool <https… 42 and set the converted image as the image source with its pointer with 44 To make the converted image variable accessible from the C file, declare it with 47 To use external files, you also need to convert the image files using 52 image as the image source with :cpp:expr:`lv_image_set_src(img, "S:folder1/my_img.bin")`. 54 You can also set a symbol as an image source similar to a :ref:`Labels <lv_label>`. In [all …]
|
D | imagebutton.rst | 15 You can set a left, right and middle image, and the middle image will be 24 - :cpp:enumerator:`LV_PART_MAIN` Refers to the image(s). If background style 37 To set the image in a state, use the 40 The image sources work the same as described in the :ref:`Image Widget <lv_image>` 42 Typically the middle image should be one of the set image sources. 45 width of the image. However, if all three sources are set, the width needs to be set by the user 46 (using e.g. :cpp:expr:`lv_obj_set_width`) and the middle image will be tiled to fill the given size. 57 The image sources set for state :cpp:enumerator:`LV_IMAGEBUTTON_STATE_RELEASED` are 58 used for any state that has not had image sources set for it. If an image sources
|
D | animimg.rst | 10 The animation image is similar to the normal 'Image' Widget. The only 11 difference is that instead of one source image, you set an array of 22 background style properties <typical bg props>` and the image itself using the image 33 To set the image animation images sources, use 39 For more advanced use cases, the animation used internally by the image can be
|
/lvgl-latest/src/libs/libpng/ |
D | lv_libpng.c | 269 png_image image; in decode_png() local 270 lv_memzero(&image, sizeof(image)); in decode_png() 271 image.version = PNG_IMAGE_VERSION; in decode_png() 289 ret = png_image_begin_read_from_memory(&image, png_data, png_data_size); in decode_png() 298 if(dsc->args.use_indexed && (image.format & PNG_FORMAT_FLAG_COLORMAP)) { in decode_png() 300 image.format = PNG_FORMAT_BGRA_COLORMAP; in decode_png() 304 image.format = PNG_FORMAT_BGRA; in decode_png() 309 …decoded = lv_draw_buf_create_ex(image_cache_draw_buf_handlers, image.width, image.height, cf, LV_S… in decode_png() 313 … LV_LOG_ERROR("alloc PNG_IMAGE_SIZE(%" LV_PRIu32 ") failed: %s", (uint32_t)PNG_IMAGE_SIZE(image), in decode_png() 318 LV_LOG_ERROR("alloc PNG_IMAGE_SIZE(%" LV_PRIu32 ")", (uint32_t)PNG_IMAGE_SIZE(image)); in decode_png() [all …]
|
/lvgl-latest/examples/widgets/image/ |
D | index.rst | 5 .. lv_example:: widgets/image/lv_example_image_1 12 .. lv_example:: widgets/image/lv_example_image_2 19 .. lv_example:: widgets/image/lv_example_image_3 25 .. lv_example:: widgets/image/lv_example_image_4
|
/lvgl-latest/docs/details/libs/ |
D | bmp.rst | 11 The pixels are read on demand (not the whole image is loaded) 15 image decoder automatically so BMP files can be directly used as image 33 differences between how the BMP files and LVGL's image format stores 34 the image data. 36 …flash it's better to convert them to C array with `LVGL's image converter <https://lvgl.io/tools/i… 38 Use GIMP to save the image in the required format. Both RGB888 and 41 - Because not the whole image is read in cannot be zoomed or rotated.
|
D | gif.rst | 44 - :c:macro:`LV_COLOR_DEPTH` ``8``: 3 x image width x image height 45 - :c:macro:`LV_COLOR_DEPTH` ``16``: 4 x image width x image height 46 - :c:macro:`LV_COLOR_DEPTH` ``32``: 5 x image width x image height
|
D | rle.rst | 8 image size. The RLE compression is a lossless compression method. 10 The LVGL's built-in binary image decoder supports RLE compressed images. 11 The decoder supports both variable and file as image sources. The original 22 .. image:: rle-compress-statistics.png 34 original color value. For more details, the script used to compress the image 72 The RLE image can be used same as other images. 76 lv_image_set_src(img, "path/to/image.rle"); 81 The image can be directly generated using script ``lvgl/script/LVGLImage.py``
|
D | lodepng.rst | 12 image decoder automatically so PNG files can be directly used as any 13 other image sources. 20 The whole PNG image is decoded, so ``width x height x 4`` bytes free RAM space is required. 21 The decoded image is stored in RGBA pixel format. 31 the image by using 8-bit palette colors, instead of 24/32 bit True color format.
|
D | libjpeg_turbo.rst | 7 **libjpeg-turbo** is a JPEG image codec that uses SIMD instructions to accelerate baseline JPEG com… 40 It should be noted that each image of this decoder needs to consume ``image width x image height x …
|
/lvgl-latest/docs/details/other-components/ |
D | snapshot.rst | 7 Snapshot provides API to take snapshot image for LVGL Widget together 8 with its children. The image will look exactly like the Widget on display. 15 Simply call API :cpp:func:`lv_snapshot_take` to generate the image descriptor 16 which can be set as image Widget src using :cpp:func:`lv_image_set_src`. 30 takes. This will firstly free memory the image data takes, then the 31 image descriptor. 33 The snapshot image which is the draw buffer returned by :cpp:func:`lv_snapshot_take` 58 If snapshot is generated successfully, the image descriptor is updated 59 and image data will be stored to provided ``buf``.
|
D | imgfont.rst | 7 Draw image in **label** or **span** obj with :cpp:type:`lv_imgfont`. This is often used to 10 Supported image formats: determined by enabled LVGL :ref:`image decoders <overview_image_decoder>`. 30 - ``path_cb`` A function to get the image path of a character. 31 Pass ``NULL`` if no image should be shown, but the character itself.
|
/lvgl-latest/tests/ |
D | README.md | 21 4. You can re-generate the test images by adding option `--update-image`. 24 `./tests/main.py --update-image test` 26 As of now the generated image on CI uses pngquant 2.13.1-1. 52 …T("image1.png")` Render the active screen and compare its content with an image in the `ref_imgs` … 53 - If the reference image is not found it will be created automatically from the rendered screen. 54 … `<image_name>_err.png` file will be created with the rendered content next to the reference image.
|
/lvgl-latest/docs/details/integration/os/ |
D | torizon_os.rst | 12 This guide explains how to create a docker image containing LVGL and a simple demo 43 Creating the Docker image 70 that will be used to build the image. 152 The ``deploy`` image will be deployed on the device. 153 The executable created in the previous image is copied to the ``/usr/bin`` directory of the current… 155 This creates a smaller image that does not include the tool chain and the build dependencies. 162 The ``-t`` argument gives a name to the resulting image. 164 Upon completion, ensure that the image is listed by Docker: 166 ``docker image list | grep lvgl_app`` 168 It should display the image along with its ID that will be used later. [all …]
|
/lvgl-latest/src/libs/bin_decoder/ |
D | lv_bin_decoder.c | 122 lv_image_dsc_t * image = (lv_image_dsc_t *)src; in lv_bin_decoder_info() local 123 lv_memcpy(header, &image->header, sizeof(lv_image_header_t)); in lv_bin_decoder_info() 252 lv_image_dsc_t * image = (lv_image_dsc_t *)dsc->src; in lv_bin_decoder_open() local 253 if(image->data == NULL) { in lv_bin_decoder_open() 257 lv_color_format_t cf = image->header.cf; in lv_bin_decoder_open() 281 dsc->decoded = (lv_draw_buf_t *)image; in lv_bin_decoder_open() 299 if(image->header.flags & LV_IMAGE_FLAGS_ALLOCATED) { in lv_bin_decoder_open() 300 decoded = (lv_draw_buf_t *)image; in lv_bin_decoder_open() 304 if(image->header.stride == 0) { in lv_bin_decoder_open() 306 lv_image_dsc_t tmp = *image; in lv_bin_decoder_open() [all …]
|
/lvgl-latest/scripts/ |
D | image_viewer.py | 30 image = Image.open(output) variable 31 image.show(title=output)
|
/lvgl-latest/docs/ |
D | ROADMAP.rst | 25 - |check| Reconsider image color formats. 26 …et/ofs`, `add/create/register`, `id/idx/index`, `middle/mid/center`, `img/image`, `txt/text`, `opa… 60 - |check| Replace the `read_line_cb` of the image decoders with `get_area_cb` 61 - |check| Limit the image caching size in bytes instead of image count 78 - |check| `lv_img`: Reconsider image sizing models 79 (when the image size is not content): center, top-left, zoom, tile, other? 112 - |uncheck| `lv_image_set_src()` use “type-aware” parameter and rework image decoders. 128 - |uncheck| SW: Line drawing with image rotation 137 - |uncheck| ARGB image stroke/grow on the alpha map 174 - Support larger images: add support for large image #1892 [all …]
|
/lvgl-latest/src/libs/svg/ |
D | lv_svg_render.c | 671 lv_svg_render_image_t * image = (lv_svg_render_image_t *)obj; in _set_image_attr() local 674 image->x = attr->value.fval; in _set_image_attr() 677 image->y = attr->value.fval; in _set_image_attr() 680 image->height = attr->value.fval; in _set_image_attr() 683 image->width = attr->value.fval; in _set_image_attr() 686 image->img_dsc.opa = (lv_opa_t)(attr->value.fval * 255.0f); in _set_image_attr() 691 hal_funcs.load_image(xlink, &image->img_dsc); in _set_image_attr() 697 image->ratio = attr->value.uval; in _set_image_attr() 1074 lv_svg_render_image_t * image = (lv_svg_render_image_t *)obj; in _init_image() local 1075 lv_draw_image_dsc_init(&image->img_dsc); in _init_image() [all …]
|
/lvgl-latest/docs/details/integration/os/buildroot/ |
D | quick_setup.rst | 15 Build the image 21 At this point, you have an image that can be flashed on an SD and used. 48 Regenerate the image with the rootfs overlay updated.
|