From 1d6298d248fdd666ab3282f181c519062b07ac9c Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 11 Apr 2022 13:17:39 +0200 Subject: [PATCH] Improve parameters dump --- imx519_camera.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/imx519_camera.sh b/imx519_camera.sh index aa0004f..f9e3f36 100755 --- a/imx519_camera.sh +++ b/imx519_camera.sh @@ -8,8 +8,14 @@ CAMERA_PATH=$(echo /dev/v4l/by-path/*.csi-video-index0) if [[ "$1" == "dump" ]]; then shift libcamera-still "$@" - v4l2-ctl -d /dev/v4l-subdev0 -C exposure -C vertical_blanking -C analogue_gain -C digital_gain - v4l2-ctl -d /dev/video13 -C red_balance -C colour_correction_matrix -C black_level -C green_equalisation -C gamma -C denoise -C sharpen -C defective_pixel_correction -C colour_denoise + echo + v4l2-ctl -d /dev/v4l-subdev0 \ + -C exposure -C vertical_blanking -C analogue_gain -C digital_gain | \ + sed -e 's/ //g' -e 's/:/=/g' -e 's/^/-camera-options=/g' -e 's/$/ \\/g' + v4l2-ctl -d /dev/video13 -C red_balance -C colour_correction_matrix \ + -C black_level -C green_equalisation -C gamma -C denoise -C sharpen \ + -C defective_pixel_correction -C colour_denoise | \ + sed -e 's/ //g' -e 's/:/=/g' -e 's/^/-camera-isp.options=/g' -e 's/$/ \\/g' exit 0 fi