From 84267b93788fbc88e45d83873743a32fa84df2c0 Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Tue, 19 Mar 2024 20:28:30 +0100 Subject: [PATCH] chore: wip Signed-off-by: Stephan Wendel --- libs/hwhandler.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/hwhandler.sh b/libs/hwhandler.sh index 55079aba..fd8986e9 100755 --- a/libs/hwhandler.sh +++ b/libs/hwhandler.sh @@ -93,6 +93,7 @@ list_picam_resolution() { done < <(libcamera-hello --list-cameras | sed '1,2d;s/Modes:/Colorspace:/') } +#type=3): get_libcamera_controls() { local ust_bin flags flags=( --camera-type=libcamera --camera-list_options ) @@ -102,7 +103,8 @@ get_libcamera_controls() { sed 's/device//g;/^SNAPSHOT/q' | sed '/^SNAPSHOT/d' | \ sed '/^CAMERA/d;/- property/d' | sed '/camera-streamer Version:/d' | \ sed 's/- available option: //g' | sed '/^$/d;' | \ - sed 's/([0-9]*[a-z,0-9]\,//g' + sed 's/([0-9]*[a-z,0-9]\,//g' | \ + sed '/type=7/d;s/type=1\)\:/\(/\(bool\)/g' else log_msg "WARN: 'libcamera' device option can not be displayed, because" log_msg "WARN: camera-streamer is not installed"