OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class VCMJitterEstimator; | 43 class VCMJitterEstimator; |
44 | 44 |
45 namespace internal { | 45 namespace internal { |
46 | 46 |
47 class VideoReceiveStream : public webrtc::VideoReceiveStream, | 47 class VideoReceiveStream : public webrtc::VideoReceiveStream, |
48 public rtc::VideoSinkInterface<VideoFrame>, | 48 public rtc::VideoSinkInterface<VideoFrame>, |
49 public EncodedImageCallback, | 49 public EncodedImageCallback, |
50 public NackSender, | 50 public NackSender, |
51 public KeyFrameRequestSender, | 51 public KeyFrameRequestSender, |
52 public video_coding::OnCompleteFrameCallback, | 52 public video_coding::OnCompleteFrameCallback, |
53 public Syncable { | 53 public Syncable, |
| 54 public CallStatsObserver { |
54 public: | 55 public: |
55 VideoReceiveStream(RtpStreamReceiverControllerInterface* receiver_controller, | 56 VideoReceiveStream(RtpStreamReceiverControllerInterface* receiver_controller, |
56 int num_cpu_cores, | 57 int num_cpu_cores, |
57 PacketRouter* packet_router, | 58 PacketRouter* packet_router, |
58 VideoReceiveStream::Config config, | 59 VideoReceiveStream::Config config, |
59 ProcessThread* process_thread, | 60 ProcessThread* process_thread, |
60 CallStats* call_stats); | 61 CallStats* call_stats); |
61 ~VideoReceiveStream() override; | 62 ~VideoReceiveStream() override; |
62 | 63 |
63 const Config& config() const { return config_; } | 64 const Config& config() const { return config_; } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Implements NackSender. | 97 // Implements NackSender. |
97 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; | 98 void SendNack(const std::vector<uint16_t>& sequence_numbers) override; |
98 | 99 |
99 // Implements KeyFrameRequestSender. | 100 // Implements KeyFrameRequestSender. |
100 void RequestKeyFrame() override; | 101 void RequestKeyFrame() override; |
101 | 102 |
102 // Implements video_coding::OnCompleteFrameCallback. | 103 // Implements video_coding::OnCompleteFrameCallback. |
103 void OnCompleteFrame( | 104 void OnCompleteFrame( |
104 std::unique_ptr<video_coding::FrameObject> frame) override; | 105 std::unique_ptr<video_coding::FrameObject> frame) override; |
105 | 106 |
| 107 // Implements CallStatsObserver::OnRttUpdate |
| 108 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
| 109 |
106 // Implements Syncable. | 110 // Implements Syncable. |
107 int id() const override; | 111 int id() const override; |
108 rtc::Optional<Syncable::Info> GetInfo() const override; | 112 rtc::Optional<Syncable::Info> GetInfo() const override; |
109 uint32_t GetPlayoutTimestamp() const override; | 113 uint32_t GetPlayoutTimestamp() const override; |
110 void SetMinimumPlayoutDelay(int delay_ms) override; | 114 void SetMinimumPlayoutDelay(int delay_ms) override; |
111 | 115 |
112 private: | 116 private: |
113 static void DecodeThreadFunction(void* ptr); | 117 static void DecodeThreadFunction(void* ptr); |
114 bool Decode(); | 118 bool Decode(); |
115 | 119 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // a decoding error) we require a keyframe to restart the stream. | 157 // a decoding error) we require a keyframe to restart the stream. |
154 bool keyframe_required_ = true; | 158 bool keyframe_required_ = true; |
155 | 159 |
156 // If we have successfully decoded any frame. | 160 // If we have successfully decoded any frame. |
157 bool frame_decoded_ = false; | 161 bool frame_decoded_ = false; |
158 }; | 162 }; |
159 } // namespace internal | 163 } // namespace internal |
160 } // namespace webrtc | 164 } // namespace webrtc |
161 | 165 |
162 #endif // VIDEO_VIDEO_RECEIVE_STREAM_H_ | 166 #endif // VIDEO_VIDEO_RECEIVE_STREAM_H_ |
OLD | NEW |