Jump to content

Rear/main camera focus to infinity not work on LineageOS


Recommended Posts

i got something! I got some system info using this App:
https://f-droid.org/en/packages/com.oF2pks.kalturadeviceinfos/

I did this on freshly flashed Stock ROM, and also on freshly flashed LOS official.

The resulting JSON files were mostly identical, but with a perhaps problemrelated difference:

LOS-official:

"#CAMERA2API=": {
   "0=back<LEVEL3>4048x3040([100, 800])": {
      [...]
      "android.lens.info.focusDistanceCalibration": "1",

Pro1-Stock:

"#CAMERA2API=": {
   "0=back<LEVEL3>4048x3040([100, 800])": {
      [...]
      "android.lens.info.focusDistanceCalibration": "2",

See? Difference? 1 vs 2? Also, the similar section for the front camera has the same value on both systems. (Front cam working for me fine on either ROM.)
Can you guys run this app and export that json on your LOS Pro1, please?

So, I think THIS IS IT! How do we fix this?

(I HOPE the value did not change as I might have used the cam app on the one rom before exporting the json, but I think this is a fixed value... Well this sort of testing woud be a lot easier if I had TWO pro1...)

According to docs "2" stands for "CALIBRATED" and "1" for "APPROXIMATE".

Edited by fxtec-preorder-47xx
Link to post
Share on other sites

On my LineagOS 16:

"android.lens.info.focusDistanceCalibration": "1"

just like on yours.

However, if I understand the docs correctly, this calibration affects only the object distance that is saved in the EXIF header of the pictures and has no influence on the optical functioning of the camera itself.

As far as I know, auto-focus works by optimising the FFT of the actual picture on the sensor and does not rely on somehow "knowing" the true distance to the object. The distance that is saved in the picture metatdata is then derived from the (optimised) position of the lens with respect to the sensor (which is where said calibration comes in).

Edited by claude0001
Link to post
Share on other sites
10 hours ago, fxtec-preorder-47xx said:

@tdmWhat do you think about the differing values of android.lens.info.focusDistanceCalibration? Do you think you could add this to the LOS code? Or try if it improves focus?

You can try and let me know.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms