[RFC,v4,0/1] Reduce statistics image area in software ISP
mbox series

Message ID 20260127134313.80579-1-mzamazal@redhat.com
Headers show
Series
  • Reduce statistics image area in software ISP
Related show

Message

Milan Zamazal Jan. 27, 2026, 1:43 p.m. UTC
This patch suggests reducing the image area used for gathering
statistics to the central 2/3 of the image width and height.  It may or may not be a good idea.

Changes in v4:
- Rebased.
- Comments in both the GPU and CPU ISPs simplified and unified.
- The declared purpose shifted from speedup to using a more relevant
  area for gathering the statistics.
- Changed to RFC due to the shifted purpose.

Changes in v3:
- Rectangle::croppedBy() dropped, already available methods used instead.
- The cropping is applied also in CPU debayering for consistency.

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 (1):
  libcamera: software_isp: Reduce statistics image area

 src/libcamera/software_isp/debayer_cpu.cpp | 10 +++-------
 src/libcamera/software_isp/debayer_egl.cpp |  6 +++---
 2 files changed, 6 insertions(+), 10 deletions(-)