I didn't find a lot of information in the docs on this call either.
I ended up just converting my buffer to k24RGBPixelFormat or
k32ARGBPixelFormat before calling CVPixelBufferCreateWithBytes, which
worked for me.
On my Mac it returned an array (not a dictionary as in the
documentation). The array consisted of NSNumber objects,
corresponding to pixel formats like you find in Quickdraw.h.
What pixel formats does CVPixelBufferCreateWithBytes support on
Macintosh and Windows. I have noticed that specifying anything other
than k32ARGBPixelFormat returns an error on Windows. Not sure about
the Mac.
Is there no way to create a CVPixelBufferRef for BGRA32 or BGR24
formats ?
-Raman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/automated.mail%
40gmail.com
This email sent to email@hidden
Stewart Milberger
Megaptera, Inc. (www.megaptera.com)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden