OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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_coding/utility/quality_scaler.h" | 11 #include "webrtc/modules/video_coding/utility/quality_scaler.h" |
12 | 12 |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "webrtc/test/gtest.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 namespace { | 16 namespace { |
17 static const int kNumSeconds = 10; | 17 static const int kNumSeconds = 10; |
18 static const int kWidth = 1920; | 18 static const int kWidth = 1920; |
19 static const int kHeight = 1080; | 19 static const int kHeight = 1080; |
20 static const int kFramerate = 30; | 20 static const int kFramerate = 30; |
21 static const int kLowQp = 15; | 21 static const int kLowQp = 15; |
22 static const int kNormalQp = 30; | 22 static const int kNormalQp = 30; |
23 static const int kLowQpThreshold = 18; | 23 static const int kLowQpThreshold = 18; |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 TEST_F(QualityScalerTest, DownscalesFrom1280x720To320x180) { | 378 TEST_F(QualityScalerTest, DownscalesFrom1280x720To320x180) { |
379 DownscaleEndsAt(1280, 720, 320, 180); | 379 DownscaleEndsAt(1280, 720, 320, 180); |
380 } | 380 } |
381 | 381 |
382 TEST_F(QualityScalerTest, DoesntDownscaleInitialQvga) { | 382 TEST_F(QualityScalerTest, DoesntDownscaleInitialQvga) { |
383 DownscaleEndsAt(320, 180, 320, 180); | 383 DownscaleEndsAt(320, 180, 320, 180); |
384 } | 384 } |
385 | 385 |
386 } // namespace webrtc | 386 } // namespace webrtc |
OLD | NEW |