From a94b5f9e63d9b1badea1f383c4e3bfe710dacc36 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 9 Oct 2014 10:58:38 +0200 Subject: [PATCH] Add a test script for the rotate element This was used to verify that the black background behind the rotated image was actually black. --- shell/gst-test-rotate.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 shell/gst-test-rotate.sh 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 -- 2.1.4