diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-06-17 01:41:28 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-06-19 15:30:57 +0300 |
commit | 6b5959c04c5afebded4471430fa7eceac81c1183 (patch) | |
tree | 42a81534ca2f0aea760738f406aa6abff515519f /scripts | |
parent | 5b4c47d86bb887ead31419e54a55cec216c5bae3 (diff) |
vsp-lib: Add CLU and LUT pipelines support
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 42 |
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 |