Revision 2c8d6927

View differences:

psnr.sh
112 112
  echo "ssim: $SSIM"
113 113
}
114 114

  
115
function play {
116
  [[ $# -eq 2 ]] || usage 1
117
  [[ $FFPLAY ]] || { echo "\$FFPLAY not defined"; exit 1; }
118

  
119
  #run all the calculations
120
  calc "$@"
121

  
122
  #play the resulting video
123
  #$FFPLAY -s ${VIDEO_XSIZE}x${VIDEO_YSIZE} -r $VIDEO_FPS -i $ORIG_YUV
124
  $FFPLAY -s ${VIDEO_XSIZE}x${VIDEO_YSIZE} $REFILLED_YUV
125
}
126

  
115 127
[[ $# -ge 1 ]] || usage 1
116 128
CMD=$1;
117 129
shift
......
123 135
  calc)
124 136
    calc "$@"
125 137
    ;;
138
  play)
139
    play "$@"
140
    ;;
126 141
  *)
127 142
    usage 1
128 143
    ;;

Also available in: Unified diff