Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: source/libvpx/test/simple_decoder.sh

Issue 390713002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/sad_test.cc ('k') | source/libvpx/test/simple_encoder.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
30 local decoder="${LIBVPX_BIN_PATH}/simple_decoder${VPX_TEST_EXE_SUFFIX}" 30 local decoder="${LIBVPX_BIN_PATH}/simple_decoder${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}/simple_decoder_${codec}.raw" 33 local output_file="${VPX_TEST_OUTPUT_DIR}/simple_decoder_${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 simple_decoder_vp8() { 46 simple_decoder_vp8() {
46 if [ "$(vp8_decode_available)" = "yes" ]; then 47 if [ "$(vp8_decode_available)" = "yes" ]; then
47 simple_decoder "${VP8_IVF_FILE}" vp8 || return 1 48 simple_decoder "${VP8_IVF_FILE}" vp8 || return 1
48 fi 49 fi
49 } 50 }
50 51
51 simple_decoder_vp9() { 52 simple_decoder_vp9() {
52 if [ "$(vp9_decode_available)" = "yes" ]; then 53 if [ "$(vp9_decode_available)" = "yes" ]; then
53 simple_decoder "${VP9_IVF_FILE}" vp9 || return 1 54 simple_decoder "${VP9_IVF_FILE}" vp9 || return 1
54 fi 55 fi
55 } 56 }
56 57
57 simple_decoder_tests="simple_decoder_vp8 58 simple_decoder_tests="simple_decoder_vp8
58 simple_decoder_vp9" 59 simple_decoder_vp9"
59 60
60 run_tests simple_decoder_verify_environment "${simple_decoder_tests}" 61 run_tests simple_decoder_verify_environment "${simple_decoder_tests}"
OLDNEW
« no previous file with comments | « source/libvpx/test/sad_test.cc ('k') | source/libvpx/test/simple_encoder.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698