Pixel Format of CIImage (documentation question)
Pixel Format of CIImage (documentation question)
- Subject: Pixel Format of CIImage (documentation question)
- From: Mark Williker <email@hidden>
- Date: Sat, 26 Aug 2006 07:30:01 -0700
Hi all,
I don't know if this is the right list to post this question, it has
to do with Core Image, but is really probably a simple (stupid) cocoa
question.
I'm trying to use the method "+ imageWithCVImageBuffer:options:" to
set the pixel format of a CIImage to RGBA (from ARGB_8, which core
video supplies).
Documentation of this method reads:
+ (CIImage *)imageWithCVImageBuffer:(CVImageBufferRef)imageBuffer
options:(NSDictionary *)dict
dict - A dictionary that contains options for creating an image
object. You can supply such options as a pixel format and a color
space (kCIImageColorSpace). The pixel format must be a CIFormat data
type, either kCIFormatARGB8 or kCIFormatRGBAf.
The problem is that a CIFormat data type is an integer based
constant. So the question is, what key, and what object would I
supply to the dictionary to specify this option?
Thanks,
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden