Struct XRCpuImage
Represents a single, raw image from a device camera. Provides access to the raw image plane data, as well as
conversion methods to convert to color and grayscale formats. See Convert(Conversion
Inherited Members
Namespace: UnityEngine .XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRCpuImage : IDisposable, IEquatable<XRCpuImage>
Remarks
Each XRCpu
Properties
Name | Description |
---|---|
dimensions | The dimensions (width and height) of the image. |
format | The format used by the image planes. You will only need this if you plan to interpret the raw plane data. |
height | The image height. |
plane |
The number of image planes. A plane in this context refers to a channel in the raw video format, not a physical surface. |
timestamp | The timestamp, in seconds, associated with this camera image |
valid | Whether this |
width | The image width. |
Methods
Name | Description |
---|---|
Convert(Conversion |
Convert the |
Convert(Conversion |
Convert the |
Convert |
Convert the |
Convert |
Convert the The |
Dispose() | Dispose native resources associated with this request, including the raw image data. Any
XRCpu |
Equals(object) | Tests for equality. |
Equals(XRCpu |
Tests for equality. |
Format |
Determines whether the given TextureFormat is supported for conversion. |
Get |
Get the number of bytes required to store a converted image with the given parameters. |
Get |
Get the number of bytes required to store a converted image with the given parameters. |
Get |
Generates a hash suitable for use with containers like |
Get |
Get an image plane. A plane in this context refers to a channel in the raw video format, not a physical surface. |
To |
Generates a string representation of this XRCpu |
Operators
Name | Description |
---|---|
operator ==(XRCpu |
Tests for equality. Same as Equals(XRCpu |
operator !=(XRCpu |
Tests for inequality. Same as |