3
. `dirname $0`/emulator.sh
25
# -r use pseudo random source
26
# -m method deinterlace method
27
# -c feature test the version optimized for feature (mmx, sse, ...)
28
# -w -h source and dest image size (adjusted to be a multiple of the
29
# system page size for a built-in efence test).
30
if test x$2 = xscalar; then
31
LD_PRELOAD=$pre $emu ./ditest -q -r -m $1 \
32
$size $4 >$tmpd/$3.yuv 2>/dev/null
34
LD_PRELOAD=$pre $emu ./ditest -q -r -m $1 \
35
-c $2 $size $4 >$tmpd/$3.yuv 2>/dev/null
40
if test -e $tmpd/$3.yuv; then
41
implemented="$implemented $3.yuv"
45
# Have no $2 implementation of $1.
46
test -e $tmpd/$3.yuv && rm $tmpd/$3.yuv
49
echo "Test of $2 implementation of $1 failed."
50
echo LD_PRELOAD=$pre $emu ./ditest -q -r -m $1 -c $2 $size $4
61
if ! find_emulator $feature; then
65
tmpd="results-$$-$feature"
67
mkdir $tmpd || exit $?
71
for method in VideoBob VideoWeave TwoFrame Weave Bob ScalerBob EvenOnly \
72
OddOnly Greedy Greedy2Frame MoComp2 ; do
73
ditest_wrapper $method $feature $method
76
# Runtime options - run through all possible combinations.
82
ditest_wrapper GreedyH $feature \
83
GreedyH-$upd-$umf-$uhs-$uvs-$uib \
84
"-o GreedyUsePulldown=$upd \
85
-o GreedyUseMedianFilter=$umf \
86
-o GreedyUseHSharpness=$uhs \
87
-o GreedyUseVSharpness=$uvs \
88
-o GreedyUseInBetween=$uib \
96
# Runtime options - run through all possible combinations.
98
for se in 0 1 2 4 6 10 12 14 16 20 22; do
99
ditest_wrapper TomsMoComp $feature TomsMoComp-$usb-$se \
100
"-o UseStrangeBob=$usb -o SearchEffort=$se"