Function

VTCompressionSessionPrepareToEncodeFrames

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

Declaration

OSStatus VTCompressionSessionPrepareToEncodeFrames(VTCompressionSessionRef session);

Parameters

session

The compression session.

Discussion

If this function isn't called, any necessary resources are allocated on the first VTCompressionSessionEncodeFrame call.

Subsequent calls to this function have no effect.

See Also

Encoding Frames

VTCompressionSessionEncodeFrame

Presents frames to the compression session.

VTCompressionSessionEncodeFrameWithOutputHandler

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

VTCompressionSessionCompleteFrames

Forces the compression session to complete the encoding of frames.