Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
6f745a27
Commit
6f745a27
authored
Oct 03, 2016
by
Yaowu Xu
Committed by
Gerrit Code Review
Oct 03, 2016
Browse files
Merge "decode_with_drop.sh: vp8->aom" into nextgenv2
parents
f54733ad
a7c2e5c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/decode_with_drops.sh
View file @
6f745a27
...
...
@@ -16,10 +16,10 @@
.
$(
dirname
$0
)
/tools_common.sh
# Environment check: Make sure input is available:
# $
VP8
_IVF_FILE and $AV1_IVF_FILE are required.
# $
AOM
_IVF_FILE and $AV1_IVF_FILE are required.
decode_with_drops_verify_environment
()
{
if
[
!
-e
"
${
VP8
_IVF_FILE
}
"
]
||
[
!
-e
"
${
AV1_IVF_FILE
}
"
]
;
then
echo
"Libaom test data must exist in LIB
VPX
_TEST_DATA_PATH."
if
[
!
-e
"
${
AOM
_IVF_FILE
}
"
]
||
[
!
-e
"
${
AV1_IVF_FILE
}
"
]
;
then
echo
"Libaom test data must exist in LIB
AOM
_TEST_DATA_PATH."
return
1
fi
}
...
...
@@ -45,17 +45,17 @@ decode_with_drops() {
[
-e
"
${
output_file
}
"
]
||
return
1
}
# Decodes $
VP8
_IVF_FILE while dropping frames, twice: once in sequence mode,
# Decodes $
AOM
_IVF_FILE while dropping frames, twice: once in sequence mode,
# and once in pattern mode.
# Note: This test assumes that $
VP8
_IVF_FILE has exactly 29 frames, and could
# Note: This test assumes that $
AOM
_IVF_FILE has exactly 29 frames, and could
# break if the file is modified.
decode_with_drops_
vp8
()
{
if
[
"
$(
vp8
_decode_available
)
"
=
"yes"
]
;
then
decode_with_drops_
aom
()
{
if
[
"
$(
aom
_decode_available
)
"
=
"yes"
]
;
then
# Test sequence mode: Drop frames 2-28.
decode_with_drops
"
${
VP8
_IVF_FILE
}
"
"
vp8
"
"2-28"
decode_with_drops
"
${
AOM
_IVF_FILE
}
"
"
aom
"
"2-28"
# Test pattern mode: Drop 3 of every 4 frames.
decode_with_drops
"
${
VP8
_IVF_FILE
}
"
"
vp8
"
"3/4"
decode_with_drops
"
${
AOM
_IVF_FILE
}
"
"
aom
"
"3/4"
fi
}
...
...
@@ -73,7 +73,7 @@ decode_with_drops_av1() {
fi
}
decode_with_drops_tests
=
"decode_with_drops_
vp8
decode_with_drops_tests
=
"decode_with_drops_
aom
decode_with_drops_av1"
run_tests decode_with_drops_verify_environment
"
${
decode_with_drops_tests
}
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment