FourCC

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Elements of File Formats }} A '''FourCC''' (four-character code) is an arbitrary 32-bit identifier that doubles as a vaguely-readab...")
 
(Related formats)
Line 21: Line 21:
 
* [[Resource Fork|Macintosh file types and creator codes]]
 
* [[Resource Fork|Macintosh file types and creator codes]]
 
* [[IFF]] - chunk identifiers, FORM types
 
* [[IFF]] - chunk identifiers, FORM types
* [[RIFF]] - chunk identifiers
+
* [[RIFF]] - chunk identifiers, form and LIST types
 
* [[Boxes/atoms format]] - box identifiers, brands
 
* [[Boxes/atoms format]] - box identifiers, brands
 
* [[PNG]] - chunk identifiers
 
* [[PNG]] - chunk identifiers

Revision as of 17:52, 16 January 2016

File Format
Name FourCC
Ontology

A FourCC (four-character code) is an arbitrary 32-bit identifier that doubles as a vaguely-readable 4-character ASCII string. A FourCC often identifies a data format, or the type of data contained in a segment of a file.

Some definitions of the term "FourCC" restrict it to identifiers of data formats, or even more strictly, to multimedia formats. This article does not adopt such a strict definition.

Format details

FourCC is not a formal standard. Each format that uses FourCCs defines its own rules about what constitites a valid FourCC. However, there are conventions that seem to be followed fairly consistently by most formats.

FourCC code names are case-sensitive. Names shorter than 4 characters are padded on the right with spaces. A name contains only printable ASCII characters (often only letters and digits), with spaces allowed only for padding.

There is no standard for whether the letters are uppercase, lowercase, or a mix of both. Some formats use the character case for special purposes.

In files that use little-endian byte order, the characters of a FourCC may or may not be stored in reverse order.

Related formats

Uses of FourCCs include:

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox