Share via


VTCompressionSession.VTCompressionOutputHandler Delegate

Definition

A delegate that will be called for each compressed frame.

public delegate void VTCompressionSession.VTCompressionOutputHandler(VTStatus status, VTEncodeInfoFlags infoFlags, CMSampleBuffer? sampleBuffer);
type VTCompressionSession.VTCompressionOutputHandler = delegate of VTStatus * VTEncodeInfoFlags * CMSampleBuffer -> unit

Parameters

status
VTStatus

Status code indicating if the operation was successful or not.

infoFlags
VTEncodeInfoFlags

Contains information about the encoding operation.

sampleBuffer
CMSampleBuffer

Contains a pointer to the encoded buffer if successful and the frame was not dropped. A null value indicates either an error, or that the frame was dropped.

Remarks

The delegate will be called in the order the frames are decoded, which is not necessarily the same as the display order.

Applies to