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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Basic Data TypesThis chapter describes a number of common data types that are used in QuickTime files.Language Code ValuesSome elements of a QuickTime file may be associated with a particular spoken language. To indicate thelanguage associated with a particular object, the QuickTime file format uses either language codes from theMacintosh Script Manager or ISO language codes (as specified in ISO 639-2/T ).QuickTime stores language codes as unsigned 16-bit fields. All Macintosh language codes have a value that isless than 0x400 except for the single value 0x7FFF indicating an unspecified language. ISO language codesare three-character codes, and are stored inside the 16-bit language code field as packed arrays, as describedin “ISO Language Codes” (page 319). If treated as an unsigned 16-bit integer, an ISO language code always hasa value of 0x400 or greater unless the code is equal to the value 0x7FFF indicating an Unspecified Macintoshlanguage code.If the language is specified using a Macintosh language code, any associated text uses Macintosh text encoding.If the language is specified using an ISO language code, any associated text uses Unicode text encoding. WhenUnicode is used, the text is in UTF-8 unless it starts with a byte-order-mark (BOM, 0xFEFF. ), whereupon thetext is in UTF-16. Both the BOM and the UTF-16 text should be big-endian.<strong>2012</strong>-<strong>08</strong>-<strong>14</strong> | © 2004, <strong>2012</strong> Apple Inc. All Rights Reserved.316

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

Saved successfully!

Ooh no, something went wrong!