Function

VTCompressionSessionCompleteFrames

Forces the compression session to complete the encoding of frames.

Declaration

OSStatus VTCompressionSessionCompleteFrames(VTCompressionSessionRef session, CMTime completeUntilPresentationTimeStamp);

Parameters

session

The compression session.

completeUntilPresentationTimeStamp

The timestamp at which to complete frame encoding.

Discussion

If completeUntilPresentationTimeStamp is numeric, frames with presentation timestamps up to and including this timestamp are emitted before the function returns.

If completeUntilPresentationTimeStamp is non-numeric, all pending frames are emitted before the function returns.

See Also

Encoding Frames

VTCompressionSessionPrepareToEncodeFrames

Enables the encoder to perform any necessary resource allocation before the encoder begins encoding frames (optional).

VTCompressionSessionEncodeFrame

Presents frames to the compression session.

VTCompressionSessionEncodeFrameWithOutputHandler

Presents frames to the compression session and invokes the output callback when compression is complete.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software