Struct AsyncCameraImageConversion
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Syntax
public struct AsyncCameraImageConversion : IDisposable, IEquatable<AsyncCameraImageConversion>
Properties
conversionParams
Declaration
public CameraImageConversionParams conversionParams { get; }
Property Value
status
The status of the request.
Declaration
public AsyncCameraImageConversionStatus status { get; }
Property Value
Methods
Dispose()
Dispose native resources associated with this request, including the raw image data.
The NativeArray
returned by GetData<T>() is invalidated immediately
after calling Dispose
.
Declaration
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Equals(AsyncCameraImageConversion)
Declaration
public bool Equals(AsyncCameraImageConversion other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetData<T>()
Get the raw image data. The returned NativeArray
is a direct "view" into
the native memory. The memory is only valid until this AsyncCameraImageConversion
is disposed.
You should only call this method when status is equal to Ready.
This method throws otherwise.
Declaration
public NativeArray<T> GetData<T>()where T : struct
Returns
Type |
Description |
NativeArray<T> |
A new NativeArray representing the raw image data. This method may fail; use NativeArray.IsCreated to determine
the validity of the data.
|
Type Parameters
Name |
Description |
T |
The type of data to return. No conversion is performed based on the type; this is merely for access convenience.
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Equality(AsyncCameraImageConversion, AsyncCameraImageConversion)
Declaration
public static bool operator ==(AsyncCameraImageConversion lhs, AsyncCameraImageConversion rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(AsyncCameraImageConversion, AsyncCameraImageConversion)
Declaration
public static bool operator !=(AsyncCameraImageConversion lhs, AsyncCameraImageConversion rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|