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

Side by Side Diff: webrtc/modules/video_coding/frame_buffer2.h

Issue 2980413002: Fix the video buffer size should take rtt into consideration (Closed)
Patch Set: MODIFY to follow coding guidelines Created 3 years, 4 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
« no previous file with comments | « AUTHORS ('k') | webrtc/modules/video_coding/frame_buffer2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void SetProtectionMode(VCMVideoProtection mode); 66 void SetProtectionMode(VCMVideoProtection mode);
67 67
68 // Start the frame buffer, has no effect if the frame buffer is started. 68 // Start the frame buffer, has no effect if the frame buffer is started.
69 // The frame buffer is started upon construction. 69 // The frame buffer is started upon construction.
70 void Start(); 70 void Start();
71 71
72 // Stop the frame buffer, causing any sleeping thread in NextFrame to 72 // Stop the frame buffer, causing any sleeping thread in NextFrame to
73 // return immediately. 73 // return immediately.
74 void Stop(); 74 void Stop();
75 75
76 // Updates the RTT for jitter buffer estimation.
77 void UpdateRtt(int64_t rtt_ms);
78
76 private: 79 private:
77 struct FrameKey { 80 struct FrameKey {
78 FrameKey() : picture_id(0), spatial_layer(0) {} 81 FrameKey() : picture_id(0), spatial_layer(0) {}
79 FrameKey(uint16_t picture_id, uint8_t spatial_layer) 82 FrameKey(uint16_t picture_id, uint8_t spatial_layer)
80 : picture_id(picture_id), spatial_layer(spatial_layer) {} 83 : picture_id(picture_id), spatial_layer(spatial_layer) {}
81 84
82 bool operator<(const FrameKey& rhs) const { 85 bool operator<(const FrameKey& rhs) const {
83 if (picture_id == rhs.picture_id) 86 if (picture_id == rhs.picture_id)
84 return spatial_layer < rhs.spatial_layer; 87 return spatial_layer < rhs.spatial_layer;
85 return AheadOf(rhs.picture_id, picture_id); 88 return AheadOf(rhs.picture_id, picture_id);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 VCMReceiveStatisticsCallback* const stats_callback_; 182 VCMReceiveStatisticsCallback* const stats_callback_;
180 int64_t last_log_non_decoded_ms_ GUARDED_BY(crit_); 183 int64_t last_log_non_decoded_ms_ GUARDED_BY(crit_);
181 184
182 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBuffer); 185 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBuffer);
183 }; 186 };
184 187
185 } // namespace video_coding 188 } // namespace video_coding
186 } // namespace webrtc 189 } // namespace webrtc
187 190
188 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER2_H_ 191 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER2_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | webrtc/modules/video_coding/frame_buffer2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698