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.
GreyscaleEffectSample
Last Revision: | Version 1.0, 2003-02-25 Shows how to build a custom single source effect component for QuickTime. |
Build Requirements: | |
Runtime Requirements: | Carbon QuickTime 5+, Metrowerks CodeWarrior 7+, ProjectBuilder 1.1.1+, Mac OS 9, Mac OS X 10.1+ |
This sample shows how to build a custom single source effect component for QuickTime. This effect uses a single source as input, and renders that source in greyscale. It also allows for a brightness value which can range from -100...0...100. A value of 0 signifies no change in brightness. This is a very basic sample and a good place to start if you've never looked at QuickTime effect code before. This sample makes use of some code from the Dimmer2 Effect Framework and Dimmer2 Effect is a recommended companion to this sample. It is however more complex, using multiple sources, multiple pixel formats, non-Macintosh support, tweens etc. For developers who have asked for a quick and dirty single source filter sample, this one's for you eh? 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. Requirements: QuickTime 5+, Metrowerks CodeWarrior 7+, ProjectBuilder 1.1.1+, Mac OS 9, Mac OS X 10.1+ Keywords: QuickTime Effects Components
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-02-25