VTCompressionSession.VTCompressionOutputCallback Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- sourceFrame
-
IntPtr
nativeint
The token passed to EncodeFrame(CVImageBuffer, CMTime, CMTime, NSDictionary, IntPtr, VTEncodeInfoFlags) method
- 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.