Version: 1.0

Posted: 2003-02-25

Build Requirements: N/A

Runtime Requirements: Carbon QuickTime 5+, Metrowerks CodeWarrior 7+, ProjectBuilder 1.1.1+, Mac OS 9, Mac OS X 10.1+

View Source Code:

Download Sample (“GreyscaleEffectSample.zip”, 458.7K)
Download Sample (“GreyscaleEffectSample.dmg”, 803.4K)



Description

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

Document Revision History

Date Notes
2003-02-25Shows how to build a custom single source effect component for QuickTime.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.