[v3,0/2] libcamera: Vector right-shift operators and SwStatsCpu use site
mbox series

Message ID 20260511-libipa-vector-rshift-v3-0-a275f6e87ec4@jetm.me
Headers show
Series
  • libcamera: Vector right-shift operators and SwStatsCpu use site
Related show

Message

Javier Tia May 11, 2026, 8:23 p.m. UTC
review of the sumShift_ cleanup in the OV2740 v2 series:
https://patchwork.libcamera.org/project/libcamera/list/?series=5926

Patch 2/2 depends on patch 1/3 of the ov2740-tuning series
(libcamera: software_isp: Drop redundant sumShift_ guard in finishFrame).

Changes since v2:
- Move operator>>= Doxygen block to after operator/= to preserve
  declaration order (suggested by Barnabás Pőcze)
- Add tests for operator>> and operator>>= in test/vector.cpp
  (suggested by Barnabás Pőcze)

Link to v2: https://lore.kernel.org/libcamera-devel/177827984964.786021.2242634090011461397@jetm.me/

Signed-off-by: Javier Tia <floss@jetm.me>
---
Javier Tia (2):
      libcamera: libipa: Add right-shift operators to Vector
      libcamera: software_isp: Use Vector operator>>= in finishFrame

 include/libcamera/internal/vector.h        | 22 ++++++++++++++++++----
 src/libcamera/software_isp/swstats_cpu.cpp |  4 +---
 src/libcamera/vector.cpp                   | 14 ++++++++++++++
 test/vector.cpp                            |  5 +++++
 4 files changed, 38 insertions(+), 7 deletions(-)
---
base-commit: 11e46b2b5206c68a83528a6057f19962b3686b05
change-id: 20260511-libipa-vector-rshift-ad0085f1f785

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