Class YUVToRGBAConverter.CPUDepthFrame
- Namespace
- Uralstech.UXR.QuestCamera
Handles YUV frame data.
protected record YUVToRGBAConverter.CPUDepthFrame
- Inheritance
-
objectYUVToRGBAConverter.CPUDepthFrame
Remarks
The NativeArrays used by this object are allocated using Allocator.TempJob.
Constructors
CPUDepthFrame(int, int)
public CPUDepthFrame(int yBufferSize, int uvBufferSize)
Parameters
yBufferSizeintuvBufferSizeint
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
yNativeBuffernintThe Y channel data.
yLengthlongThe length of the Y channel data in bytes.
uNativeBuffernintThe U channel data.
vNativeBuffernintThe V channel data.
uvLengthlongThe 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
yComputeBufferComputeBufferThe Y channel buffer.
uComputeBufferComputeBufferThe U channel buffer.
vComputeBufferComputeBufferThe V channel buffer.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()