Inside Macintosh: QuickTime
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
INSIDE MACINTOSH QuickTime Addison-Wesley Publishing Company Reading, Massachusetts Menlo Park, California New York Don Mills, Ontario Wokingham, England Amsterdam Bonn Sydney Singapore Tokyo Madrid San Juan Paris Seoul Milan Mexico City Taipei
A plain white title page with a small black Apple logo at top, the spaced capitals INSIDE MACINTOSH above a horizontal rule, the large word QuickTime beneath it, and a publisher's emblem with city list near the bottom.
Reading notes: City names in the bottom list are separated by spaces rather than clear delimiters; reading order follows visual lines.
- Languages
- English
PDF page 1
Addison-Wesley Publishing Company Reading, Massachusetts Menlo Park, California New York Don Mills, Ontario Wokingham, England Amsterdam Bonn Sydney Singapore Tokyo Madrid San Juan Paris Seoul Milan Mexico City Taipei I N S I D E M A C I N T O S H QuickTime
Reading notes: No image was supplied, so layout and visual details are inferred only from the extracted copy. Reading order of the publisher city lines is inferred from line order in the extracted text. The headline is the spaced-letter line 'I N S I D E M A C I N T O S H', which may be a book title rather than an advertisement headline. 'QuickTime' is listed as a product name from a single line with no accompanying copy.
- Printed product names
- QuickTime
- Languages
- English
PDF page 2
Apple Computer, Inc. © 1993, Apple Computer, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, mechanical, electronic, photocopying, recording, or otherwise, without prior written permission of Apple Computer, Inc. Printed in the United States of America. No licenses, express or implied, are granted with respect to any of the technology described in this book. Apple retains all intellectual property rights associated with the technology described in this book. This book is intended to assist application developers to develop applications only for Apple Macintosh computers. Apple Computer, Inc. 20525 Mariani Avenue Cupertino, CA 95014 408-996-1010 Apple, the Apple logo, APDA, AppleLink, LaserWriter, Macintosh, and MPW are trademarks of Apple Computer, Inc., registered in the United States and other countries. QuickDraw, QuickTime, and System 7 are trademarks of Apple Computer, Inc. Adobe Illustrator and PostScript are trademarks of Adobe Systems Incorporated, which may be registered in certain jurisdictions. AGFA is a trademark of Agfa-Gevaert. America Online is a service mark of Quantum Computer Services, Inc. CompuServe is a registered service mark of CompuServe, Inc. FrameMaker is a registered trademark of Frame Technology Corporation. Helvetica and Palatino are registered trademarks of Linotype Company. Internet is a trademark of Digital Equipment Corporation. ITC Zapf Dingbats is a registered trademark of International Typeface Corporation. Windows is a trademark of Microsoft Corporation. Simultaneously published in the United States and Canada. LIMITED WARRANTY ON MEDIA AND REPLACEMENT ALL IMPLIED WARRANTIES ON THIS MANUAL, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE LIMITED IN DURATION TO NINETY (90) DAYS FROM THE DATE OF THE ORIGINAL RETAIL PURCHASE OF THIS PRODUCT. Even though Apple has reviewed this manual, APPLE MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS MANUAL, ITS QUALITY, ACCURACY, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. AS A RESULT, THIS MANUAL IS SOLD “AS IS,” AND YOU, THE PURCHASER, ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND ACCURACY. IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY DEFECT OR INACCURACY IN THIS MANUAL, even if advised of the possibility of such damages. THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN LIEU OF ALL OTHERS, ORAL OR WRITTEN, EXPRESS OR IMPLIED. No Apple dealer, agent, or employee is authorized to make any modification, extension, or addition to this warranty. Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and you may also have other rights which vary from state to state. ISBN 0-201-62201-7 1 2 3 4 5 6 7 8 9-MU-9796959493 First Printing, March 1993
Reading notes: The page is a copyright, trademark, and warranty notice from a manual rather than an advertisement, so no advertised products or prices are present. Trademarked product names such as Macintosh, LaserWriter, QuickDraw, QuickTime, System 7, and MPW appear only in trademark notices and were not treated as advertised products. The printing code '1 2 3 4 5 6 7 8 9-MU-9796959493' and ISBN '0-201-62201-7' were not treated as dates. 'NINETY (90) DAYS' refers to a warranty duration, not a printed date.
- Printed dates
- © 1993 · March 1993
- Languages
- English
PDF page 3
iii Contents Figures, Tables, and Listings xi Preface About This Book xv Format of a Typical Chapter xvi Conventions Used in This Book xvii Special Fonts xvii Types of Notes xvii Development Environment xvii Chapter 1 Introduction to QuickTime 1-1 QuickTime Concepts 1-3 Movies and Media Data Structures 1-3 Components 1-3 Image Compression 1-4 Time 1-4 The QuickTime Architecture 1-5 The Movie Toolbox 1-6 The Image Compression Manager 1-6 The Component Manager 1-6 QuickTime Components 1-7 Using QuickTime 1-8 Playing Movies 1-8 Creating and Editing Movies 1-10 Movie-Editing Applications 1-12 Movie-Creating Applications 1-13 Chapter 2 Movie Toolbox 2-1 Introduction to Movies 2-5 Time and the Movie Toolbox 2-5 Time Coordinate Systems 2-6 Time Bases 2-8 Movies 2-9 Tracks 2-12 Media Structures 2-13 About Movies 2-14 Movie Characteristics 2-15 Track Characteristics 2-17
Reading notes: Source appears to be a table of contents for a technical book, not an advertisement; no products, prices, or dates are advertised.
- Languages
- English
PDF page 4
iv Media Characteristics 2-18 Spatial Properties 2-20 The Transformation Matrix 2-26 Audio Properties 2-29 Sound Playback 2-29 Adding Sound to Video 2-30 Sound Data Formats 2-31 Data Interchange 2-32 Movies on the Clipboard 2-32 Movies in Files 2-32 Using the Movie Toolbox 2-32 Determining Whether the Movie Toolbox Is Installed 2-33 Getting Ready to Work With Movies 2-35 Getting a Movie From a File 2-35 Playing Movies With a Movie Controller 2-38 Playing a Movie 2-41 Movies and the Scrap 2-45 Creating a Movie 2-45 A Sample Program for Creating a Movie 2-46 A Sample Function for Creating and Opening a Movie File 2-47 A Sample Function for Creating a Video Track in a New Movie 2-48 A Sample Function for Adding Video Samples to a Media 2-50 A Sample Function for Creating Video Data for a Movie 2-52 A Sample Function for Creating a Sound Track 2-52 A Sample Function for Creating a Sound Description Structure 2-55 Parsing a Sound Resource 2-59 Saving Movies in Movie Files 2-61 Using Movies in Your Event Loop 2-62 The Movie Toolbox and System 6 2-63 The Alias Manager 2-64 The File Manager 2-64 Previewing Files 2-65 Previewing Files in System 6 Using Standard File Reply Structures 2-65 Customizing Your Interface in System 6 2-67 Previewing Files in System 7 Using Standard File Reply Structures 2-68 Customizing Your Interface in System 7 2-70 Using Application-Defined Functions 2-71 Working With Movie Spatial Characteristics 2-73 Movie Toolbox Reference 2-76 Data Types 2-76 Movie Identifiers 2-77 The Time Structure 2-77 The Fixed-Point and Fixed-Rectangle Structures 2-78 The Sound Description Structure 2-79
- Languages
- English
PDF page 5
v Functions for Getting and Playing Movies 2-81 Initializing the Movie Toolbox 2-82 Error Functions 2-84 Movie Functions 2-87 Saving Movies 2-100 Controlling Movie Playback 2-111 Movie Posters and Movie Previews 2-114 Movies and Your Event Loop 2-124 Preferred Movie Settings 2-130 Enhancing Movie Playback Performance 2-134 Disabling Movies and Tracks 2-145 Generating Pictures From Movies 2-148 Creating Tracks and Media Structures 2-150 Working With Progress and Cover Functions 2-155 Functions That Modify Movie Properties 2-157 Working With Movie Spatial Characteristics 2-158 Working With Sound Volume 2-181 Working with Movie Time 2-184 Working With Track Time 2-191 Working With Media Time 2-194 Finding Interesting Times 2-196 Locating a Movie’s Tracks and Media Structures 2-202 Working With Alternate Tracks 2-207 Working With Data References 2-215 Determining Movie Creation and Modification Time 2-219 Working With Media Samples 2-222 Working With Movie User Data 2-230 Functions for Editing Movies 2-242 Editing Movies 2-243 Undo for Movies 2-254 Low-Level Movie-Editing Functions 2-257 Editing Tracks 2-262 Undo for Tracks 2-268 Adding Samples to Media Structures 2-271 Media Functions 2-281 Selecting Media Handlers 2-282 Video Media Handler Functions 2-287 Sound Media Handler Functions 2-288 Text Media Handler Functions 2-290 Functions for Creating File Previews 2-301 Functions for Displaying File Previews 2-304 Time Base Functions 2-315 Creating and Disposing of Time Bases 2-315 Working With Time Base Values 2-322 Working With Times 2-332 Time Base Callback Functions 2-335 Matrix Functions 2-341
- Languages
- English
PDF page 6
vi Application-Defined Functions 2-354 Progress Functions 2-354 Cover Functions 2-357 Error-Notification Functions 2-358 Movie Callout Functions 2-359 File Filter Functions 2-360 Custom Dialog Functions 2-360 Modal-Dialog Filter Functions 2-362 Standard File Activation Functions 2-363 Callback Event Functions 2-364 Text Functions 2-364 Summary of the Movie Toolbox 2-366 C Summary 2-366 Constants 2-366 Data Types 2-369 Functions for Getting and Playing Movies 2-378 Functions That Modify Movie Properties 2-383 Functions for Editing Movies 2-389 Media Functions 2-392 Functions for Creating File Previews 2-394 Functions for Displaying File Previews 2-394 Time Base Functions 2-395 Matrix Functions 2-397 Application-Defined Functions 2-398 Pascal Summary 2-399 Constants 2-399 Data Types 2-404 Routines for Getting and Playing Movies 2-408 Routines That Modify Movie Properties 2-413 Routines for Editing Movies 2-418 Media Routines 2-421 Routines for Creating File Previews 2-423 Routines for Displaying File Previews 2-423 Time Base Routines 2-423 Matrix Routines 2-425 Application-Defined Routines 2-426 Result Codes 2-427 Chapter 3 Image Compression Manager 3-1 Introduction to the Image Compression Manager 3-5 Data That Is Suitable for Compression 3-6 Storing Images 3-8 About Image Compression 3-8 Image-Compression Characteristics 3-8 Compression Ratio 3-8
Reading notes: Source is a table of contents excerpt with no primary heading or advertised products. Page numbers and section titles are the only printed content; no prices or dates are present.
- Languages
- English
PDF page 7
vii Compression Speed 3-9 Image Quality 3-9 Compressors Supplied by Apple 3-9 The Photo Compressor 3-10 The Video Compressor 3-10 The Compact Video Compressor 3-11 The Animation Compressor 3-11 The Graphics Compressor 3-11 The Raw Compressor 3-12 Types of Images Suitable for Different Compressors 3-13 Using the Image Compression Manager 3-24 Getting Information About Compressors and Compressed Data 3-24 Working With Pictures 3-24 Compressing Images 3-27 Decompressing Images 3-30 Compressing Sequences 3-31 Decompressing Sequences 3-33 Decompressing Still Images From a Sequence 3-34 Using Screen Buffers and Image Buffers 3-34 A Sample Program for Compressing and Decompressing a Sequence of Images 3-35 A Sample Function for Saving a Sequence of Images to a Disk File 3-36 A Sample Function for Creating, Compressing, and Drawing a Sequence of Images 3-38 A Sample Function for Decompressing and Playing Back a Sequence From a Disk File 3-42 Spooling Compressed Data 3-44 Banding and Extending Images 3-45 Defining Key Frame Rates 3-47 Fast Dithering 3-47 Understanding Compressor Components 3-48 Image Compression Manager Reference 3-49 Data Types 3-49 The Image Description Structure 3-49 The Compressor Information Structure 3-52 The Compressor Name Structure 3-55 The Compressor Name List Structure 3-56 Compression Quality Constants 3-57 Image Compression Manager Function Control Flags 3-58 Image Compression Manager Functions 3-61 Getting Information About Compressor Components 3-62 Getting Information About Compressed Data 3-67 Working With Images 3-73 Working With Pictures and PICT Files 3-88 Making Thumbnail Pictures 3-103 Working With Sequences 3-106
Reading notes: Source text is a table of contents with page numbers rather than advertising copy; no headline, products, prices or dates are explicitly advertised.
- Languages
- English
PDF page 8
viii Changing Sequence-Compression Parameters 3-120 Constraining Compressed Data 3-127 Changing Sequence-Decompression Parameters 3-129 Working With the StdPix Function 3-137 Aligning Windows 3-142 Working With Graphics Devices and Graphics Worlds 3-147 Application-Defined Functions 3-148 Data-Loading Functions 3-149 Data-Unloading Functions 3-150 Progress Functions 3-152 Completion Functions 3-154 Alignment Functions 3-155 Summary of the Image Compression Manager 3-157 C Summary 3-157 Constants 3-157 Data Types 3-159 Image Compression Manager Functions 3-163 Application-Defined Functions 3-169 Pascal Summary 3-170 Constants 3-170 Data Types 3-172 Image Compression Manager Routines 3-175 Application-Defined Routines 3-181 Result Codes 3-182 Chapter 4 Movie Resource Formats 4-1 Introduction to Movie Resources 4-3 Storing Movies in Files 4-4 Atoms 4-5 Atom Types 4-6 The Layout of a QuickTime Atom 4-7 Overview of the Movie Resource Atom 4-8 Movie Atoms 4-10 Movie Header Atoms 4-11 Track Atoms 4-13 Track Header Atoms 4-14 Media Atoms 4-16 Media Header Atoms 4-17 Handler Reference Atoms 4-18 User-Defined Data Atoms 4-19 Clipping Atoms 4-22 Clipping Region Atoms 4-22 Track Matte Atoms 4-23 Compressed Matte Atoms 4-23 Edit Atoms 4-24
Reading notes: Source is a table of contents excerpt with no advertised products, prices, or headline.
- Languages
- English
PDF page 9
ix Edit List Atoms 4-25 Media Information Atoms 4-26 Video Media Information Atoms 4-26 Video Media Information Header Atoms 4-27 Sound Media Information Atoms 4-28 Sound Media Information Header Atoms 4-29 Data Information Atoms 4-30 Data Reference Atoms 4-32 An Introduction to Samples 4-32 Sample Table Atoms 4-33 Sample Description Atoms 4-35 Time-to-Sample Atoms 4-36 Sync Sample Atoms 4-38 Sample-to-Chunk Atoms 4-39 Sample Size Atoms 4-41 Chunk Offset Atoms 4-42 Shadow Sync Atoms 4-44 Using Media Information Atoms 4-45 Finding a Sample 4-46 Finding a Key Frame 4-46 Glossary GL-1 Index IN-1
Reading notes: Source appears to be a table of contents or index listing, not advertising copy; no headline, products, prices or dates identified.
- Languages
- English
PDF page 10
The image is an entirely blank white page with no visible artwork, text, or layout elements.
Reading notes: No visible text appears anywhere on the page, so the transcript and printed fields are empty.
PDF page 11
xi Figures, Tables, and Listings Chapter 1 Introduction to QuickTime 1-1 Figure 1-1 QuickTime playing a movie 1-5 Figure 1-2 A QuickTime movie with Apple’s movie controller 1-8 Figure 1-3 A QuickTime movie with an active selection rectangle 1-9 Figure 1-4 Capturing and playing back movies 1-11 Figure 1-5 Apple’s movie controller with a portion of the movie selected for editing 1-12 Figure 1-6 A monitor window 1-13 Figure 1-7 Compression settings 1-14 Chapter 2 Movie Toolbox 2-1 Figure 2-1 Time scales 2-7 Figure 2-2 A time coordinate system and a time base 2-8 Figure 2-3 A movie’s time coordinate system 2-9 Figure 2-4 A movie containing several tracks 2-10 Figure 2-5 A movie, its preview, and its poster 2-11 Figure 2-6 A track in a movie 2-12 Figure 2-7 A track and its media 2-13 Figure 2-8 A media and its data 2-14 Figure 2-9 Movie characteristics 2-15 Figure 2-10 Track characteristics 2-17 Figure 2-11 Media characteristics 2-19 Figure 2-12 Spatial processing of a movie and its tracks 2-21 Figure 2-13 A track rectangle 2-22 Figure 2-14 Clipping a track’s image 2-23 Figure 2-15 A track transformed into a movie coordinate system 2-23 Figure 2-16 Clipping a movie’s image 2-24 Figure 2-17 A movie transformed to the display coordinate system 2-25 Figure 2-18 Clipping a movie for final display 2-25 Figure 2-19 A point transformed by a 3-by-3 matrix 2-26 Figure 2-20 The identity matrix 2-26 Figure 2-21 A matrix that describes a translation operation 2-27 Figure 2-22 A matrix that describes a scaling operation 2-27 Figure 2-23 A matrix that describes a rotation operation 2-28 Figure 2-24 A matrix that describes a scaling and translation operation 2-28 Figure 2-25 An alert box that tells the user that QuickTime is unavailable 2-34 Figure 2-26 A dialog box used when searching for a movie’s data 2-36 Figure 2-27 A dialog box that informs the user the movie file cannot be found 2-37 Figure 2-28 A dialog box that allows the user to specify a movie file to try 2-37 Figure 2-29 An alert for an invalid movie file 2-38 Figure 2-30 An alert when QuickTime cannot be found 2-38
- Languages
- English