OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/video_processing/main/test/unit_test/video_processing_u
nittest.h" | 11 #include "webrtc/modules/video_processing/main/test/unit_test/video_processing_u
nittest.h" |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include <gflags/gflags.h> | 15 #include <gflags/gflags.h> |
16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
17 #include "webrtc/system_wrappers/interface/tick_util.h" | 17 #include "webrtc/system_wrappers/include/tick_util.h" |
18 #include "webrtc/test/testsupport/fileutils.h" | 18 #include "webrtc/test/testsupport/fileutils.h" |
19 #include "webrtc/test/testsupport/gtest_disable.h" | 19 #include "webrtc/test/testsupport/gtest_disable.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Define command line flag 'gen_files' (default value: false). | 25 // Define command line flag 'gen_files' (default value: false). |
26 DEFINE_bool(gen_files, false, "Output files for visual inspection."); | 26 DEFINE_bool(gen_files, false, "Output files for visual inspection."); |
27 | 27 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 std::cout << "Watch " << filename.str() << " and verify that it is okay." | 381 std::cout << "Watch " << filename.str() << " and verify that it is okay." |
382 << std::endl; | 382 << std::endl; |
383 FILE* stand_alone_file = fopen(filename.str().c_str(), "wb"); | 383 FILE* stand_alone_file = fopen(filename.str().c_str(), "wb"); |
384 if (PrintVideoFrame(processed, stand_alone_file) < 0) | 384 if (PrintVideoFrame(processed, stand_alone_file) < 0) |
385 std::cerr << "Failed to write: " << filename.str() << std::endl; | 385 std::cerr << "Failed to write: " << filename.str() << std::endl; |
386 if (stand_alone_file) | 386 if (stand_alone_file) |
387 fclose(stand_alone_file); | 387 fclose(stand_alone_file); |
388 } | 388 } |
389 | 389 |
390 } // namespace webrtc | 390 } // namespace webrtc |
OLD | NEW |