| 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/test/video_processing_unittest.h" | 11 #include "webrtc/modules/video_processing/test/video_processing_unittest.h" |
| 12 | 12 |
| 13 #include <gflags/gflags.h> | 13 #include <gflags/gflags.h> |
| 14 | 14 |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "webrtc/base/keep_ref_until_done.h" | 18 #include "webrtc/base/keep_ref_until_done.h" |
| 19 #include "webrtc/base/timeutils.h" | 19 #include "webrtc/base/timeutils.h" |
| 20 #include "webrtc/common_video/include/video_frame_buffer.h" |
| 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 21 #include "webrtc/test/frame_utils.h" | 22 #include "webrtc/test/frame_utils.h" |
| 22 #include "webrtc/test/testsupport/fileutils.h" | 23 #include "webrtc/test/testsupport/fileutils.h" |
| 23 | 24 |
| 24 namespace webrtc { | 25 namespace webrtc { |
| 25 | 26 |
| 26 namespace { | 27 namespace { |
| 27 | 28 |
| 28 // Define command line flag 'gen_files' (default value: false). | 29 // Define command line flag 'gen_files' (default value: false). |
| 29 DEFINE_bool(gen_files, false, "Output files for visual inspection."); | 30 DEFINE_bool(gen_files, false, "Output files for visual inspection."); |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 std::cout << "Watch " << filename.str() << " and verify that it is okay." | 281 std::cout << "Watch " << filename.str() << " and verify that it is okay." |
| 281 << std::endl; | 282 << std::endl; |
| 282 FILE* stand_alone_file = fopen(filename.str().c_str(), "wb"); | 283 FILE* stand_alone_file = fopen(filename.str().c_str(), "wb"); |
| 283 if (PrintVideoFrame(processed, stand_alone_file) < 0) | 284 if (PrintVideoFrame(processed, stand_alone_file) < 0) |
| 284 std::cerr << "Failed to write: " << filename.str() << std::endl; | 285 std::cerr << "Failed to write: " << filename.str() << std::endl; |
| 285 if (stand_alone_file) | 286 if (stand_alone_file) |
| 286 fclose(stand_alone_file); | 287 fclose(stand_alone_file); |
| 287 } | 288 } |
| 288 | 289 |
| 289 } // namespace webrtc | 290 } // namespace webrtc |
| OLD | NEW |