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

Naushir Patuck naush at raspberrypi.com
Tue Jun 8 13:03:31 CEST 2021


Hi,

Version 6 of this series addresses the following:

- Add a set of tests for utils::Duration in patch 1/4.
- Switch from passing Duration values as const references to passing by value
for throughout the series.
- Slight rewording of documentation for utils::Duration as suggested by Laurent.
- Switch from inline operator << in utils.h to declaring a templated
implementation in utils.cpp.

Thanks,
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            | 32 +++++++
 src/ipa/raspberrypi/cam_helper.cpp            | 18 ++--
 src/ipa/raspberrypi/cam_helper.hpp            | 10 ++-
 .../raspberrypi/controller/agc_algorithm.hpp  |  7 +-
 src/ipa/raspberrypi/controller/agc_status.h   | 12 +--
 src/ipa/raspberrypi/controller/camera_mode.h  |  6 +-
 .../raspberrypi/controller/device_status.h    |  6 +-
 src/ipa/raspberrypi/controller/rpi/agc.cpp    | 83 ++++++++++---------
 src/ipa/raspberrypi/controller/rpi/agc.hpp    | 34 ++++----
 src/ipa/raspberrypi/controller/rpi/lux.cpp    | 19 +++--
 src/ipa/raspberrypi/controller/rpi/lux.hpp    |  4 +-
 src/ipa/raspberrypi/raspberrypi.cpp           | 67 ++++++++-------
 src/libcamera/utils.cpp                       | 58 +++++++++++++
 test/utils.cpp                                | 45 ++++++++++
 14 files changed, 283 insertions(+), 118 deletions(-)

-- 
2.25.1



More information about the libcamera-devel mailing list