#!/bin/sh

case "$1" in
video)
gst-launch --gst-plugin-path=`pwd`/src/.libs \
	v4l2src ! video/x-raw-rgb,width=320, height=240,fps=10 ! \
	dmtx scale=2 ! \
	queue ! ffmpegcolorspace ! xvimagesink
;;
png)
gst-launch --gst-plugin-path=`pwd`/src/.libs filesrc location=test/test.png ! pngdec ! dmtx ! fakesink
;;
*)
echo "Usage: $0 png|video"
;;
esac

#!/bin/sh

case "$1" in
video)
gst-launch --gst-plugin-path=`pwd`/src/.libs \
	v4l2src ! video/x-raw-rgb,width=320, height=240,fps=10 ! \
	dmtx scale=2 timeout=100 ! \
	queue ! ffmpegcolorspace ! xvimagesink
;;
video-eos)
gst-launch --gst-plugin-path=`pwd`/src/.libs \
	v4l2src ! video/x-raw-rgb,width=320, height=240,fps=2 ! \
	dmtx scale=3 stop_after=1 timeout=50 ! \
	queue ! ffmpegcolorspace ! xvimagesink
;;
png)
gst-launch --gst-plugin-path=`pwd`/src/.libs filesrc location=test/test.png ! pngdec ! dmtx ! fakesink
;;
*)
echo "Usage: $0 png|video|video-eos"
;;
esac

Add test case for EOS sending
Add test case for EOS sending
