| Log In | Not a Member? |
Contact ADC
|
|
![]() |
| Previous Section | Table of Contents | Next Section |
ComponentsContentsA component can be thought of as a black box, a piece of code providing a specific set of services to a client. QuickTime is highly modular in that it is made up of over 200 different components, each performing a specific job and responding to a defined programming interface. This modularity not only make it simpler to program for QuickTime but allows QuickTime to be extended through the addition of new components providing new and or specific services. These components provide essential services to your application and to the managers that make up the QuickTime architecture. The Component Manager provides services that allow you to find, open, and access specific components. Components of a particular type are found using three main criteria which are part of a ComponentDescription structure.
Additionally, specific information about a particular component can be specified by using the componentFlags and componentFlagsMask fields of the component description record.
The FindNextComponent function returns the component identifier for the next registered component that meets the selection criteria specified by your application. You specify the selection criteria in a ComponentDescription structure. You use the OpenComponent function to gain access to a specified component by using the previously obtained component identifier. If you are interested only in using a component of a particular type-subtype and you do not need to specify any other characteristics of the component, use the OpenADefaultComponent or OpenDefaultComponent function and specify only the component type and subtype - the Component Manager then selects a component for you and opens a connection to that component. When a component is opened through the component manager an instance of that component is created. This establishes a communications channel with the component and allocates memory for the tasks to be performed. When you are done with a component instance that you opened, you should close it using CloseComponent. This will terminate the communication channel and release memory used by the component. This diagram shows the relationship between an application, the Component Manager, and components.
QuickTime components fall into several categories:
In some cases you may want to modify, extend or replace QuickTime's built-in components to accomplish a specific goal. Media Presentation - You could write your own graphics importer, and sounds component or music synthesizer. Media Capture - You may want to create a new Video Digitizer, image compressor or image compressor dialog component. Media Handling - QuickTime provides extendable component frameworks that you can modify to provide custom handlers for video, sound, text, sprite, 3D, vector graphics and tween media. They include base components for media handling, effects, and transitions and musical instruments. Utility Tasks - These include data exchange components, sequence grabber channel and panel components, video digitizers, video output components, image transcoders, data handlers, streaming components, clock components, music components and note allocators. These can be replaced if you want to alter specific areas of QuickTime's behavior. |
| Previous Section | Table of Contents | Next Section |