Lines Matching refs:img_data
151 uint8_t * img_data = NULL; in decoder_open() local
173 error = lodepng_decode32(&img_data, &png_width, &png_height, png_data, png_data_size); in decoder_open()
176 if(img_data != NULL) { in decoder_open()
177 lv_mem_free(img_data); in decoder_open()
184 convert_color_depth(img_data, png_width * png_height); in decoder_open()
185 dsc->img_data = img_data; in decoder_open()
196 … error = lodepng_decode32(&img_data, &png_width, &png_height, img_dsc->data, img_dsc->data_size); in decoder_open()
199 if(img_data != NULL) { in decoder_open()
200 lv_mem_free(img_data); in decoder_open()
206 convert_color_depth(img_data, png_width * png_height); in decoder_open()
208 dsc->img_data = img_data; in decoder_open()
221 if(dsc->img_data) { in decoder_close()
222 lv_mem_free((uint8_t *)dsc->img_data); in decoder_close()
223 dsc->img_data = NULL; in decoder_close()