File: alsc.py

package info (click to toggle)
libcamera 0.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,380 kB
  • sloc: cpp: 81,540; python: 18,107; ansic: 12,608; sh: 1,258; makefile: 56
file content (19 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2022, Paul Elder <paul.elder@ideasonboard.com>
#
# ALSC module instance for Raspberry Pi tuning scripts

import libtuning as lt
from libtuning.modules.lsc import ALSCRaspberryPi

ALSC = \
    ALSCRaspberryPi(do_color=lt.Param('do_alsc_colour', lt.Param.Mode.Optional, True),
                    luminance_strength=lt.Param('luminance_strength', lt.Param.Mode.Optional, 0.5),
                    debug=[lt.Debug.Plot],
                    sector_shape=(16, 12),
                    sector_x_gradient=lt.gradient.Linear(lt.Remainder.DistributeFront),
                    sector_y_gradient=lt.gradient.Linear(lt.Remainder.DistributeFront),
                    sector_average_function=lt.average.Mean(),
                    smoothing_function=lt.smoothing.MedianBlur(3),
                    )