IFF: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
m (categories: commodore amiga - and atari st image formats)
(turn chunk list into table)
Line 41: Line 41:
===List Of Chunk FOURCCs ===
===List Of Chunk FOURCCs ===


Note: an underscore (_) is used to indicate the space character.  
Note: an underscore (_) is used to indicate the space character.  


* 16SV
{| border="1"
* 8SVX
|-
* ANFI
| 16SV
* ANHD ( ANIM Frame )
|-
* ANIM
| 8SVX
* ANNO
|-
* ANSQ
| ANFI
* ATAK
|-
* AUTH
| ANHD || ANIM Frame
* BMHD
|-
* BODY
| ANIM
* CAMG
|-
* CCRT (Graphicraft cycling chunk)
| ANNO
* CHAN
|-
* CMAP (Color Map is a packed array of ColorRegisters )
| ANSQ
* (c)_
|-
* CRNG
| ATAK
* DEST
|-
* DLTA
| AUTH
* DPAN (Deluxe Paint Anim Chunk)
|-
* DPI_
| BMHD
* DPPS
|-
* DPPV
| BODY
* DRNG
|-
* FACE
| CAMG
* FADE
|-
* FORM
| CCRT || Graphicraft cycling chunk
* FVER
|-
* GRAB
| CHAN
* ILBM
|-
* INS1
| CMAP || Color Map is a packed array of ColorRegisters  
* IMRT
|-
* JUNK
| (c)_
* LIST
|-
* MHDR
| CRNG
* NAME
|-
* PAN_
| DEST
* PROP
|-
* RLSE
| DLTA
* SAMP
|-
* SEQN
| DPAN || Deluxe Paint Anim Chunk
* SHDR
|-
* SMUS
| DPI_
* SPRT
|-
* TEXT
| DPPS
* TINY
|-
* TRAK
| DPPV
* VHDR
|-
| DRNG
|-
| FACE
|-
| FADE
|-
| FORM
|-
| FVER
|-
| GRAB
|-
| ILBM
|-
| INS1
|-
| IMRT
|-
| JUNK
|-
| LIST
|-
| MHDR
|-
| NAME
|-
| PAN_
|-
| PROP
|-
| RLSE
|-
| SAMP
|-
| SEQN
|-
| SHDR
|-
| SMUS
|-
| SPRT
|-
| TEXT
|-
| TINY
|-
| TRAK
|-
| VHDR
|}


[[Category:Image Formats]]
[[Category:Image Formats]]

Revision as of 06:52, 2 May 2008

  • Extensions: 8svx, 16sv, ilbm, anim
  • MIME Types:
    • 8svx: audio/8svx, audio/x-8svx
    • 16sv: audio/16sv, audio/x-16sv
    • ilbm: image/ilbm, image/x-ilbm
    • anim: video/anim, video/x-anim

IFF (Interchange File Format) is a format developed by electronic arts in the 80's. It is the predominant format on the Amiga computer. It is a chunked format. It can be used to store any type of data, but it is predominantly used to store images, animations and audio.

IFF chunks are always padded to an even number of bytes.

Implementations

    • xine has a demuxer/decoder for iff. Manfred Tremmel the author of the xine code has agreed to relicence his xine code as LGPL to allow easier use in ffmpeg. Thanks Manfred.
    • Werner Randelshofer the author of multishow has also granted permission for his iff code to be relicenced as LGPL. Thanks Werner.
    • Xanim also contains code to support iff, it may contain some formats not available in xine.
    • libiffanim supports lots of animation formats http://www-user.tu-chemnitz.de/~womar/projects/iffanim/
    • Virtualdub contains a demuxer/decoder also, look in the file InputFileANIM.cpp

ILBM FOURCC

Images are stored in planes. So, to get a pixels color value you need to combine the bits from each frame to create a color register index.

/* ---------- BitMapHeader ---------------------------------------------*/
/*  Required Bitmap header (BMHD) structure describes an ILBM           */
typedef struct {
 uint16_t             w;                    /* raster width in pixels  */
 uint16_t             h;                    /* raster height in pixels */
 int16_t              x;                    /* x offset in pixels  */
 int16_t              y;                    /* y offset in pixels */
 uint8_t              nplanes;              /* # source bitplanes      */
 uint8_t              masking;              /* masking technique       */
 uint8_t              compression;          /* compression algoithm    */
 uint8_t              pad1;                 /* UNUSED.  For consistency, put 0 here. */
 uint16_t             transparentColor;     /* transparent "color number" */
 uint8_t              xaspect;              /* aspect ratio, a rational number x/y */
 uint8_t              yaspect;              /* aspect ratio, a rational number x/y */
 int16_t              pagewidth;            /* source "page" size in pixels */
 int16_t              pageheight;           /* source "page" size in pixels */
} BitMapHeader;

List Of Chunk FOURCCs

Note: an underscore (_) is used to indicate the space character.

16SV
8SVX
ANFI
ANHD ANIM Frame
ANIM
ANNO
ANSQ
ATAK
AUTH
BMHD
BODY
CAMG
CCRT Graphicraft cycling chunk
CHAN
CMAP Color Map is a packed array of ColorRegisters
(c)_
CRNG
DEST
DLTA
DPAN Deluxe Paint Anim Chunk
DPI_
DPPS
DPPV
DRNG
FACE
FADE
FORM
FVER
GRAB
ILBM
INS1
IMRT
JUNK
LIST
MHDR
NAME
PAN_
PROP
RLSE
SAMP
SEQN
SHDR
SMUS
SPRT
TEXT
TINY
TRAK
VHDR