-
Notifications
You must be signed in to change notification settings - Fork 13
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
No Data on the LCD #24
Comments
Hi,
Please open an issue at https://github.com/lvgl/lv_lib_gif and attach the
original gif too.
Thank you!
Regards,
Gabor
Hesam Moshiri ***@***.***> ezt írta (időpont: 2021. ápr. 21.,
Sze, 15:55):
… [image: 20210421_182148]
<https://user-images.githubusercontent.com/18719591/115565804-f0b09880-a2ce-11eb-8b30-200e27d3e9a0.jpg>
Hi,
I used a library with this code:
extern const uint8_t mygif_map[];
..
.
..
.
![20210421_182148](https://user-images.githubusercontent.com/18719591/115565715-db3b6e80-a2ce-11eb-8d0a-94dc63402090.jpg)
lv_obj_t * par = lv_obj_create(lv_scr_act(), NULL); /*Create a parent object on the current screen*/
lv_obj_set_size(par, 320, 240);
lv_obj_t * img = lv_gif_create_from_data(par, mygif_map);
However, the LCD shows this:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ7JVRVQYFH5OWJAVV2NODTJ3KNRANCNFSM43KNJL5A>
.
|
Uh sorry. Somehow I thought it's an email, not a GitHub notification... 😅 I'll test it tomorrow. |
I've checked it and I see the gif but it freezes after ~10 frames. It seems it's a bug in the gif decoder. Does the decoder work with the example gif? |
I first tested this on the CodeBlock, as you said it freezes after the frames finish and when it tries to re-start the frames. I have not tested the example gif. I will do and inform you. |
For me, it froze after 12 frames but the gif has > 20 frames. Please enable LVGL's logging in |
Should I test with which gif file, the example gif, or my own gif? |
With the example gif please, to find out why it doesn't run. |
These are the memory configurations in
|
The gif decoding needs a lot of memory to store temporary data from the previous frames. I've pushed fix to slightly lower but with 16 bit color depth it's still Does it work if you increase |
Yes, it worked with 48U and I can see the animation. The speed of the animation is "a bit" slower than the actual test on a PC, however, the difference is not significant. The LCD bus is SPI which I flush the data using DMA. the main clock is 168MHz. is there any method to inform the LVGL engine to use external SRAM? I can connect an external SRAM to the MCU using FSMC and I know the SRAM start address would be something like 0xC00000000 for example. |
Yes, use |
Yes, I use STM32. Thank you for your support. |
New comment here lecram/gifdec#13 |
@lecram has fixed the issue of the gif decoder and I updated our decoder accordingly. |
Hi,
I used the library with this code:
However, the LCD shows this:
The text was updated successfully, but these errors were encountered: