aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-03-14 14:31:48 -0300
committerJames Almer <jamrial@gmail.com>2019-03-14 14:31:48 -0300
commitace96d2e693d804a0ed16aebc1b1027cfff2c527 (patch)
treed4a06cb8ec6bfe2e6bd899b9ea9d26eac24b2bad /tests/fate-run.sh
parentc2631dfd0a0a12050cc1765fd41702c5e93abee5 (diff)
parent896fe15dbb7b78de495c4a7dd75e7faec66778da (diff)
downloadffmpeg-ace96d2e693d804a0ed16aebc1b1027cfff2c527.tar.gz
Merge commit '896fe15dbb7b78de495c4a7dd75e7faec66778da'
* commit '896fe15dbb7b78de495c4a7dd75e7faec66778da': tests: Convert lavf pixfmt conversion tests to non-legacy test scripts Merged-by: James Almer <jamrial@gmail.com>
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 a141488b33..a2ccc65a63 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -331,6 +331,17 @@ refcmp_metadata(){
-f null /dev/null | awk -v ref=${ref} -v fuzz=${fuzz} -f ${base}/refcmp-metadata.awk -
}
+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