summaryrefslogtreecommitdiff
path: root/scripts/vsp-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-xscripts/vsp-lib.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index b9ca402..1f00481 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -331,6 +331,14 @@ pipe_rpf_bru_uds() {
__vsp_wpf_index=0
}
+pipe_rpf_clu() {
+ $mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev clu':0 [1]"
+ $mediactl -d $mdev -l "'$dev clu':1 -> '$dev wpf.0':0 [1]"
+ $mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
+
+ __vsp_wpf_index=0
+}
+
pipe_rpf_hgo() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev wpf.0':0 [1]"
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev hgo':0 [1]"
@@ -339,6 +347,14 @@ pipe_rpf_hgo() {
__vsp_wpf_index=0
}
+pipe_rpf_lut() {
+ $mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev lut':0 [1]"
+ $mediactl -d $mdev -l "'$dev lut':1 -> '$dev wpf.0':0 [1]"
+ $mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
+
+ __vsp_wpf_index=0
+}
+
pipe_rpf_uds() {
$mediactl -d $mdev -l "'$dev rpf.0':1 -> '$dev uds.0':0 [1]"
$mediactl -d $mdev -l "'$dev uds.0':1 -> '$dev wpf.0':0 [1]"
@@ -465,6 +481,19 @@ format_rpf_bru_uds() {
__vsp_wpf_format=$3
}
+format_rpf_clu() {
+ local format=$(format_v4l2_to_mbus $1)
+ local size=$2
+
+ $mediactl -d $mdev -V "'$dev rpf.0':0 [fmt:$format/$size]"
+ $mediactl -d $mdev -V "'$dev clu':0 [fmt:$format/$size]"
+ $mediactl -d $mdev -V "'$dev clu':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_wpf_format=$1
+}
+
format_rpf_hgo() {
local format=$(format_v4l2_to_mbus $1)
local size=$2
@@ -479,6 +508,19 @@ format_rpf_hgo() {
__vsp_wpf_format=$1
}
+format_rpf_lut() {
+ local format=$(format_v4l2_to_mbus $1)
+ local size=$2
+
+ $mediactl -d $mdev -V "'$dev rpf.0':0 [fmt:$format/$size]"
+ $mediactl -d $mdev -V "'$dev lut':0 [fmt:$format/$size]"
+ $mediactl -d $mdev -V "'$dev lut':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_wpf_format=$1
+}
+
format_rpf_uds() {
local infmt=$(format_v4l2_to_mbus $1)
local insize=$2