Lines Matching full: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 …d a storage *Drive* to LVGL. In short, a *Drive* is a collection of functions (*open*, *read*, *cl…
26 In every case, a *Drive* is just an abstraction to read and/or write data to memory.
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 In the generated C arrays (variables), bitmaps for all the color depths (1, 8, 16 or 32) are includ…
82 In the case of binary files, you need to specify the color format you want:
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 …r* by the library. In other words, the image decoder must decode the *Raw* images to *True color* …
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 - In `decoder_open`, you should try to open the image source pointed by `dsc->src`. Its type is alr…
254 However, if you can open the image, a pointer to the decoded *True color* image should be set in `d…
256 - In `decoder_close` you should free all allocated resources.
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…