public class BitmapCameraFrame
extends java.lang.Object
| Constructor and Description |
|---|
BitmapCameraFrame(android.graphics.Bitmap bitmap,
long id) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalizePoolObject()
Finalization method.
|
CameraDataFormat |
getFormat()
returns the format of the frame
|
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.
|
Rectangle |
getVisiblePart()
returns the region that defines the visible part of frame
|
int |
getWidth()
returns the width of the frame
|
boolean |
initializeNativePart(long frameAnalyzersPtr)
Initializes native part of camera frame implementation.
|
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()
Used for recycling frame buffer back into camera so its buffer can be reused for new camera frame.
|
void |
setFrameID(long id) |
void |
setOrientation(Orientation orientation)
Sets the orientation of the current frame.
|
void |
setVisiblePart(Rectangle visiblePart)
sets the region that defines the visible part of frame
|
public BitmapCameraFrame(android.graphics.Bitmap bitmap,
long id)
public int getWidth()
public int getHeight()
public void setVisiblePart(Rectangle visiblePart)
visiblePart - public CameraDataFormat getFormat()
public boolean isFocused()
public boolean isDeviceMoving()
public Rectangle getVisiblePart()
public void recycle()
public boolean isPhoto()
public boolean initializeNativePart(long frameAnalyzersPtr)
frameAnalyzersPtr - Native pointer to class containing all native elements frame needs (frame quality estimator, white balance analyzer etc.)public long getNativeCameraFrame()
public double getFrameQuality()
public void setOrientation(Orientation orientation)
orientation - public Orientation getOrientation()
public long getFrameID()
public void setFrameID(long id)
public void initializePoolObject()
public void finalizePoolObject()