Google is committed to advancing racial equity for Black communities. See how.

ArImage

public class ArImage

This class exposes ArImage obtained from NDK AImage as android.media.Image interface.

Public Methods

void
close()
Releases the resource associated with the object.
Rect
int
getFormat()
Returns the format of the image.
int
getHeight()
Returns the height (in pixels) of the image.
Plane[]
getPlanes()
Returns plane(s) of the image.
long
getTimestamp()
Returns the timestamp.
int
getWidth()
Returns the width (in pixels) of the image.
void
setCropRect(Rect cropRect)
Unsupported, throws UnsupportedOperationException.
void
setTimestamp(long timestamp)
Unsupported, throws UnsupportedOperationException.

Inherited Methods

Public Methods

public void close ()

Releases the resource associated with the object.

public Rect getCropRect ()

public int getFormat ()

Returns the format of the image.

public int getHeight ()

Returns the height (in pixels) of the image.

public Plane[] getPlanes ()

Returns plane(s) of the image.

public long getTimestamp ()

Returns the timestamp.

public int getWidth ()

Returns the width (in pixels) of the image.

public void setCropRect (Rect cropRect)

Unsupported, throws UnsupportedOperationException.

Parameters
cropRect

public void setTimestamp (long timestamp)

Unsupported, throws UnsupportedOperationException.

Parameters
timestamp