Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Interchange File Format

From Wikipedia, the free encyclopedia
Container file format introduced by Electronic Arts and Commodore
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Interchange File Format" – news ·newspapers ·books ·scholar ·JSTOR
(September 2020) (Learn how and when to remove this message)
Interchange File Format
Internet media typeapplication/x-iff
Developed byElectronic Arts,Commodore
Initial release1985; 41 years ago (1985)
Type of formatDigital container format

Interchange File Format (IFF) is a genericdigital container file format originally introduced byElectronic Arts (in cooperation withCommodore) in 1985 to facilitate transfer of data between software produced by different companies.

IFF files do not have any standardfilename extension. On many systems that generate IFF files, file extensions are not important because theoperating system storesfile formatmetadata separately from thefile name. The.iff filename extension is commonly used for theILBMimage file format, which uses the IFF container format.

Resource Interchange File Format is a format developed byMicrosoft andIBM in 1991 that is based on IFF, except thebyte order has been changed tolittle-endian to match thex86microprocessor architecture.Apple'sAudio Interchange File Format (AIFF) is abig-endianaudio file format developed from IFF. TheTIFF image file format is not related to IFF.

Structure

[edit]

An IFF file is built up fromchunks. Each chunk begins with what the specification calls a "Type ID" (what theMacintosh called anOSType, andWindows developers might call aFourCC). This is followed by a 32-bit signedinteger (all integers in IFF file structure arebig-endian) specifying the size of the following data (the chunk content) in bytes.[1] Because the specification includes explicit lengths for each chunk, it is possible for a parser to skip over chunks that it either can't or doesn't care to process.

This structure is closely related to thetype–length–value (TLV) representation.

There are predefinedgroup chunks, with type IDsFORM,LIST andCAT .[NB 1] AFORM chunk is like a record structure, containing a type ID (indicating the record type) followed by nested chunks specifying the record fields. ALIST is a factoring structure containing a series ofPROP (property) chunks plus nested group chunks to which those properties apply. ACAT  is just a collection of nested chunks with no special semantics. Group chunks can contain other group chunks, depending on the needs of the application. Group chunks, like their simpler counterparts, contain a length element. Skipping over a group can thus be done with a simple relativeseek operation.

Chunks must begin on even file offsets, as befits the origins of IFF on the Motorola68000 processor, which couldn't address quantities larger than a byte on odd addresses. Thus chunks with odd lengths will be "padded" to an even byte boundary by adding a so-called "pad byte" after their regular end.

The top-level structure of an IFF file consists of exactly one of the group chunks:FORM,LIST orCAT , whereFORM is by far the most common one.

Each type of chunk typically has a different internal structure, which could be numerical data, text, or raw data. It is also possible to include other IFF files as if they are chunks (note that they have the same structure: four letters followed with length), and some formats use this. There are standard chunks that could be present in any IFF file, such asAUTH (containing text with information about author of the file),ANNO (containing text with annotation, usually name of the program that created the file),NAME (containing text with name of the work in the file),VERS (containing file version),(c)  (containing text with copyright information). There are also chunks that are common among a number of formats, such asCMAP, which holds color palette inILBM,ANIM andDR2D files (pictures, animations and vector pictures). There are chunks that have a common name but hold different data such asBODY, which could store an image in anILBM file and sound in an8SVX file. And finally, there are chunks unique to their file type. Some programs that create IFF files add chunks to them with their internal data; these same files can later be read by other programs without any disruption (because their parsers could skip uninteresting chunks), which is a great advantage of IFF and similar formats.

See also

[edit]
  • AIFF (abig-endian compatible derivative of IFF, originally from Apple)
  • FourCC (the chunk identification approach used by many TLV formats, including IFF, as verboseMagic number)
  • Interleaved Bitmap (ILBM) (a very popular IFF-based image file format)
  • PNG (a modern graphics file format with a chunk structure inspired by IFF)
  • RIFF (alittle-endian incompatible derivative of IFF, originally from Microsoft)
  • TLV (the generic format that IFF is an example of)

Notes

[edit]
  1. ^With a trailingspace (ASCII 20h).

References

[edit]
  1. ^Reddy, Martin (14 January 1985)."'EA IFF 85' Standard for Interchange Format Files".martinreddy.net. Retrieved8 April 2015.

External links

[edit]
Video
compression
ISO,IEC,
MPEG
ITU-T,VCEG
SMPTE
TrueMotion and AOMedia
Chinese Standard
  • AVS1 P2/AVS+(GB/T 20090.2/16)
  • AVS2 P2(GB/T 33475.2,GY/T 299.1)
    • HDR Vivid(GY/T 358)
  • AVS3 P2(GY/T 368)
Others
Audio
compression
ISO,IEC,
MPEG
ITU-T
IETF
3GPP
ETSI
Bluetooth SIG
Chinese Standard
Others
Image
compression
IEC,ISO,IETF,
W3C,ITU-T,JPEG
Others
Containers
ISO,IEC
ITU-T
IETF
SMPTE
Others
Collaborations
Methods
Lists
SeeCompression methods for techniques andCompression software for codecs
Amiga technologies
AmigaGUIs
File systems
OS versions
Software packs
Othersoftware
Influenced
Retrieved from "https://en.wikipedia.org/w/index.php?title=Interchange_File_Format&oldid=1315689968"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp