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 |
11 /****************************************************************** | 11 /****************************************************************** |
12 | 12 |
13 iLBC Speech Coder ANSI-C Source Code | 13 iLBC Speech Coder ANSI-C Source Code |
14 | 14 |
15 iLBCInterface.c | 15 iLBCInterface.c |
16 | 16 |
17 ******************************************************************/ | 17 ******************************************************************/ |
18 | 18 |
19 #include "ilbc.h" | 19 #include "ilbc.h" |
20 #include "defines.h" | 20 #include "defines.h" |
21 #include "init_encode.h" | 21 #include "init_encode.h" |
22 #include "encode.h" | 22 #include "encode.h" |
23 #include "init_decode.h" | 23 #include "init_decode.h" |
24 #include "decode.h" | 24 #include "decode.h" |
25 #include "webrtc/base/checks.h" | 25 #include "webrtc/rtc_base/checks.h" |
26 #include <stdlib.h> | 26 #include <stdlib.h> |
27 | 27 |
28 int16_t WebRtcIlbcfix_EncoderAssign(IlbcEncoderInstance** iLBC_encinst, | 28 int16_t WebRtcIlbcfix_EncoderAssign(IlbcEncoderInstance** iLBC_encinst, |
29 int16_t* ILBCENC_inst_Addr, | 29 int16_t* ILBCENC_inst_Addr, |
30 int16_t* size) { | 30 int16_t* size) { |
31 *iLBC_encinst=(IlbcEncoderInstance*)ILBCENC_inst_Addr; | 31 *iLBC_encinst=(IlbcEncoderInstance*)ILBCENC_inst_Addr; |
32 *size=sizeof(IlbcEncoder)/sizeof(int16_t); | 32 *size=sizeof(IlbcEncoder)/sizeof(int16_t); |
33 if (*iLBC_encinst!=NULL) { | 33 if (*iLBC_encinst!=NULL) { |
34 return(0); | 34 return(0); |
35 } else { | 35 } else { |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 WebRtcSpl_MemSetW16(((IlbcDecoder*)iLBCdec_inst)->enh_buf, 0, ENH_BUFL); | 278 WebRtcSpl_MemSetW16(((IlbcDecoder*)iLBCdec_inst)->enh_buf, 0, ENH_BUFL); |
279 ((IlbcDecoder*)iLBCdec_inst)->prev_enh_pl = 2; | 279 ((IlbcDecoder*)iLBCdec_inst)->prev_enh_pl = 2; |
280 | 280 |
281 return (0); | 281 return (0); |
282 } | 282 } |
283 | 283 |
284 void WebRtcIlbcfix_version(char *version) | 284 void WebRtcIlbcfix_version(char *version) |
285 { | 285 { |
286 strcpy((char*)version, "1.1.1"); | 286 strcpy((char*)version, "1.1.1"); |
287 } | 287 } |
OLD | NEW |