Update aomenc shell tests.
- Make them faster by setting cpu-used to 1.
- Drop unused cruft and redundant args to aomenc.
- Add some shell util functions for producing "fast" encode
settings and frame count limits while ensuring lag-in-frames
is sane for the given limit.
Change-Id: I61288f9f120201decb25fdfe9516b75d84cfb2ee
diff --git a/test/tools_common.sh b/test/tools_common.sh
index 080d40b..0998c2b 100755
--- a/test/tools_common.sh
+++ b/test/tools_common.sh
@@ -17,6 +17,7 @@
set -e
devnull='> /dev/null 2>&1'
AOM_TEST_PREFIX=""
+readonly AOM_ENCODE_TEST_FRAME_LIMIT=5
elog() {
echo "$@" 1>&2
@@ -212,6 +213,14 @@
[ "$(aom_config_option_enabled CONFIG_AV1_ENCODER)" = "yes" ] && echo yes
}
+# Echoes "fast" encode params for use with aomenc.
+aomenc_encode_test_fast_params() {
+ echo "--cpu-used=1
+ --limit=${AOM_ENCODE_TEST_FRAME_LIMIT}
+ --lag-in-frames=0
+ --test-decode=fatal"
+}
+
# Echoes yes to stdout when aom_config_option_enabled() reports yes for
# CONFIG_WEBM_IO.
webm_io_available() {