[libcamera-devel] [PATCH v2] libcamera: controls: Define a default lens position behaviour
Naushir Patuck
naush at raspberrypi.com
Fri Jun 2 10:36:04 CEST 2023
Hi Laurent,
Seems clearer, I'm happy with this change!
Regards,
Naush
On Fri, 2 Jun 2023 at 07:09, Laurent Pinchart
<laurent.pinchart at ideasonboard.com> wrote:
>
> From: Naushir Patuck <naush at raspberrypi.com>
>
> Update the AfMode control description to explicitly define a
> startup/default behaviour.
>
> On startup, the camera will move the lens to the position given by the
> default value of the LensPosition control if operating in manual focus
> mode. Typically this would be the hyperfocal position of the lens.
>
> Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
> ---
> src/libcamera/control_ids.yaml | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
> index 76d41f5f2a5a..985f792a53c1 100644
> --- a/src/libcamera/control_ids.yaml
> +++ b/src/libcamera/control_ids.yaml
> @@ -408,7 +408,15 @@ controls:
> LensPosition control.
>
> In this mode the AfState will always report AfStateIdle.
> - - name: AfModeAuto
> +
> + If the camera is started is AfModeManual, it will move the focus
> + lens to the position specified by the LensPosition control.
> +
> + This mode is the recommended default value for the AfMode control.
> + External cameras (as reported by the Location property set to
> + CameraLocationExternal) may use a different default value.
> +
> + name: AfModeAuto
> value: 1
> description: |
> The AF algorithm is in auto mode. This means that the algorithm
> --
> Regards,
>
> Laurent Pinchart
>
More information about the libcamera-devel
mailing list