13.07.2015 Views

Quicktime File Format (2012-08-14).pdf

Quicktime File Format (2012-08-14).pdf

Quicktime File Format (2012-08-14).pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Overview of QTFFQT Atoms and Atom ContainersA QT atom container contains QT atoms, as shown in Figure 1-4 (page 28). Each QT atom contains either dataor other atoms. If a QT atom contains other atoms, it is a parent atom and the atoms it contains are its childatoms. Each parent’s child atom is uniquely identified by its atom type and atom ID. A QT atom that containsdata is called a leaf atom.Figure 1-4QT atom container with parent and child atomsQT atomcontainerParent atomAtom typeAtom IDAtom typeAtom IDAtom dataChild atomsAtom typeAtom IDAtom typeAtom IDAtom dataEach QT atom has an offset that describes the atom’s position within the QT atom container. In addition, eachQT atom has a type and an ID. The atom type describes the kind of information the atom represents. The atomID is used to differentiate child atoms of the same type with the same parent; an atom’s ID must be unique fora given parent and type. In addition to the atom ID, each atom has a 1-based index that describes its orderrelative to other child atoms of the same parent with the same atom type. You can uniquely identify a QT atomin one of three ways:●●●By its offset within its QT atom containerBy its parent atom, type, and indexBy its parent atom, type, and IDYou can store and retrieve atoms in a QT atom container by index, ID, or both. For example, to use a QT atomcontainer as a dynamic array or tree structure, you can store and retrieve atoms by index. To use a QT atomcontainer as a database, you can store and retrieve atoms by ID. You can also create, store, and retrieve atomsusing both ID and index to create an arbitrarily complex, extensible data structure.<strong>2012</strong>-<strong>08</strong>-<strong>14</strong> | © 2004, <strong>2012</strong> Apple Inc. All Rights Reserved.28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!