OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 const int8_t payload_type, | 251 const int8_t payload_type, |
252 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 252 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
253 const int frequency, | 253 const int frequency, |
254 const uint8_t channels, | 254 const uint8_t channels, |
255 const uint32_t rate); | 255 const uint32_t rate); |
256 virtual void OnIncomingSSRCChanged(const int32_t id, | 256 virtual void OnIncomingSSRCChanged(const int32_t id, |
257 const uint32_t ssrc); | 257 const uint32_t ssrc); |
258 virtual void OnIncomingCSRCChanged(const int32_t id, | 258 virtual void OnIncomingCSRCChanged(const int32_t id, |
259 const uint32_t CSRC, | 259 const uint32_t CSRC, |
260 const bool added); | 260 const bool added); |
261 virtual void ResetStatistics(uint32_t); | |
262 | 261 |
263 int32_t SetRemoteSSRCType(const StreamType usage, const uint32_t SSRC); | 262 int32_t SetRemoteSSRCType(const StreamType usage, const uint32_t SSRC); |
264 | 263 |
265 int32_t StartSend(); | 264 int32_t StartSend(); |
266 int32_t StopSend(); | 265 int32_t StopSend(); |
267 bool Sending(); | 266 bool Sending(); |
268 int32_t StartReceive(); | 267 int32_t StartReceive(); |
269 int32_t StopReceive(); | 268 int32_t StopReceive(); |
270 | 269 |
271 int32_t ReceivedRTPPacket(const void* rtp_packet, | 270 int32_t ReceivedRTPPacket(const void* rtp_packet, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 367 |
369 int32_t ProcessNACKRequest(const bool enable); | 368 int32_t ProcessNACKRequest(const bool enable); |
370 int32_t ProcessFECRequest(const bool enable, | 369 int32_t ProcessFECRequest(const bool enable, |
371 const unsigned char payload_typeRED, | 370 const unsigned char payload_typeRED, |
372 const unsigned char payload_typeFEC); | 371 const unsigned char payload_typeFEC); |
373 // Compute NACK list parameters for the buffering mode. | 372 // Compute NACK list parameters for the buffering mode. |
374 int GetRequiredNackListSize(int target_delay_ms); | 373 int GetRequiredNackListSize(int target_delay_ms); |
375 void SetRtxSendStatus(bool enable); | 374 void SetRtxSendStatus(bool enable); |
376 | 375 |
377 void UpdateHistograms(); | 376 void UpdateHistograms(); |
378 void UpdateHistogramsAtStopSend(); | |
379 | 377 |
380 // ViEChannel exposes methods that allow to modify observers and callbacks | 378 // ViEChannel exposes methods that allow to modify observers and callbacks |
381 // to be modified. Such an API-style is cumbersome to implement and maintain | 379 // to be modified. Such an API-style is cumbersome to implement and maintain |
382 // at all the levels when comparing to only setting them at construction. As | 380 // at all the levels when comparing to only setting them at construction. As |
383 // so this class instantiates its children with a wrapper that can be modified | 381 // so this class instantiates its children with a wrapper that can be modified |
384 // at a later time. | 382 // at a later time. |
385 template <class T> | 383 template <class T> |
386 class RegisterableCallback : public T { | 384 class RegisterableCallback : public T { |
387 public: | 385 public: |
388 RegisterableCallback() | 386 RegisterableCallback() |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 int nack_history_size_sender_; | 519 int nack_history_size_sender_; |
522 int max_nack_reordering_threshold_; | 520 int max_nack_reordering_threshold_; |
523 I420FrameCallback* pre_render_callback_; | 521 I420FrameCallback* pre_render_callback_; |
524 | 522 |
525 rtc::scoped_ptr<ReportBlockStats> report_block_stats_sender_; | 523 rtc::scoped_ptr<ReportBlockStats> report_block_stats_sender_; |
526 }; | 524 }; |
527 | 525 |
528 } // namespace webrtc | 526 } // namespace webrtc |
529 | 527 |
530 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ | 528 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ |
OLD | NEW |