Problem wich use lodepng image decoder. Compilation error.
What MCU/Processor/Board and compiler are you using?
Code::Blocks, Windows
What LVGL version are you using?
v9.2.2
What do you want to achieve?
Load image from PNG file, manipulation wich pixels and draw it on canvas.
What have you tried so far?
lv_image_header_t header;
if (lv_image_decoder_get_info(path, &header) != LV_RESULT_OK) {
LV_LOG_ERROR("Failed to read PNG header.");
return;
}
lv_image_decoder_dsc_t decoder_dsc;
if (lv_image_decoder_open(&decoder_dsc, path, NULL) != LV_RESULT_OK) {
LV_LOG_ERROR("Failed to decode PNG.");
return;
}
And it take error:
error: storage size of 'decoder_dsc' isn't known