"When QuickTime application developers get stuck, one of the first places they look for help is example code from Tim Monroe. Finally, Tim's well-crafted examples and clear descriptions are available in book form-a must-have for anyone writing applications that import, export, display, or interact with QuickTime movies." -Matthew Peterson; University of California, Berkeley; the M. I. N. D. Institute; and author of Interactive QuickTimeQuickTime Toolkit Volume One is a programmer's introduction to QuickTime, the elegant and potent media engine used by many of Apple's industry-leading services and products (such as the iTunes music store, iMovie, and Final Cut Pro) and also used by a large number of third-party applications. This hands-on guide shows you how to harness the powerful capabilities of QuickTime for your own projects. The articles collected here from the author's highly regarded column in MacTech Magazine are packed with accessible code examples to get you quickly started developing applications that can display and create state-of-the-art digital content. This book begins by showing how to open and display QuickTime movies in a Macintosh or Windows application and progresses step by step to show you how to control movie playback and how to import and transform movies and images. QuickTime Toolkit also shows how to create movies with video data, text, time codes, sprites, and wired (interactive) elements. Part of the official QuickTime Developer Series, publishing the finest books on QuickTime in cooperation with Apple.
- Written in a clear, engaging style by one of Apple's premier media engineers known for his ability to make QuickTime's sophisticated technology accessible to software developers
- Offers many undocumented insider tips for making applications that work well in both Mac OS and Windows
Inhaltsverzeichnis
1;Front Cover;1 2;QuickTime Toolkit: Basic Movie Playback and Media Types;2 3;Copyright Page;5 4;Contents;6 5;Preface;16 5.1;Development Platforms;17 5.2;How to Read This Book;18 6;Acknowledgements;19 7;Chapter 1. It All Starts Today;20 7.1;Introduction;20 7.2;Movie Controllers;20 7.3;The Application Framework;23 7.4;QuickTime Support;32 7.5;Conclusion;39 8;Chapter 2. Control;40 8.1;Introduction;40 8.2;Managing the Controller Bar;41 8.3;Managing Controller Bar Buttons;47 8.4;Using the Controller Bar Custom Button;51 8.5;Selecting an Entire Movie;55 8.6;Movie User Data;57 8.7;Opening URLs;67 8.8;Conclusion;69 9;Chapter 3. Out of Control;70 9.1;Introduction;70 9.2;Getting Started;74 9.3;Preparing Movies for Playback;81 9.4;Playing Movies;84 9.5;Editing Movies;86 9.6;Looping Movies;90 9.7;Playing Picture-in-Picture Movies;95 9.8;Conclusion;102 10;Chapter 4. The Image;104 10.1;Introduction;104 10.2;Importing Images;106 10.3;Expanding the Application Framework;110 10.4;Transforming Images;114 10.5;Working with Multi-image Files;124 10.6;Exporting Images;125 10.7;Finding Image Files;131 10.8;Conclusion;133 11;Chapter 5. In and Out;136 11.1;Introduction;136 11.2;Exporting Movies;137 11.3;Importing Files;146 11.4;Default Progress Functions;152 11.5;Custom Progress Functions;153 11.6;Progress Functions for Image Operations;166 11.7;The Code;168 11.8;Conclusion;168 12;Chapter 6. Doug's 1st Movie;170 12.1;Introduction;170 12.2;The Structure of QuickTime Movies;171 12.3;The Structure of QuickTime Movie Files;173 12.4;Creating QuickTime Movie Files;179 12.5;Adding Media Samples;188 12.6;Saving a Movie;198 12.7;The Code;198 12.8;Conclusion;200 13;Chapter 7. The Informant;202 13.1;Introduction;202 13.2;Movie Posters;205 13.3;Movie Previews;210 13.4;File Previews;215 13.5;Movie Annotations;223 13.6;Conclusion;233 14;Chapter 8. The Atomic Café;234 14.1;Introduction;234 14.2;File Previews: The Sequel;235 14.3;Shortcut Movie Files;245 14.4;Atom Containers;248 14.5;Internet Connection
Speed;253 14.6;Movie Tracks;256 14.7;The Code;262 14.8;Conclusion;263 15;Chapter 9. Somewhere I'll Find You;264 15.1;Introduction;264 15.2;Data Handler Overview;265 15.3;The File Data Handler;267 15.4;The Handle Data Handler;273 15.5;The Resource Data Handler;276 15.6;The URL Data Handler;277 15.7;The Pointer Data Handler;280 15.8;File Transfer;281 15.9;Data Reference Extensions;292 15.10;Conclusion;295 16;Chapter 10. Word Is Out;296 16.1;Introduction;296 16.2;The Edit Menu Revisited;300 16.3;Text Importing;310 16.4;Text Tracks;313 16.5;Text Searching;321 16.6;Text Editing;325 16.7;Chapter Tracks;329 16.8;Hypertext Reference Tracks;333 16.9;Some Loose Ends;334 16.10;Conclusion;337 17;Chapter 11. Timecode;338 17.1;Introduction;338 17.2;Timecode Standards;340 17.3;Timecode in QuickTime;342 17.4;Timecode Tracks;343 17.5;Timecode Track Operations;355 17.6;Conclusion;361 18;Chapter 12. 2001: A Space Odyssey;362 18.1;Introduction;362 18.2;Endian Issues;363 18.3;The QuickTime Media Layer;369 18.4;Carbon;386 18.5;Conclusion;391 19;Chapter 13. Honey, I Shrunk the Kids;392 19.1;Introduction;392 19.2;Compression;394 19.3;Compressing Images;396 19.4;Compressing Image Sequences;405 19.5;Asynchronous Compression;416 19.6;Conclusion;420 20;Chapter 14. A Goofy Movie;422 20.1;Introduction;422 20.2;Sprite Properties;425 20.3;Sprite Tracks;426 20.4;Creating Sprite Tracks;428 20.5;Hit Testing;449 20.6;Conclusion;453 21;Chapter 15. An Extremely Goofy Movie;454 21.1;Introduction;454 21.2;Video Override Tracks;455 21.3;Tweening;466 21.4;Graphics Mode Tweening;468 21.5;Matrix Tweening;474 21.6;Spin Tweening;476 21.7;Multimatrix Tweens;478 21.8;Conclusion;481 22;Chapter 16. Wired;482 22.1;Introduction;482 22.2;Events, Parameters, Actions;485 22.3;Controlling Movies Using Wired Sprites;489 22.4;Wired Sprite Utilities;501 22.5;Variables and Conditionals;506 22.6;Draggable Sprites;510 22.7;Sprite Button Behaviors;517 22.8;Conclusion;520 23;Chapter 17. Moving Target;522 23.1;Introduction;522 23
.2;Targets;523 23.3;Movie-to-Movie Communication;530 23.4;Operand Targets;545 23.5;Movie-in-Movie Communication;549 23.6;Conclusion;551 24;Chapter 18 Back In Action;552 24.1;Introduction;552 24.2;Text Actions;554 24.3;Key Events;568 24.4;Bouncing Sprites;571 24.5;Colliding Sprites;579 24.6;Conclusion;582 25;Glossary;584 26;Index;606 27;About the CD;638