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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Adapt Call to use the new RtpTransportReceive class. Created 3 years, 9 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void VideoReceiveStream::SignalNetworkState(NetworkState state) { 243 void VideoReceiveStream::SignalNetworkState(NetworkState state) {
244 RTC_DCHECK_RUN_ON(&worker_thread_checker_); 244 RTC_DCHECK_RUN_ON(&worker_thread_checker_);
245 rtp_stream_receiver_.SignalNetworkState(state); 245 rtp_stream_receiver_.SignalNetworkState(state);
246 } 246 }
247 247
248 248
249 bool VideoReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { 249 bool VideoReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) {
250 return rtp_stream_receiver_.DeliverRtcp(packet, length); 250 return rtp_stream_receiver_.DeliverRtcp(packet, length);
251 } 251 }
252 252
253 void VideoReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) { 253 bool VideoReceiveStream::OnRtpPacketReceive(RtpPacketReceived* packet) {
254 rtp_stream_receiver_.OnRtpPacket(packet); 254 return rtp_stream_receiver_.OnRtpPacketReceive(packet);
255 } 255 }
256 256
257 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet, 257 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet,
258 size_t length) { 258 size_t length) {
259 return rtp_stream_receiver_.OnRecoveredPacket(packet, length); 259 return rtp_stream_receiver_.OnRecoveredPacket(packet, length);
260 } 260 }
261 261
262 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { 262 void VideoReceiveStream::SetSync(Syncable* audio_syncable) {
263 RTC_DCHECK_RUN_ON(&worker_thread_checker_); 263 RTC_DCHECK_RUN_ON(&worker_thread_checker_);
264 rtp_stream_sync_.ConfigureSync(audio_syncable); 264 rtp_stream_sync_.ConfigureSync(audio_syncable);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 rtp_stream_receiver_.FrameDecoded(frame->picture_id); 498 rtp_stream_receiver_.FrameDecoded(frame->picture_id);
499 } else { 499 } else {
500 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs 500 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs
501 << " ms, requesting keyframe."; 501 << " ms, requesting keyframe.";
502 RequestKeyFrame(); 502 RequestKeyFrame();
503 } 503 }
504 return true; 504 return true;
505 } 505 }
506 } // namespace internal 506 } // namespace internal
507 } // namespace webrtc 507 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698