summaryrefslogtreecommitdiff
path: root/utils/codegen/gen-gst-controls.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/codegen/gen-gst-controls.py')
-rwxr-xr-xutils/codegen/gen-gst-controls.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/codegen/gen-gst-controls.py b/utils/codegen/gen-gst-controls.py
index 2601a675..07af7653 100755
--- a/utils/codegen/gen-gst-controls.py
+++ b/utils/codegen/gen-gst-controls.py
@@ -19,8 +19,9 @@ from controls import Control
exposed_controls = [
- 'AeEnable', 'AeMeteringMode', 'AeConstraintMode', 'AeExposureMode',
- 'ExposureValue', 'ExposureTime', 'AnalogueGain', 'AeFlickerPeriod',
+ 'AeMeteringMode', 'AeConstraintMode', 'AeExposureMode',
+ 'ExposureValue', 'ExposureTime', 'ExposureTimeMode',
+ 'AnalogueGain', 'AnalogueGainMode', 'AeFlickerPeriod',
'Brightness', 'Contrast', 'AwbEnable', 'AwbMode', 'ColourGains',
'Saturation', 'Sharpness', 'ColourCorrectionMatrix', 'ScalerCrop',
'DigitalGain', 'AfMode', 'AfRange', 'AfSpeed', 'AfMetering', 'AfWindows',
@@ -154,7 +155,7 @@ def main(argv):
ctrls = controls.setdefault(vendor, [])
for ctrl in data['controls']:
- ctrl = Control(*ctrl.popitem(), vendor)
+ ctrl = Control(*ctrl.popitem(), vendor, mode='controls')
if ctrl.name in exposed_controls:
ctrls.append(extend_control(ctrl))