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

Side by Side Diff: video/video_receive_stream.h

Issue 3016633002: Reland of Fix the video buffer size should take rtt into consideration (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « modules/video_coding/frame_buffer2.cc ('k') | video/video_receive_stream.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) 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
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
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
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_
OLDNEW
« no previous file with comments | « modules/video_coding/frame_buffer2.cc ('k') | video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698