| OLD | NEW |
| 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 // Software qualification test for FFmpeg. This test is used to certify that | 5 // Software qualification test for FFmpeg. This test is used to certify that |
| 6 // software decoding quality and performance of FFmpeg meets a mimimum | 6 // software decoding quality and performance of FFmpeg meets a mimimum |
| 7 // standard. | 7 // standard. |
| 8 | 8 |
| 9 #include <iomanip> | 9 #include <iomanip> |
| 10 #include <iostream> | 10 #include <iostream> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void LeaveTimingSection() { | 64 void LeaveTimingSection() { |
| 65 } | 65 } |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 int main(int argc, const char** argv) { | 68 int main(int argc, const char** argv) { |
| 69 base::AtExitManager exit_manager; | 69 base::AtExitManager exit_manager; |
| 70 | 70 |
| 71 CommandLine::Init(argc, argv); | 71 CommandLine::Init(argc, argv); |
| 72 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); | 72 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
| 73 | 73 |
| 74 const std::vector<CommandLine::StringType>& filenames = cmd_line->args(); | 74 const CommandLine::StringVector& filenames = cmd_line->GetArgs(); |
| 75 | 75 |
| 76 if (filenames.empty()) { | 76 if (filenames.empty()) { |
| 77 std::cerr << "Usage: " << argv[0] << " MEDIAFILE" << std::endl; | 77 std::cerr << "Usage: " << argv[0] << " MEDIAFILE" << std::endl; |
| 78 return 1; | 78 return 1; |
| 79 } | 79 } |
| 80 | 80 |
| 81 // Initialize our media library (try loading DLLs, etc.) before continuing. | 81 // Initialize our media library (try loading DLLs, etc.) before continuing. |
| 82 // We use an empty file path as the parameter to force searching of the | 82 // We use an empty file path as the parameter to force searching of the |
| 83 // default locations for necessary DLLs and DSOs. | 83 // default locations for necessary DLLs and DSOs. |
| 84 if (media::InitializeMediaLibrary(FilePath()) == false) { | 84 if (media::InitializeMediaLibrary(FilePath()) == false) { |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 } __except(EXCEPTION_EXECUTE_HANDLER) { | 492 } __except(EXCEPTION_EXECUTE_HANDLER) { |
| 493 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() | 493 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() |
| 494 << " " << in_path.value() << std::endl; | 494 << " " << in_path.value() << std::endl; |
| 495 return 1; | 495 return 1; |
| 496 } | 496 } |
| 497 #endif | 497 #endif |
| 498 CommandLine::Reset(); | 498 CommandLine::Reset(); |
| 499 return 0; | 499 return 0; |
| 500 } | 500 } |
| 501 | 501 |
| OLD | NEW |