Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: webrtc/modules/video_coding/utility/quality_scaler.h

Issue 1855393005: Remove QualityScaler kDefaultLowQpDenominator. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_
13 13
14 #include "webrtc/common_video/libyuv/include/scaler.h" 14 #include "webrtc/common_video/libyuv/include/scaler.h"
15 #include "webrtc/modules/video_coding/utility/moving_average.h" 15 #include "webrtc/modules/video_coding/utility/moving_average.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 class QualityScaler { 18 class QualityScaler {
19 public: 19 public:
20 static const int kDefaultLowQpDenominator;
21 struct Resolution { 20 struct Resolution {
22 int width; 21 int width;
23 int height; 22 int height;
24 }; 23 };
25 24
26 QualityScaler(); 25 QualityScaler();
27 void Init(int low_qp_threshold, 26 void Init(int low_qp_threshold,
28 int high_qp_threshold, 27 int high_qp_threshold,
29 bool use_framerate_reduction, 28 bool use_framerate_reduction,
30 int initial_bitrate_kbps, 29 int initial_bitrate_kbps,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Resolution res_; 63 Resolution res_;
65 64
66 int downscale_shift_; 65 int downscale_shift_;
67 int framerate_down_; 66 int framerate_down_;
68 bool use_framerate_reduction_; 67 bool use_framerate_reduction_;
69 }; 68 };
70 69
71 } // namespace webrtc 70 } // namespace webrtc
72 71
73 #endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_ 72 #endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | webrtc/modules/video_coding/utility/quality_scaler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698