OLD | NEW |
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" |
11 | 11 |
12 // For pipe _setmode to binary | 12 // For pipe _setmode to binary |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 #include <fcntl.h> | 14 #include <fcntl.h> |
15 #include <io.h> | 15 #include <io.h> |
16 #endif | 16 #endif |
17 | 17 |
18 #include <iomanip> | 18 #include <iomanip> |
19 #include <iostream> | 19 #include <iostream> |
20 #include <string> | 20 #include <string> |
21 | 21 |
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/time.h" | 29 #include "base/time.h" |
29 #include "base/utf_string_conversions.h" | 30 #include "base/utf_string_conversions.h" |
30 #include "media/base/djb2.h" | 31 #include "media/base/djb2.h" |
31 #include "media/base/media.h" | 32 #include "media/base/media.h" |
32 #include "media/ffmpeg/ffmpeg_common.h" | 33 #include "media/ffmpeg/ffmpeg_common.h" |
33 #include "media/ffmpeg/file_protocol.h" | 34 #include "media/ffmpeg/file_protocol.h" |
34 #include "media/filters/ffmpeg_video_decoder.h" | 35 #include "media/filters/ffmpeg_video_decoder.h" |
35 | 36 |
36 namespace switches { | 37 namespace switches { |
37 const char kStream[] = "stream"; | 38 const char kStream[] = "stream"; |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 #if defined(ENABLE_WINDOWS_EXCEPTIONS) | 572 #if defined(ENABLE_WINDOWS_EXCEPTIONS) |
572 } __except(EXCEPTION_EXECUTE_HANDLER) { | 573 } __except(EXCEPTION_EXECUTE_HANDLER) { |
573 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() | 574 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() |
574 << " " << in_path.value() << std::endl; | 575 << " " << in_path.value() << std::endl; |
575 return 1; | 576 return 1; |
576 } | 577 } |
577 #endif | 578 #endif |
578 CommandLine::Reset(); | 579 CommandLine::Reset(); |
579 return 0; | 580 return 0; |
580 } | 581 } |
OLD | NEW |