Re: Pixel Format of CIImage (documentation question)
Re: Pixel Format of CIImage (documentation question)
- Subject: Re: Pixel Format of CIImage (documentation question)
- From: Andrew Merenbach <email@hidden>
- Date: Sat, 26 Aug 2006 07:37:05 -0700
Hi, Mark. I have absolutely no experience with Core Image or Core
Video, but my initial guess would be that you might need to send the
integer-based constant as an NSNumber, using [NSNumber
numberWithInt:....].
Hopefully someone knows more about this than I do?
Cheers,
Andrew
On Aug 26, 2006, at 7:30 AM, Mark Williker wrote:
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:
40ucla.edu
This email sent to email@hidden
_______________________________________________
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