Releases: mrousavy/react-native-vision-camera
Releases · mrousavy/react-native-vision-camera
Release 3.9.0-beta.3
Release 2.16.8
Release 3.9.0-beta.2
3.9.0-beta.2 (2024-02-07)
In this release I finally fixed the PreviewView stretching issue!! 👏🥳🚀
🐛 Bug Fixes
Release 3.9.0-beta.1
3.9.0-beta.1 (2024-02-06)
✨ Features
- Create persistent
CaptureSession
to avoid any blackscreen issues or errors (#2494) (5acc64e) - Synchronize
Frame
properly (#2501) (d8c95c9)
🐛 Bug Fixes
- Fix
minFocusDistance
beingNaN
on some emulators (e95264f) - Properly type Format
Templates
(#2499) (cd5fdd4)
📚 Documentation
Release 3.9.0-beta.0
3.9.0-beta.0 (2024-02-01)
✨ Features
- Use GPU/CPU optimized
ImageReader
s when possible (#2488) (f896831) - Add FPS Counter to Android (
enableFpsGraph
) (#2460) (9089014) - Bump
org.jetbrains.kotlinx:kotlinx-coroutines-android
from 1.5.2 to 1.7.3 (#2467) (fb96d00) - Use
yuv
by default if nopixelFormat
is set (#2441) (11eb1f6)
💨 Performance Improvements
🐛 Bug Fixes
- Catch
insufficient-storage
errors (#2422) (b1fa065) - Enable
processNestedWorklets
to fixrunAsync
in example (#2449) (587f2b1) - Expose auto-focus system for Android (#2455) (b5eb01b)
- Fix
maxImages have been acquired
error in Frame Processor (#2430) (7e2889c) - Fix
NullPointerException
ininitFrameProcessorPlugin
if plugin is not found (#2454) (02bc8a9) - Fix
NullPointerException
inVideoPipeline.removeRecordingSessionOutputSurface
(#2453) (bdbcf05) - Fix
pixelFormat
beingnative
when FP is set (#2450) (d64fc08) - Fix
priority
being ignored in some Format filters (#2456) (d9a3011) - Fix
SharedArray
JSI constructor allocating a new array instead of wrapping (#2444) (c911d25) - Fix
Unable to retrieve jni environment. Is the thread attached?
errors by usingjni::ThreadScope
(#2457) (33e2adc) - Fix Android C++ SharedArray logs (bc6f954)
- Fix crash in
toArrayBuffer()
by properly acquiring a reference onAHardwareBuffer*
(#2490) (ae75e22) - Fix HostObject destructors to make sure a JNI Environment is set up (#2462) (5f75b9e)
- Prevent phone from going to sleep if Camera is active (#2421) (a739ca1)
- Properly check
HardwareBuffer
usage flags before setting them (#2488) (f896831) - Refresh Permissions on AppState change (#2420) (97684af)
- Remove unneeded
synchronized
keyword (f400487) - remove yarn in gitignore (5c5d629)
- Use
ThreadScope::WithClassLoader
to also load custom JNI Types (#2461) (9e12975)
📚 Documentation
Release 3.8.2
Release 3.8.1
3.8.1 (2024-01-17)
✨ Features
- Add
SharedArray.getSize()
(#2406) (2f21609) - Expose
FrameProcessorPlugin
TS type (03ee0a2) - Use JSI's
ArrayBuffer
instead ofTypedArray
(#2408) (ba1d7ee)
🐛 Bug Fixes
- Fixes a crash on Android when using Frame Processor on API 29 (CPU + GPU flag use in PRIVATE/YUV) (#2408) (ba1d7ee)
- Fixes a crash on Android when using
frame.toArrayBuffer()
due to the resultingHardwareBuffer
being closed (#2408) (ba1d7ee) - Fix C++ build-error when trying to use
JSITypedArray.h
(#2396) (60f8a8c) - Make
Frame
properties readonly in Types (#2397) (e825e21) - Release
MediaActionSound
after playing (#2390) (bdad4e1) - Use property accessors on
Frame
(#2400) (773f278)
Release 3.8.0
3.8.0 (2024-01-15)
Breaking change: Native Frame Processor Plugin constructors now take an additional argument: VisionCameraProxy
. This can be used to create instances of SharedArray
, see #2383 for more information.
✨ Features
- Add
minFocusDistance
prop toCameraDevice
(#2392) (58ef21e) - Add zero-copy
SharedArray
type to Frame Processor Plugins (#2383) (29fe98c)
🐛 Bug Fixes
- Avoid "CameraNotReady" errors when updating props in background (#2382) (a468602)
- Fix
CamcorderProfile
out of range error (#2389) (17ae5fa) - Fix JNI TypedArray error (fe614a4)
- Fix SharedArray name (d747933)
📚 Documentation
Release 3.7.1
3.7.1 (2024-01-11)
✨ Features
🐛 Bug Fixes
- Also call
onInitialized
whenisActive=false
(a8b85a3), closes /github.com/mrousavy/react-native-vision-camera/issues/2364#issuecomment-1883201425 - Fix Camera not stopping when
isActive
is set tofalse
(#2361) (2b10622) - Fix Preview stretching on Android (#2377) (322b6fc)