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