![]() A program reading a RIFF file can skip over any chunk whose chunk ID it doesn't recognize it simply skips the number of bytes specified by ckSize plus the pad byte, if present.Ī 32-bit unsigned value identifying the size of ckData. ![]() The three parts of the chunk are described in the following table: PartĪ four-character code that identifies the representation of the chunk data data. For quick comparisons, a four- character code may also be treated as a 32-bit number. (ASCII character value 32) as required, with no embedded blanks.įor example, the four-character code 'FOO' is stored as a sequence of four bytes: 'F', 'O', 'O', ' ' in ascending addresses. Typedef DWORD CKSIZE // 32-bit unsigned size valueĬKSIZE ckSize // Chunk size field (size of ckData)Ī FOURCC is represented as a sequence of one to four ASCIIĪlphanumeric characters, padded on the right with blank characters Typedef FOURCC CKID // Four-character-code chunk identifier Typedef DWORD FOURCC // Four-character code Using C syntax, a chunk can be defined as The basic building block of a RIFF file is called aĬhunk. Zero or more copies of the specified element One or more copies of the specified element RIFF file element with the label "element label" Further conventions and the notation for documenting RIFF forms are presented later in the document in the section "Notation for Representing Sample RIFF Files." Notation The following table lists some of the notation conventions used in this document. A RIFX file is the same as a RIFF file, except that the first four bytes are 'RIFX' instead of 'RIFF', and integer byte ordering is represented in Motorola format. RIFF has a counterpart, RIFX, that is used to define RIFF file formats that use the Motorola integer byte- ordering format rather than the Intel format. Refer to the EA IFF definition document, EA IFF 85 Standard for Interchange Format Files, for a list of reasons to use a tagged file format. RIFF is not actually a file format itself (since it does not represent a specific kind of information), but its name contains the words "interchange file format" in recognition of its roots in IFF. The structure of a RIFF file is similar to the structure of an Electronic Arts IFF file. ![]() RIFF (Resource Interchange File Format) is the tagged file structure developed for multimedia resource files. The original document is quite long and this constitutes pages 83-95 of the text format version (starting on roughly page 58 of the RTF version). The following is taken from RIFFMCI.RTF, "Multimedia Programming Interface and Data Specification v1.0", a Windows RTF (Rich Text Format) file contained in the. ![]() It is suspected that several portions of the original document are incorrect, so a few corrections have been made. This document was originally found at, and converted to HTML by Sharky. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |