| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 * | 574 * |
| 575 * return -1 on failure else 0 | 575 * return -1 on failure else 0 |
| 576 */ | 576 */ |
| 577 virtual int32_t SetSendREDPayloadType(int8_t payloadType) = 0; | 577 virtual int32_t SetSendREDPayloadType(int8_t payloadType) = 0; |
| 578 | 578 |
| 579 /* | 579 /* |
| 580 * Get payload type for Redundant Audio Data RFC 2198 | 580 * Get payload type for Redundant Audio Data RFC 2198 |
| 581 * | 581 * |
| 582 * return -1 on failure else 0 | 582 * return -1 on failure else 0 |
| 583 */ | 583 */ |
| 584 virtual int32_t SendREDPayloadType( | 584 // DEPRECATED. Use SendREDPayloadType below that takes output parameter |
| 585 int8_t& payloadType) const = 0; | 585 // by pointer instead of by reference. |
| 586 | 586 // TODO(danilchap): Remove this when all callers have been updated. |
| 587 int32_t SendREDPayloadType(int8_t& payloadType) const { // NOLINT |
| 588 return SendREDPayloadType(&payloadType); |
| 589 } |
| 590 virtual int32_t SendREDPayloadType(int8_t* payload_type) const = 0; |
| 587 /* | 591 /* |
| 588 * Store the audio level in dBov for header-extension-for-audio-level- | 592 * Store the audio level in dBov for header-extension-for-audio-level- |
| 589 * indication. | 593 * indication. |
| 590 * This API shall be called before transmision of an RTP packet to ensure | 594 * This API shall be called before transmision of an RTP packet to ensure |
| 591 * that the |level| part of the extended RTP header is updated. | 595 * that the |level| part of the extended RTP header is updated. |
| 592 * | 596 * |
| 593 * return -1 on failure else 0. | 597 * return -1 on failure else 0. |
| 594 */ | 598 */ |
| 595 virtual int32_t SetAudioLevel(uint8_t level_dBov) = 0; | 599 virtual int32_t SetAudioLevel(uint8_t level_dBov) = 0; |
| 596 | 600 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 608 /* | 612 /* |
| 609 * Turn on/off generic FEC | 613 * Turn on/off generic FEC |
| 610 */ | 614 */ |
| 611 virtual void SetGenericFECStatus(bool enable, | 615 virtual void SetGenericFECStatus(bool enable, |
| 612 uint8_t payload_type_red, | 616 uint8_t payload_type_red, |
| 613 uint8_t payload_type_fec) = 0; | 617 uint8_t payload_type_fec) = 0; |
| 614 | 618 |
| 615 /* | 619 /* |
| 616 * Get generic FEC setting | 620 * Get generic FEC setting |
| 617 */ | 621 */ |
| 618 virtual void GenericFECStatus(bool& enable, | 622 // DEPRECATED. Use GenericFECStatus below that takes output parameters |
| 619 uint8_t& payloadTypeRED, | 623 // by pointers instead of by references. |
| 620 uint8_t& payloadTypeFEC) = 0; | 624 // TODO(danilchap): Remove this when all callers have been updated. |
| 621 | 625 void GenericFECStatus(bool& enable, // NOLINT |
| 626 uint8_t& payloadTypeRED, // NOLINT |
| 627 uint8_t& payloadTypeFEC) { // NOLINT |
| 628 GenericFECStatus(&enable, &payloadTypeRED, &payloadTypeFEC); |
| 629 } |
| 630 virtual void GenericFECStatus(bool* enable, |
| 631 uint8_t* payload_type_red, |
| 632 uint8_t* payload_type_fec) = 0; |
| 622 | 633 |
| 623 virtual int32_t SetFecParameters( | 634 virtual int32_t SetFecParameters( |
| 624 const FecProtectionParams* delta_params, | 635 const FecProtectionParams* delta_params, |
| 625 const FecProtectionParams* key_params) = 0; | 636 const FecProtectionParams* key_params) = 0; |
| 626 | 637 |
| 627 /* | 638 /* |
| 628 * Set method for requestion a new key frame | 639 * Set method for requestion a new key frame |
| 629 * | 640 * |
| 630 * return -1 on failure else 0 | 641 * return -1 on failure else 0 |
| 631 */ | 642 */ |
| 632 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; | 643 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; |
| 633 | 644 |
| 634 /* | 645 /* |
| 635 * send a request for a keyframe | 646 * send a request for a keyframe |
| 636 * | 647 * |
| 637 * return -1 on failure else 0 | 648 * return -1 on failure else 0 |
| 638 */ | 649 */ |
| 639 virtual int32_t RequestKeyFrame() = 0; | 650 virtual int32_t RequestKeyFrame() = 0; |
| 640 }; | 651 }; |
| 641 } // namespace webrtc | 652 } // namespace webrtc |
| 642 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 653 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
| OLD | NEW |