UnsafeImage
NameSpace: Android
Inherits from:
IDisposable
Public Fields
CropRect
public ARect CropRect { get; set; }
Format
public MediaFormat Format { get; set; }
Height
public int Height { get; set; }
NumberOfPlanes
public int NumberOfPlanes { get; set; }
Timestamp
public long Timestamp { get; set; }
Width
public int Width { get; set; }
Public Methods
void Dispose
public void Dispose()
bool TryGetPlane
public bool TryGetPlane(
int planeIdx,
out UnsafePlane outPlane
)
Parameters
Type | Name | Description |
---|---|---|
int | planeIdx | |
out UnsafePlane | outPlane |
bool TryLockData
public bool TryLockData()
bool TryUnlockData
public bool TryUnlockData()
UnsafeImage
public UnsafeImage(
VTable vtable,
Allocator allocator
)
Parameters
Type | Name | Description |
---|---|---|
VTable | vtable | |
Allocator | allocator |
Public Attributes
IsCreated
public bool IsCreated => vTable != null;
IsMultiPlanar
public bool IsMultiPlanar => NumberOfPlanes >= 1;