Lines Matching refs:src
83 lv_res_t lv_img_decoder_get_info(const void * src, lv_img_header_t * header) in lv_img_decoder_get_info() argument
87 if(src == NULL) return LV_RES_INV; in lv_img_decoder_get_info()
89 lv_img_src_t src_type = lv_img_src_get_type(src); in lv_img_decoder_get_info()
91 const lv_img_dsc_t * img_dsc = src; in lv_img_decoder_get_info()
99 res = d->info_cb(d, src, header); in lv_img_decoder_get_info()
107 lv_res_t lv_img_decoder_open(lv_img_decoder_dsc_t * dsc, const void * src, lv_color_t color, int32_… in lv_img_decoder_open() argument
111 if(src == NULL) return LV_RES_INV; in lv_img_decoder_open()
112 lv_img_src_t src_type = lv_img_src_get_type(src); in lv_img_decoder_open()
114 const lv_img_dsc_t * img_dsc = src; in lv_img_decoder_open()
123 size_t fnlen = strlen(src); in lv_img_decoder_open()
124 dsc->src = lv_mem_alloc(fnlen + 1); in lv_img_decoder_open()
125 LV_ASSERT_MALLOC(dsc->src); in lv_img_decoder_open()
126 if(dsc->src == NULL) { in lv_img_decoder_open()
130 strcpy((char *)dsc->src, src); in lv_img_decoder_open()
133 dsc->src = src; in lv_img_decoder_open()
143 res = decoder->info_cb(decoder, src, &dsc->header); in lv_img_decoder_open()
162 lv_mem_free((void *)dsc->src); in lv_img_decoder_open()
194 lv_mem_free((void *)dsc->src); in lv_img_decoder_close()
195 dsc->src = NULL; in lv_img_decoder_close()
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
277 lv_img_src_t src_type = lv_img_src_get_type(src); in lv_img_decoder_built_in_info()
279 lv_img_cf_t cf = ((lv_img_dsc_t *)src)->header.cf; in lv_img_decoder_built_in_info()
282 header->w = ((lv_img_dsc_t *)src)->header.w; in lv_img_decoder_built_in_info()
283 header->h = ((lv_img_dsc_t *)src)->header.h; in lv_img_decoder_built_in_info()
284 header->cf = ((lv_img_dsc_t *)src)->header.cf; in lv_img_decoder_built_in_info()
288 if(strcmp(lv_fs_get_ext(src), "bin")) return LV_RES_INV; in lv_img_decoder_built_in_info()
291 lv_fs_res_t res = lv_fs_open(&f, src, LV_FS_MODE_RD); in lv_img_decoder_built_in_info()
331 if(strcmp(lv_fs_get_ext(dsc->src), "bin")) return LV_RES_INV; in lv_img_decoder_built_in_open()
334 lv_fs_res_t res = lv_fs_open(&f, dsc->src, LV_FS_MODE_RD); in lv_img_decoder_built_in_open()
357 if(((lv_img_dsc_t *)dsc->src)->data == NULL) { in lv_img_decoder_built_in_open()
370 dsc->img_data = ((lv_img_dsc_t *)dsc->src)->data; in lv_img_decoder_built_in_open()
419 lv_color32_t * palette_p = (lv_color32_t *)((lv_img_dsc_t *)dsc->src)->data; in lv_img_decoder_built_in_open()
602 const lv_img_dsc_t * img_dsc = dsc->src; in lv_img_decoder_built_in_line_alpha()
670 const lv_img_dsc_t * img_dsc = dsc->src; in lv_img_decoder_built_in_line_indexed()