ArImage

public class ArImage

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

Public Methods

void
close()
Releases the resource associated with the object.
Rect
getCropRect()
Get the crop rectangle associated with this frame.
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

close

public void close()

Releases the resource associated with the object.

getCropRect

public Rect getCropRect()

Get the crop rectangle associated with this frame.

The crop rectangle specifies the region of valid pixels in the image, using coordinates in the largest-resolution plane.

getFormat

public int getFormat()

Returns the format of the image.

getHeight

public int getHeight()

Returns the height (in pixels) of the image.

getPlanes

public Plane[] getPlanes()

Returns plane(s) of the image.

getTimestamp

public long getTimestamp()

Returns the timestamp.

getWidth

public int getWidth()

Returns the width (in pixels) of the image.

setCropRect

public void setCropRect(
  Rect cropRect
)

Unsupported, throws UnsupportedOperationException.

Details
Parameters
cropRect
Throws
UnsupportedOperationException always

setTimestamp

public void setTimestamp(
  long timestamp
)

Unsupported, throws UnsupportedOperationException.

Details
Parameters
timestamp
Throws
UnsupportedOperationException always