Camera focus distances

前端 未结 4 532
一整个雨季
一整个雨季 2020-12-29 07:44

I\'m trying to read the focus distance (distance of subject in a photo) from an Android camera. I keep getting 0 for all focus distances on my HTC Desire even when it correc

4条回答
  •  离开以前
    2020-12-29 08:14

    This is Bug 14341 - "Distances returned by Camera.Parameters.getFocusDistances() do not change on Nexus S regardless of actual focus distance".

    First reported Jan 26, 2011 with the last report on Mar 18, 2014. Thus, the Bug was reported shortly before you ran into it and has not been fixed to this day. It is specifically reported against your Device.

    Various comments in the report claim this Bug affects the "Nexus S", "HTC Sensation", "Galaxy S Plus", "Galaxy S II", "HTC Desire HD", "Galaxy Nexus", "Xperia Mini ST15i", "Nexus 5", "Galaxy R", and the "Galaxy Note II"; with one Comment claiming it works perfectly on the "Galaxy Nexus".

    Reference: https://code.google.com/p/android/issues/detail?id=14341 .

    Is this the Source Code you were looking for: https://android.googlesource.com/platform/frameworks/base/+/froyo-release/core/jni/android_hardware_Camera.cpp

提交回复
热议问题