summaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2018-08-14 11:07:10 +0200
committerDiego Biurrun <diego@biurrun.de>2019-02-16 18:15:38 +0100
commit896fe15dbb7b78de495c4a7dd75e7faec66778da (patch)
tree5c28dc3de13faeb034a503cb4bebf12824159ae4 /tests/fate-run.sh
parenta957e9379d11f2982d615f92c30580a57ea8bb40 (diff)
downloadffmpeg-streaming-896fe15dbb7b78de495c4a7dd75e7faec66778da.zip
ffmpeg-streaming-896fe15dbb7b78de495c4a7dd75e7faec66778da.tar.gz
tests: Convert lavf pixfmt conversion tests to non-legacy test scripts
Also split monolithic lavf-pixfmt test into individual tests.
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index a9dfebc..89eef12 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -223,6 +223,17 @@ lavftest(){
${base}/lavf-regression.sh $t lavf tests/vsynth1 "$target_exec" "$target_path" "$threads" "$thread_type" "$cpuflags"
}
+pixfmt_conversion(){
+ conversion="${test#pixfmt-}"
+ outdir="tests/data/pixfmt"
+ raw_dst="$outdir/$conversion.out.yuv"
+ file=${outdir}/${conversion}.yuv
+ run_avconv $DEC_OPTS -r 1 -f image2 -c:v pgmyuv -i $raw_src \
+ $ENC_OPTS -f rawvideo -t 1 -s 352x288 -pix_fmt $conversion $target_path/$raw_dst
+ do_avconv $file $DEC_OPTS -f rawvideo -s 352x288 -pix_fmt $conversion -i $target_path/$raw_dst \
+ $ENC_OPTS -f rawvideo -s 352x288 -pix_fmt yuv444p
+}
+
video_filter(){
filters=$1
shift
OpenPOWER on IntegriCloud