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.

Movie AtomsSample AtomsFigure 2-45 (page 110) shows the layout of the sample-to-chunk atom.Figure 2-45The layout of a sample-to-chunk atomBytesSample-to-chunk atomAtom size4Type = 'stsc' 4VersionFlagsNumber of entriesSample-to-chunk table134VariableThe sample-to-chunk atom contains the following data elements.SizeA 32-bit integer that specifies the number of bytes in this sample-to-chunk atom.TypeA 32-bit integer that identifies the atom type; this field must be set to 'stsc'.VersionA 1-byte specification of the version of this sample-to-chunk atom.FlagsA 3-byte space for sample-to-chunk flags. Set this field to 0.Number of entriesA 32-bit integer containing the count of entries in the sample-to-chunk table.Sample-to-chunk tableA table that maps samples to chunks. Figure 2-46 (page 110) shows the structure of an entry in asample-to-chunk table. Each sample-to-chunk atom contains such a table, which identifies the chunk foreach sample in a media. Each entry in the table contains a first chunk field, a samples per chunk field,and a sample description ID field. From this information, you can ascertain where samples reside in themedia data.Figure 2-46The layout of a sample-to-chunk table entryFirst chunk Samples per chunk Sample description ID4 4 4FieldsBytes<strong>2012</strong>-<strong>08</strong>-<strong>14</strong> | © 2004, <strong>2012</strong> Apple Inc. All Rights Reserved.110

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

Saved successfully!

Ooh no, something went wrong!