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

Side by Side Diff: webrtc/modules/video_coding/receiver.cc

Issue 2094183004: Remove unused parameters from VCMReceiver::InsertPacket(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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) 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
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 int64_t VCMReceiver::TimeUntilNextProcess() { 105 int64_t VCMReceiver::TimeUntilNextProcess() {
106 return jitter_buffer_.TimeUntilNextProcess(); 106 return jitter_buffer_.TimeUntilNextProcess();
107 } 107 }
108 108
109 void VCMReceiver::Process() { 109 void VCMReceiver::Process() {
110 jitter_buffer_.Process(); 110 jitter_buffer_.Process();
111 } 111 }
112 112
113 int32_t VCMReceiver::InsertPacket(const VCMPacket& packet, 113 int32_t VCMReceiver::InsertPacket(const VCMPacket& packet) {
114 uint16_t frame_width,
115 uint16_t frame_height) {
116 // Insert the packet into the jitter buffer. The packet can either be empty or 114 // Insert the packet into the jitter buffer. The packet can either be empty or
117 // contain media at this point. 115 // contain media at this point.
118 bool retransmitted = false; 116 bool retransmitted = false;
119 const VCMFrameBufferEnum ret = 117 const VCMFrameBufferEnum ret =
120 jitter_buffer_.InsertPacket(packet, &retransmitted); 118 jitter_buffer_.InsertPacket(packet, &retransmitted);
121 if (ret == kOldPacket) { 119 if (ret == kOldPacket) {
122 return VCM_OK; 120 return VCM_OK;
123 } else if (ret == kFlushIndicator) { 121 } else if (ret == kFlushIndicator) {
124 return VCM_FLUSH_INDICATOR; 122 return VCM_FLUSH_INDICATOR;
125 } else if (ret < 0) { 123 } else if (ret < 0) {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 timing_->set_min_playout_delay(desired_delay_ms); 294 timing_->set_min_playout_delay(desired_delay_ms);
297 return 0; 295 return 0;
298 } 296 }
299 297
300 void VCMReceiver::RegisterStatsCallback( 298 void VCMReceiver::RegisterStatsCallback(
301 VCMReceiveStatisticsCallback* callback) { 299 VCMReceiveStatisticsCallback* callback) {
302 jitter_buffer_.RegisterStatsCallback(callback); 300 jitter_buffer_.RegisterStatsCallback(callback);
303 } 301 }
304 302
305 } // namespace webrtc 303 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/receiver.h ('k') | webrtc/modules/video_coding/receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698