From 6b5959c04c5afebded4471430fa7eceac81c1183 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 17 Jun 2016 01:41:28 +0300 Subject: vsp-lib: Add CLU and LUT pipelines support Signed-off-by: Laurent Pinchart --- scripts/vsp-lib.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) 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 -- cgit v1.2.3