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

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

Issue 1325153009: Add histogram for percentage of sent frames that are limited in resolution due to quality. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: removed bool Created 5 years, 2 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
(...skipping 19 matching lines...) Expand all
30 bool use_framerate_reduction); 30 bool use_framerate_reduction);
31 void SetMinResolution(int min_width, int min_height); 31 void SetMinResolution(int min_width, int min_height);
32 void ReportFramerate(int framerate); 32 void ReportFramerate(int framerate);
33 void ReportQP(int qp); 33 void ReportQP(int qp);
34 void ReportDroppedFrame(); 34 void ReportDroppedFrame();
35 void Reset(int framerate, int bitrate, int width, int height); 35 void Reset(int framerate, int bitrate, int width, int height);
36 void OnEncodeFrame(const VideoFrame& frame); 36 void OnEncodeFrame(const VideoFrame& frame);
37 Resolution GetScaledResolution() const; 37 Resolution GetScaledResolution() const;
38 const VideoFrame& GetScaledFrame(const VideoFrame& frame); 38 const VideoFrame& GetScaledFrame(const VideoFrame& frame);
39 int GetTargetFramerate() const; 39 int GetTargetFramerate() const;
40 int downscale_shift() const { return downscale_shift_; }
40 41
41 private: 42 private:
42 void AdjustScale(bool up); 43 void AdjustScale(bool up);
43 void ClearSamples(); 44 void ClearSamples();
44 45
45 Scaler scaler_; 46 Scaler scaler_;
46 VideoFrame scaled_frame_; 47 VideoFrame scaled_frame_;
47 48
48 size_t num_samples_; 49 size_t num_samples_;
49 int framerate_; 50 int framerate_;
50 int target_framerate_; 51 int target_framerate_;
51 int low_qp_threshold_; 52 int low_qp_threshold_;
52 int high_qp_threshold_; 53 int high_qp_threshold_;
53 MovingAverage<int> framedrop_percent_; 54 MovingAverage<int> framedrop_percent_;
54 MovingAverage<int> average_qp_; 55 MovingAverage<int> average_qp_;
55 Resolution res_; 56 Resolution res_;
56 57
57 int downscale_shift_; 58 int downscale_shift_;
58 int framerate_down_; 59 int framerate_down_;
59 bool use_framerate_reduction_; 60 bool use_framerate_reduction_;
60 int min_width_; 61 int min_width_;
61 int min_height_; 62 int min_height_;
62 }; 63 };
63 64
64 } // namespace webrtc 65 } // namespace webrtc
65 66
66 #endif // WEBRTC_MODULES_VIDEO_CODING_UTILITY_QUALITY_SCALER_H_ 67 #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/video/send_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698