Enum XRCpuImage.Format
Formats used by the raw XRCpuImage data. See format.
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public enum Format
Fields
Name | Description | Value |
---|---|---|
Unknown | The format is unknown or could not be determined. |
0 |
AndroidYuv420_888 | Three-Plane YUV 420 format commonly used by Android. See AIMAGE_FORMAT_YUV_420_888. This format consists of three image planes. The first is the Y (luminocity) plane, with 8 bits per pixel. The second and third are the U and V (chromaticity) planes, respectively. Each 2x2 block of pixels share the same chromaticity value, so a given (x, y) pixel's chromaticity value is given by
|
1 |
IosYpCbCr420_8BiPlanarFullRange | Bi-Planar Component Y'CbCr 8-bit 4:2:0, full-range (luma=[0,255] chroma=[1,255]) commonly used by iOS. See kCVPixelFormatType_420YpCbCr8BiPlanarFullRange. This format consists of two image planes. The first is the Y (luminosity) plane, with 8 bits per pixel. The second plane is the UV (chromaticity) plane. The U and V chromaticity values are interleaved (u0, v0, u1, v1, etc.). Each 2x2 block of pixels share the same chromaticity values, so a given (x, y) pixel's chromaticity value is given by
pixelStride is always 2 for this format, so this can be optimized to
|
2 |
OneComponent8 | A single channel image format with 8 bits per pixel. |
3 |
DepthFloat32 | IEEE754-2008 binary32 float, describing the depth (distance to an object) in meters |
4 |
DepthUint16 | 16-bit unsigned integer, describing the depth (distance to an object) in millimeters. |
5 |
OneComponent32 | Single channel image format with 32 bits per pixel. |
6 |
ARGB32 | 4 channel image with 8 bits per channel, describing the color in ARGB order. |
7 |
RGBA32 | 4 channel image with 8 bits per channel, describing the color in RGBA order. |
8 |
BGRA32 | 4 channel image with 8 bits per channel, describing the color in BGRA order. |
9 |
RGB24 | 3 8-bit unsigned integer channels, describing the color in RGB order. |
10 |