AVCaptureVideoDataOutputSampleBufferDelegate.DidOutputSampleBuffer Method
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.
Method invoked when a sample buffer has been written on the configured dispatch queue; You must dispose the sampleBuffer before returning.
[Foundation.Export("captureOutput:didOutputSampleBuffer:fromConnection:")]
public virtual void DidOutputSampleBuffer (AVFoundation.AVCaptureOutput captureOutput, CoreMedia.CMSampleBuffer sampleBuffer, AVFoundation.AVCaptureConnection connection);
abstract member DidOutputSampleBuffer : AVFoundation.AVCaptureOutput * CoreMedia.CMSampleBuffer * AVFoundation.AVCaptureConnection -> unit
override this.DidOutputSampleBuffer : AVFoundation.AVCaptureOutput * CoreMedia.CMSampleBuffer * AVFoundation.AVCaptureConnection -> unit
Parameters
- captureOutput
- AVCaptureOutput
The capture output on which the frame was captured.
- sampleBuffer
- CMSampleBuffer
The video frame data, part of a small finite pool of buffers.
- connection
- AVCaptureConnection
The connection on which the video frame was received.
- Attributes
Remarks
Unless you need to keep the buffer for longer, you must call Dispose() on the sampleBuffer before returning. The system has a limited pool of video frames, and once it runs out of those buffers, the system will stop calling this method until the buffers are released.