]> granicus.if.org Git - libvpx/commitdiff
Add y4m input to vp9 example encoder tests.
authorJerome Jiang <jianj@google.com>
Wed, 30 Jan 2019 22:37:34 +0000 (14:37 -0800)
committerJerome Jiang <jianj@google.com>
Wed, 30 Jan 2019 23:25:03 +0000 (15:25 -0800)
Change-Id: Ie64a3ee22e6b21e5b3a0cef4734930db3144bea0

test/tools_common.sh
test/vpx_temporal_svc_encoder.sh

index 7caad9f06701a65ec34709c7d916aa8336a4ee3b..844a12534deb3eb72598f70475c3d21d53bbb0d5 100755 (executable)
@@ -412,6 +412,8 @@ YUV_RAW_INPUT_HEIGHT=288
 
 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
index fd1045e7f09290a4c613c61c68a6a57d46701b23..5e5bac8fa6ac790cfa1b3a1b0217c693946f2536 100755 (executable)
@@ -38,6 +38,7 @@ vpx_tsvc_encoder() {
   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"
@@ -58,6 +59,12 @@ vpx_tsvc_encoder() {
         "${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
       eval "${VPX_TEST_PREFIX}" "${encoder}" "${YUV_RAW_INPUT}" \
         "${output_file}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \