Page 1 of 2

@Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decoder)?

Posted: Wed Dec 21, 2005 9:52 am
by IceSoft
Hello @Fred,
Is there a possibility to add an own ImagePlugin like the delivered one (e.g. UseJPEGImageDecoder)

The following commands should support the 'extended' image plugin too: LoadImage(), CatchImage(), SaveImage(), LoadSprite() CatchSprite(), and SaveSprite())

Maybe you can add an interface on PB4.0 for that?

Posted: Wed Dec 21, 2005 9:57 am
by Mowen
Maybe I am wrong but I think the Gif format is not free anymore and you have to pay the license to distribute a decoder.

Re: @Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decod

Posted: Wed Dec 21, 2005 9:59 am
by traumatic
IceSoft wrote:Is there a possibility to add an own ImagePlugin like the delivered one (e.g. UseJPEGImageDecoder)
There's an example in the Library-SDK, isn't that what you're after?

Posted: Wed Dec 21, 2005 10:33 am
by PB
> I think the Gif format is not free anymore

It was free, then you had to pay, but now it's free again, and has been for
many months. :)

Re: @Fred: Can I add 'my' own ImagePlugin (e.g GIF En-/Decod

Posted: Wed Dec 21, 2005 11:09 am
by IceSoft
traumatic wrote:
IceSoft wrote:Is there a possibility to add an own ImagePlugin like the delivered one (e.g. UseJPEGImageDecoder)
There's an example in the Library-SDK, isn't that what you're after?
Not really.
What I meanit should like the nativ ImagePlugins which supports also if I use e.g. LoadImage()

Posted: Wed Dec 21, 2005 11:23 am
by Fred
Look in the LccWin32\ drawer of the SDK dir, there is an example (in C).

Posted: Wed Dec 21, 2005 11:50 am
by IceSoft
I see...thanks.

Posted: Wed Dec 21, 2005 1:19 pm
by DarkDragon
IceSoft wrote:I see...thanks.
Or look at the TailBite Examples ;) .

Posted: Wed Dec 21, 2005 9:55 pm
by PHP
viewtopic.php?t=17942

When will GIF finally be included in PB?!

Posted: Thu Dec 22, 2005 2:07 pm
by josku_x
I think Fred has some plans for that for PB4.0, but if he doesn't, I'll stay with 3.94 :lol:

Posted: Thu Dec 22, 2005 3:40 pm
by Fred
GIF is still under patents and won't be implemented in PB until ALL patents actually expires. Check the bottom page here: http://www.gnu.org/philosophy/gif.html .

Posted: Thu Dec 22, 2005 4:17 pm
by PHP
The U.S. IBM patent expires 11 August 2006
Ah... means we have to wait at least 1 year :-/

Posted: Fri Dec 23, 2005 2:29 am
by Intrigued
PHP wrote:
The U.S. IBM patent expires 11 August 2006
Ah... means we have to wait at least 1 year :-/
I'd say it's closer to only eight ( 8 ) months till that patent expires. That's a third (3rd) quicker already.

:P

Posted: Fri Dec 23, 2005 10:20 am
by El_Choni
You can already use Gdiplus to load/save gifs.

Posted: Fri Dec 23, 2005 5:11 pm
by DoubleDutch
Fred: Below is a quote from http://www.gnu.org/philosophy/gif.html
Decoding GIFs is a different issue. The Unisys and IBM patents are both written in such a way that they do not apply to a program which can only uncompress LZW format and cannot compress. Therefore we can and will include support for displaying GIF files in GNU software.

Given this situation, we could still include GIF files in our web pages if we wanted to. Many other people would be happy to generate them for us, and we would not be sued for having GIF files on our server.
You could therefore include gif decoding now, but only include encoding post-August 2006.

If you do include gif decoding in the future, could you make it so that the lzw is available seperately as being able to decode lzw native to PureBasic would be really useful.

btw, anyone know of a lzw/lzh/rar lib or a free dll for PureBasic yet?