1 /* 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_ISAC_MACROS_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_ISAC_MACROS_H_ 13 14 #include "webrtc/engine_configurations.h" 15 16 namespace webrtc { 17 18 namespace acm2 { 19 20 #ifdef WEBRTC_CODEC_ISAC 21 #define ACM_ISAC_CREATE WebRtcIsac_Create 22 #define ACM_ISAC_FREE WebRtcIsac_Free 23 #define ACM_ISAC_ENCODERINIT WebRtcIsac_EncoderInit 24 #define ACM_ISAC_ENCODE WebRtcIsac_Encode 25 #define ACM_ISAC_DECODERINIT WebRtcIsac_DecoderInit 26 #define ACM_ISAC_DECODE_BWE WebRtcIsac_UpdateBwEstimate 27 #define ACM_ISAC_DECODE_B WebRtcIsac_Decode 28 #define ACM_ISAC_DECODEPLC WebRtcIsac_DecodePlc 29 #define ACM_ISAC_CONTROL WebRtcIsac_Control 30 #define ACM_ISAC_CONTROL_BWE WebRtcIsac_ControlBwe 31 #define ACM_ISAC_GETFRAMELEN WebRtcIsac_ReadFrameLen 32 #define ACM_ISAC_GETERRORCODE WebRtcIsac_GetErrorCode 33 #define ACM_ISAC_GETSENDBITRATE WebRtcIsac_GetUplinkBw 34 #define ACM_ISAC_SETMAXPAYLOADSIZE WebRtcIsac_SetMaxPayloadSize 35 #define ACM_ISAC_SETMAXRATE WebRtcIsac_SetMaxRate 36 #define ACM_ISAC_GETNEWBITSTREAM WebRtcIsac_GetNewBitStream 37 #define ACM_ISAC_GETSENDBWE WebRtcIsac_GetDownLinkBwIndex 38 #define ACM_ISAC_SETBWE WebRtcIsac_UpdateUplinkBw 39 #define ACM_ISAC_GETBWE WebRtcIsac_ReadBwIndex 40 #define ACM_ISAC_GETNEWFRAMELEN WebRtcIsac_GetNewFrameLen 41 #define ACM_ISAC_STRUCT ISACStruct 42 #define ACM_ISAC_GETENCSAMPRATE WebRtcIsac_EncSampRate 43 #define ACM_ISAC_GETDECSAMPRATE WebRtcIsac_DecSampRate 44 #define ACM_ISAC_DECODERCU WebRtcIsac_DecodeRcu 45 #endif 46 47 #ifdef WEBRTC_CODEC_ISACFX 48 #define ACM_ISAC_CREATE WebRtcIsacfix_Create 49 #define ACM_ISAC_FREE WebRtcIsacfix_Free 50 #define ACM_ISAC_ENCODERINIT WebRtcIsacfix_EncoderInit 51 #define ACM_ISAC_ENCODE WebRtcIsacfix_Encode 52 #define ACM_ISAC_DECODERINIT WebRtcIsacfix_DecoderInit 53 #define ACM_ISAC_DECODE_BWE WebRtcIsacfix_UpdateBwEstimate 54 #define ACM_ISAC_DECODE_B WebRtcIsacfix_Decode 55 #define ACM_ISAC_DECODEPLC WebRtcIsacfix_DecodePlc 56 #define ACM_ISAC_CONTROL ACMISACFixControl // Local Impl 57 #define ACM_ISAC_CONTROL_BWE ACMISACFixControlBWE // Local Impl 58 #define ACM_ISAC_GETFRAMELEN WebRtcIsacfix_ReadFrameLen 59 #define ACM_ISAC_GETERRORCODE WebRtcIsacfix_GetErrorCode 60 #define ACM_ISAC_GETSENDBITRATE ACMISACFixGetSendBitrate // Local Impl 61 #define ACM_ISAC_SETMAXPAYLOADSIZE WebRtcIsacfix_SetMaxPayloadSize 62 #define ACM_ISAC_SETMAXRATE WebRtcIsacfix_SetMaxRate 63 #define ACM_ISAC_GETNEWBITSTREAM ACMISACFixGetNewBitstream // Local Impl 64 #define ACM_ISAC_GETSENDBWE ACMISACFixGetSendBWE // Local Impl 65 #define ACM_ISAC_SETBWE WebRtcIsacfix_UpdateUplinkBw 66 #define ACM_ISAC_GETBWE WebRtcIsacfix_ReadBwIndex 67 #define ACM_ISAC_GETNEWFRAMELEN WebRtcIsacfix_GetNewFrameLen 68 #define ACM_ISAC_STRUCT ISACFIX_MainStruct 69 #define ACM_ISAC_GETENCSAMPRATE ACMISACFixGetEncSampRate // Local Impl 70 #define ACM_ISAC_GETDECSAMPRATE ACMISACFixGetDecSampRate // Local Impl 71 #define ACM_ISAC_DECODERCU WebRtcIsacfix_Decode // No special RCU 72 // decoder 73 #endif 74 75 } // namespace acm2 76 77 } // namespace webrtc 78 79 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_ISAC_MACROS_H_ 80 81