ref: 97a031de43886b80f172f47a61cc712b6813e380
parent: 7199f7878371c3d38e77896aa3d3bcf6c08ce764
author: Jerome Jiang <jianj@google.com>
date: Wed Jan 30 09:37:34 EST 2019
Add y4m input to vp9 example encoder tests. Change-Id: Ie64a3ee22e6b21e5b3a0cef4734930db3144bea0
--- a/test/tools_common.sh
+++ b/test/tools_common.sh
@@ -412,6 +412,8 @@
Y4M_NOSQ_PAR_INPUT="${LIBVPX_TEST_DATA_PATH}/park_joy_90p_8_420_a10-1.y4m"
Y4M_720P_INPUT="${LIBVPX_TEST_DATA_PATH}/niklas_1280_720_30.y4m"
+Y4M_720P_INPUT_WIDTH=1280
+Y4M_720P_INPUT_HEIGHT=720
# Setup a trap function to clean up after tests complete.
trap cleanup EXIT
--- a/test/vpx_temporal_svc_encoder.sh
+++ b/test/vpx_temporal_svc_encoder.sh
@@ -38,6 +38,7 @@
local output_file="${VPX_TEST_OUTPUT_DIR}/${output_file_base}"
local timebase_num="1"
local timebase_den="1000"
+ local timebase_den_y4m="30"
local speed="6"
local frame_drop_thresh="30"
local max_threads="4"
@@ -56,6 +57,12 @@
eval "${VPX_TEST_PREFIX}" "${encoder}" "${YUV_RAW_INPUT}" \
"${output_file}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
"${YUV_RAW_INPUT_HEIGHT}" "${timebase_num}" "${timebase_den}" \
+ "${speed}" "${frame_drop_thresh}" "${error_resilient}" "${threads}" \
+ "$@" ${devnull}
+ # Test for y4m input.
+ eval "${VPX_TEST_PREFIX}" "${encoder}" "${Y4M_720P_INPUT}" \
+ "${output_file}" "${codec}" "${Y4M_720P_INPUT_WIDTH}" \
+ "${Y4M_720P_INPUT_HEIGHT}" "${timebase_num}" "${timebase_den_y4m}" \
"${speed}" "${frame_drop_thresh}" "${error_resilient}" "${threads}" \
"$@" ${devnull}
else