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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 int32_t SetSendCodec(const VideoCodec& video_codec, bool new_stream = true); | 87 int32_t SetSendCodec(const VideoCodec& video_codec, bool new_stream = true); |
88 int32_t SetReceiveCodec(const VideoCodec& video_codec); | 88 int32_t SetReceiveCodec(const VideoCodec& video_codec); |
89 // Registers an external decoder. |buffered_rendering| means that the decoder | 89 // Registers an external decoder. |buffered_rendering| means that the decoder |
90 // will render frames after decoding according to the render timestamp | 90 // will render frames after decoding according to the render timestamp |
91 // provided by the video coding module. |render_delay| indicates the time | 91 // provided by the video coding module. |render_delay| indicates the time |
92 // needed to decode and render a frame. | 92 // needed to decode and render a frame. |
93 int32_t RegisterExternalDecoder(const uint8_t pl_type, | 93 int32_t RegisterExternalDecoder(const uint8_t pl_type, |
94 VideoDecoder* decoder, | 94 VideoDecoder* decoder, |
95 bool buffered_rendering, | 95 bool buffered_rendering, |
96 int32_t render_delay); | 96 int32_t render_delay); |
97 int32_t DeRegisterExternalDecoder(const uint8_t pl_type); | |
98 int32_t ReceiveCodecStatistics(uint32_t* num_key_frames, | 97 int32_t ReceiveCodecStatistics(uint32_t* num_key_frames, |
99 uint32_t* num_delta_frames); | 98 uint32_t* num_delta_frames); |
100 uint32_t DiscardedPackets() const; | 99 uint32_t DiscardedPackets() const; |
101 | 100 |
102 // Returns the estimated delay in milliseconds. | 101 // Returns the estimated delay in milliseconds. |
103 int ReceiveDelay() const; | 102 int ReceiveDelay() const; |
104 | 103 |
105 void SetRTCPMode(const RtcpMode rtcp_mode); | 104 void SetRTCPMode(const RtcpMode rtcp_mode); |
106 void SetProtectionMode(bool enable_nack, | 105 void SetProtectionMode(bool enable_nack, |
107 bool enable_fec, | 106 bool enable_fec, |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 size_t num_rtts_ GUARDED_BY(crit_); | 448 size_t num_rtts_ GUARDED_BY(crit_); |
450 | 449 |
451 // RtpRtcp modules, declared last as they use other members on construction. | 450 // RtpRtcp modules, declared last as they use other members on construction. |
452 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 451 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
453 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); | 452 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); |
454 }; | 453 }; |
455 | 454 |
456 } // namespace webrtc | 455 } // namespace webrtc |
457 | 456 |
458 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ | 457 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ |
OLD | NEW |