On Jan 18, 2015, at 17:22 , Kevin Meaney <k...@yvs.eu.com> wrote:
> 
> How can I make sure that the CGBitmapContext and CVPixelBuffer view the pixel 
> data in the same way from a color matching perspective?

You can attach a color space to the pixel buffer as follows:

        CVBufferSetAttachment (pixelBuffer, kCVImageBufferCGColorSpaceKey, …, 
kCVAttachmentMode_ShouldNotPropagate);

Depending on what you do next, I would expect the pixel buffer data to either 
be converted to a destination color space, or to have its color space 
propagated to the destination. (Note that the attachment mode “should not 
propagate” refers to something unrelated, AFAIK. But I’m not an expert on any 
of this.)


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to