Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't display the png img in vs2019 simulator #5

Open
banshanju opened this issue Nov 6, 2020 · 2 comments
Open

can't display the png img in vs2019 simulator #5

banshanju opened this issue Nov 6, 2020 · 2 comments

Comments

@banshanju
Copy link

I use LVGL's file system API, it work fine when i transform the img to bin file,but when i open png file directly,it display “nodata”.

I Initalize the decocer with lv_png_init() and add #define LV_PNG_USE_LV_FILESYSTEM 1.

It printf: ERROR 48:empty input buffer given to decoder. Maybe caused by non-existing file?

@banshanju banshanju changed the title can't display the png img in vs2019 monitor can't display the png img in vs2019 simulator Nov 6, 2020
@kisvegabor
Copy link
Member

Hi,

Have you tried to open this example file? lv_img_set_src(img, "P:lv_lib_lodepng/png_decoder_test.png");

If so have you placed lv_lib_lodepng to the root folder of the project?

Can you "manually" open the file with lv_fs_open?

@banshanju
Copy link
Author

Yes, I placed lv_lib_lodepng to the root folder of the project, and try the example.
I will try to manually open the file with lv_fs_open, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants