summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-07 02:56:07 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-16 01:42:43 +0300
commitb3696cc38b53793bfac8de8769f66d22071feab3 (patch)
tree659b7556622e09f14557a2c97c12176eaf0004c2 /scripts
parent34c3c7ce0f7bde52fcfbcff2a613552b693503fc (diff)
vsp-lib: Add support for RPF-HST-WPF pipeline
This will be used to test RGB to HSV conversion. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vsp-lib.sh28
1 files changed, 27 insertions, 1 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 9b9c3c8..eea31d4 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -381,6 +381,14 @@ pipe_rpf_hgo() {
__vsp_wpf_index=0
}
+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]"
+ $mediactl -d $mdev -l "'$dev wpf.0':1 -> '$dev wpf.0 output':0 [1]"
+
+ __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]"
@@ -454,6 +462,10 @@ format_v4l2_to_mbus() {
echo "ARGB32";
;;
+ HSV24 | HSV32)
+ echo "AHSV8888_1X32";
+ ;;
+
UYVY | VYUY | YUYV | YVYU | NV12M | NV16M | NV21M | NV61M | YUV420M | YUV422M | YUV444M)
echo "AYUV32"
;;
@@ -462,7 +474,7 @@ format_v4l2_to_mbus() {
echo "Invalid format $1" >&2
echo -e "Valid formats are
\tRGB332, ARGB555, XRGB555, RGB565, BGR24, RGB24,
-\tXBGR32, XRGB32, ABGR32, ARGB32,
+\tXBGR32, XRGB32, ABGR32, ARGB32, HSV24, HSV32
\tUYVY, VYUY, YUYV, YVYU,
\tNV12M, NV16M, NV21M, NV61M,
\tYUV420M, YUV422M, YUV444M" >&2
@@ -542,6 +554,20 @@ format_rpf_clu() {
__vsp_wpf_format=$1
}
+format_rpf_hst() {
+ 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 hst':0 [fmt:$format/$size]"
+ $mediactl -d $mdev -V "'$dev hst':1 [fmt:AHSV8888_1X32/$size]"
+ $mediactl -d $mdev -V "'$dev wpf.0':0 [fmt:AHSV8888_1X32/$size]"
+ $mediactl -d $mdev -V "'$dev wpf.0':1 [fmt:AHSV8888_1X32/$size]"
+
+ __vsp_rpf_format=$1
+ __vsp_wpf_format=$3
+}
+
format_rpf_hgo() {
local format=$(format_v4l2_to_mbus $1)
local size=$2