| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 ## | 2 ## |
| 3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
| 4 ## | 4 ## |
| 5 ## Use of this source code is governed by a BSD-style license | 5 ## Use of this source code is governed by a BSD-style license |
| 6 ## that can be found in the LICENSE file in the root of the source | 6 ## that can be found in the LICENSE file in the root of the source |
| 7 ## tree. An additional intellectual property rights grant can be found | 7 ## tree. An additional intellectual property rights grant can be found |
| 8 ## in the file PATENTS. All contributing project authors may | 8 ## in the file PATENTS. All contributing project authors may |
| 9 ## be found in the AUTHORS file in the root of the source tree. | 9 ## be found in the AUTHORS file in the root of the source tree. |
| 10 ## | 10 ## |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 local frames_to_encode="10" | 32 local frames_to_encode="10" |
| 33 local max_kf="9999" | 33 local max_kf="9999" |
| 34 | 34 |
| 35 shift | 35 shift |
| 36 | 36 |
| 37 if [ ! -x "${encoder}" ]; then | 37 if [ ! -x "${encoder}" ]; then |
| 38 elog "${encoder} does not exist or is not executable." | 38 elog "${encoder} does not exist or is not executable." |
| 39 return 1 | 39 return 1 |
| 40 fi | 40 fi |
| 41 | 41 |
| 42 eval "${encoder}" -w "${YUV_RAW_INPUT_WIDTH}" -h "${YUV_RAW_INPUT_HEIGHT}" \ | 42 eval "${VPX_TEST_PREFIX}" "${encoder}" -w "${YUV_RAW_INPUT_WIDTH}" \ |
| 43 -k "${max_kf}" -f "${frames_to_encode}" "$@" "${YUV_RAW_INPUT}" \ | 43 -h "${YUV_RAW_INPUT_HEIGHT}" -k "${max_kf}" -f "${frames_to_encode}" \ |
| 44 "${output_file}" \ | 44 "$@" "${YUV_RAW_INPUT}" "${output_file}" ${devnull} |
| 45 ${devnull} | |
| 46 | 45 |
| 47 [ -e "${output_file}" ] || return 1 | 46 [ -e "${output_file}" ] || return 1 |
| 48 } | 47 } |
| 49 | 48 |
| 50 # Each mode is run with layer count 1-$vp9_ssvc_test_layers. | 49 # Each mode is run with layer count 1-$vp9_ssvc_test_layers. |
| 51 vp9_ssvc_test_layers=5 | 50 vp9_ssvc_test_layers=5 |
| 52 | 51 |
| 53 vp9_spatial_svc_mode_i() { | 52 vp9_spatial_svc_mode_i() { |
| 54 if [ "$(vp9_encode_available)" = "yes" ]; then | 53 if [ "$(vp9_encode_available)" = "yes" ]; then |
| 55 local test_name="${FUNCNAME}" | 54 local test_name="${FUNCNAME}" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 83 done | 82 done |
| 84 fi | 83 fi |
| 85 } | 84 } |
| 86 | 85 |
| 87 vp9_spatial_svc_tests="vp9_spatial_svc_mode_i | 86 vp9_spatial_svc_tests="vp9_spatial_svc_mode_i |
| 88 vp9_spatial_svc_mode_altip | 87 vp9_spatial_svc_mode_altip |
| 89 vp9_spatial_svc_mode_ip | 88 vp9_spatial_svc_mode_ip |
| 90 vp9_spatial_svc_mode_gf" | 89 vp9_spatial_svc_mode_gf" |
| 91 | 90 |
| 92 run_tests vp9_spatial_svc_encoder_verify_environment "${vp9_spatial_svc_tests}" | 91 run_tests vp9_spatial_svc_encoder_verify_environment "${vp9_spatial_svc_tests}" |
| OLD | NEW |