public class ImageFrame
extends java.lang.Object
Constructor and Description |
---|
ImageFrame(Image image,
long id) |
Modifier and Type | Method and Description |
---|---|
void |
finalizePoolObject()
Finalization method.
|
CameraDataFormat |
getFormat() |
long |
getFrameID()
Returns the unique frame identifier
|
double |
getFrameQuality()
Returns the quality of the current frame.
|
int |
getHeight()
returns the height of the frame
|
long |
getNativeCameraFrame()
Accessed from native code to obtain pointer to implementation of native camera frame
|
Orientation |
getOrientation()
Returns the orientation of the current frame.
|
android.graphics.RectF |
getVisiblePart()
returns the region that defines the visible part of frame
|
int |
getWidth()
returns the width of the frame
|
boolean |
initializeNativePart(long frameAnalyzersPtr) |
void |
initializePoolObject()
Initialization method.
|
boolean |
isDeviceMoving()
returns true if device was moving while frame was created
|
boolean |
isFocused()
returns true if camera thinks this frame is focused
|
boolean |
isPhoto()
Returns true if frame is photograph
|
void |
recycle() |
void |
setOrientation(Orientation orientation)
Sets the orientation of the current frame.
|
void |
setVisiblePart(android.graphics.RectF visiblePart)
sets the region that defines the visible part of frame
|
@NonNull protected Image mImage
public ImageFrame(@Nullable Image image, long id)
public final int getWidth()
public final int getHeight()
public final void setVisiblePart(@NonNull android.graphics.RectF visiblePart)
visiblePart
- @NonNull public CameraDataFormat getFormat()
public final boolean isFocused()
public final boolean isDeviceMoving()
@NonNull public final android.graphics.RectF getVisiblePart()
public final boolean isPhoto()
public boolean initializeNativePart(long frameAnalyzersPtr)
public void recycle()
public final long getNativeCameraFrame()
public final double getFrameQuality()
public final void setOrientation(@NonNull Orientation orientation)
orientation
- @NonNull public final Orientation getOrientation()
public final long getFrameID()
public final void initializePoolObject()
public final void finalizePoolObject()