Lines Matching refs:in

6 You can store images in two places
7 - as a variable in internal memory (RAM or ROM)
11 Images stored internally in a variable are composed mainly of an `lv_img_dsc_t` structure with the …
14 - *w* width in pixels (<= 2048)
15 - *h* height in pixels (<= 2048)
19 - **data_size** length of `data` in bytes
24 …e* is a collection of functions (*open*, *read*, *close*, etc.) registered in LVGL to make file op…
32 Various built-in color formats are supported:
33 - **LV_IMG_CF_TRUE_COLOR** Simply stores the RGB colors (in whatever color depth LVGL is configured…
35 …`LV_IMG_CF_TRUE_COLOR` but if a pixel has the `LV_COLOR_TRANSP` color (set in *lv_conf.h*) it will…
36 …1/2/4/8BIT** Uses a palette with 2, 4, 16 or 256 colors and stores each pixel in 1, 2, 4 or 8 bits.
39 The bytes of `LV_IMG_CF_TRUE_COLOR` images are stored in the following order.
57 You can store images in a *Raw* format to indicate that it's not encoded with one of the built-in c…
60 - **LV_IMG_CF_RAW_CHROMA_KEYED** Indicates that an image is chroma-keyed as described in `LV_IMG_CF…
65 You can add images to LVGL in two ways:
80 …or depths (1, 8, 16 or 32) are included in the C file, but only the color depth that matches `LV_C…
111 The simplest way to use an image in LVGL is to display it with an [lv_img](/widgets/core/img) objec…
123 …nverter, you should use `LV_IMG_DECLARE(my_icon_dsc)` to declare the image in the file where you w…
127 As you can see in the [Color formats](#color-formats) section, LVGL supports several built-in image…
129 To handle non-built-in image formats, you need to use external libraries and attach them to LVGL vi…
139 …IMG_ALPHA_...` formats (essentially, all non-`RAW` formats) are understood by the built-in decoder.
147 … decode the *Raw* images to *True color* according to the format described in the [Color formats](…
149 …ts. However, the library can draw images only in *True color* format (or *Raw* but ultimately it w…
151 …format first (for example: `LV_IMG_INDEXED_4BITS`) and then call the built-in decoder functions to…
153 With *User encoded* formats, the color format in the open function (`dsc->header.cf`) should be cha…
208 …/*Call a built in decoder function if required. It's not required if`my_png_decoder` opened the im…
215 * Decode `len` pixels starting from the given `x`, `y` coordinates and store them in `buf`.
230 /*Copy `len` pixels from `x` and `y` coordinates in True color format to `buf` */
243 /*Call the built-in close function if the built-in open/read_line was used*/
250 So in summary:
251 - In `decoder_info`, you should collect some basic information about the image and store it in `hea…
252 …ld try to open the image source pointed by `dsc->src`. Its type is already in `dsc->src_type == LV…
254 However, if you can open the image, a pointer to the decoded *True color* image should be set in `d…
259 To indicate that the *line read* function should be used, set `dsc->img_data = NULL` in the open fu…
293 The number of cache entries can be defined with `LV_IMG_CACHE_DEF_SIZE` in *lv_conf.h*. The default…
300 … that hold slower-to-open images are considered more valuable and are kept in the cache as long as…
302 …s measurement, you can manually set the *time to open* value in the decoder open function in `dsc-…
307 If there is no more space in the cache, the entry with the lowest life value will be closed.
315 Let's say you have loaded a PNG image into a `lv_img_dsc_t my_png` variable and use it in an `lv_im…