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

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

Issue 341293003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 6 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/decode_to_md5.sh ('k') | source/libvpx/test/examples.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 16 matching lines...) Expand all
27 # Runs decode_with_drops on $1, $2 is interpreted as codec name and used solely 27 # Runs decode_with_drops on $1, $2 is interpreted as codec name and used solely
28 # to name the output file. $3 is the drop mode, and is passed directly to 28 # to name the output file. $3 is the drop mode, and is passed directly to
29 # decode_with_drops. 29 # decode_with_drops.
30 decode_with_drops() { 30 decode_with_drops() {
31 local decoder="${LIBVPX_BIN_PATH}/decode_with_drops${VPX_TEST_EXE_SUFFIX}" 31 local decoder="${LIBVPX_BIN_PATH}/decode_with_drops${VPX_TEST_EXE_SUFFIX}"
32 local input_file="$1" 32 local input_file="$1"
33 local codec="$2" 33 local codec="$2"
34 local output_file="${VPX_TEST_OUTPUT_DIR}/decode_with_drops_${codec}" 34 local output_file="${VPX_TEST_OUTPUT_DIR}/decode_with_drops_${codec}"
35 local drop_mode="$3" 35 local drop_mode="$3"
36 36
37 [ -x "${decoder}" ] || return 1 37 if [ ! -x "${decoder}" ]; then
38 elog "${decoder} does not exist or is not executable."
39 return 1
40 fi
38 41
39 eval "${decoder}" "${input_file}" "${output_file}" "${drop_mode}" ${devnull} 42 eval "${decoder}" "${input_file}" "${output_file}" "${drop_mode}" ${devnull}
40 43
41 [ -e "${output_file}" ] || return 1 44 [ -e "${output_file}" ] || return 1
42 } 45 }
43 46
44 # Decodes $VP8_IVF_FILE while dropping frames, twice: once in sequence mode, 47 # Decodes $VP8_IVF_FILE while dropping frames, twice: once in sequence mode,
45 # and once in pattern mode. 48 # and once in pattern mode.
46 # Note: This test assumes that $VP8_IVF_FILE has exactly 29 frames, and could 49 # Note: This test assumes that $VP8_IVF_FILE has exactly 29 frames, and could
47 # break if the file is modified. 50 # break if the file is modified.
(...skipping 18 matching lines...) Expand all
66 69
67 # Test pattern mode: Drop 3 of every 4 frames. 70 # Test pattern mode: Drop 3 of every 4 frames.
68 decode_with_drops "${VP9_IVF_FILE}" "vp9" "3/4" 71 decode_with_drops "${VP9_IVF_FILE}" "vp9" "3/4"
69 fi 72 fi
70 } 73 }
71 74
72 decode_with_drops_tests="decode_with_drops_vp8 75 decode_with_drops_tests="decode_with_drops_vp8
73 decode_with_drops_vp9" 76 decode_with_drops_vp9"
74 77
75 run_tests decode_with_drops_verify_environment "${decode_with_drops_tests}" 78 run_tests decode_with_drops_verify_environment "${decode_with_drops_tests}"
OLDNEW
« no previous file with comments | « source/libvpx/test/decode_to_md5.sh ('k') | source/libvpx/test/examples.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698