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.
A delegate that will 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 starting the encoding operation.
- 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 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.