Marc Rousavy
1e7059ca8f
Revert "fix: Remove Frame Processor when Camera unmounts ( #1960 )"
...
This reverts commit d51ac1529b
.
2023-10-10 18:58:47 +02:00
Tuan Luong
d51ac1529b
fix: Remove Frame Processor when Camera unmounts ( #1960 )
...
* unsetFrameProcessor when camera view is removed
* Use `this.lastFrameProcessor` instead
---------
Co-authored-by: Marc Rousavy <marcrousavy@hotmail.com>
2023-10-10 18:55:08 +02:00
Marc Rousavy
a2e5cef37e
chore: Fix docs links
2023-10-10 18:40:15 +02:00
Marc Rousavy
b33174399e
docs: Fix broken links
2023-10-10 18:21:39 +02:00
Marc Rousavy
a498144fd5
chore: Update doc URLs
2023-10-09 11:17:07 +02:00
Marc Rousavy
6e72781500
feat: Use correct photo and video format dimensions on iOS ( #1929 )
...
* feat: Use new photo dimensions API
* Update AVCaptureDevice.Format+matchesFilter.swift
* fix: Use Pixels instead of Points for video size
* feat: Set `PhotoOutput`'s maximum photo resolution
* fix: Compare dictionaries instead
* chore: Format code
* fix: Try to use hash.... failing atm
* fix: Use rough comparison again
* fix: Also take video HDR into consideration
* chore: Format
* Use contains
* Update AVCaptureDevice.Format+toDictionary.swift
* docs: Add better docs to Camera props
* Update CameraView+AVCaptureSession.swift
* Update CameraView+AVCaptureSession.swift
2023-10-06 16:11:09 +02:00
Marc Rousavy
36e9e00930
docs: Add **Flash** documentation
2023-10-05 16:40:15 +02:00
Marc Rousavy
ffd64feee8
feat: Add enableCodeScanner
to Expo Config Plugin
2023-10-05 11:06:38 +02:00
Jakov Glavina
6e249d165a
feat: Add Expo Config Plugin for CodeScanner MLKit Barcode Model downloader ( #1916 )
2023-10-05 10:58:31 +02:00
Marc Rousavy
93019c37e6
docs: Update example
2023-10-04 13:00:23 +02:00
Marc Rousavy
6640b72a00
feat: Code Scanner API ( #1912 )
...
* feat: CodeScanner JS API
* feat: iOS
* Use guard
* Format
* feat: Android base
* fix: Attach Surfaces
* Use isBusy var
* fix: Use separate Queue
* feat: Finish iOS types
* feat: Implement all other code types on Android
* fix: Call JS event
* fix: Pass codetypes on Android
* fix: iOS use Preview coordinate system
* docs: Add comments
* chore: Format code
* Update CameraView+AVCaptureSession.swift
* docs: Add Code Scanner docs
* docs: Update
* feat: Use lazily downloaded model on Android
* Revert changes in CameraPage
* Format
* fix: Fix empty QR codes
* Update README.md
2023-10-04 12:53:52 +02:00
Marc Rousavy
24f77fb224
fix: Use simple wide-angle device if no options are passed ( #1909 )
2023-10-03 12:03:20 +02:00
Marc Rousavy
d465c37bea
fix: Remove dng
PixelFormat
2023-10-03 11:27:46 +02:00
Marc Rousavy
edd73619c3
fix: Fix useCameraDevices
ignoring position
2023-09-30 11:20:11 +02:00
Marc Rousavy
85564d6d02
fix: Remove unused Error codes ( #1887 )
...
* fix: Remove unused Errors
* Errors.kt -> CameraError.kt
* fix: remove .system
2023-09-29 21:54:35 +02:00
Marc Rousavy
902dc634a4
feat: Add customizable Video Bit Rate (videoBitRate
) ( #1882 )
...
* feat: Add `videoBitRate` option to `RecordVideoOptions`
* feat: Implement `videoBitRate` on iOS
* feat: Implement `videoBitRate` on Android
* chore: Format
* docs: Separate recording and photo docs
* docs: Fix links
* docs: Add docs about bitrate and quality
* docs: Add blob
* fix: Don't use inline style for CI
* fix: Correctly log default bitRate
* fix: Fix typo
* fix: Calculate default bit-rate on Android depending on resolution
* Update RecordingSession.kt
2023-09-29 15:27:09 +02:00
Marc Rousavy
14721d314f
chore: Remove semicolons ( #1846 )
...
* chore: Disable `semi` in Prettier
* chore: Format w/o semi
* Remove more `;`
* Lint example
* More ;
2023-09-26 11:39:17 +02:00
Marc Rousavy
f7428f26a4
fix: Allow getCameraDevice
to return undefined
when no Devices are available (e.g. iOS Simulator) ( #1848 )
...
fix: Allow `getCameraDevice` to return `undefined` when no Devices are available
2023-09-26 11:24:24 +02:00
Marc Rousavy
706341fbdb
feat: Add Templates
API for choosing Camera Formats ( #1844 )
...
* docs: New V3 docs for new API
* fix: Prefer Wide-Angle unless explicitly opted-out
* docs: Update DEVICES
* Finish Devices docs
* Switch links
* Revert "Switch links"
This reverts commit 06f196ae0e67787cbd5768e125be6d0a3cb5bbc9.
* docs: New LIFECYCLE
* docs: New CAPTURING docs
* Update Worklets links
* docs: Update TROUBLESHOOTING and ZOOMING
* fix: Update `getAvailableCameraDevices()` usages
* docs: Update FORMATS
* Update Errors.kt
* docs: Fix broken links
* docs: Update references to old hooks
* docs: Create Frame Processor Tips
* docs: Auto-dark mode
* fix: Fix FPS filter
* feat: Add `'max'` flag to format filter
* fix: Use loop
* fix: Fix bug in `getCameraFormat`
* fix: Find best aspect ratio as well
* fix: Switch between formats on FPS change
* Update FRAME_PROCESSOR_PLUGIN_LIST.mdx
* Add FPS graph explanation
* feat: Add `Templates` API for choosing Camera Formats
2023-09-25 13:00:25 +02:00
Marc Rousavy
2d66d5893c
docs: New V3 docs for new API ( #1842 )
...
* docs: New V3 docs for new API
* fix: Prefer Wide-Angle unless explicitly opted-out
* docs: Update DEVICES
* Finish Devices docs
* Switch links
* Revert "Switch links"
This reverts commit 06f196ae0e67787cbd5768e125be6d0a3cb5bbc9.
* docs: New LIFECYCLE
* docs: New CAPTURING docs
* Update Worklets links
* docs: Update TROUBLESHOOTING and ZOOMING
* fix: Update `getAvailableCameraDevices()` usages
* docs: Update FORMATS
* Update Errors.kt
* docs: Fix broken links
* docs: Update references to old hooks
* docs: Create Frame Processor Tips
* docs: Auto-dark mode
* fix: Fix FPS filter
* feat: Add `'max'` flag to format filter
* fix: Use loop
* fix: Fix bug in `getCameraFormat`
* fix: Find best aspect ratio as well
* fix: Switch between formats on FPS change
* Update FRAME_PROCESSOR_PLUGIN_LIST.mdx
* Add FPS graph explanation
* feat: Support HDR filter
* docs: Add HDR docs
* docs: Add Video Stabilization
* docs: Update Skia docs
* Skia links
* Add Skia labels
* Update SKIA_FRAME_PROCESSORS.mdx
* docs: Add Performance
* Update some wording
* Update headers / and zoom
* Add examples for devices
* fix highlights
* fix: Expose `Frame`
* docs: Update FP docs
* Update links
* Update FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx
2023-09-25 12:57:03 +02:00
Marc Rousavy
2d96381b3e
feat: New array-based useCameraFormats
API ( #1841 )
...
* feat: New array-based `useCameraFormats` API
* Use triple-camera in Example app
* fix: Remove invalid export
* fix: Use constant-time lookup Filter map and only run sort once
2023-09-23 11:24:15 +02:00
Marc Rousavy
3169444697
feat: Implement resizeMode
prop for iOS ( #1838 )
...
* feat: Implement `resizeMode` prop for iOS
- `"cover"`: Keep aspect ratio, but fill entire parent view (centered).
- `"contain"`: Keep aspect ratio, but make sure the entire content is visible even if it introduces additional blank areas (centered).
* chore: Update prop docs
* Update CameraProps.ts
* Lint & Format
2023-09-23 10:14:27 +02:00
Maxime
c0b80b342b
feat: Respect format's aspect ratio in Preview and add resizeMode
prop ( #1817 )
...
* feat(preview): respect format's aspect ratio
* fix: code guidelines and previewSize in PreviewView
* feat: add resizeMode 'cover' and 'contain' on Android
2023-09-22 17:32:34 +02:00
Marc Rousavy
fffefa9d12
feat: Add support for Buffer Compression for a more efficient Video Pipeline (enableBufferCompression
) ( #1828 )
...
feat: Add support for Buffer Compression for more efficient Video Pipeline (`enableBufferCompression`)
2023-09-21 17:18:54 +02:00
Marc Rousavy
9809075507
feat: Support 10-bit Video HDR ( #1827 )
...
* feat: Select 10-bit YUV HDR format if HDR is enabled
* fix: Remove video EDR setting in favor of new 10-bit video HDR
* Format Swift
2023-09-21 16:30:05 +02:00
Marc Rousavy
cf4882b152
feat: Add support for LiDAR, TrueDepth, External (USB) and Continuity Camera Devices (iOS 17) ( #1824 )
...
* feat: Add support for LiDAR, TrueDepth, External (USB) and Continuity Camera Devices (iOS 17)
* Rename `devices` -> `physicalDevices`
* fix: Comment out iOS 17 cameras for now
* fix: Move `supportsDepthCapture` to `format`
* fix: Fall back to `wide-angle-camera` for any unknown types
* Update CameraPage.tsx
* `descriptor` -> `physicalDeviceDescriptor`
* Update CameraDevice.ts
* Format
* feat: Expose `userPreferredCameraDevice`
Uses the new iOS 17 API where the user can prefer a default device, otherwise fall back to the first device of the available ones
* fix: Expose as property
* Add TODO comments
* fix: Format code
* fix: Compile below Swift 5.9
2023-09-21 16:29:46 +02:00
Marc Rousavy
327aade4d8
feat: New useCameraPermission()
and useMicrophonePermission()
hooks ( #1823 )
...
* Create `useCameraPermission()` and `useMicrophonePermission()` hooks
* Fix exports
* Await `requestPermission()`
2023-09-21 11:40:04 +02:00
Marc Rousavy
977b859e46
feat: New JS API for useCameraDevice
and useCameraFormat
and much faster getAvailableCameraDevices()
( #1784 )
...
* Update podfile
* Update useCameraFormat.ts
* Update API
* Delete FormatFilter.md
* Format CameraViewManager.m ObjC style
* Make `getAvailableCameraDevices` synchronous/blocking
* Create some docs
* fix: Fix HardwareLevel types
* fix: Use new device/format API
* Use 60 FPS format as an example
* Replace `Camera.getAvailableCameraDevices` with new `CameraDevices` API/Module
* Fix Lint
* KTLint options
* Use continuation indent of 8
* Use 2 spaces for indent
* Update .editorconfig
* Format code
* Update .editorconfig
* Format more
* Update VideoStabilizationMode.kt
* fix: Expose `CameraDevicesManager` to ObjC
* Update CameraPage.tsx
* fix: `requiresMainQueueSetup() -> false`
* Always prefer higher resolution
* Update CameraDevicesManager.swift
* Update CameraPage.tsx
* Also filter pixelFormat
* fix: Add AVFoundation import
2023-09-21 11:20:33 +02:00
ike
18c7034b50
fix: Fix h264
videoCodec type for RecordVideoOptions ( #1808 )
2023-09-17 19:26:25 +02:00
Marc Rousavy
297abae6bb
docs: Upgrade to Docusaurus 3 ( #1783 )
...
* docs: Upgrade to latest Docusaurus/Typedoc
* chore: Re-run typedoc
* docs: Upgrade to Docusaurus 3
* Add `docs/api/` to gitignore
* Remove `docs` from git
* Remove V3 banner
* fix: Export `PixelFormat`
2023-09-11 11:45:17 +02:00
Marc Rousavy
036856aed5
chore: Move everything into package/
( #1745 )
...
* Move everything into package
* Remove .DS_Store
* Move scripts and eslintrc to package
* Create CODE_OF_CONDUCT.md
* fix some links
* Update all links (I think)
* Update generated docs
* Update notice-yarn-changes.yml
* Update validate-android.yml
* Update validate-cpp.yml
* Delete notice-yarn-changes.yml
* Update validate-cpp.yml
* Update validate-cpp.yml
* Update validate-js.yml
* Update validate-cpp.yml
* Update validate-cpp.yml
* wrong c++ style
* Revert "wrong c++ style"
This reverts commit 55a3575589c6f13f8b05134d83384f55e0601ab2.
2023-09-01 18:15:28 +02:00