Commit Graph

22 Commits

Author SHA1 Message Date
231a5f9c3f adjust preview based on selected aspect ratio
- set the preview scale type to fitStart
- both the preview and image capture would use the same size
- some other code cleanups to remove unused code / formatting changes
2022-07-15 21:32:54 +01:00
74e2656831 try to handle changing video quality and image resolution
- CameraX video allowed predefined buckets of qualities UHD, FHD, HD, SD (defined in VideoQuality enum),
the CameraXPreview is configured to use the highest quality and
 CameraX will select the closest corresponding resolution supported by the device.
- tentatively add ChangeResolutionDialogX (which would be renamed back to ChangeResolutionDialog) to give user option to select photo resolution and video qualities
- add ImageQualityManager which performs the same operation for getting all resolutions supported by a device using the Camera2 API, as defined in the legacy CameraPreview
- add VideoQualityManager to manage saving/ getting user selected quality.
2022-07-08 00:12:03 +01:00
916121ffc9 store/restore last used camera lens 2022-06-25 23:21:51 +01:00
0cdf08b45f removing 2 more settings 2022-04-20 22:28:44 +02:00
16bed1a1b0 removing the FocusBeforeCapture setting 2022-04-20 22:19:57 +02:00
715fc4f79a fix #230, properly handle images captured with the front camera 2019-09-03 09:16:38 +02:00
39aba65589 updated Commons, min Android OS to 5, removed Camera One implementation 2018-10-17 23:32:12 +02:00
cf64374411 removing a redundant variable 2018-07-10 11:27:15 +02:00
c0d0a06dfe try disabling Focus before capture by default 2018-06-11 13:56:25 +02:00
afa5a46303 fix some camera state glitches around recording and capturing 2018-06-08 22:38:02 +02:00
f83a841ae4 allow toggling flashlight at recording preview 2018-06-06 22:41:56 +02:00
9e3e732bbf handle toggling between photo and video modes 2018-06-06 15:09:09 +02:00
045328daa3 remember which camera was used last, open it by default 2018-06-05 22:19:27 +02:00
617ac98e5d pass available resolutions to the picker dialog in a new MySize type list 2018-06-04 16:08:23 +02:00
ebb6e89dd6 send a boolean at resolution changing dialog to mark front/back camera 2018-06-04 15:36:17 +02:00
7d5a60f13d fix the rotation of images captured with Camera2 api 2018-05-30 16:11:23 +02:00
3fd08d3940 fix toggling between flash on/off 2018-05-29 19:56:45 +02:00
26f33e8c26 add some initial PreviewCameraTwo implementation from the sample code 2018-05-28 21:47:23 +02:00
e529bdd15c adding some initial camera states 2018-05-28 16:00:30 +02:00
2cdae95de8 create a helper function for getting the proper camera impl 2018-05-27 23:35:40 +02:00
a1865811a9 fix #105, allow changing the photo compression quality 2018-01-13 15:21:34 +01:00
a016f514f8 moving some files in subfolders + renaming extension files to first capital letter 2017-12-03 21:20:51 +01:00