Skip to content

Conversation

@lukin87
Copy link

@lukin87 lukin87 commented Nov 26, 2024

-- not to be merged in, we're importing this branch into LightOS --

Also note: In order to get this package importing properly with TS I had to remove /package/lib/* from .gitignore. These files are all autogenerated when build a release so can be ignored when code reviewing

This PR adds the ability to lock the focus and exposure to a point on the screen. Once locked, the camera can be moved around and the original exposure and focus will be maintained. This also maintains it for photo taking. Once unlocked the camera returns to normal functionality.

In the end, the real solution lay in an SO anwser with 0 upvotes. I only found it because I googled a setting that copilot had hallucinated.

I was in the middle of documenting some of the paths that I'd already investigated while trying to get this working and I've left some of that documentation in. I'm happy to pull it out and put it in an experimental branch if needed. I'd dug way too deep into RNVC, camerax and camera2 to get to this point so maybe these can serve as warning for future improvements.

Recording.2024-11-26.145640-focus-lock.mp4

@lukin87 lukin87 changed the title Lightos Lightos - DONT MERGE Nov 27, 2024
@good-idea
Copy link

Is it possible to do this without including lib in the repo? The diffs are going to be huge..

lukin87 and others added 30 commits January 28, 2025 18:08
Lightos profiling performance, returning on onCaptureStarted + stub images while processing
Add exposure_metering_mode based on SnapdragonCamera & FIH request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants