Edit

Share via


VTCompressionSession.VTCompressionOutputCallback Delegate

Definition

Handler prototype to be called for each compressed frame

public delegate void VTCompressionSession.VTCompressionOutputCallback(IntPtr sourceFrame, VTStatus status, VTEncodeInfoFlags flags, CMSampleBuffer buffer);
type VTCompressionSession.VTCompressionOutputCallback = delegate of nativeint * VTStatus * VTEncodeInfoFlags * CMSampleBuffer -> unit

Parameters

status
VTStatus

Status code indicating if the operation was successful or not.

flags
VTEncodeInfoFlags

Contains information about the encoding operation.

buffer
CMSampleBuffer

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

Remarks

The methods invoked as a result of calling Create(VTDecompressionSession+VTDecompressionOutputCallback, CMVideoFormatDescription, VTVideoDecoderSpecification, NSDictionary) will be invoked for each frame in decode order, not necessarily the display order.

Applies to