-
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
GIF parses out redundant images #38
Comments
Is it the same with v8 where gif is already part of lvgl? |
yes, my lvgl version is v7, latest v7 version of my lv_lib_gif |
I mean can ou try out in a simulator with v8 too? |
yes, you can try it! |
how about? |
|
I meant you can try it out if the issue still persists. Anyway I've just checked it an v8 it looked fine. Can you try it out on your end too with v8? |
i found this gif background=0xff, when i add this code in gif_open function in release/v7, this gif is shows normal |
so, i think when gif->bgindex = 0xff, it may cause the gif to display abnormally, do you think so? I need some advice from you |
Also, I'm developing with lgvl v7 now |
I think it's just working accidentally. I suggest backporting the gif decoder from v8 to v7. |
I have compared the difference between v8 and release/v7 versions of gif parsers and they are no different in my opinion |
but,i can try it |
In addition, why does it cause this problem when gif->bgindex = 0xff? |
It seems the problem is related to the transparent background. Wikipedia says:
I remember that tested this but there might be some issues. I suspect that the offending line is this: https://github.com/lvgl/lvgl/blob/master/src/extra/libs/gif/gifdec.c#L486 |
|
By definition, |
yes,i know |
i'm tested in v7 lvgl and in v7 lv_lib_gif do you help me to test it?please |
hi,I know what is causing the above problem,The above gif image is very special, and it has several characteristics that cause the above problems。 Lines 138 to 155 in 27a7450
Step2:because Step3:because every frame Local Color Table So I think the above situation leads to why the background color has an extra white line. Also, I think white background color is not supported in release/v7,I think the code should be changed like this: |
in this issues,#15 his problem is similar to mine, But I don't think your explanation is accurate:#15 (comment) I found a similar question,use cmd: |
I think I mostly understand 🙂 |
yes, in RGB #0000000 is black,but, the actual running scenario does this code |
To be honest I also don't know what is the point of So can you confirm that removing it all works well? |
yes,i can
…---Original---
From: "Gabor ***@***.***>
Date: Thu, Feb 17, 2022 21:38 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [lvgl/lv_lib_gif] GIF parses out redundant images (Issue #38)
To be honest I also don't know what is the point of if (bgcolor[0] || bgcolor[1] || bgcolor [2]).
So can you confirm that removing it all works well?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
yes, I can
…---Original---
From: "Gabor ***@***.***>
Date: Thu, Feb 17, 2022 21:38 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [lvgl/lv_lib_gif] GIF parses out redundant images (Issue #38)
To be honest I also don't know what is the point of if (bgcolor[0] || bgcolor[1] || bgcolor [2]).
So can you confirm that removing it all works well?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Great! I fixed it in lvgl/master here lvgl/lvgl@b1e2c06 |
Thanks,i will colse this issue |
Thanks for the debugging and finding the root of this issue! 🥇 |
in release/v7, use this GIF,Caused extra images to be parsed, please help to see what caused the problem?
In addition, is there a useful tool for parsing GIF data?
The text was updated successfully, but these errors were encountered: