]> granicus.if.org Git - libvpx/commitdiff
vpx_temporal_svc_encoder.sh: Run all tests for 1-4 threads for vp8/vp9.
authorMarco <marpan@google.com>
Wed, 16 Nov 2016 21:03:26 +0000 (13:03 -0800)
committerMarco <marpan@google.com>
Wed, 16 Nov 2016 22:11:25 +0000 (14:11 -0800)
Change-Id: I079ee87cb32e36a1486c377c0037945b4bb89626

test/vpx_temporal_svc_encoder.sh

index c91f9cc5629f09e0ed328a53f2a6d7b2589a4b19..78942d16b291cab6dd163c20f6795c56f136089d 100755 (executable)
@@ -40,7 +40,7 @@ vpx_tsvc_encoder() {
   local timebase_den="1000"
   local speed="6"
   local frame_drop_thresh="30"
-  local threads="1"
+  local max_threads="4"
 
   shift 2
 
@@ -49,11 +49,14 @@ vpx_tsvc_encoder() {
     return 1
   fi
 
-  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}" \
-      "${threads}" "$@" \
-      ${devnull}
+  // TODO(tomfinegan): Verify file output for all thread runs.
+  for threads in $(seq $max_threads); do
+    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}" \
+        "${threads}" "$@" \
+        ${devnull}
+  done
 }
 
 # Confirms that all expected output files exist given the output file name