Table of Contents

Delegate ContinuousCaptureSession.OnFrameReadyCallback

Processes a frame received from the native capture session.

public delegate void ContinuousCaptureSession.OnFrameReadyCallback(nint yBuffer, long yBufferSize, nint uBuffer, nint vBuffer, long uvBufferSize, int yRowStride, int uvRowStride, int uvPixelStride, long timestamp)

Parameters

yBuffer nint

The pointer to this frame's Y (luminance) data.

yBufferSize long

The size of the Y buffer in bytes.

uBuffer nint

The pointer to this frame's U (color) data.

vBuffer nint

The pointer to this frame's V (color) data.

uvBufferSize long

The size of the U and V buffers in bytes.

yRowStride int

The size of each row of the image in yBuffer in bytes.

uvRowStride int

The size of each row of the image in uBuffer and vBuffer in bytes.

uvPixelStride int

The size of a pixel in a row of the image in uBuffer and vBuffer in bytes.

timestamp long

The timestamp the frame was captured at in nanoseconds.

Extension Methods