diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-09-26 12:44:03 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-03-18 10:28:42 +0200 |
commit | d3b55c896c4971ae657413b122be4e44c91fb42b (patch) | |
tree | cef80e2b40eb5872d78f2566b5ecbf34b4057a14 /scripts | |
parent | 6d0da32ad190069976c1744b5fa189730e216941 (diff) |
vsp-lib: Add a --file argument to the vsp-runner
When set, the VSP runner for an RPF will use the given file to feed the
RPF video node instead of generating a reference frame automatically.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index c0eb1ca..304cc54 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -902,6 +902,7 @@ vsp_runner() { local count=10 local pause= local skip=7 + local force_file for option in $* ; do case $option in @@ -913,6 +914,11 @@ vsp_runner() { count=${option/--count=/} ;; + + --file=*) + force_file=${option/--file=/} + ;; + --pause=*) pause=${option/--pause=/} ;; @@ -961,6 +967,10 @@ vsp_runner() { ;; esac + if [ x$force_file != x ] ; then + file=$force_file + fi + $yavta -c$count -n $buffers ${format:+-f $format} ${size:+-s $size} \ ${skip:+--skip $skip} ${file:+--file=$file} ${pause:+-p$pause} \ $videodev | ./logger.sh $entity >> $logfile |