From: Antonio Ospite Date: Thu, 9 Oct 2014 08:58:38 +0000 (+0200) Subject: Add a test script for the rotate element X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/commitdiff_plain/a94b5f9e63d9b1badea1f383c4e3bfe710dacc36?hp=0be04e32a1db1ced9d1bbc1005c56c0b3d55ffc4 Add a test script for the rotate element This was used to verify that the black background behind the rotated image was actually black. --- diff --git a/shell/gst-test-rotate.sh b/shell/gst-test-rotate.sh new file mode 100755 index 0000000..482655c --- /dev/null +++ b/shell/gst-test-rotate.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +FORMATS="ARGB BGR BGRA BGRx RGB RGBA RGBx AYUV xBGR xRGB GRAY8 GRAY16_BE GRAY16_LE" +for format in $FORMATS; +do + echo "Testing format: $format" + GST_PLUGIN_PATH=$(pwd) \ + gst-launch-1.0 videotestsrc ! video/x-raw,format="$format",width=640,height=480 ! rotate angle="0.79" ! autovideoconvert ! autovideosink > /dev/null 2>&1 +done