BufferCameraFrame

Created by marko on 09/11/2016.

Constructors

Link copied to clipboard
constructor(@NonNull buffer: ByteBuffer, format: Int, offset: Int, width: Int, height: Int, stride: Int, cropLeft: Int, cropTop: Int, cropRight: Int, cropBottom: Int, id: Long)
The provided byte buffer needs to contain ARGB_8888 data

Types

Link copied to clipboard

Functions

Link copied to clipboard
Finalization method.
Link copied to clipboard
@NonNull
open fun getFormat(): CameraDataFormat
returns the format of the frame
Link copied to clipboard
open fun getFrameID(): Long
Returns the unique frame identifier
Link copied to clipboard
Returns the quality of the current frame.
Link copied to clipboard
open fun getHeight(): Int
returns the height of the frame
Link copied to clipboard
Accessed from native code to obtain pointer to implementation of native camera frame
Link copied to clipboard
@Nullable
open fun getOrientation(): Orientation
Returns the orientation of the current frame.
Link copied to clipboard
@Nullable
open fun getVisiblePart(): RectF
returns the region that defines the visible part of frame
Link copied to clipboard
open fun getWidth(): Int
returns the width of the frame
Link copied to clipboard
open fun initializeNativePart(frameAnalyzersPtr: Long): Boolean
Initializes native part of camera frame implementation.
Link copied to clipboard
Initialization method.
Link copied to clipboard
returns true if device was moving while frame was created
Link copied to clipboard
open fun isFocused(): Boolean
returns true if camera thinks this frame is focused
Link copied to clipboard
open fun isPhoto(): Boolean
Returns true if frame is photograph
Link copied to clipboard
open fun recycle()
Used for recycling frame buffer back into camera so its buffer can be reused for new camera frame.
Link copied to clipboard
open fun setFrameID(id: Long)
Link copied to clipboard
open fun setOrientation(@NonNull orientation: Orientation)
Sets the orientation of the current frame.
Link copied to clipboard
open fun setVisiblePart(@NonNull visiblePart: RectF)
sets the region that defines the visible part of frame