Function

VTCompressionSessionCompleteFrames(_:untilPresentationTimeStamp:)

Forces the compression session to complete the encoding of frames.

Declaration

func VTCompressionSessionCompleteFrames(_ session: VTCompressionSession, untilPresentationTimeStamp completeUntilPresentationTimeStamp: CMTime) -> OSStatus

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.