CameraUtils

open class CameraUtils

Camera-related utility functions.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun chooseFixedPreviewFps(parms: Camera.Parameters, desiredThousandFps: Int): Int
Attempts to find a fixed preview frame rate that matches the desired frame rate.
Link copied to clipboard
open fun choosePreviewSize(parms: Camera.Parameters, width: Int, height: Int)
Attempts to find a preview size that matches the provided width and height (which specify the dimensions of the encoded video).