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 08:17:43 -0700
Mark,
My apologies that I can't be of more help, but a seemingly-extensive
search of Google and Apple's Help docs didn't turn anything up for
me, either; and it appears that there's an inconsistency, since the
color-space option has its own dictionary key.
Regardless of whether this is easily solved (and hopefully it will
be), I would file a documentation-enhancement request to make things
clearer; it could be that there's been an error somewhere.
Still, hopefully someone can illuminate the situation?
Cheers,
Andrew
On Aug 26, 2006, at 7:54 AM, Brian Miller wrote:
Andrew,
I actually have tried this, to no avail. Even if using an NSNumber
as a value, there is no indication what the key would be.
'CIFormat' is an integer typedef, and kCIFormatARGB8/kCIFormatRGBAf
are integer constants.
Thanks for the quick response, we don't get those on quicktime/
opengl lists.
Mark
On Aug 26, 2006, at 7:37 AM, Andrew Merenbach wrote:
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