Rename gst-test-rotate.sh to gst-test-videoconvert-background.sh
[experiments/gstreamer.git] / shell / gst-test-videoconvert-background.sh
1 #!/bin/sh
2 #
3 # Test to check that the videoconvert background color is actually black.
4 #
5 # Depending on the pixelformat black can be represented in different ways, and
6 # videoconvert used to get some cases wrong.
7
8 set -e
9
10 PIPELINE='videotestsrc ! video/x-raw,format="$format",width=640,height=480 ! rotate angle="0.79" ! autovideoconvert ! autovideosink'
11 PIPELINE='videotestsrc ! video/x-raw,format="$format",width=640,height=480 ! videoscale add-borders=1 ! video/x-raw,width=800,height=480,pixel-aspect-ratio=1/1 ! videoconvert ! autovideosink'
12
13 FORMATS="ARGB BGR BGRA BGRx RGB RGBA RGBx AYUV xBGR xRGB GRAY8 GRAY16_BE GRAY16_LE"
14 for format in $FORMATS;
15 do
16   echo "Testing format: $format"
17   GST_PLUGIN_PATH=$(pwd) \
18   eval gst-launch-1.0 $PIPELINE > /dev/null 2>&1
19 done