Skip to content

Commit

Permalink
scaler.sh: parallelize
Browse files Browse the repository at this point in the history
  • Loading branch information
haasn committed Mar 27, 2015
1 parent 2cf4cca commit 2995fe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scalers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ while test $# -gt 0; do
esac ;;
-t)
case "$2" in
""|-*|*[!0-9]*) echo "no valid parameter for option $1" ; exit 1 ;;
""|-*|*[!.0-9]*) echo "no valid parameter for option $1" ; exit 1 ;;
*) stime=$2 ;;
esac ; shift ;;
-s)
Expand All @@ -58,7 +58,8 @@ for scaler in $scalers; do
(mpv --no-config --use-text-osd=yes --pause $img --title="scaler_test" --geometry=$geometry -vo opengl-hq:dither-depth=8:scale=$scaler:cscale=$scaler:dscale=$scaler) &
id=$!
sleep $stime
import -depth 8 -window 'scaler_test' $imgbase/$scaler.png
import -depth 8 -window 'scaler_test' $imgbase/$scaler.png &
sleep $stime
kill $id
echo -e "\n scale=$scaler\n![]($imgbase/$scaler.png)" >> ${imgbase^}.md
done

0 comments on commit 2995fe1

Please sign in to comment.