Skip navigation.
 
mlRe: -[CALayer setContents: cvPixelBufferRef ] ?
FROM : David Duncan
DATE : Thu Apr 03 21:38:35 2008

On Apr 3, 2008, at 12:28 PM, Jonathan del Strother wrote:
>> If you have a CVPixelBufferRef, you can use the various functions 
>> defined
>> for a CVPixelBuffer to access the base address, row bytes, width, 
>> height and
>> other attributes to create a CGImageRef directly from it via
>> CGImageCreate().

>
> Even for yuv?  I thought CGImageCreate only handled variations on
> rgba, but will give it another go...



Your right, I forgot that detail :). I'm not familiar but Quicktime 
might be able to convert it for you before you get it (which is likely 
the best thing in this case).

But that brings up the question of what are you trying to do? :)
--
David Duncan
Apple DTS Animation and Printing
david.<email_removed>

Related mailsAuthorDate
ml-[CALayer setContents: cvPixelBufferRef ] ? Jonathan del Strot… Apr 3, 20:34
mlRe: -[CALayer setContents: cvPixelBufferRef ] ? David Duncan Apr 3, 21:23
mlRe: -[CALayer setContents: cvPixelBufferRef ] ? Jonathan del Strot… Apr 3, 21:28
mlRe: -[CALayer setContents: cvPixelBufferRef ] ? David Duncan Apr 3, 21:38
mlRe: -[CALayer setContents: cvPixelBufferRef ] ? Jonathan del Strot… Apr 3, 22:00
mlRe: -[CALayer setContents: cvPixelBufferRef ] ? David Duncan Apr 3, 22:11