Edit

Share via


AVCaptureVideoDataOutputSampleBufferDelegate.DidOutputSampleBuffer Method

Definition

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.

Applies to