Add a class to run the existing glsl debayer shaders on a GBM surface. Signed-off-by: Robert Mader <robert.mader@collabora.com> Co-developed-by: Robert Mader <robert.mader@collabora.com> [bod: took scaling and buffer size fixes from Robert] [bod: took fix for center byte calculation from Hans] [bod: took formatting fixes from Milan] Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Co-developed-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Robert Mader <robert.mader@collabora.com> Tested-by: Robert Mader <robert.mader@collabora.com> Tested-by: Hans de Goede <johannes.goede@oss.qualcomm.com> # ThinkPad T14s gen 6 (arm64) ov02c10 + X1c gen 12 ov08x40 Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> # Lenovo X13s Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
25 lines
614 B
Meson
25 lines
614 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
softisp_enabled = pipelines.contains('simple')
|
|
summary({'SoftISP support' : softisp_enabled}, section : 'Configuration')
|
|
summary({'SoftISP GPU acceleration' : gles_headless_enabled}, section : 'Configuration')
|
|
|
|
if not softisp_enabled
|
|
subdir_done()
|
|
endif
|
|
|
|
libcamera_internal_sources += files([
|
|
'benchmark.cpp',
|
|
'debayer.cpp',
|
|
'debayer_cpu.cpp',
|
|
'software_isp.cpp',
|
|
'swstats_cpu.cpp',
|
|
])
|
|
|
|
if softisp_enabled and gles_headless_enabled
|
|
config_h.set('HAVE_DEBAYER_EGL', 1)
|
|
libcamera_internal_sources += files([
|
|
'debayer_egl.cpp',
|
|
])
|
|
endif
|