[libcamera-devel] [PATCH v4 0/4] Switch RaspberryPi IPA to use std::chrono::duration

Naushir Patuck naush at raspberrypi.com
Mon May 24 10:48:18 CEST 2021


Hi,

Version 4 of this series changes the following:

- Move the operator<< out of the utils namespace to avoid needing a using ...
directive.
- BaseDuration is now hidden out of the utils:: scope.
- Fixup documentation based on Jacopo's comments.
- Fixup flicker period ratio calculation.  We now use an int to avoid fractional
values.

Regards,
Naush

Naushir Patuck (4):
  libcamera: utils: Add helper class for std::chrono::duration
  ipa: raspberrypi: Switch ipa and cam_helper to use utils::Duration
  ipa: raspberrypi: Switch AgcAlgorithm API to use utils::Duration
  ipa: raspberrypi: Switch the AGC/Lux code to use utils::Duration

 include/libcamera/internal/utils.h            | 42 +++++++++
 src/ipa/raspberrypi/cam_helper.cpp            | 17 ++--
 src/ipa/raspberrypi/cam_helper.hpp            | 12 ++-
 .../raspberrypi/controller/agc_algorithm.hpp  |  9 +-
 src/ipa/raspberrypi/controller/agc_status.h   | 14 +--
 src/ipa/raspberrypi/controller/camera_mode.h  |  6 +-
 .../raspberrypi/controller/device_status.h    |  6 +-
 src/ipa/raspberrypi/controller/rpi/agc.cpp    | 86 +++++++++++--------
 src/ipa/raspberrypi/controller/rpi/agc.hpp    | 34 ++++----
 src/ipa/raspberrypi/controller/rpi/lux.cpp    | 17 ++--
 src/ipa/raspberrypi/controller/rpi/lux.hpp    |  4 +-
 src/ipa/raspberrypi/raspberrypi.cpp           | 69 ++++++++-------
 src/libcamera/utils.cpp                       | 41 +++++++++
 13 files changed, 238 insertions(+), 119 deletions(-)

-- 
2.25.1



More information about the libcamera-devel mailing list