• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pixel Format of CIImage (documentation question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Pixel Format of CIImage (documentation question) (From: Mark Williker <email@hidden>)

  • Prev by Date: Pixel Format of CIImage (documentation question)
  • Next by Date: Re: Detecting non-responsive app
  • Previous by thread: Pixel Format of CIImage (documentation question)
  • Next by thread: Re: Pixel Format of CIImage (documentation question)
  • Index(es):
    • Date
    • Thread