From 3a7b09be87e2d7ab81e3ebfa850c346b774b45f0 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 1 Mar 2017 00:59:17 +0200 Subject: vsp-lib: Add support for RPF-HSI-WPF pipeline This will be used to test HSV to RGB conversion. Signed-off-by: Laurent Pinchart --- scripts/vsp-lib.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- cgit v1.2.3