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 // 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 | 81 |
82 // Retrieve command line options. | 82 // Retrieve command line options. |
83 std::string in_path(WideToUTF8(filenames[0])); | 83 std::string in_path(WideToUTF8(filenames[0])); |
84 std::string out_path; | 84 std::string out_path; |
85 if (filenames.size() > 1) { | 85 if (filenames.size() > 1) { |
86 out_path = WideToUTF8(filenames[1]); | 86 out_path = WideToUTF8(filenames[1]); |
87 } | 87 } |
88 | 88 |
89 // Default flags that match Chrome defaults. | 89 // Default flags that match Chrome defaults. |
90 int video_threads = 2; | 90 int video_threads = 3; |
91 int verbose_level = AV_LOG_FATAL; | 91 int verbose_level = AV_LOG_FATAL; |
92 int max_frames = 0; | 92 int max_frames = 0; |
93 int max_loops = 0; | 93 int max_loops = 0; |
94 bool flush = false; | 94 bool flush = false; |
95 | 95 |
96 unsigned int hash_value = 5381u; // Seed for DJB2. | 96 unsigned int hash_value = 5381u; // Seed for DJB2. |
97 bool hash_djb2 = false; | 97 bool hash_djb2 = false; |
98 | 98 |
99 MD5Context ctx; // Intermediate MD5 data: do not use | 99 MD5Context ctx; // Intermediate MD5 data: do not use |
100 MD5Init(&ctx); | 100 MD5Init(&ctx); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 } __except(EXCEPTION_EXECUTE_HANDLER) { | 479 } __except(EXCEPTION_EXECUTE_HANDLER) { |
480 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() | 480 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() |
481 << " " << in_path << std::endl; | 481 << " " << in_path << std::endl; |
482 return 1; | 482 return 1; |
483 } | 483 } |
484 #endif | 484 #endif |
485 CommandLine::Reset(); | 485 CommandLine::Reset(); |
486 return 0; | 486 return 0; |
487 } | 487 } |
488 | 488 |
OLD | NEW |