BaseCamera1PreviewFrame

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, bufferSize: Int, @NonNull myPool: Camera1PreviewFramePool, @NonNull camera1Manager: Camera1Manager)

Functions

Link copied to clipboard
open fun dispose()
Link copied to clipboard
Finalization method.
Link copied to clipboard
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
fun getHeight(): Int
Link copied to clipboard
@Nullable
open fun getImgBuffer(): Array<Byte>
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
fun getVisiblePart(): RectF
Link copied to clipboard
fun getWidth(): Int
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
Link copied to clipboard
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
fun setDeviceMoving(deviceMoving: Boolean)
Link copied to clipboard
fun setFocused(focused: Boolean)
Link copied to clipboard
open fun setFrameID(frameID: Long)
Link copied to clipboard
fun setImgBuffer(@NonNull buffer: Array<Byte>)
used in API level 7 where buffered callback is not supported and for photo frames
Link copied to clipboard
open fun setOrientation(@NonNull orientation: Orientation)
Sets the orientation of the current frame.
Link copied to clipboard
fun setVisiblePart(@NonNull visiblePart: RectF)