Hi,

I have a few different pipelines rendering images, some QC-based, some OpenGL/CI-based, some Quartz/CI-based. All have colorspaces associated.

The QC-based renderings has a slightly different color output. I think this is because my CI-based contexts have this setup, which sems not possible to create through QCRenderer:

CGColorSpaceRef colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
                                         
(id)colorSpace,kCIContextOutputColorSpace,
                                         
(id)colorSpace,kCIContextWorkingColorSpace,
                                         nil];
_hiresImageContext = [CIContext contextWithCGContext:_hiresGraphicsContext options:options];


The rendering are the same if options is set to nil in the CI-based contexts. QCRenderer is created with this code:

CGColorSpaceRef colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB); id path = [[NSBundle mainBundle] pathForResource:@"HYTheater" ofType:@"qtz" inDirectory:nil];
        id composition = [QCComposition compositionWithFile:path];
_qcTheater = [[QCRenderer alloc] initWithCGLContext:[_openGLContext CGLContextObj] pixelFormat:[_openGLPixelFormat CGLPixelFormatObj] colorSpace:colorSpace composition:composition];

Any advice to setup the QCRenderer to render the same as CIContexts ?

Thanks,

Raphael
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to