GIF Decoder/Encoder

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

GIF Decoder/Encoder

Post by LCD »

Yes yes, I'm seriously! GIF is not protected by copyrights law anymore since 2004: http://www.cloanto.com/users/mcb/19950127giflzw.html
I'm aware that there are some methods of reading GIF in PB, using low level reading or OLE, but none of these methods is multiplattform-compatible. LoadMovie is a way, but for Animations and not for static GIF images, and grabbing the pixels of animated GIF frames does not work.
Any Chances for this?
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: GIF Decoder/Encoder

Post by Kaeru Gaman »

did you use the forum's search?
oh... and have a nice day.
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Re: GIF Decoder/Encoder

Post by LCD »

Yes, I had, and found some results for UseGifImageDecoder() (not in feature request, but I was not searching far enough), but no definitive answer (yes/no) from Fred, only from freak a #false statement: "GIF is dead".
At least PB supports now transparency, so it is ready for GIF...
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: GIF Decoder/Encoder

Post by Thorium »

LCD wrote: At least PB supports now transparency, so it is ready for GIF...
No, thats wrong. :)
PureBasic supports transparency for a long time. The new thing is the alpha channel. GIF don't support alpha channel. :wink:
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: GIF Decoder/Encoder

Post by Kaeru Gaman »

in fact, GIF transparency is a one-color-masked transparency like SetTransparentSpriteColor always was.
oh... and have a nice day.
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Re: GIF Decoder/Encoder

Post by LCD »

Kaeru Gaman wrote:in fact, GIF transparency is a one-color-masked transparency like SetTransparentSpriteColor always was.
Oh, I understand, the new addition is a 8 bit - 256 level transparency, the old was only 1 bit no transparency or full transparency.
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: GIF Decoder/Encoder

Post by Kaeru Gaman »

well, no.
the masked transparency just renders one of the 256 palette colors as transparent, nothing more.
in GIF it is just a Flag in the Header and the index number of the concerned color.

in RGBA each pixel has four channels, Red, Green, Blue and Transparency, each a value of 0-255.
it's something completely different *BOOOM*
oh... and have a nice day.
Post Reply