react-native-vision-camera/package/android/src/main/java/com/mrousavy/camera/extensions
Touch Marine fb812a6618
fix: Incorrect zoom on Android < 11 (#1878)
* fix: Incorrect zoom on Android < 11

Fixes #1865

* Clamp zoom on Android

Some unclamped zoom values crash. For example, zoom={0.5} crashes
(tested on Android 9).

* Extract zoom into an extension (Android)

* Update package/android/src/main/java/com/mrousavy/camera/extensions/CaptureRequest+setZoom.kt

---------

Co-authored-by: Marc Rousavy <marcrousavy@hotmail.com>
2023-09-29 19:41:37 +02:00
..
CameraCaptureSession+capture.kt feat: New JS API for useCameraDevice and useCameraFormat and much faster getAvailableCameraDevices() (#1784) 2023-09-21 11:20:33 +02:00
CameraCharacteristics+getOutputSizes.kt feat: Respect format's aspect ratio in Preview and add resizeMode prop (#1817) 2023-09-22 17:32:34 +02:00
CameraCharacteristics+getPreviewSize.kt feat: Implement resizeMode prop for iOS (#1838) 2023-09-23 10:14:27 +02:00
CameraDevice+createCaptureSession.kt feat: New JS API for useCameraDevice and useCameraFormat and much faster getAvailableCameraDevices() (#1784) 2023-09-21 11:20:33 +02:00
CameraDevice+createPhotoCaptureRequest.kt fix: Incorrect zoom on Android < 11 (#1878) 2023-09-29 19:41:37 +02:00
CameraManager+openCamera.kt feat: New JS API for useCameraDevice and useCameraFormat and much faster getAvailableCameraDevices() (#1784) 2023-09-21 11:20:33 +02:00
CaptureRequest+setZoom.kt fix: Incorrect zoom on Android < 11 (#1878) 2023-09-29 19:41:37 +02:00
DynamicRangeProfiles+bestProfile.kt chore: Move everything into package/ (#1745) 2023-09-01 18:15:28 +02:00
List+containsAny.kt feat: New JS API for useCameraDevice and useCameraFormat and much faster getAvailableCameraDevices() (#1784) 2023-09-21 11:20:33 +02:00
Rect+zoomed.kt fix: Incorrect zoom on Android < 11 (#1878) 2023-09-29 19:41:37 +02:00
Size+Extensions.kt feat: New JS API for useCameraDevice and useCameraFormat and much faster getAvailableCameraDevices() (#1784) 2023-09-21 11:20:33 +02:00
ViewGroup+installHierarchyFitter.kt chore: Clean up Android codebase a bit (#1748) 2023-09-02 01:04:36 +02:00