Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Dimmer2Effect
Last Revision: | Version 1.0, 2003-02-25 Shows how to build a custom 2 source effect component for QuickTime. |
Build Requirements: | |
Runtime Requirements: | Carbon QuickTime 5+, Metrowerks CodeWarrior 7+, ProjectBuilder 1.1.1+, Microsoft Visual C++ 6 or later, Mac OS 9, Mac OS X 10.1+, Win98+ |
This sample shows how to build a custom effect component for QuickTime. The structure of this sample is that of a "Framework" which can be used to build new effects very quicly. Replace a few lines of code, write some new blit code and you're done...easy as cake. The sample effect this framework builds is called "Dimmer2". Dimmer2 uses two sources as input and renders the first source with a dim value that starts at full on, and ramps to full off. It then does the opposite for the second source starting at full off and ramping up to full on using a QT Tween to produce the dim values used to modify the pixels. CodeWarrior and Project Builder projects are included: - The CodeWarrior targets build a traditional PPC code resource, Carbon CFM component and a Carbon Mach-O component. The last two for Mac OS X only. - The Project Builder target will build a Mach-O dylib for Mac OS X. - Microsoft Visual C++ project included, see ReadMe for more details. Requirements: QuickTime 5+, Metrowerks CodeWarrior 7+, ProjectBuilder 1.1.1+, Microsoft Visual C++ 6 or later, Mac OS 9, Mac OS X 10.1+, Win98+ Keywords: QuickTime Effects Components
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-02-25