[v3,0/3] ipa: simple: Add OV2740 tuning + AIQB parser
mbox series

Message ID 20260511-ov2740-tuning-v3-0-8ff3e57c7368@jetm.me
Headers show
Series
  • ipa: simple: Add OV2740 tuning + AIQB parser
Related show

Message

Javier Tia May 11, 2026, 6:16 p.m. UTC
Add a calibrated tuning file for the OV2740 sensor based on the Intel
IPU6 AIQB shipped with the Lenovo ThinkPad X1 Carbon Gen 10, and the
Python parser that produced it. The first patch drops a now-dead guard
in SwStatsCpu::finishFrame() flagged during review of the v2 series.

Changes since v2:
- AIQB parser: tightened the file header docstring to avoid duplicating
  the argparse description, cited ia_cmc_types.h as the format source,
  removed the --black-level CLI flag (black levels belong in
  CameraSensorHelper, not in the tuning emitted by this script),
  introduced a ColorMatrixRecord dataclass so the id=18 unpacking
  reads as named fields, switched the YAML output to PyYAML via a
  Dumper subclass, and now write the YAML to <sensor>.yaml so the
  diagnostic prints don't have to be filtered out. (Laurent Pinchart)
- OV2740 tuning: no functional changes; regenerated against the
  updated parser to confirm the output is byte-identical.
- SwStatsCpu sumShift_ guard: no functional changes; rebased so it
  applies cleanly on top of the merged v5 AGC/AWB series.

Link to v2: https://patchwork.libcamera.org/project/libcamera/list/?series=5926

Signed-off-by: Javier Tia <floss@jetm.me>
---
Javier Tia (3):
      libcamera: software_isp: Drop redundant sumShift_ guard in finishFrame
      ipa: simple: data: Add OV2740 tuning file
      utils: tuning: Add AIQB parser for Intel IPU6 sensors

 src/ipa/simple/data/meson.build            |   1 +
 src/ipa/simple/data/ov2740.yaml            |  72 +++++++
 src/libcamera/software_isp/swstats_cpu.cpp |   9 +-
 utils/tuning/parse_aiqb.py                 | 335 +++++++++++++++++++++++++++++
 4 files changed, 412 insertions(+), 5 deletions(-)
---
base-commit: 500c2320619a47bd01d1ffe69ca4cc6eae6e00e8
change-id: 20260511-ov2740-tuning-1c4e2204d27b

Best regards,
--  
Javier Tia <floss@jetm.me>