|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi all- I know there are better things to do on a Saturday night, but I just can't stop wondering how to get a CVImageBuffer (of any of the three flavors: CVPixelBuffer, CVOpenGLBuffer, or CVOpenGLTexture) from the data contained in a CGImageRef. Much of the example code I can find for Core Video involves getting an image from QuickTime, but I am not in that situation. In my case, I have an image (CGImageRef or NSImage) that I'm preflighting for inclusion into a Quartz Composer composition. While QC will gladly take these formats, I have run into performance issues in moving them from my Cocoa environment into QC... it takes too much work on QCs part to change the images into a compatible internal format (it causes a stutter in the ongoing animation taking place onscreen). Knowledgeable people on the QC list suggested getting the image into a CVImageBuffer, but could not offer specifics on how to do so. Thus the question: How does one take a CGImage (or NSImage) into any of the three flavors of CVImageBuffer? Any help is greatly appreciated! John |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.