Commit f8cb5a61 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Reduce number of frames used in test

This commit reduces number of video frames used in tests to avoid
timeouts in nightly run of "libaom__example_test-multi-target".

Change-Id: I842339d0e2c36f39f2d84ccc7b131d8ebaf2347c
parent b69cb528
...@@ -123,6 +123,7 @@ int main(int argc, char **argv) { ...@@ -123,6 +123,7 @@ int main(int argc, char **argv) {
aom_codec_ctx_t codec; aom_codec_ctx_t codec;
aom_codec_enc_cfg_t cfg; aom_codec_enc_cfg_t cfg;
int frame_count = 0; int frame_count = 0;
const int limit = 60;
aom_image_t raw; aom_image_t raw;
aom_codec_err_t res; aom_codec_err_t res;
AvxVideoInfo info; AvxVideoInfo info;
...@@ -180,7 +181,7 @@ int main(int argc, char **argv) { ...@@ -180,7 +181,7 @@ int main(int argc, char **argv) {
die_codec(&codec, "Failed to initialize encoder"); die_codec(&codec, "Failed to initialize encoder");
// Encode frames. // Encode frames.
while (aom_img_read(&raw, infile)) { while (aom_img_read(&raw, infile) && frame_count < limit) {
++frame_count; ++frame_count;
if (frame_count == 33) { if (frame_count == 33) {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
## ##
. $(dirname $0)/tools_common.sh . $(dirname $0)/tools_common.sh
readonly TEST_FRAMES=10 readonly TEST_FRAMES=5
# Environment check: Make sure input is available. # Environment check: Make sure input is available.
aomenc_verify_environment() { aomenc_verify_environment() {
...@@ -192,12 +192,12 @@ aomenc_av1_ivf_minq0_maxq0() { ...@@ -192,12 +192,12 @@ aomenc_av1_ivf_minq0_maxq0() {
fi fi
} }
aomenc_av1_webm_lag10_frames20() { aomenc_av1_webm_lag5_frames10() {
if [ "$(aomenc_can_encode_av1)" = "yes" ] && \ if [ "$(aomenc_can_encode_av1)" = "yes" ] && \
[ "$(webm_io_available)" = "yes" ]; then [ "$(webm_io_available)" = "yes" ]; then
local readonly lag_total_frames=20 local readonly lag_total_frames=10
local readonly lag_frames=10 local readonly lag_frames=5
local readonly output="${AOM_TEST_OUTPUT_DIR}/av1_lag10_frames20.webm" local readonly output="${AOM_TEST_OUTPUT_DIR}/av1_lag5_frames10.webm"
aomenc $(yuv_raw_input) \ aomenc $(yuv_raw_input) \
--codec=av1 \ --codec=av1 \
--limit="${lag_total_frames}" \ --limit="${lag_total_frames}" \
...@@ -235,7 +235,7 @@ aomenc_tests="aomenc_av1_ivf ...@@ -235,7 +235,7 @@ aomenc_tests="aomenc_av1_ivf
aomenc_av1_webm_2pass aomenc_av1_webm_2pass
aomenc_av1_ivf_lossless aomenc_av1_ivf_lossless
aomenc_av1_ivf_minq0_maxq0 aomenc_av1_ivf_minq0_maxq0
aomenc_av1_webm_lag10_frames20 aomenc_av1_webm_lag5_frames10
aomenc_av1_webm_non_square_par" aomenc_av1_webm_non_square_par"
run_tests aomenc_verify_environment "${aomenc_tests}" run_tests aomenc_verify_environment "${aomenc_tests}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment