Lines Matching refs:image
269 png_image image; in decode_png() local
270 lv_memzero(&image, sizeof(image)); in decode_png()
271 image.version = PNG_IMAGE_VERSION; in decode_png()
289 ret = png_image_begin_read_from_memory(&image, png_data, png_data_size); in decode_png()
298 if(dsc->args.use_indexed && (image.format & PNG_FORMAT_FLAG_COLORMAP)) { in decode_png()
300 image.format = PNG_FORMAT_BGRA_COLORMAP; in decode_png()
304 image.format = PNG_FORMAT_BGRA; in decode_png()
309 …decoded = lv_draw_buf_create_ex(image_cache_draw_buf_handlers, image.width, image.height, cf, LV_S… in decode_png()
313 … LV_LOG_ERROR("alloc PNG_IMAGE_SIZE(%" LV_PRIu32 ") failed: %s", (uint32_t)PNG_IMAGE_SIZE(image), in decode_png()
318 LV_LOG_ERROR("alloc PNG_IMAGE_SIZE(%" LV_PRIu32 ")", (uint32_t)PNG_IMAGE_SIZE(image)); in decode_png()
320 png_image_free(&image); in decode_png()
328 ret = png_image_finish_read(&image, NULL, map, decoded->header.stride, palette); in decode_png()
329 png_image_free(&image); in decode_png()
333 LV_LOG_ERROR("png decode failed: %s", image.message); in decode_png()