Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
A question about QTKit / Capture & QTVisualContext and working/output colorspaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A question about QTKit / Capture & QTVisualContext and working/output colorspaces



Hello.

I am noticing some difference in behavior colorspace wise between two QTVisualContexts I am using, one drawing a QTKit QTMovie, and one using a QTKit QTCaptureVideoPreviewOutput.

Both contexts have their working and output colorspace set to kColorSpaceGenericRGBLinear via:

QTVisualContextSetAttribute(textureContext, kQTVisualContextWorkingColorSpaceKeyCGColorSpaceCreateWithName(kCGColorSpaceGenericRGBLinear));
QTVisualContextSetAttribute(textureContext, kQTVisualContextOutputColorSpaceKeyCGColorSpaceCreateWithName(kCGColorSpaceGenericRGBLinear));

After my QTVisualContext is created.

I am passing in CVOpenGLTextureRefs as input image keys in to Quartz Composer. I would like to minimize any intermediate colorspace conversions in my pipeline, and it seems as though my QTMovie is behaving as expected; I've done some debugging using a private Quartz Composer patch (Image Debugging Info) and it states that my QTMovie's visual context is reporting the proper linear RGB colorspace, but that my QTCaptureVideoPreviewOutput is reporting 601.

Am a incorrect in assuming that a QTCaptureVideoPreviewOutput attached to a QTVisualContext will adhere to the working/output colorspace keys that the visual context has set?

Ive attempted to set those VisualContext attributes before and after attaching my VideoPreviewOutput to my visualcontext, and neither order has worked or changed it to LinearRGB as requested.

So, in short, how do I properly convert a QTCaptureVideoPreviewOutputs colorspace when attached to a QTVisualContext?

Thanks!

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.