Our great sponsors
-
CameraView
📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processing, RAW, output of any size. (by natario1)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
camerakit-android
Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
I'm the author of react-native-vision-camera, a library that exposes platform native Camera features to React Native.
..and a few wrappers around Camera2, such as CameraView and camerakit-android (this one even uses C++ for rendering the Preview, that's interesting for me since I want to draw on the Surface using Skia C++!).
..and a few wrappers around Camera2, such as CameraView and camerakit-android (this one even uses C++ for rendering the Preview, that's interesting for me since I want to draw on the Surface using Skia C++!).
For the device formats, what you get on CameraX should be what you get on Camera2, but you can verify with the Camera2Video sample app. It lists the available resolutions and framerates (which notably calculates it in largely the same way that you're already doing).