Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Improve pixelFormat and add CameraDevice.sensorOrientation #1729

Merged
merged 18 commits into from
Sep 1, 2023

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Aug 29, 2023

What

This PR exposes correct pixelFormats on iOS and sensorOrientation as a new prop to CameraDevice. This will allow you to handle orientation properly (remember; the screen/UI shouldn't rotate, only your controls. See stock Camera app)

Changes

Tested on

Related issues

@vercel
Copy link

vercel bot commented Aug 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 1, 2023 1:06pm

@mrousavy mrousavy changed the title feat: Orientation perf: Improve pixelFormat and toByteArray() Sep 1, 2023
@mrousavy mrousavy changed the title perf: Improve pixelFormat and toByteArray() perf: Improve pixelFormat and add CameraDevice.sensorOrientation Sep 1, 2023
@mrousavy mrousavy marked this pull request as ready for review September 1, 2023 13:04
@mrousavy mrousavy merged commit 0e9f1ca into v3 Sep 1, 2023
@mrousavy mrousavy deleted the feat/orientation branch September 1, 2023 13:07
isaaccolson pushed a commit to isaaccolson/deliveries-mobile that referenced this pull request Oct 30, 2024
…rousavy#1729)

* feat: Orientation

* fix orientation value in manifest

* Update AndroidManifest.xml

* Style

* fix: Set MAX_IMAGES to 3

* Pass `isMirrored` to `VideoPipeline`

* Update docs about Skia FPs

* Options

* Add iPad target

* Remove UIDevice onOrientationChanged listener

* Update CameraView+AVCaptureSession.swift

* Update CameraView+AVCaptureSession.swift

* Update CameraView+AVCaptureSession.swift

* Get available pixelFormats on iOS

* format

* Update CameraSession.kt

* Expose `CameraDevice.sensorOrientation`

* Lock orientation again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant