| OLD | NEW |
| 1 // Copyright (c) 2009 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" |
| 11 | 11 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 22 #include "base/at_exit.h" | 22 #include "base/at_exit.h" |
| 23 #include "base/basictypes.h" | 23 #include "base/basictypes.h" |
| 24 #include "base/command_line.h" | 24 #include "base/command_line.h" |
| 25 #include "base/file_path.h" | 25 #include "base/file_path.h" |
| 26 #include "base/file_util.h" | 26 #include "base/file_util.h" |
| 27 #include "base/md5.h" | 27 #include "base/md5.h" |
| 28 #include "base/string_util.h" | 28 #include "base/string_util.h" |
| 29 #include "base/time.h" | 29 #include "base/time.h" |
| 30 #include "media/base/djb2.h" | 30 #include "media/base/djb2.h" |
| 31 #include "media/base/media.h" | 31 #include "media/base/media.h" |
| 32 #include "media/filters/ffmpeg_common.h" | 32 #include "media/ffmpeg/ffmpeg_common.h" |
| 33 #include "media/ffmpeg/file_protocol.h" |
| 33 #include "media/filters/ffmpeg_video_decoder.h" | 34 #include "media/filters/ffmpeg_video_decoder.h" |
| 34 #include "media/tools/media_bench/file_protocol.h" | |
| 35 | 35 |
| 36 namespace switches { | 36 namespace switches { |
| 37 const char kStream[] = "stream"; | 37 const char kStream[] = "stream"; |
| 38 const char kVideoThreads[] = "video-threads"; | 38 const char kVideoThreads[] = "video-threads"; |
| 39 const char kVerbose[] = "verbose"; | 39 const char kVerbose[] = "verbose"; |
| 40 const char kFast2[] = "fast2"; | 40 const char kFast2[] = "fast2"; |
| 41 const char kSkip[] = "skip"; | 41 const char kSkip[] = "skip"; |
| 42 const char kFlush[] = "flush"; | 42 const char kFlush[] = "flush"; |
| 43 const char kDjb2[] = "djb2"; | 43 const char kDjb2[] = "djb2"; |
| 44 const char kMd5[] = "md5"; | 44 const char kMd5[] = "md5"; |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 #if defined(OS_WIN) | 535 #if defined(OS_WIN) |
| 536 } __except(EXCEPTION_EXECUTE_HANDLER) { | 536 } __except(EXCEPTION_EXECUTE_HANDLER) { |
| 537 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() | 537 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() |
| 538 << " " << in_path << std::endl; | 538 << " " << in_path << std::endl; |
| 539 return 1; | 539 return 1; |
| 540 } | 540 } |
| 541 #endif | 541 #endif |
| 542 CommandLine::Reset(); | 542 CommandLine::Reset(); |
| 543 return 0; | 543 return 0; |
| 544 } | 544 } |
| OLD | NEW |