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.

Some Useful Examples and ScenariosOptimizing QuickTime VR Movies for Web PlaybackThe important change that took place to allow this to happen was for QuickTime to place global movieinformation at the beginning of the file. Originally, this information was at the end of the file. After that, theframe data simply needs to be in order in the file. Similarly, QuickTime VR files also need to be laid out in acertain manner in order to get some sort of quick feedback when viewing on the web. Roughly speaking thisinvolves writing out all of the media samples in the file in a particular order. Apple now provides a movie exportcomponent that does this for you: the QTVR Flattener.The QTVR FlattenerThe QTVR Flattener is a movie export component that converts an existing QuickTime VR single node movieinto a new movie that is optimized for the Web. Not only does the flattener reorder the media samples, butfor panoramas it also creates a small preview of the panorama. When viewed on the Web, this preview appearsafter 5% to 10% of the movie data has been downloaded, allowing users to see a lower-resolution version ofthe panorama.Using the QTVR flattener from your application is quite easy. After you have created the QuickTime VR movie,you simply open the QTVR Flattener component and call the MovieExportTo<strong>File</strong> routine as shown in Listing6-17 (page 366).Listing 6-17Using the flattenerComponentDescription desc;Component flattener;ComponentInstance qtvrExport = nil;desc.componentType = MovieExportType;desc.componentSubType = Movie<strong>File</strong>Type;desc.componentManufacturer = QTVRFlattenerType;flattener = FindNextComponent(nil, &desc);if (flattener) qtvrExport = OpenComponent (flattener);if (qtvrExport)MovieExportTo<strong>File</strong> (qtvrExport, &my<strong>File</strong>Spec, myQTVRMovie, nil, 0, 0);The code fragment shown in Listing 6-17 (page 366) creates a flattened movie file specified by the my<strong>File</strong>Specparameter. If your QuickTime VR movie is a panorama, the flattened movie file includes a quarter size, blurredJPEG, compressed preview of the panorama image.<strong>2012</strong>-<strong>08</strong>-<strong>14</strong> | © 2004, <strong>2012</strong> Apple Inc. All Rights Reserved.366

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

Saved successfully!

Ooh no, something went wrong!