@@ -19,6 +19,7 @@ struct CameraLensProperties {
static const CameraLensProperties *get(const std::string &lens);
Size lensFocusRange;
+ float hyperfocal;
};
} /* namespace libcamera */
@@ -35,6 +35,9 @@ LOG_DEFINE_CATEGORY(CameraLensProperties)
*
* \var CameraLensProperties::lensFocusRange
* \brief The limits for the sensor position, stored as a min and a max.
+ *
+ * \var CameraLensProperties::hyperfocal
+ * \brief The hyperfocal distance measured, expressed in millimeters
*/
/**
@@ -48,6 +51,7 @@ const CameraLensProperties *CameraLensProperties::get(const std::string &lens)
static const std::map<std::string, const CameraLensProperties> lensProps = {
{ "dw9714", {
.lensFocusRange = { 150, 800 },
+ .hyperfocal = 500,
} },
};
A tuned lens may have measured its hyperfocale, which can then be used by the controls::LensPosition control. Add support for it in the camera lens properties database. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> --- include/libcamera/internal/camera_lens_properties.h | 1 + src/libcamera/camera_lens_properties.cpp | 4 ++++ 2 files changed, 5 insertions(+)