Skip to main content
Version: 21 Aug 2024

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

TypeNameDescription
intplaneIdx
out UnsafePlaneoutPlane

bool TryLockData

public bool TryLockData()

bool TryUnlockData

public bool TryUnlockData()

UnsafeImage

public UnsafeImage(
VTable vtable,
Allocator allocator
)

Parameters

TypeNameDescription
VTablevtable
Allocatorallocator

Public Attributes

IsCreated


public bool IsCreated => vTable != null;


IsMultiPlanar


public bool IsMultiPlanar => NumberOfPlanes >= 1;