Instance Method


Retrieves an image that is appropriate for display at the specified item time, and marks the image as acquired.


- (CVPixelBufferRef)copyPixelBufferForItemTime:(CMTime)itemTime itemTimeForDisplay:(CMTime *)outItemTimeForDisplay;



The time at which you want to retrieve the image from the item.


The time by which you intend to use the returned pixel buffer. You may specify nil for this parameter if you do not have a specific deadline.

Return Value

A pixel buffer containing the image data to display or nil if nothing should be displayed at the specified time. The caller is responsible for calling CVBufferRelease on the returned data when it is no longer needed.


Typically, you call this method in response to a CVDisplayLink callback or a CADisplayLink delegate method call when the hasNewPixelBufferForItemTime: method also returns YES.

After calling this method, the video output object marks the pixel buffer data as having been acquired. This causes the hasNewPixelBufferForItemTime: method to return NO unless newer data becomes available.

See Also

Getting Pixel Buffer Data

- hasNewPixelBufferForItemTime:

Returns a Boolean value that indicates whether video output is available for the specified item time.