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 19 matching lines...) Expand all Loading... |
30 local decoder="${LIBVPX_BIN_PATH}/postproc${VPX_TEST_EXE_SUFFIX}" | 30 local decoder="${LIBVPX_BIN_PATH}/postproc${VPX_TEST_EXE_SUFFIX}" |
31 local input_file="$1" | 31 local input_file="$1" |
32 local codec="$2" | 32 local codec="$2" |
33 local output_file="${VPX_TEST_OUTPUT_DIR}/postproc_${codec}.raw" | 33 local output_file="${VPX_TEST_OUTPUT_DIR}/postproc_${codec}.raw" |
34 | 34 |
35 if [ ! -x "${decoder}" ]; then | 35 if [ ! -x "${decoder}" ]; then |
36 elog "${decoder} does not exist or is not executable." | 36 elog "${decoder} does not exist or is not executable." |
37 return 1 | 37 return 1 |
38 fi | 38 fi |
39 | 39 |
40 eval "${decoder}" "${input_file}" "${output_file}" ${devnull} | 40 eval "${VPX_TEST_PREFIX}" "${decoder}" "${input_file}" "${output_file}" \ |
| 41 ${devnull} |
41 | 42 |
42 [ -e "${output_file}" ] || return 1 | 43 [ -e "${output_file}" ] || return 1 |
43 } | 44 } |
44 | 45 |
45 postproc_vp8() { | 46 postproc_vp8() { |
46 if [ "$(vp8_decode_available)" = "yes" ]; then | 47 if [ "$(vp8_decode_available)" = "yes" ]; then |
47 postproc "${VP8_IVF_FILE}" vp8 || return 1 | 48 postproc "${VP8_IVF_FILE}" vp8 || return 1 |
48 fi | 49 fi |
49 } | 50 } |
50 | 51 |
51 postproc_vp9() { | 52 postproc_vp9() { |
52 if [ "$(vpx_config_option_enabled CONFIG_VP9_POSTPROC)" = "yes" ]; then | 53 if [ "$(vpx_config_option_enabled CONFIG_VP9_POSTPROC)" = "yes" ]; then |
53 if [ "$(vp9_decode_available)" = "yes" ]; then | 54 if [ "$(vp9_decode_available)" = "yes" ]; then |
54 postproc "${VP9_IVF_FILE}" vp9 || return 1 | 55 postproc "${VP9_IVF_FILE}" vp9 || return 1 |
55 fi | 56 fi |
56 fi | 57 fi |
57 } | 58 } |
58 | 59 |
59 postproc_tests="postproc_vp8 | 60 postproc_tests="postproc_vp8 |
60 postproc_vp9" | 61 postproc_vp9" |
61 | 62 |
62 run_tests postproc_verify_environment "${postproc_tests}" | 63 run_tests postproc_verify_environment "${postproc_tests}" |
OLD | NEW |