Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Introduction to QuickTime Import and Export Guide
This book describes QuickTime’s technology for importing and exporting graphics and other data into and out of movies.
QuickTime imports and exports data between movies and still images using graphic importer and exporter components and movie data exchange components:
Graphic importer and exporter components open, display, and save graphic images stored using various file formats and compression algorithms. Apple-provided components read many common compressed image types. Support for cross-platform and web-derived images is provided, including the ability to query for capability by MIME type and by examination (a component can be asked to examine a file of unknown type, to see if it can decompress the file).
Movie data exchange components allow you to import data from non-movie sources into QuickTime movies, and to export data to non-movie formats. For example, you can import a CD audio track into a QuickTime movie, or save a QuickTime movie’s sound track as an AIFF file, using data exchange components. Applications programmers can use the services of data exchange components indirectly, through high-level calls to the Movie Toolbox. Movie data exchange components can also be controlled directly from applications.
Image importers and exporters manage the import and export of graphic images, such as JPEG, TIFF, Photoshop, and PNG. Movie data exchange components support the import and export of other multimedia formats, such as AIFF, WAVE, AVI, MPEG-1, MIDI, MPEG-4, 3GPP, MP3, MPEG-2, H.263, H.264, and OpenDML. QuickTime can open any format file for which it has an importer and create any for which it has an exporter.
Applications make direct calls to graphic importer components, so this document will be of interest to most QuickTime developers who work with still images or the web. To obtain the services of a graphics importer component, applications normally use the GetGraphicsImporterForFile
or GetGraphicsImporterForDataRef
functions of the Image Compression Manager.
If your application needs to import or export data between movies and other data types, you should read the sections Movie Data Exchange Components, and Using Movie Data Exchange Components. If you plan to control data exchange components directly from within your application, or if you are creating a new movie data exchange component, you will need to read all of the material in this document.
If you need to create a new graphics importer component, refer to this document to implement a component that supports the required interface functions.
Organization of This Document
This document is divided into seven chapters:
About Graphics Importer and Exporter Components describes what QuickTime graphic importer and exporter components do and shows how to use them from within an application.
Graphics Importer Components tells you how applications can use graphics importer components.
Graphics Exporter Components describes the general features of graphics exporter components.
Graphics Exporter Component Functions By Task describes the graphics exporter functions grouped by task and category.
Movie Data Exchange Components describes what movie data exchange components are and shows how they work.
Creating a Movie Data Exchange Component describes how to create a movie data exchange component. Sample import and export components are provided as a programming aid.
Using Movie Data Exchange Components describes how to use movie exchange components from within your application.
See Also
Sample code is available at:
http://developer.apple.com/samplecode/ImproveYourImage/index.html
The sample code demonstrates the usage of QuickTime graphics importers and exporters, and includes twelve separate examples, each of which can be chosen from the Examples menu. These show how to use graphics importers to
Simply draw a still image.
Import, draw, scale and rotate a still image.
Demonstrate compositing with alpha graphics modes and images containing alpha channels.
Retrieve metadata from image files.
Display multiple layers stored in a Photoshop file.
Import an image from a URL data reference.
Add a filter to an imported image, draw it with the filter, and export a new image with the filter applied.
The following Apple books cover related aspects of QuickTime programming:
QuickTime Overview gives you the starting information you need to do QuickTime programming.
QuickTime Movie Basics introduces you to some of the basic concepts you need to understand when working with QuickTime movies.
QuickTime Movie Creation Guide describes some of the different ways your application can create a new QuickTime movie.
QuickTime Guide for Windows provides information specific to programming for QuickTime on the Windows platform.
QuickTime Media Types and Media Handlers Guide introduces the idea of QuickTime media handler components and provides details of the video, sound, text, timecode, and tween media handlers.
QuickTime Compression and Decompression Guide introduces you to the QuickTime Image Compression Manager and its associated components, which provide image-compression and image-decompression services to applications and to other QuickTime components.
Copyright © 2005, 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-01-10