[camera] give computeBestCaptureSize option #49359
Labels
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
p: camera
The camera plugin
P3
Issues that are less important to the Flutter project
package
flutter/packages repository. See also p: labels.
team-ecosystem
Owned by Ecosystem team
triaged-ecosystem
Triaged by Ecosystem team
I have been trying to take photos with maximum resolution with the flutter camera plugin. however, the resolution of the captured images does never have the best capture size available through Camera2 API, independently of the ResolutionPreset parameter.
Looking at the code I found that the capture size is always using the best CamcorderProfile for ResolutionPreset
packages/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java
The capture size should be the best available resolution for capturing image, like this:
Or give the plugin an option to select a resolution for the capture. Actually, the "computeBestCaptureSize" is implemented but never used in the current version of camera plugin.
The text was updated successfully, but these errors were encountered: