1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

FATE: add support for testing hwaccels

This commit is contained in:
Anton Khirnov 2015-03-09 10:56:54 +01:00
parent dc7536ca3d
commit 96a06dbaf2
2 changed files with 3 additions and 2 deletions

View File

@ -143,7 +143,7 @@ fate: $(FATE)
$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF)) $(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
@echo "TEST $(@:fate-%=%)" @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: fate-list:
@printf '%s\n' $(sort $(FATE)) @printf '%s\n' $(sort $(FATE))

View File

@ -23,6 +23,7 @@ cmp_target=${13:-0}
size_tolerance=${14:-0} size_tolerance=${14:-0}
cmp_unit=${15:-2} cmp_unit=${15:-2}
gen=${16:-no} gen=${16:-no}
hwaccel=${17:-none}
outdir="tests/data/fate" outdir="tests/data/fate"
outfile="${outdir}/${test}" outfile="${outdir}/${test}"
@ -76,7 +77,7 @@ probefmt(){
} }
avconv(){ avconv(){
dec_opts="-threads $threads -thread_type $thread_type" dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type"
avconv_args="-nostats -cpuflags $cpuflags" avconv_args="-nostats -cpuflags $cpuflags"
for arg in $@; do for arg in $@; do
[ x${arg} = x-i ] && avconv_args="${avconv_args} ${dec_opts}" [ x${arg} = x-i ] && avconv_args="${avconv_args} ${dec_opts}"