Package io.anyline2.camera
Class CameraFeatures.FpsRange
-
- All Implemented Interfaces:
public class CameraFeatures.FpsRange
Helper class for the FPS ranges to abstract away the differences in camera API 1 and 2
-
-
Constructor Summary
Constructors Constructor Description CameraFeatures.FpsRange(int lower, int upper)
Create a new range
-
Method Summary
Modifier and Type Method Description int
getLower()
int
getUpper()
static Array<CameraFeatures.FpsRange>
getRangesFromCamera1(@NonNull() List<Array<int>> cam1Ranges)
String
toString()
Return the range as a string representation "[lower, upper]"
.-
-
Method Detail
-
getLower
int getLower()
- Returns:
the lower end of the range in milliseconds
-
getUpper
int getUpper()
- Returns:
the upper end of the range in milliseconds
-
getRangesFromCamera1
static Array<CameraFeatures.FpsRange> getRangesFromCamera1(@NonNull() List<Array<int>> cam1Ranges)
- Parameters:
cam1Ranges
- camera 1 style list of ranges to convert- Returns:
a array of ranges
-
-
-
-