react-native-vision-camera/package/android/src/main/java/com/mrousavy/camera/extensions
Marc Rousavy cd0b413706
feat: New Core/ library (#1975)
Moves everything Camera related into `core/` / `Core/` so that it is better encapsulated from React Native.

Benefits:

1. Code is much better organized. Should be easier for collaborators now, and cleaner codebase for me.
2. Locking is fully atomically as you can now only configure the session through a lock/Mutex which is batch-overridable
    * On iOS, this makes Camera startup time **MUCH** faster, I measured speedups from **1.5 seconds** to only **240 milliseconds** since we only lock/commit once! 🚀 
    * On Android, this fixes a few out-of-sync/concurrency issues like "Capture Request contains unconfigured Input/Output Surface!" since it is now a single lock-operation! 💪 
3. It is easier to integrate VisionCamera outside of React Native (e.g. Native iOS Apps, NativeScript, Flutter, etc)

With this PR, VisionCamera V3 is up to **7x** faster than V2
2023-10-13 18:33:20 +02:00
..
CameraCaptureSession+capture.kt feat: New Core/ library (#1975) 2023-10-13 18:33:20 +02:00
CameraCharacteristics+getOutputSizes.kt fix: Fix CamcorderProfile get crash on Samsung devices (#1907) 2023-10-03 12:04:03 +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 Core/ library (#1975) 2023-10-13 18:33:20 +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 Core/ library (#1975) 2023-10-13 18:33:20 +02:00
CaptureRequest+setZoom.kt chore: Fix formatting 2023-09-29 19:42:28 +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