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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // webrtc::CpuOveruseObserver implementation. | 65 // webrtc::CpuOveruseObserver implementation. |
66 void OveruseDetected() override; | 66 void OveruseDetected() override; |
67 void NormalUsage() override; | 67 void NormalUsage() override; |
68 | 68 |
69 typedef std::map<uint32_t, RtpState> RtpStateMap; | 69 typedef std::map<uint32_t, RtpState> RtpStateMap; |
70 RtpStateMap GetRtpStates() const; | 70 RtpStateMap GetRtpStates() const; |
71 | 71 |
72 int64_t GetRtt() const; | 72 int64_t GetRtt() const; |
73 int GetPaddingNeededBps() const; | 73 int GetPaddingNeededBps() const; |
| 74 void OnSentPacket(int packet_id); |
74 | 75 |
75 private: | 76 private: |
76 bool SetSendCodec(VideoCodec video_codec); | 77 bool SetSendCodec(VideoCodec video_codec); |
77 void ConfigureSsrcs(); | 78 void ConfigureSsrcs(); |
78 | 79 |
79 SendStatisticsProxy stats_proxy_; | 80 SendStatisticsProxy stats_proxy_; |
80 TransportAdapter transport_adapter_; | 81 TransportAdapter transport_adapter_; |
81 EncodedFrameCallbackAdapter encoded_frame_proxy_; | 82 EncodedFrameCallbackAdapter encoded_frame_proxy_; |
82 const VideoSendStream::Config config_; | 83 const VideoSendStream::Config config_; |
83 VideoEncoderConfig encoder_config_; | 84 VideoEncoderConfig encoder_config_; |
(...skipping 10 matching lines...) Expand all Loading... |
94 | 95 |
95 // Used as a workaround to indicate that we should be using the configured | 96 // Used as a workaround to indicate that we should be using the configured |
96 // start bitrate initially, instead of the one reported by VideoEngine (which | 97 // start bitrate initially, instead of the one reported by VideoEngine (which |
97 // defaults to too high). | 98 // defaults to too high). |
98 bool use_config_bitrate_; | 99 bool use_config_bitrate_; |
99 }; | 100 }; |
100 } // namespace internal | 101 } // namespace internal |
101 } // namespace webrtc | 102 } // namespace webrtc |
102 | 103 |
103 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 104 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
OLD | NEW |