Commit Graph

9 Commits

Author SHA1 Message Date
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
d168040722 replace property getters with actual functions in CameraXPreview 2022-06-25 23:25:20 +01:00
916121ffc9 store/restore last used camera lens 2022-06-25 23:21:51 +01:00
fe3710510d add pinch to zoom support 2022-06-25 22:42:47 +01:00
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
f0030670cf add basic support for focus and metering 2022-06-25 17:51:13 +01:00
1f3dd341d0 add flipping horizontally and photo quality 2022-06-25 17:14:49 +01:00
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
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