Lines Matching refs:decoder
57 …ed with one of the built-in color formats and an external [Image decoder](#image-decoder) needs to…
126 ## Image decoder
129 …mats, you need to use external libraries and attach them to LVGL via the *Image decoder* interface.
131 An image decoder consists of 4 callbacks:
139 …IMG_ALPHA_...` formats (essentially, all non-`RAW` formats) are understood by the built-in decoder.
143 …aded and write it as an image "bitmap". You then need to attach an image decoder that will parse t…
147 …ts are considered *True color* by the library. In other words, the image decoder must decode the *…
151 …t first (for example: `LV_IMG_INDEXED_4BITS`) and then call the built-in decoder functions to conv…
156 ### Register an image decoder argument
160 First, you need to create a new image decoder and set some functions to open/close the PNG files. I…
163 /*Create a new decoder and register functions */
172 * @param decoder pointer to the decoder where this function belongs
177 static lv_res_t decoder_info(lv_img_decoder_t * decoder, const void * src, lv_img_header_t * header)
179 /*Check whether the type `src` is known by the decoder*/
192 * @param decoder pointer to the decoder where this function belongs
196 static lv_res_t decoder_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc)
199 /*Check whether the type `src` is known by the decoder*/
208 …/*Call a built in decoder function if required. It's not required if`my_png_decoder` opened the im…
209 lv_res_t res = lv_img_decoder_built_in_open(decoder, dsc);
217 * @param decoder pointer to the decoder the function associated with
218 * @param dsc pointer to decoder descriptor
225 lv_res_t decoder_built_in_read_line(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc, lv_coor…
236 * @param decoder pointer to the decoder where this function belongs
239 static void decoder_close(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc)
244 lv_img_decoder_built_in_close(decoder, dsc);
253 If this format/type is not supported by the decoder, return `LV_RES_INV`.
262 ### Manually use an image decoder argument
302 …LVGL's measurement, you can manually set the *time to open* value in the decoder open function in …