diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index c0eb1ca..f040404 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -420,6 +420,12 @@ pipe_rpf_hgo() { $mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]" } +pipe_rpf_hsi() { + $mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev hsi':0 [1]" + $mediactl -d $mdev -l "'$dev hsi':1 -> '$dev wpf.0':0 [1]" + $mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]" +} + pipe_rpf_hst() { $mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev hst':0 [1]" $mediactl -d $mdev -l "'$dev hst':1 -> '$dev wpf.0':0 [1]" @@ -620,6 +626,20 @@ format_rpf_clu() { __vsp_wpf_format=$1 } +format_rpf_hsi() { + local format=$(format_v4l2_to_mbus $3) + local size=$2 + + $mediactl -d $mdev -V "'$dev rpf.0':0 [fmt:AHSV8888_1X32/$size]" + $mediactl -d $mdev -V "'$dev hsi':0 [fmt:AHSV8888_1X32/$size]" + $mediactl -d $mdev -V "'$dev hsi':1 [fmt:$format/$size]" + $mediactl -d $mdev -V "'$dev wpf.0':0 [fmt:$format/$size]" + $mediactl -d $mdev -V "'$dev wpf.0':1 [fmt:$format/$size]" + + __vsp_rpf_format=$1 + __vsp_wpf_format=$3 +} + format_rpf_hst() { local format=$(format_v4l2_to_mbus $1) local size=$2 |