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

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

Issue 2390823009: Add path for recovered packets from internal::Call to RtpStreamReceiver. (Closed)
Patch Set: holmer@ feedback 1. Created 4 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) 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
11 #ifndef WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
12 #define WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 12 #define WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/call.h" 17 #include "webrtc/call.h"
18 #include "webrtc/call/transport_adapter.h" 18 #include "webrtc/call/transport_adapter.h"
19 #include "webrtc/common_video/include/incoming_video_stream.h" 19 #include "webrtc/common_video/include/incoming_video_stream.h"
20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
21 #include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
21 #include "webrtc/modules/video_coding/video_coding_impl.h" 22 #include "webrtc/modules/video_coding/video_coding_impl.h"
22 #include "webrtc/system_wrappers/include/clock.h" 23 #include "webrtc/system_wrappers/include/clock.h"
23 #include "webrtc/video/receive_statistics_proxy.h" 24 #include "webrtc/video/receive_statistics_proxy.h"
24 #include "webrtc/video/rtp_stream_receiver.h" 25 #include "webrtc/video/rtp_stream_receiver.h"
25 #include "webrtc/video/rtp_streams_synchronizer.h" 26 #include "webrtc/video/rtp_streams_synchronizer.h"
26 #include "webrtc/video/video_stream_decoder.h" 27 #include "webrtc/video/video_stream_decoder.h"
27 #include "webrtc/video_receive_stream.h" 28 #include "webrtc/video_receive_stream.h"
28 29
29 namespace webrtc { 30 namespace webrtc {
30 31
(...skipping 21 matching lines...) Expand all
52 CallStats* call_stats, 53 CallStats* call_stats,
53 VieRemb* remb); 54 VieRemb* remb);
54 ~VideoReceiveStream() override; 55 ~VideoReceiveStream() override;
55 56
56 void SignalNetworkState(NetworkState state); 57 void SignalNetworkState(NetworkState state);
57 bool DeliverRtcp(const uint8_t* packet, size_t length); 58 bool DeliverRtcp(const uint8_t* packet, size_t length);
58 bool DeliverRtp(const uint8_t* packet, 59 bool DeliverRtp(const uint8_t* packet,
59 size_t length, 60 size_t length,
60 const PacketTime& packet_time); 61 const PacketTime& packet_time);
61 62
63 bool OnRecoveredPacket(const uint8_t* packet, size_t length);
64
62 // webrtc::VideoReceiveStream implementation. 65 // webrtc::VideoReceiveStream implementation.
63 void Start() override; 66 void Start() override;
64 void Stop() override; 67 void Stop() override;
65 68
66 webrtc::VideoReceiveStream::Stats GetStats() const override; 69 webrtc::VideoReceiveStream::Stats GetStats() const override;
67 70
68 // Overrides rtc::VideoSinkInterface<VideoFrame>. 71 // Overrides rtc::VideoSinkInterface<VideoFrame>.
69 void OnFrame(const VideoFrame& video_frame) override; 72 void OnFrame(const VideoFrame& video_frame) override;
70 73
71 // Overrides EncodedImageCallback. 74 // Overrides EncodedImageCallback.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::unique_ptr<VideoStreamDecoder> video_stream_decoder_; 116 std::unique_ptr<VideoStreamDecoder> video_stream_decoder_;
114 RtpStreamsSynchronizer rtp_stream_sync_; 117 RtpStreamsSynchronizer rtp_stream_sync_;
115 118
116 rtc::CriticalSection ivf_writer_lock_; 119 rtc::CriticalSection ivf_writer_lock_;
117 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_); 120 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_);
118 }; 121 };
119 } // namespace internal 122 } // namespace internal
120 } // namespace webrtc 123 } // namespace webrtc
121 124
122 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 125 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/flexfec_receiver.h ('k') | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698