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

Side by Side Diff: media/tools/media_bench/media_bench.cc

Issue 7352006: Rename CommandLine::GetArgs(), update callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename CommandLine::GetArgs(), update callers. Created 9 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 | « media/test/ffmpeg_tests/ffmpeg_tests.cc ('k') | media/tools/player_wtl/player_wtl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Standalone benchmarking application based on FFmpeg. This tool is used to 5 // Standalone benchmarking application based on FFmpeg. This tool is used to
6 // measure decoding performance between different FFmpeg compile and run-time 6 // measure decoding performance between different FFmpeg compile and run-time
7 // options. We also use this tool to measure performance regressions when 7 // options. We also use this tool to measure performance regressions when
8 // testing newer builds of FFmpeg from trunk. 8 // testing newer builds of FFmpeg from trunk.
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void LeaveTimingSection() { 84 void LeaveTimingSection() {
85 } 85 }
86 #endif 86 #endif
87 87
88 int main(int argc, const char** argv) { 88 int main(int argc, const char** argv) {
89 base::AtExitManager exit_manager; 89 base::AtExitManager exit_manager;
90 90
91 CommandLine::Init(argc, argv); 91 CommandLine::Init(argc, argv);
92 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 92 const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
93 93
94 const std::vector<CommandLine::StringType>& filenames = cmd_line->args(); 94 const CommandLine::StringVector& filenames = cmd_line->GetArgs();
95 if (filenames.empty()) { 95 if (filenames.empty()) {
96 std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n" 96 std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n"
97 << " --stream=[audio|video] " 97 << " --stream=[audio|video] "
98 << "Benchmark either the audio or video stream\n" 98 << "Benchmark either the audio or video stream\n"
99 << " --video-threads=N " 99 << " --video-threads=N "
100 << "Decode video using N threads\n" 100 << "Decode video using N threads\n"
101 << " --verbose=N " 101 << " --verbose=N "
102 << "Set FFmpeg log verbosity (-8 to 48)\n" 102 << "Set FFmpeg log verbosity (-8 to 48)\n"
103 << " --frames=N " 103 << " --frames=N "
104 << "Decode N frames\n" 104 << "Decode N frames\n"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 #if defined(ENABLE_WINDOWS_EXCEPTIONS) 583 #if defined(ENABLE_WINDOWS_EXCEPTIONS)
584 } __except(EXCEPTION_EXECUTE_HANDLER) { 584 } __except(EXCEPTION_EXECUTE_HANDLER) {
585 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() 585 *log_out << " Exception:" << std::setw(11) << GetExceptionCode()
586 << " " << in_path.value() << std::endl; 586 << " " << in_path.value() << std::endl;
587 return 1; 587 return 1;
588 } 588 }
589 #endif 589 #endif
590 CommandLine::Reset(); 590 CommandLine::Reset();
591 return 0; 591 return 0;
592 } 592 }
OLDNEW
« no previous file with comments | « media/test/ffmpeg_tests/ffmpeg_tests.cc ('k') | media/tools/player_wtl/player_wtl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698