Commit Graph

1063 Commits

Author SHA1 Message Date
darthpaul 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
spkprs 815950e8c1
Update strings.xml 2022-07-05 00:27:17 +03:00
tibbi e00582adbc adding a prepaid build variant 2022-07-04 22:48:52 +02:00
tibbi 60bb5799f3 removing app title, short and long description strings 2022-07-04 22:48:32 +02:00
Tibor Kaputa aec0b9e3c1
Update strings.xml 2022-07-04 22:45:27 +02:00
Tibor Kaputa 536f1e076a
Update strings.xml 2022-07-04 22:44:57 +02:00
Anonymous b9748475b0
Translated using Weblate (Thai)
Currently translated at 0.0% (0 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/th/
2022-07-04 03:21:14 +02:00
Weblate 5c7e4fd635
Added translation using Weblate (Thai) 2022-07-04 03:21:04 +02:00
liquidvacuum-by e8e1e8aa78
Translated using Weblate (Belarusian)
Currently translated at 12.8% (5 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/be/
2022-07-03 22:54:21 +02:00
Anonymous e1603e03ca
Translated using Weblate (Belarusian)
Currently translated at 0.0% (0 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/be/
2022-07-03 22:54:20 +02:00
Weblate 5989227e4b
Added translation using Weblate (Belarusian) 2022-07-03 22:54:20 +02:00
Guillaume 96a6959d11
Translated using Weblate (Dutch)
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/nl/
2022-07-03 22:54:20 +02:00
Milo Ivir 91766afc21
Translated using Weblate (Croatian)
Currently translated at 97.4% (38 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/hr/
2022-07-03 22:54:20 +02:00
Vitor Henrique b0d970ef28
Translated using Weblate (Portuguese (Brazil))
Currently translated at 48.7% (19 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt_BR/
2022-07-02 12:24:17 +02:00
Josep M. Ferrer 260372fde4
Translated using Weblate (Catalan)
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ca/
2022-07-02 12:24:17 +02:00
Priit Jõerüüt 8c2f73e153
Translated using Weblate (Estonian)
Currently translated at 97.4% (38 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/et/
2022-07-02 12:24:17 +02:00
Eric 7b7ff320a5
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/zh_Hans/
2022-07-02 12:24:16 +02:00
Artem 131fc78fd3
Translated using Weblate (Ukrainian)
Currently translated at 97.4% (38 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/uk/
2022-07-02 12:24:16 +02:00
Oğuz Ersen 4ed992c933
Translated using Weblate (Turkish)
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/tr/
2022-07-02 12:24:16 +02:00
solokot 12de00798f
Translated using Weblate (Russian)
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ru/
2022-07-02 12:24:16 +02:00
Agnieszka C c23db94a3d
Translated using Weblate (Polish)
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pl/
2022-07-02 12:24:15 +02:00
AbsurdUsername b45883af0d
Translated using Weblate (Italian)
Currently translated at 100.0% (39 of 39 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/it/
2022-07-02 12:24:15 +02:00
tibbi 6ad3312384 adding the missing strings into all languages 2022-07-01 08:37:50 +02:00
darthpaul 889a384f21 handle 3rd party image/video capture intents
- in MediaOutputHelper,
   - add support for specifying the output URI if present in the intent
   - when the output URI is specified,
       - for Image Capture, we return a `Bitmap` as a `data` extra and also the URI as the Intent data
       - for Video Capture we return the `Uri` as the Intent data
    - if no output URI is specified in the capture intent or if there is an error while trying to access the URI, use the default location with MediaStore, so we do not return inconsistent URIs (eg, SAF tree URIs)

- add CameraXInitializer to abstract CameraXPreview initialisation logic
2022-06-30 00:23:41 +01:00
darthpaul f43cd4f939 handle some camera errors
- add CameraErrorHandler to handle
  - errors during camera lifecycle
  - when capturing images
  - when recording videos
2022-06-26 21:54:32 +01:00
darthpaul b10d8639fd handle torch state in video capture
- set initial torch state to off
- enable/disable the torch when flash mode is on/off in video mode
2022-06-26 11:12:43 +01:00
darthpaul 79f9267383 handle storage location
- add MediaOutputHelper
   - to create OutputStream for photos
   - to create FileDescriptor for videos (currently requires API 26+)
2022-06-26 10:58:17 +01:00
darthpaul e691fc1e8c use more stable CameraX 1.1.0-rc02 2022-06-26 00:12:19 +01:00
darthpaul 79cbe55a7f Merge branch 'master' into feat/camera-x 2022-06-25 23:33:12 +01:00
darthpaul d168040722 replace property getters with actual functions in CameraXPreview 2022-06-25 23:25:20 +01:00
darthpaul cc5fa462c4 revert compileSdkVersion and targetSdkVersion to 31 2022-06-25 23:22:37 +01:00
darthpaul 916121ffc9 store/restore last used camera lens 2022-06-25 23:21:51 +01:00
darthpaul fe3710510d add pinch to zoom support 2022-06-25 22:42:47 +01:00
darthpaul b44b6a9b2b update focus and unbind useCase
- update to use the DisplayOrientedMeteringPointFactory
- add Auto Focus (AF) and Auto Exposure (AE) metering points
- unbind VideoCaptureUseCase when in photo mode
- unbind ImageCaptureUseCase when not in photo mode
2022-06-25 21:42:15 +01:00
darthpaul e15078499b modify package name and app name
- this is so we can install both versions on the same device
- it would be reverted when camerax is ready to go live
2022-06-25 18:10:33 +01:00
darthpaul f0030670cf add basic support for focus and metering 2022-06-25 17:51:13 +01:00
darthpaul 1f3dd341d0 add flipping horizontally and photo quality 2022-06-25 17:14:49 +01:00
darthpaul c398370446 handle playing media sounds
- add MediaSoundHelper to separate logic for playing media action sounds
- add support for playing media action sounds (shutter, start and stop recording) in CameraXPreview
2022-06-25 16:39:29 +01:00
darthpaul 074351b88f add initial camera-x implementation
- add CameraXPreview
  - basic support image capture
  - basic support for video capture
  - add CameraXPreviewListener to prevent coupling to MainActivity
  - support switching camera, flash light modes
- modify MyPreview interface to add default implementation for methods not needed by the CameraXPreview
2022-06-25 15:43:39 +01:00
tibbi ff90f08094 removing a string available in Commons 2022-06-22 23:38:24 +02:00
Tibor Kaputa ab6fd9b041
Update strings.xml 2022-06-22 23:35:29 +02:00
Tibor Kaputa 246b5f614f
Update strings.xml 2022-06-22 23:35:14 +02:00
мачко 84f89617ef
Translated using Weblate (Bulgarian)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/bg/
2022-06-22 23:32:20 +02:00
AHOHNMYC d83c9524c4
Translated using Weblate (Russian)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ru/
2022-06-22 23:32:20 +02:00
Alberto 085b76d3c5
Translated using Weblate (Spanish)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/es/
2022-06-22 23:32:20 +02:00
אליעזר שלמה דיין a92d749980
Translated using Weblate (Hebrew)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/he/
2022-06-22 23:32:20 +02:00
Anonymous a3173efdb3
Translated using Weblate (Portuguese (Brazil))
Currently translated at 0.0% (0 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt_BR/
2022-06-22 23:32:20 +02:00
Weblate f31d0bc44b
Added translation using Weblate (Portuguese (Brazil)) 2022-06-22 23:32:20 +02:00
Anonymous 3d36b96784
Translated using Weblate (Hebrew)
Currently translated at 0.0% (0 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/he/
2022-06-22 23:32:20 +02:00
Weblate f177568563
Added translation using Weblate (Hebrew) 2022-06-22 23:32:20 +02:00
tibbi dfe9a0d051 updating some casual things 2022-06-22 23:32:14 +02:00
tibbi 9ccd1402bf changing the indonesian language from id to in 2022-06-21 23:24:35 +02:00
Tibor Kaputa d11dd8abd0
Delete strings.xml 2022-06-05 23:11:16 +02:00
Tibor Kaputa 8f09448d42
Update strings.xml 2022-06-05 23:11:04 +02:00
Tibor Kaputa 70ccb46827
Update strings.xml 2022-06-05 23:10:39 +02:00
Tibor Kaputa 164e79721b
Update strings.xml 2022-06-05 23:10:30 +02:00
Tibor Kaputa dc83b1df69
Delete strings.xml 2022-06-05 23:10:20 +02:00
Tibor Kaputa 9a3450929e
Update strings.xml 2022-06-05 23:10:08 +02:00
Tibor Kaputa ae7528c935
Update strings.xml 2022-06-05 23:09:59 +02:00
AbsurdUsername 68c7b4f05e
Translated using Weblate (Italian)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/it/
2022-06-05 23:02:01 +02:00
solokot 80b2a144a6
Translated using Weblate (Russian)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ru/
2022-06-04 07:14:28 +02:00
Artem acd636dea2
Translated using Weblate (Ukrainian)
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/uk/
2022-06-02 14:14:18 +02:00
Priit Jõerüüt 9d654b5906
Translated using Weblate (Estonian)
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/et/
2022-05-31 20:15:34 +02:00
Josep M. Ferrer 67de54c3a8
Translated using Weblate (Catalan)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ca/
2022-05-30 13:18:28 +02:00
Artem 714af921af
Translated using Weblate (Ukrainian)
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/uk/
2022-05-30 13:18:28 +02:00
Júlia da Rosa 2822ba58c6
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt_BR/
2022-05-30 13:18:27 +02:00
Weblate 9e5fbdd63a
Added translation using Weblate (English (United States)) 2022-05-27 21:09:21 +02:00
Weblate a992e0ddfd
Added translation using Weblate (Hungarian) 2022-05-27 20:53:34 +02:00
Weblate 99a6cfc724
Added translation using Weblate (Portuguese) 2022-05-27 20:53:30 +02:00
Weblate 8411ed40b2
Added translation using Weblate (Bulgarian) 2022-05-27 20:53:29 +02:00
Weblate cdef041d1b
Added translation using Weblate (Esperanto) 2022-05-27 20:53:29 +02:00
Tibor Kaputa e5842efe0f
Update strings.xml 2022-05-19 21:51:51 +02:00
Tibor Kaputa ad9e93bca0
Update strings.xml 2022-05-19 17:35:31 +02:00
Josep M. Ferrer 77af2210e0
Translated using Weblate (Catalan)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ca/
2022-05-17 04:13:59 +02:00
Artem 4d65e2b26d
Translated using Weblate (Ukrainian)
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/uk/
2022-05-17 04:13:58 +02:00
Josep M. Ferrer 9da38be3af
Added translation using Weblate (Catalan) 2022-05-15 19:11:17 +02:00
Artem b97d3b06fc
Translated using Weblate (Ukrainian)
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/uk/
2022-05-15 11:16:01 +02:00
Vitor Henrique 794ccaa467
Translated using Weblate (Portuguese (Brazil))
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt_BR/
2022-05-15 11:16:01 +02:00
Priit Jõerüüt 4da0208c23
Translated using Weblate (Estonian)
Currently translated at 97.0% (33 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/et/
2022-04-27 21:09:25 +02:00
Priit Jõerüüt 58466e9bf5
Translated using Weblate (Estonian)
Currently translated at 17.6% (6 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/et/
2022-04-26 19:11:35 +02:00
Priit Jõerüüt f2a85147a2
Added translation using Weblate (Estonian) 2022-04-26 19:08:44 +02:00
Simon N e2a0946991
Translated using Weblate (Swedish)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/sv/
2022-04-26 12:08:06 +02:00
tibbi 0cdf08b45f removing 2 more settings 2022-04-20 22:28:44 +02:00
tibbi 16bed1a1b0 removing the FocusBeforeCapture setting 2022-04-20 22:19:57 +02:00
tibbi b9dd068495 use the new design at Settings 2022-04-20 21:58:44 +02:00
Tibor Kaputa d05bdf72b9
Merge pull request #312 from weblate/weblate-simple-mobile-tools-simple-camera
Translations update from Hosted Weblate
2022-04-20 21:27:55 +02:00
tibbi 3628ddb9e9 adding core and fdroid build flavors 2022-04-20 21:25:55 +02:00
tibbi 196f477d3e lets set the minimal required OS version to Android 10 2022-04-20 21:20:40 +02:00
tibbi 77458cc759 updating commons 2022-04-20 21:17:05 +02:00
tibbi d717fe299c updating target SDK to 31 and some small things 2022-04-20 21:13:57 +02:00
J. Lavoie e5b49900b2
Translated using Weblate (French)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/fr/
2022-04-18 10:27:48 +02:00
J. Lavoie 4ebff1493b
Translated using Weblate (German)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/de/
2022-04-18 10:27:48 +02:00
Tibor Kaputa 704487d641
reordering some strings 2021-12-08 15:02:36 +01:00
Tibor Kaputa 214236ddfd
reverting some english translations 2021-12-08 14:59:21 +01:00
Tibor Kaputa 01f955cf8e
reordering some strings 2021-12-08 14:58:39 +01:00
protagnost 097a094c60
Translated using Weblate (Dutch)
Currently translated at 70.5% (24 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/nl/
2021-11-30 21:34:55 +01:00
teemue 689f2c8cff
Translated using Weblate (Finnish)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/fi/
2021-11-29 12:50:59 +01:00
Eric 7efa7ece56
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/zh_Hans/
2021-11-17 14:47:36 +01:00
J. Lavoie 3a42a6eb8d
Translated using Weblate (Italian)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/it/
2021-11-17 14:47:36 +01:00
J. Lavoie 347b87c68a
Translated using Weblate (French)
Currently translated at 100.0% (34 of 34 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/fr/
2021-11-17 14:47:35 +01:00