[RFC 0/2] libcamera: debayer_cpu: Stop requiring 2 lines of padding at the top/bottom

Hans de Goede hdegoede at redhat.com
Tue Jan 30 19:13:09 CET 2024


Hi All,

Note this series is just FYI / a headsup about this small(ish?)
change to the SoftISP debayer code. I plan to squash this into
v3 of the SoftISP series.

Since the standard bayer pattern debayer functions now take an array
of 3 src pointers (previous-, current- and next-line) we can easily
avoid the need to have 2 lines (2 to keep the pattern unchanged)
padding at the top / bottom.

This allows the output to be 4 lines higher, which is esp. useful
with the current hi556 kernel driver which has a max-height for
the bauer data of 722 lines. So before this change it was not
possible to generate a standard 1280x720 output.

Regards,

Hans


Hans de Goede (2):
  libcamera: debayer: Move sizes() to DebayerCpu implementation
  libcamera: debayer_cpu: Stop requiring 2 lines of padding at the
    top/bottom

 .../libcamera/internal/software_isp/debayer.h | 26 +-----
 .../internal/software_isp/debayer_cpu.h       |  4 +-
 src/libcamera/software_isp/debayer_cpu.cpp    | 90 +++++++++++++++++--
 3 files changed, 86 insertions(+), 34 deletions(-)

-- 
2.43.0



More information about the libcamera-devel mailing list