I'm wondering if there is a way to use a Quartz Composer
composition as a plugin inside another program.
For example, suppose that there is a node for an image input, then
some modules that process that data, and then a node for image
output. Could my program 'import' that plugin, send it an image,
and then get the image result at the output?
The QCRenderer seems to be close to what I need, but the problem is
that I don't want to display the output -- just have the
composition do some processing and feed me the result.
Possible? Sample Code?
Yes, this is possible: you can load a composition on a QCRenderer
that actually performs no graphics rendering. In that case create a
dummy OpenGL context for the QCRenderer that is not attached to a
surface (i.e. NSView or screen) and it should work fine.