Table of Contents

Class YUVToRGBAConverter.CPUDepthFrame

Handles YUV frame data.

protected record YUVToRGBAConverter.CPUDepthFrame
Inheritance
object
YUVToRGBAConverter.CPUDepthFrame

Remarks

The NativeArrays used by this object are allocated using Allocator.TempJob.

Constructors

CPUDepthFrame(int, int)

public CPUDepthFrame(int yBufferSize, int uvBufferSize)

Parameters

yBufferSize int
uvBufferSize int

Fields

UBuffer

Represents YUV frame data on the CPU.

public readonly NativeArray<byte> UBuffer

Field Value

NativeArray<byte>

VBuffer

Represents YUV frame data on the CPU.

public readonly NativeArray<byte> VBuffer

Field Value

NativeArray<byte>

YBuffer

Represents YUV frame data on the CPU.

public readonly NativeArray<byte> YBuffer

Field Value

NativeArray<byte>

Properties

IsValid

Are all data buffers valid?

public bool IsValid { get; }

Property Value

bool

Methods

CopyFrom(nint, long, nint, nint, long)

Copies YUV data from native pointers.

public void CopyFrom(nint yNativeBuffer, long yLength, nint uNativeBuffer, nint vNativeBuffer, long uvLength)

Parameters

yNativeBuffer nint

The Y channel data.

yLength long

The length of the Y channel data in bytes.

uNativeBuffer nint

The U channel data.

vNativeBuffer nint

The V channel data.

uvLength long

The length of the U and V channel data in bytes.

CopyTo(ComputeBuffer, ComputeBuffer, ComputeBuffer)

Copies this data to ComputeBuffers.

public void CopyTo(ComputeBuffer yComputeBuffer, ComputeBuffer uComputeBuffer, ComputeBuffer vComputeBuffer)

Parameters

yComputeBuffer ComputeBuffer

The Y channel buffer.

uComputeBuffer ComputeBuffer

The U channel buffer.

vComputeBuffer ComputeBuffer

The V channel buffer.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()