Skip to main content
Version: 21 Aug 2024

AImageReader

NameSpace: Media

Inherits from:
INullablePointer,
IDisposable

Public Fields

Format


public MediaFormat Format { get; set; }


Height


public int Height { get; set; }


MaxImages


public int MaxImages { get; set; }


Width


public int Width { get; set; }


Window


public ANativeWindow Window { get; set; }


Public Methods

void Dispose

public void Dispose()

bool TryAcquireLatestImage

public bool TryAcquireLatestImage(
out AImage outImage
)

Parameters

TypeNameDescription
out AImageoutImage

bool TryAcquireNextImage

public bool TryAcquireNextImage(
out AImage outImage
)

Parameters

TypeNameDescription
out AImageoutImage

bool TryCreate

public static bool TryCreate(
int width,
int height,
MediaFormat format,
int maxImages,
out AImageReader reader
)

Parameters

TypeNameDescription
intwidth
intheight
MediaFormatformat
intmaxImages
out AImageReaderreader

bool TryCreate

public static bool TryCreate(
int width,
int height,
MediaFormat format,
AHardwareBuffer.Usage usage,
int maxImages,
out AImageReader reader
)

Parameters

TypeNameDescription
intwidth
intheight
MediaFormatformat
AHardwareBuffer.Usageusage
intmaxImages
out AImageReaderreader

bool TrySetImageListener

public bool TrySetImageListener(
ImageListener listener
)

Parameters

TypeNameDescription
ImageListenerlistener

Public Attributes

IsNull


public bool IsNull => value == IntPtr.Zero;