[libcamera-devel] [PATCH v3 8/8] ipa: rkisp1: Add OV5675 tuning file

Jacopo Mondi jacopo.mondi at ideasonboard.com
Mon Feb 6 10:12:12 CET 2023


Hi Daniel,
   thank you for this big chunk of work. I still haven't got to
run-time test it, let me point out a few things I've noticed here
first

On Thu, Jan 19, 2023 at 09:41:12AM +0100, Daniel Semkowicz via libcamera-devel wrote:
> Add the OV5675 tuning file with default values and enabled AF algorithm.
>
> Signed-off-by: Daniel Semkowicz <dse at thaumatec.com>
> ---
>  src/ipa/rkisp1/data/meson.build |  1 +
>  src/ipa/rkisp1/data/ov5675.yaml | 20 ++++++++++++++++++++
>  2 files changed, 21 insertions(+)
>  create mode 100644 src/ipa/rkisp1/data/ov5675.yaml
>
> diff --git a/src/ipa/rkisp1/data/meson.build b/src/ipa/rkisp1/data/meson.build
> index c3b4e388..03d71cbf 100644
> --- a/src/ipa/rkisp1/data/meson.build
> +++ b/src/ipa/rkisp1/data/meson.build
> @@ -3,6 +3,7 @@
>  conf_files = files([
>      'imx219.yaml',
>      'ov5640.yaml',
> +    'ov5675.yaml',
>      'uncalibrated.yaml',
>  ])
>
> diff --git a/src/ipa/rkisp1/data/ov5675.yaml b/src/ipa/rkisp1/data/ov5675.yaml
> new file mode 100644
> index 00000000..2c088d18
> --- /dev/null
> +++ b/src/ipa/rkisp1/data/ov5675.yaml
> @@ -0,0 +1,20 @@
> +# SPDX-License-Identifier: CC0-1.0
> +%YAML 1.1
> +---
> +version: 1
> +algorithms:
> +  - Af:
> +      min-vcm-position: 0
> +      max-vcm-position: 1023
> +      coarse-search-step: 30
> +      fine-search-step: 1
> +      fine-scan-range: 0.05
> +      max-variance-change: 0.5
> +      wait-frames-lens: 2 # tuned for 30fps stream
> +      isp-threshold: 128
> +      isp-var-shift: 4

Do these information belong to the -camera sensor- tuning file ?
The same sensor, depending on how the camera module is assembled,
might be paired with different lenses/VCM combo.

My gut feeling is that would be better expressed with something like a
lens helper, similar to what we have in libipa's CameraSensorHelper ?

What do you think ?

> +  - Agc:
> +  - Awb:
> +  - BlackLevelCorrection:
> +  - ColorProcessing:

To be honest, I wonder if it was a good idea to list what algorithms
to enable in the sensor tuning file.

The decision of what algorithms to use, and possibly any tuning data
associated with them, are maybe properties that need to be associated to
a global device tuning file. But that's not a discussion that should
block this series.

Thanks
   j

> +...
> --
> 2.39.0
>


More information about the libcamera-devel mailing list