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

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

Issue 2407163002: Make sure VideoReceiveStream can be restarted (Closed)
Patch Set: 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
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // the log is closed and finalized. A |byte_limit| of 0 means no limit. 91 // the log is closed and finalized. A |byte_limit| of 0 means no limit.
92 void EnableEncodedFrameRecording(rtc::PlatformFile file, 92 void EnableEncodedFrameRecording(rtc::PlatformFile file,
93 size_t byte_limit) override; 93 size_t byte_limit) override;
94 94
95 private: 95 private:
96 static bool DecodeThreadFunction(void* ptr); 96 static bool DecodeThreadFunction(void* ptr);
97 void Decode(); 97 void Decode();
98 98
99 TransportAdapter transport_adapter_; 99 TransportAdapter transport_adapter_;
100 const VideoReceiveStream::Config config_; 100 const VideoReceiveStream::Config config_;
101 const int num_cpu_cores_;
101 ProcessThread* const process_thread_; 102 ProcessThread* const process_thread_;
102 Clock* const clock_; 103 Clock* const clock_;
103 104
104 rtc::PlatformThread decode_thread_; 105 rtc::PlatformThread decode_thread_;
105 106
106 CongestionController* const congestion_controller_; 107 CongestionController* const congestion_controller_;
107 CallStats* const call_stats_; 108 CallStats* const call_stats_;
108 109
109 vcm::VideoReceiver video_receiver_; 110 vcm::VideoReceiver video_receiver_;
110 std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>> incoming_video_stream_; 111 std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>> incoming_video_stream_;
111 ReceiveStatisticsProxy stats_proxy_; 112 ReceiveStatisticsProxy stats_proxy_;
112 RtpStreamReceiver rtp_stream_receiver_; 113 RtpStreamReceiver rtp_stream_receiver_;
113 std::unique_ptr<VideoStreamDecoder> video_stream_decoder_; 114 std::unique_ptr<VideoStreamDecoder> video_stream_decoder_;
114 RtpStreamsSynchronizer rtp_stream_sync_; 115 RtpStreamsSynchronizer rtp_stream_sync_;
115 116
116 rtc::CriticalSection ivf_writer_lock_; 117 rtc::CriticalSection ivf_writer_lock_;
117 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_); 118 std::unique_ptr<IvfFileWriter> ivf_writer_ GUARDED_BY(ivf_writer_lock_);
118 }; 119 };
119 } // namespace internal 120 } // namespace internal
120 } // namespace webrtc 121 } // namespace webrtc
121 122
122 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 123 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698