[FFmpeg-cvslog] FATE: add support for testing hwaccels
Anton Khirnov
git at videolan.org
Tue Mar 10 11:06:18 CET 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 9 10:56:54 2015 +0100| [96a06dbaf278e8152487e08772946f63bd2a3843] | committer: Anton Khirnov
FATE: add support for testing hwaccels
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=96a06dbaf278e8152487e08772946f63bd2a3843
---
tests/Makefile | 2 +-
tests/fate-run.sh | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/Makefile b/tests/Makefile
index 13a91b1..ed34101 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -143,7 +143,7 @@ fate: $(FATE)
$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
@echo "TEST $(@:fate-%=%)"
- $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)'
+ $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)' '$(HWACCEL)'
fate-list:
@printf '%s\n' $(sort $(FATE))
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index f8de182..790a4d1 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -23,6 +23,7 @@ cmp_target=${13:-0}
size_tolerance=${14:-0}
cmp_unit=${15:-2}
gen=${16:-no}
+hwaccel=${17:-none}
outdir="tests/data/fate"
outfile="${outdir}/${test}"
@@ -76,7 +77,7 @@ probefmt(){
}
avconv(){
- dec_opts="-threads $threads -thread_type $thread_type"
+ dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type"
avconv_args="-nostats -cpuflags $cpuflags"
for arg in $@; do
[ x${arg} = x-i ] && avconv_args="${avconv_args} ${dec_opts}"
More information about the ffmpeg-cvslog
mailing list