Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 size_t max_rtp_streams, | 78 size_t max_rtp_streams, |
| 79 bool sender); | 79 bool sender); |
| 80 ~ViEChannel(); | 80 ~ViEChannel(); |
| 81 | 81 |
| 82 int32_t Init(); | 82 int32_t Init(); |
| 83 | 83 |
| 84 // Sets the encoder to use for the channel. |new_stream| indicates the encoder | 84 // Sets the encoder to use for the channel. |new_stream| indicates the encoder |
| 85 // type has changed and we should start a new RTP stream. | 85 // type has changed and we should start a new RTP stream. |
| 86 int32_t SetSendCodec(const VideoCodec& video_codec, bool new_stream = true); | 86 int32_t SetSendCodec(const VideoCodec& video_codec, bool new_stream = true); |
| 87 int32_t SetReceiveCodec(const VideoCodec& video_codec); | 87 int32_t SetReceiveCodec(const VideoCodec& video_codec); |
| 88 // Registers an external decoder. |buffered_rendering| means that the decoder | 88 // Registers an external decoder. |
| 89 // will render frames after decoding according to the render timestamp | |
| 90 // provided by the video coding module. |render_delay| indicates the time | |
| 91 // needed to decode and render a frame. | |
| 92 int32_t RegisterExternalDecoder(const uint8_t pl_type, | 89 int32_t RegisterExternalDecoder(const uint8_t pl_type, |
| 93 VideoDecoder* decoder, | 90 VideoDecoder* decoder); |
|
pbos-webrtc
2015/11/05 17:47:30
git cl format, and remove the const please :)
| |
| 94 bool buffered_rendering, | |
| 95 int32_t render_delay); | |
| 96 int32_t DeRegisterExternalDecoder(const uint8_t pl_type); | 91 int32_t DeRegisterExternalDecoder(const uint8_t pl_type); |
| 97 int32_t ReceiveCodecStatistics(uint32_t* num_key_frames, | 92 int32_t ReceiveCodecStatistics(uint32_t* num_key_frames, |
| 98 uint32_t* num_delta_frames); | 93 uint32_t* num_delta_frames); |
| 99 uint32_t DiscardedPackets() const; | 94 uint32_t DiscardedPackets() const; |
| 100 | 95 |
| 101 // Returns the estimated delay in milliseconds. | 96 // Returns the estimated delay in milliseconds. |
| 102 int ReceiveDelay() const; | 97 int ReceiveDelay() const; |
| 103 | 98 |
| 99 void SetExpectedRenderDelay(int32_t delay_ms); | |
| 100 | |
| 104 void SetRTCPMode(const RtcpMode rtcp_mode); | 101 void SetRTCPMode(const RtcpMode rtcp_mode); |
| 105 void SetProtectionMode(bool enable_nack, | 102 void SetProtectionMode(bool enable_nack, |
| 106 bool enable_fec, | 103 bool enable_fec, |
| 107 int payload_type_red, | 104 int payload_type_red, |
| 108 int payload_type_fec); | 105 int payload_type_fec); |
| 109 bool IsSendingFecEnabled(); | 106 bool IsSendingFecEnabled(); |
| 110 int SetSenderBufferingMode(int target_delay_ms); | 107 int SetSenderBufferingMode(int target_delay_ms); |
| 111 int SetReceiverBufferingMode(int target_delay_ms); | 108 int SetReceiverBufferingMode(int target_delay_ms); |
| 112 int SetSendTimestampOffsetStatus(bool enable, int id); | 109 int SetSendTimestampOffsetStatus(bool enable, int id); |
| 113 int SetReceiveTimestampOffsetStatus(bool enable, int id); | 110 int SetReceiveTimestampOffsetStatus(bool enable, int id); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 449 size_t num_rtts_ GUARDED_BY(crit_); | 446 size_t num_rtts_ GUARDED_BY(crit_); |
| 450 | 447 |
| 451 // RtpRtcp modules, declared last as they use other members on construction. | 448 // RtpRtcp modules, declared last as they use other members on construction. |
| 452 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 449 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
| 453 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); | 450 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); |
| 454 }; | 451 }; |
| 455 | 452 |
| 456 } // namespace webrtc | 453 } // namespace webrtc |
| 457 | 454 |
| 458 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ | 455 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ |
| OLD | NEW |