| 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 <assert.h> | 11 #include <assert.h> |
| 12 #include <stdio.h> | 12 #include <stdio.h> |
| 13 #include <time.h> | 13 #include <time.h> |
| 14 | 14 |
| 15 #include <stdarg.h> | 15 #include <stdarg.h> |
| 16 #include <sys/stat.h> // To check for directory existence. | 16 #include <sys/stat.h> // To check for directory existence. |
| 17 | 17 |
| 18 #ifndef S_ISDIR // Not defined in stat.h on Windows. | 18 #ifndef S_ISDIR // Not defined in stat.h on Windows. |
| 19 #define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR) | 19 #define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR) |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 #include "gflags/gflags.h" | 22 #include "gflags/gflags.h" |
| 23 #include "webrtc/base/format_macros.h" | |
| 24 #include "webrtc/common_types.h" | 23 #include "webrtc/common_types.h" |
| 25 #include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h" | 24 #include "webrtc/modules/video_coding/codecs/test/packet_manipulator.h" |
| 26 #include "webrtc/modules/video_coding/codecs/test/stats.h" | 25 #include "webrtc/modules/video_coding/codecs/test/stats.h" |
| 27 #include "webrtc/modules/video_coding/codecs/test/videoprocessor.h" | 26 #include "webrtc/modules/video_coding/codecs/test/videoprocessor.h" |
| 28 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 27 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
| 29 #include "webrtc/modules/video_coding/include/video_coding.h" | 28 #include "webrtc/modules/video_coding/include/video_coding.h" |
| 29 #include "webrtc/rtc_base/format_macros.h" |
| 30 #include "webrtc/test/testsupport/frame_reader.h" | 30 #include "webrtc/test/testsupport/frame_reader.h" |
| 31 #include "webrtc/test/testsupport/frame_writer.h" | 31 #include "webrtc/test/testsupport/frame_writer.h" |
| 32 #include "webrtc/test/testsupport/metrics/video_metrics.h" | 32 #include "webrtc/test/testsupport/metrics/video_metrics.h" |
| 33 #include "webrtc/test/testsupport/packet_reader.h" | 33 #include "webrtc/test/testsupport/packet_reader.h" |
| 34 | 34 |
| 35 DEFINE_string(test_name, "Quality test", "The name of the test to run. "); | 35 DEFINE_string(test_name, "Quality test", "The name of the test to run. "); |
| 36 DEFINE_string(test_description, | 36 DEFINE_string(test_description, |
| 37 "", | 37 "", |
| 38 "A more detailed description about what " | 38 "A more detailed description about what " |
| 39 "the current test is about."); | 39 "the current test is about."); |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 } | 548 } |
| 549 if (FLAGS_python) { | 549 if (FLAGS_python) { |
| 550 PrintPythonOutput(config, stats, ssim_result, psnr_result); | 550 PrintPythonOutput(config, stats, ssim_result, psnr_result); |
| 551 } | 551 } |
| 552 delete processor; | 552 delete processor; |
| 553 delete encoder; | 553 delete encoder; |
| 554 delete decoder; | 554 delete decoder; |
| 555 Log("Quality test finished!"); | 555 Log("Quality test finished!"); |
| 556 return 0; | 556 return 0; |
| 557 } | 557 } |
| OLD | NEW |