new file mode 100644
new file mode 100644
@@ -0,0 +1,18 @@
+import libtuning as lt
+from libtuning.modules import ALSC
+
+RaspberryPiALSC = \
+ ALSC(do_color=lt.param('do_alsc_colour', lt.param.mode.Optional, True),
+ debug=[lt.debug.Plot],
+ luminance_strength=lt.param('luminance_strength', lt.param.mode.Optional, 0.5),
+ sector_shape=(16, 12),
+ sector_x_gradient=lt.gradient.Linear,
+ sector_y_gradient=lt.gradient.Linear,
+ sector_x_remainder=lt.remainder.DistributeFront,
+ sector_y_remainder=lt.remainder.DistributeFront,
+ sector_average_function=lt.average_functions.Mean,
+ smoothing_function=lt.smoothing.MedianBlur,
+ output_type=float,
+ output_color_channels=[lt.color.R, lt.color.G, lt.color.B],
+ output_range=(0, 3.999)
+ )
new file mode 100755
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+import sys
+
+import libtuning as lt
+from libtuning.modules import ALSC
+from libtuning.parsers import RaspberryPiParser
+from libtuning.generators import RaspberryPiOutput
+
+from raspberrypi.alsc import ALSC as RaspberryPiALSC
+
+tuner = lt.Camera('Raspberry Pi (ALSC only)')
+tuner.add(RaspberryPiALSC)
+tuner.setInputType(RaspberryPiParser)
+tuner.setOutputType(RaspberryPiOutput)
+tuner.setOutputOrder([ALSC])
+
+tuner.run(sys.argv)
Add a tuning script for raspberrypi for alsc only, that uses libtuning. Since there will also be a tuning script for raspberrypi that has more modules, put the libtuning alsc module definition in a separate file so that it can be reused later. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> --- utils/tuning/raspberrypi/__init__.py | 0 utils/tuning/raspberrypi/alsc.py | 18 ++++++++++++++++++ utils/tuning/raspberrypi_alsc_only.py | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 utils/tuning/raspberrypi/__init__.py create mode 100644 utils/tuning/raspberrypi/alsc.py create mode 100755 utils/tuning/raspberrypi_alsc_only.py