Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Marcb on April 21, 2009, 01:33:09 PM

Title: Load and display iff ilbm with C?
Post by: Marcb on April 21, 2009, 01:33:09 PM
Hi,

I've never learnt how to do this, does anyone know of a good tutorial that I can have a go at?

Cheers,
Marc
Title: Re: Load and display iff ilbm with C?
Post by: rzookol on April 21, 2009, 01:52:43 PM
decode:
http://netghost.narod.ru/gff/vendspec/iff/iff.txt

or datatypes
Title: Re: Load and display iff ilbm with C?
Post by: AJCopland on April 21, 2009, 01:55:16 PM
Almost any image loader tutorial should cover the basics for something like BMP or TGA. Then you just need to replace the parsing of the TGA file with something suitable for the iff/ilbm image formats.

You can probably find a description of the image formats somewhere WotSits formats (i category) (http://www.wotsit.org/list.asp?al=I).

You could also try taking a look at the source for decoding those formats used in programs like the Gimp or Asset Importer.

Andy

EDIT: or rzookol could post that awesome that tells you just about everything you'll need :lol:
Title: Re: Load and display iff ilbm with C?
Post by: SamuraiCrow on April 21, 2009, 03:58:38 PM
If you don't need something cross-platform, I'd suggest using IFFParse.library in AmigaOS 2+ or datatypes.library in AmigaOS 3+.
Title: Re: Load and display iff ilbm with C?
Post by: jj on April 21, 2009, 05:22:57 PM
Reading up about this.  This is now the way we are finnally going with XML
Title: Re: Load and display iff ilbm with C?
Post by: Piru on April 21, 2009, 06:26:27 PM
Quote
IFFParse.library in AmigaOS 2+

iffparse.library doesn't know anything about ILBM though, so you still need to have the ILBM specific code around.
Title: Re: Load and display iff ilbm with C?
Post by: ChaosLord on April 21, 2009, 07:32:59 PM
I use iff.library
It is fast and simple and it can load to interleaved or noninterleaved bitmaps.
Title: Re: Load and display iff ilbm with C?
Post by: Marcb on April 22, 2009, 12:19:13 PM
Thank you all for your replies,

I've got the Rkms and I'm working my way through the IFF specs, I guess I was trying to take a shortcut  :-D