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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Calling this method will close and finalize any current logs. | 85 // Calling this method will close and finalize any current logs. |
86 // Giving rtc::kInvalidPlatformFileValue in any position disables logging | 86 // Giving rtc::kInvalidPlatformFileValue in any position disables logging |
87 // for the corresponding stream. | 87 // for the corresponding stream. |
88 // If a frame to be written would make the log too large the write fails and | 88 // If a frame to be written would make the log too large the write fails and |
89 // the log is closed and finalized. A |byte_limit| of 0 means no limit. | 89 // the log is closed and finalized. A |byte_limit| of 0 means no limit. |
90 void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files, | 90 void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files, |
91 size_t byte_limit) override; | 91 size_t byte_limit) override; |
92 | 92 |
93 RtpStateMap StopPermanentlyAndGetRtpStates(); | 93 RtpStateMap StopPermanentlyAndGetRtpStates(); |
94 | 94 |
95 void SetTransportOverhead(int transport_overhead_per_packet); | 95 void SetTransportOverhead(size_t transport_overhead_per_packet); |
96 | 96 |
97 private: | 97 private: |
98 class ConstructionTask; | 98 class ConstructionTask; |
99 class DestructAndGetRtpStateTask; | 99 class DestructAndGetRtpStateTask; |
100 | 100 |
101 rtc::ThreadChecker thread_checker_; | 101 rtc::ThreadChecker thread_checker_; |
102 rtc::TaskQueue* const worker_queue_; | 102 rtc::TaskQueue* const worker_queue_; |
103 rtc::Event thread_sync_event_; | 103 rtc::Event thread_sync_event_; |
104 | 104 |
105 SendStatisticsProxy stats_proxy_; | 105 SendStatisticsProxy stats_proxy_; |
106 const VideoSendStream::Config config_; | 106 const VideoSendStream::Config config_; |
107 std::unique_ptr<VideoSendStreamImpl> send_stream_; | 107 std::unique_ptr<VideoSendStreamImpl> send_stream_; |
108 std::unique_ptr<ViEEncoder> vie_encoder_; | 108 std::unique_ptr<ViEEncoder> vie_encoder_; |
109 }; | 109 }; |
110 | 110 |
111 } // namespace internal | 111 } // namespace internal |
112 } // namespace webrtc | 112 } // namespace webrtc |
113 | 113 |
114 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 114 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
OLD | NEW |