| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <iomanip> | 10 #include <iomanip> |
| 11 #include <iostream> | 11 #include <iostream> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
| 19 #include "base/files/memory_mapped_file.h" | 19 #include "base/files/memory_mapped_file.h" |
| 20 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/md5.h" | 21 #include "base/md5.h" |
| 22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
| 23 #include "base/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| 24 #include "base/string_util.h" | 24 #include "base/strings/string_util.h" |
| 25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
| 26 #include "base/time.h" | 26 #include "base/time.h" |
| 27 #include "build/build_config.h" | 27 #include "build/build_config.h" |
| 28 #include "media/base/djb2.h" | 28 #include "media/base/djb2.h" |
| 29 #include "media/base/media.h" | 29 #include "media/base/media.h" |
| 30 #include "media/ffmpeg/ffmpeg_common.h" | 30 #include "media/ffmpeg/ffmpeg_common.h" |
| 31 #include "media/filters/ffmpeg_glue.h" | 31 #include "media/filters/ffmpeg_glue.h" |
| 32 #include "media/filters/ffmpeg_video_decoder.h" | 32 #include "media/filters/ffmpeg_video_decoder.h" |
| 33 #include "media/filters/in_memory_url_protocol.h" | 33 #include "media/filters/in_memory_url_protocol.h" |
| 34 | 34 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 #if defined(ENABLE_WINDOWS_EXCEPTIONS) | 582 #if defined(ENABLE_WINDOWS_EXCEPTIONS) |
| 583 } __except(EXCEPTION_EXECUTE_HANDLER) { | 583 } __except(EXCEPTION_EXECUTE_HANDLER) { |
| 584 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() | 584 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() |
| 585 << " " << in_path.value() << std::endl; | 585 << " " << in_path.value() << std::endl; |
| 586 return 1; | 586 return 1; |
| 587 } | 587 } |
| 588 #endif | 588 #endif |
| 589 CommandLine::Reset(); | 589 CommandLine::Reset(); |
| 590 return 0; | 590 return 0; |
| 591 } | 591 } |
| OLD | NEW |