Table of Contents

Class CameraFrameForwarder

Forwards frame callbacks from the native Kotlin plugin to Unity.

public class CameraFrameForwarder : AndroidJavaProxy
Inheritance
object
CameraFrameForwarder

Constructors

CameraFrameForwarder()

public CameraFrameForwarder()

Fields

OnFrameReady

Callback for processing the YUV 4:2:0 frame.

public Func<nint, nint, nint, int, int, int, int, int, int, long, Task> OnFrameReady

Field Value

Func<nint, nint, nint, int, int, int, int, int, int, long, Task>

Remarks

Parameters
yBuffer (IntPtr)Pointer to the buffer containing Y (luminance) data of the frame.
uBuffer (IntPtr)Pointer to the buffer containing U (color) data of the frame.
vBuffer (IntPtr)Pointer to the buffer containing V (color) data of the frame.
ySize (int)The size of yBuffer.
uSize (int)The size of uBuffer.
vSize (int)The size of vBuffer.
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.

Methods

Invoke(string, nint)

public override nint Invoke(string methodName, nint javaArgs)

Parameters

methodName string
javaArgs nint

Returns

nint