You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun CameraCharacteristics.getDeviceTypes(): ReadableArray {
29
-
// TODO: Check if getDeviceType() works correctly, even for logical multi-cameras
30
29
val focalLengths =this.get(CameraCharacteristics.LENS_INFO_AVAILABLE_FOCAL_LENGTHS)!!
31
30
val sensorSize =this.get(CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE)!!
32
31
@@ -35,17 +34,19 @@ fun CameraCharacteristics.getDeviceTypes(): ReadableArray {
35
34
36
35
val deviceTypes =Arguments.createArray()
37
36
38
-
val containsTelephoto = focalLengths.any { l -> (l * cropFactor) >35 } // TODO: Telephoto lenses are > 85mm, but we don't have anything between that range..
39
-
// val containsNormalLens = focalLengths.any { l -> (l * cropFactor) > 35 && (l * cropFactor) <= 55 }
40
-
val containsWideAngle = focalLengths.any { l -> (l * cropFactor) >=24&& (l * cropFactor) <=35 }
41
-
val containsUltraWideAngle = focalLengths.any { l -> (l * cropFactor) <24 }
0 commit comments