Quartz Composer in an FxPlug example
Quartz Composer in an FxPlug example
- Subject: Quartz Composer in an FxPlug example
- From: Darrin Cardani <email@hidden>
- Date: Sun, 26 Apr 2009 10:01:19 -0700
Here's another example that I wrote this weekend:
|
Attachment:
QCFxPlug.zip
Description: Zip archive
It shows how to pass an image through a Quartz Composer composition. This allows you to create filters without writing almost any code. Simply create a Quartz Composer composition that does what you want, and load the composition, set the values of the parameters, and you're good to go.
Paul Schneider pointed out that some parts of my Core Image example (some of which I've duplicated in this example) might not work the same in FCP as in Motion (where I did my testing). I'll see if I can correct that later today, but basically, you can replace the parts where it gets the OpenGL pixel format with a call to [FxHostCapabilities glContextPixelFormatAttributes]. And don't forget to free it, as I did in the CI example.
And you probably want to replace the calls to CGColorSpaceCreateDeviceRGB () with the generic RGB color space. (I think you have to get a named color space using something like CGColorSpaceGetNamedColorSpace (kCGColorSpaceGenericRGB), or something to that extent.) Again, thanks to Paul for pointing that out.
As always, let me know if you have any questions. Darrin |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden