summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-03-01 00:59:17 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-03-18 10:28:46 +0200
commit3a7b09be87e2d7ab81e3ebfa850c346b774b45f0 (patch)
tree6b29049836849735f71dcfb1c31d8a839951c830
parent6d0da32ad190069976c1744b5fa189730e216941 (diff)
vsp-lib: Add support for RPF-HSI-WPF pipeline
This will be used to test HSV to RGB conversion. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xscripts/vsp-lib.sh20
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