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
public void close ()
close
public void close()
Releases the resource associated with the object.
public Rect getCropRect ()
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.
public int getFormat ()
getFormat
public int getFormat()
Returns the format of the image.
public int getHeight ()
getHeight
public int getHeight()
Returns the height (in pixels) of the image.
public Plane[] getPlanes ()
getPlanes
public Plane[] getPlanes()
Returns plane(s) of the image.
public long getTimestamp ()
getTimestamp
public long getTimestamp()
Returns the timestamp.
public int getWidth ()
getWidth
public int getWidth()
Returns the width (in pixels) of the image.
public void setCropRect (Rect cropRect)
setCropRect
public void setCropRect( Rect cropRect )
Unsupported, throws UnsupportedOperationException
.
Details | |||
---|---|---|---|
Parameters |
|
||
Throws |
|
public void setTimestamp (long timestamp)
setTimestamp
public void setTimestamp( long timestamp )
Unsupported, throws UnsupportedOperationException
.
Details | |||
---|---|---|---|
Parameters |
|
||
Throws |
|