Re: CVPixelBuffer and Color profiles
Re: CVPixelBuffer and Color profiles
- Subject: Re: CVPixelBuffer and Color profiles
- From: Quincey Morris <email@hidden>
- Date: Mon, 19 Jan 2015 01:56:25 +0000
On Jan 18, 2015, at 17:22 , Kevin Meaney <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden