Skip to content

Choose a tag to compare

@Kashif-E Kashif-E released this 30 Jun 07:52
4b9df02

Fixed

  • Android photos cropped / reduced field-of-view (#136): stills were zoomed-in vs the preview because CameraK always bound a 16:9 VideoCapture alongside the photo use case, and the shared ViewPort shrank the common field of view. VideoCapture is now bound lazily (only while recording), so photos use the full sensor FOV. Recording-lifecycle guards added (reject double-start / lens switch mid-recording; roll back a failed start).
  • Android captured photo aspect ratio & orientation (#136): the saved photo now matches the preview (display-driven ViewPort + capture rotation), across all four ratios × both orientations.
  • Android rotation during recording (#147): a portrait↔landscape flip mid-recording no longer tears down the recording; the rebuild is deferred to finalize. setTargetOrientation(null) reverts to the display rotation.

Changed (behavior)

  • targetResolution no longer overrides aspectRatio (Android).
  • Display-locked activities produce photos in that orientation.

Verified on a Galaxy S23. Maven Central: io.github.kashif-mehmood-km:camerak:1.1 (+ plugins).