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 /* | 11 /* |
12 * This file includes unit tests the QmResolution class | 12 * This file includes unit tests the QmResolution class |
13 * In particular, for the selection of spatial and/or temporal down-sampling. | 13 * In particular, for the selection of spatial and/or temporal down-sampling. |
14 */ | 14 */ |
15 | 15 |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 #include "webrtc/modules/interface/module_common_types.h" | 18 #include "webrtc/modules/include/module_common_types.h" |
19 #include "webrtc/modules/video_coding/main/source/qm_select.h" | 19 #include "webrtc/modules/video_coding/main/source/qm_select.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // Representative values of content metrics for: low/high/medium(default) state, | 23 // Representative values of content metrics for: low/high/medium(default) state, |
24 // based on parameters settings in qm_select_data.h. | 24 // based on parameters settings in qm_select_data.h. |
25 const float kSpatialLow = 0.01f; | 25 const float kSpatialLow = 0.01f; |
26 const float kSpatialMedium = 0.03f; | 26 const float kSpatialMedium = 0.03f; |
27 const float kSpatialHigh = 0.1f; | 27 const float kSpatialHigh = 0.1f; |
28 const float kTemporalLow = 0.01f; | 28 const float kTemporalLow = 0.01f; |
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 qm_scale->temporal_fact == fac_temp && | 1302 qm_scale->temporal_fact == fac_temp && |
1303 qm_scale->codec_width == new_width && | 1303 qm_scale->codec_width == new_width && |
1304 qm_scale->codec_height == new_height && | 1304 qm_scale->codec_height == new_height && |
1305 qm_scale->frame_rate == new_frame_rate) { | 1305 qm_scale->frame_rate == new_frame_rate) { |
1306 return true; | 1306 return true; |
1307 } else { | 1307 } else { |
1308 return false; | 1308 return false; |
1309 } | 1309 } |
1310 } | 1310 } |
1311 } // namespace webrtc | 1311 } // namespace webrtc |
OLD | NEW |