Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan committed Mar 19, 2024
1 parent 78d644e commit 84267b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/hwhandler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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"
Expand Down

0 comments on commit 84267b9

Please sign in to comment.