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

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

Issue 2805098: Revert 53281 - ffmpeg update with vp3 patches.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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/omx_test/omx_test.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 std::ostream* log_out = &std::cout; 216 std::ostream* log_out = &std::cout;
217 #if defined(ENABLE_WINDOWS_EXCEPTIONS) 217 #if defined(ENABLE_WINDOWS_EXCEPTIONS)
218 // Catch exceptions so this tool can be used in automated testing. 218 // Catch exceptions so this tool can be used in automated testing.
219 __try { 219 __try {
220 #endif 220 #endif
221 221
222 // Register FFmpeg and attempt to open file. 222 // Register FFmpeg and attempt to open file.
223 avcodec_init(); 223 avcodec_init();
224 av_log_set_level(verbose_level); 224 av_log_set_level(verbose_level);
225 av_register_all(); 225 av_register_all();
226 av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol)); 226 av_register_protocol(&kFFmpegFileProtocol);
227 AVFormatContext* format_context = NULL; 227 AVFormatContext* format_context = NULL;
228 // av_open_input_file wants a char*, which can't work with wide paths. 228 // av_open_input_file wants a char*, which can't work with wide paths.
229 // So we assume ASCII on Windows. On other platforms we can pass the 229 // So we assume ASCII on Windows. On other platforms we can pass the
230 // path bytes through verbatim. 230 // path bytes through verbatim.
231 #if defined(OS_WIN) 231 #if defined(OS_WIN)
232 std::string string_path = WideToASCII(in_path.value()); 232 std::string string_path = WideToASCII(in_path.value());
233 #else 233 #else
234 const std::string& string_path = in_path.value(); 234 const std::string& string_path = in_path.value();
235 #endif 235 #endif
236 int result = av_open_input_file(&format_context, string_path.c_str(), 236 int result = av_open_input_file(&format_context, string_path.c_str(),
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 #if defined(ENABLE_WINDOWS_EXCEPTIONS) 571 #if defined(ENABLE_WINDOWS_EXCEPTIONS)
572 } __except(EXCEPTION_EXECUTE_HANDLER) { 572 } __except(EXCEPTION_EXECUTE_HANDLER) {
573 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() 573 *log_out << " Exception:" << std::setw(11) << GetExceptionCode()
574 << " " << in_path.value() << std::endl; 574 << " " << in_path.value() << std::endl;
575 return 1; 575 return 1;
576 } 576 }
577 #endif 577 #endif
578 CommandLine::Reset(); 578 CommandLine::Reset();
579 return 0; 579 return 0;
580 } 580 }
OLDNEW
« no previous file with comments | « media/test/ffmpeg_tests/ffmpeg_tests.cc ('k') | media/tools/omx_test/omx_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698