![]() |
jjPAL(...).load(): possibly false positive detection of no GIF global color table?
4 Attachment(s)
Save this as a mutator and test on a local server. Pay attention to chatlogger for angelscript warnings.
Code:
// Reference: https://en.wikipedia.org/wiki/GIF#Example_GIF_file |
Let's quote the relevant documentation here:
API: "an 8-bit globally-paletted GIF" Chatlog: "does not define a global 256 color palette" So JJ2+ is detecting that your GIF files have color tables, just not color tables that it's excited to work with. Specifically:
|
Quote:
If it's too niche of a use case to be worth padding other colors with jjPALCOLOR(0,0,0,0) I can just continue analyzing gifs using jjSTREAM to do what I desire. |
I would rather say that the last case makes the most sense: the expected use case of loading a palette from a GIF is to display all the frames in that GIF (after loading them using jjANIMATION::load). In the last case, you can't do that, because different frames have different palettes. So maybe there needs to be an overload (or whatever) of jjANIMATION::load that imports the GIF frames as 32-bit (well, 24-bit really) sprites instead.
For the other cases, padding would probably be possible, though I'm leaving in that "probably" because I haven't taken a close enough look at our GIF library yet to know how it handles those cases. |
| All times are GMT -8. The time now is 01:38 AM. |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online