OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #include <string.h> | 10 #include <string.h> |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <cstring> | 12 #include <cstring> |
13 #include <iostream> | 13 #include <iostream> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
| 16 #include "webrtc/rtc_tools/frame_analyzer/reference_less_video_analysis_lib.h" |
16 #include "webrtc/test/gtest.h" | 17 #include "webrtc/test/gtest.h" |
17 #include "webrtc/test/testsupport/fileutils.h" | 18 #include "webrtc/test/testsupport/fileutils.h" |
18 #include "webrtc/tools/frame_analyzer/reference_less_video_analysis_lib.h" | |
19 | 19 |
20 class ReferenceLessVideoAnalysisTest : public ::testing::Test { | 20 class ReferenceLessVideoAnalysisTest : public ::testing::Test { |
21 public: | 21 public: |
22 void SetUp() override { | 22 void SetUp() override { |
23 video_file = | 23 video_file = |
24 webrtc::test::ResourcePath("reference_less_video_test_file", "y4m"); | 24 webrtc::test::ResourcePath("reference_less_video_test_file", "y4m"); |
25 } | 25 } |
26 std::string video_file; | 26 std::string video_file; |
27 std::vector<double> psnr_per_frame; | 27 std::vector<double> psnr_per_frame; |
28 std::vector<double> ssim_per_frame; | 28 std::vector<double> ssim_per_frame; |
(...skipping 30 matching lines...) Expand all Loading... |
59 TEST_F(ReferenceLessVideoAnalysisTest, CheckFileExtension) { | 59 TEST_F(ReferenceLessVideoAnalysisTest, CheckFileExtension) { |
60 EXPECT_TRUE(check_file_extension(video_file)); | 60 EXPECT_TRUE(check_file_extension(video_file)); |
61 std::string txt_file = | 61 std::string txt_file = |
62 webrtc::test::ResourcePath("video_quality_analysis_frame", "txt"); | 62 webrtc::test::ResourcePath("video_quality_analysis_frame", "txt"); |
63 EXPECT_FALSE(check_file_extension(txt_file)); | 63 EXPECT_FALSE(check_file_extension(txt_file)); |
64 } | 64 } |
65 | 65 |
66 | 66 |
67 | 67 |
68 | 68 |
OLD | NEW |