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 |
| 11 /* | 11 /* |
| 12 * ilbc.h | 12 * ilbc.h |
| 13 * | 13 * |
| 14 * This header file contains all of the API's for iLBC. | 14 * This header file contains all of the API's for iLBC. |
| 15 * | 15 * |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_INCLUDE_ILBC_H_ | 18 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_ILBC_H_ |
| 19 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_INCLUDE_ILBC_H_ | 19 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_ILBC_H_ |
| 20 | 20 |
| 21 #include <stddef.h> | 21 #include <stddef.h> |
| 22 | 22 |
| 23 /* | 23 /* |
| 24 * Define the fixpoint numeric formats | 24 * Define the fixpoint numeric formats |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "webrtc/typedefs.h" | 27 #include "webrtc/typedefs.h" |
| 28 | 28 |
| 29 /* | 29 /* |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 46 extern "C" { | 46 extern "C" { |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 /**************************************************************************** | 49 /**************************************************************************** |
| 50 * WebRtcIlbcfix_XxxAssign(...) | 50 * WebRtcIlbcfix_XxxAssign(...) |
| 51 * | 51 * |
| 52 * These functions assigns the encoder/decoder instance to the specified | 52 * These functions assigns the encoder/decoder instance to the specified |
| 53 * memory location | 53 * memory location |
| 54 * | 54 * |
| 55 * Input: | 55 * Input: |
| 56 * - XXX_xxxinst : Pointer to created instance that should be | 56 * - XXX_xxxinst : Pointer to created instance that should be |
| 57 * assigned | 57 * assigned |
| 58 * - ILBCXXX_inst_Addr : Pointer to the desired memory space | 58 * - ILBCXXX_inst_Addr : Pointer to the desired memory space |
| 59 * - size : The size that this structure occupies (in Word16 ) | 59 * - size : The size that this structure occupies (in Word16) |
|
kwiberg-webrtc
2015/11/12 11:40:45
Note: It's easier to review if you don't include m
kjellander (google.com)
2015/11/12 11:45:26
Yeah I know. I just couldn't resist since this was
| |
| 60 * | 60 * |
| 61 * Return value : 0 - Ok | 61 * Return value : 0 - Ok |
| 62 * -1 - Error | 62 * -1 - Error |
| 63 */ | 63 */ |
| 64 | 64 |
| 65 int16_t WebRtcIlbcfix_EncoderAssign(IlbcEncoderInstance **iLBC_encinst, | 65 int16_t WebRtcIlbcfix_EncoderAssign(IlbcEncoderInstance **iLBC_encinst, |
| 66 int16_t *ILBCENC_inst_Addr, | 66 int16_t *ILBCENC_inst_Addr, |
| 67 int16_t *size); | 67 int16_t *size); |
| 68 int16_t WebRtcIlbcfix_DecoderAssign(IlbcDecoderInstance **iLBC_decinst, | 68 int16_t WebRtcIlbcfix_DecoderAssign(IlbcDecoderInstance **iLBC_decinst, |
| 69 int16_t *ILBCDEC_inst_Addr, | 69 int16_t *ILBCDEC_inst_Addr, |
| 70 int16_t *size); | 70 int16_t *size); |
| 71 | 71 |
| 72 | 72 |
| 73 /**************************************************************************** | 73 /**************************************************************************** |
| 74 * WebRtcIlbcfix_XxxAssign(...) | 74 * WebRtcIlbcfix_XxxAssign(...) |
| 75 * | 75 * |
| 76 * These functions create a instance to the specified structure | 76 * These functions create a instance to the specified structure |
| 77 * | 77 * |
| 78 * Input: | 78 * Input: |
| 79 * - XXX_inst : Pointer to created instance that should be creat ed | 79 * - XXX_inst : Pointer to created instance that should be created |
| 80 * | 80 * |
| 81 * Return value : 0 - Ok | 81 * Return value : 0 - Ok |
| 82 * -1 - Error | 82 * -1 - Error |
| 83 */ | 83 */ |
| 84 | 84 |
| 85 int16_t WebRtcIlbcfix_EncoderCreate(IlbcEncoderInstance **iLBC_encinst); | 85 int16_t WebRtcIlbcfix_EncoderCreate(IlbcEncoderInstance **iLBC_encinst); |
| 86 int16_t WebRtcIlbcfix_DecoderCreate(IlbcDecoderInstance **iLBC_decinst); | 86 int16_t WebRtcIlbcfix_DecoderCreate(IlbcDecoderInstance **iLBC_decinst); |
| 87 | 87 |
| 88 /**************************************************************************** | 88 /**************************************************************************** |
| 89 * WebRtcIlbcfix_XxxFree(...) | 89 * WebRtcIlbcfix_XxxFree(...) |
| 90 * | 90 * |
| 91 * These functions frees the dynamic memory of a specified instance | 91 * These functions frees the dynamic memory of a specified instance |
| 92 * | 92 * |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 * Output: | 248 * Output: |
| 249 * - version : Version number of iLBC (maximum 20 char) | 249 * - version : Version number of iLBC (maximum 20 char) |
| 250 */ | 250 */ |
| 251 | 251 |
| 252 void WebRtcIlbcfix_version(char *version); | 252 void WebRtcIlbcfix_version(char *version); |
| 253 | 253 |
| 254 #ifdef __cplusplus | 254 #ifdef __cplusplus |
| 255 } | 255 } |
| 256 #endif | 256 #endif |
| 257 | 257 |
| 258 #endif | 258 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_ILBC_H_ |
| OLD | NEW |