[v2,0/2] Reduce statistics image area for GPU
mbox series

Message ID 20250724152936.99830-1-mzamazal@redhat.com
Headers show
Series
  • Reduce statistics image area for GPU
Related show

Message

Milan Zamazal July 24, 2025, 3:29 p.m. UTC
This patch set on top of GPU ISP patches reduces CPU time spent in processing statistics by about a half.

Changes in v2:
- Safer implementation of Rectangle::croppedBy() as suggested by Kieran.
- Test added for Rectangle::croppedBy().
- The comment about not passing x,y clarified.

Milan Zamazal (2):
  libcamera: geometry: Add Rectangle::croppedBy
  libcamera: software_isp: Reduce statistics image area

 include/libcamera/geometry.h               |  2 ++
 src/libcamera/geometry.cpp                 | 19 +++++++++++++++++++
 src/libcamera/software_isp/debayer_cpu.cpp |  2 +-
 src/libcamera/software_isp/debayer_egl.cpp |  7 +++++--
 test/geometry.cpp                          |  9 +++++++++
 5 files changed, 36 insertions(+), 3 deletions(-)