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