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

Side by Side Diff: webrtc/examples/androidtests/video_quality_loopback_test.py

Issue 2681833007: Move Android video quality loopback script. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | webrtc/tools/test_stubbed_loopback_video.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """ 10 """
(...skipping 10 matching lines...) Expand all
21 import argparse 21 import argparse
22 import logging 22 import logging
23 import os 23 import os
24 import shutil 24 import shutil
25 import subprocess 25 import subprocess
26 import sys 26 import sys
27 import tempfile 27 import tempfile
28 28
29 29
30 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 30 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
31 SRC_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, os.pardir, os.pardir)) 31 SRC_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, os.pardir, os.pardir,
32 os.pardir))
32 33
33 34
34 def _RunCommand(argv, **kwargs): 35 def _RunCommand(argv, **kwargs):
35 logging.info('Running %r', argv) 36 logging.info('Running %r', argv)
36 subprocess.check_call(argv, **kwargs) 37 subprocess.check_call(argv, **kwargs)
37 38
38 39
39 def _ParseArgs(): 40 def _ParseArgs():
40 parser = argparse.ArgumentParser(description='Start loopback video analysis.') 41 parser = argparse.ArgumentParser(description='Start loopback video analysis.')
41 parser.add_argument('--source_dir', default=SRC_DIR, 42 parser.add_argument('--source_dir', default=SRC_DIR,
42 help='The path to the WebRTC source directory. Default: %default.') 43 help='The path to the WebRTC source directory. Default: %(default)s.')
43 parser.add_argument('build_dir_android', 44 parser.add_argument('build_dir_android',
44 help='The path to the build directory for Android.') 45 help='The path to the build directory for Android.')
45 parser.add_argument('--build_dir_x86', 46 parser.add_argument('--build_dir_x86',
46 help='The path to the build directory for building locally.') 47 help='The path to the build directory for building locally.')
47 parser.add_argument('--temp_dir', 48 parser.add_argument('--temp_dir',
48 help='A temporary directory to put the output.') 49 help='A temporary directory to put the output.')
49 50
50 args = parser.parse_args() 51 args = parser.parse_args()
51 return args 52 return args
52 53
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 '--stats_file_ref', stats_file_ref, 127 '--stats_file_ref', stats_file_ref,
127 '--stats_file_test', stats_file_test, '--frame_analyzer', frame_analyzer, 128 '--stats_file_test', stats_file_test, '--frame_analyzer', frame_analyzer,
128 '--ffmpeg_path', ffmpeg_path, '--zxing_path', zxing_path]) 129 '--ffmpeg_path', ffmpeg_path, '--zxing_path', zxing_path])
129 130
130 shutil.rmtree(temp_dir) 131 shutil.rmtree(temp_dir)
131 132
132 133
133 if __name__ == '__main__': 134 if __name__ == '__main__':
134 sys.exit(main()) 135 sys.exit(main())
135 136
OLDNEW
« no previous file with comments | « no previous file | webrtc/tools/test_stubbed_loopback_video.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698