Lines Matching refs:decoder
60 lv_img_decoder_t * decoder; in _lv_img_decoder_init() local
63 decoder = lv_img_decoder_create(); in _lv_img_decoder_init()
64 LV_ASSERT_MALLOC(decoder); in _lv_img_decoder_init()
65 if(decoder == NULL) { in _lv_img_decoder_init()
70 lv_img_decoder_set_info_cb(decoder, lv_img_decoder_built_in_info); in _lv_img_decoder_init()
71 lv_img_decoder_set_open_cb(decoder, lv_img_decoder_built_in_open); in _lv_img_decoder_init()
72 lv_img_decoder_set_read_line_cb(decoder, lv_img_decoder_built_in_read_line); in _lv_img_decoder_init()
73 lv_img_decoder_set_close_cb(decoder, lv_img_decoder_built_in_close); in _lv_img_decoder_init()
138 lv_img_decoder_t * decoder; in lv_img_decoder_open() local
139 _LV_LL_READ(&LV_GC_ROOT(_lv_img_decoder_ll), decoder) { in lv_img_decoder_open()
141 if(decoder->info_cb == NULL || decoder->open_cb == NULL) continue; in lv_img_decoder_open()
143 res = decoder->info_cb(decoder, src, &dsc->header); in lv_img_decoder_open()
146 dsc->decoder = decoder; in lv_img_decoder_open()
147 res = decoder->open_cb(decoder, dsc); in lv_img_decoder_open()
179 …if(dsc->decoder->read_line_cb) res = dsc->decoder->read_line_cb(dsc->decoder, dsc, x, y, len, buf); in lv_img_decoder_read_line()
190 if(dsc->decoder) { in lv_img_decoder_close()
191 if(dsc->decoder->close_cb) dsc->decoder->close_cb(dsc->decoder, dsc); in lv_img_decoder_close()
206 lv_img_decoder_t * decoder; in lv_img_decoder_create() local
207 decoder = _lv_ll_ins_head(&LV_GC_ROOT(_lv_img_decoder_ll)); in lv_img_decoder_create()
208 LV_ASSERT_MALLOC(decoder); in lv_img_decoder_create()
209 if(decoder == NULL) return NULL; in lv_img_decoder_create()
211 lv_memset_00(decoder, sizeof(lv_img_decoder_t)); in lv_img_decoder_create()
213 return decoder; in lv_img_decoder_create()
220 void lv_img_decoder_delete(lv_img_decoder_t * decoder) in lv_img_decoder_delete() argument
222 _lv_ll_remove(&LV_GC_ROOT(_lv_img_decoder_ll), decoder); in lv_img_decoder_delete()
223 lv_mem_free(decoder); in lv_img_decoder_delete()
231 void lv_img_decoder_set_info_cb(lv_img_decoder_t * decoder, lv_img_decoder_info_f_t info_cb) in lv_img_decoder_set_info_cb() argument
233 decoder->info_cb = info_cb; in lv_img_decoder_set_info_cb()
241 void lv_img_decoder_set_open_cb(lv_img_decoder_t * decoder, lv_img_decoder_open_f_t open_cb) in lv_img_decoder_set_open_cb() argument
243 decoder->open_cb = open_cb; in lv_img_decoder_set_open_cb()
251 void lv_img_decoder_set_read_line_cb(lv_img_decoder_t * decoder, lv_img_decoder_read_line_f_t read_… in lv_img_decoder_set_read_line_cb() argument
253 decoder->read_line_cb = read_line_cb; in lv_img_decoder_set_read_line_cb()
261 void lv_img_decoder_set_close_cb(lv_img_decoder_t * decoder, lv_img_decoder_close_f_t close_cb) in lv_img_decoder_set_close_cb() argument
263 decoder->close_cb = close_cb; in lv_img_decoder_set_close_cb()
273 lv_res_t lv_img_decoder_built_in_info(lv_img_decoder_t * decoder, const void * src, lv_img_header_t… in lv_img_decoder_built_in_info() argument
275 LV_UNUSED(decoder); /*Unused*/ in lv_img_decoder_built_in_info()
326 lv_res_t lv_img_decoder_built_in_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc) in lv_img_decoder_built_in_open() argument
427 lv_img_decoder_built_in_close(decoder, dsc); in lv_img_decoder_built_in_open()
462 lv_img_decoder_built_in_close(decoder, dsc); in lv_img_decoder_built_in_open()
480 lv_res_t lv_img_decoder_built_in_read_line(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc, … in lv_img_decoder_built_in_read_line() argument
483 LV_UNUSED(decoder); /*Unused*/ in lv_img_decoder_built_in_read_line()
516 void lv_img_decoder_built_in_close(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc) in lv_img_decoder_built_in_close() argument
518 LV_UNUSED(decoder); /*Unused*/ in lv_img_decoder_built_in_close()