| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 * - speechIn : Input speech vector | 128 * - speechIn : Input speech vector |
| 129 * - len : Samples in speechIn (160, 240, 320 or 480) | 129 * - len : Samples in speechIn (160, 240, 320 or 480) |
| 130 * | 130 * |
| 131 * Output: | 131 * Output: |
| 132 * - encoded : The encoded data vector | 132 * - encoded : The encoded data vector |
| 133 * | 133 * |
| 134 * Return value : >0 - Length (in bytes) of coded data | 134 * Return value : >0 - Length (in bytes) of coded data |
| 135 * -1 - Error | 135 * -1 - Error |
| 136 */ | 136 */ |
| 137 | 137 |
| 138 int16_t WebRtcIlbcfix_Encode(IlbcEncoderInstance *iLBCenc_inst, | 138 int WebRtcIlbcfix_Encode(IlbcEncoderInstance *iLBCenc_inst, |
| 139 const int16_t *speechIn, | 139 const int16_t *speechIn, |
| 140 int16_t len, | 140 int16_t len, |
| 141 uint8_t* encoded); | 141 uint8_t* encoded); |
| 142 | 142 |
| 143 /**************************************************************************** | 143 /**************************************************************************** |
| 144 * WebRtcIlbcfix_DecoderInit(...) | 144 * WebRtcIlbcfix_DecoderInit(...) |
| 145 * | 145 * |
| 146 * This function initializes a iLBC instance with either 20 or 30 ms frames | 146 * This function initializes a iLBC instance with either 20 or 30 ms frames |
| 147 * Alternatively the WebRtcIlbcfix_DecoderInit_XXms can be used. Then it's | 147 * Alternatively the WebRtcIlbcfix_DecoderInit_XXms can be used. Then it's |
| 148 * not needed to specify the frame length with a variable. | 148 * not needed to specify the frame length with a variable. |
| 149 * | 149 * |
| 150 * Input: | 150 * Input: |
| 151 * - IlbcDecoderInstance : iLBC decoder instance | 151 * - IlbcDecoderInstance : iLBC decoder instance |
| (...skipping 21 matching lines...) Expand all Loading... |
| 173 * - len : Bytes in encoded vector | 173 * - len : Bytes in encoded vector |
| 174 * | 174 * |
| 175 * Output: | 175 * Output: |
| 176 * - decoded : The decoded vector | 176 * - decoded : The decoded vector |
| 177 * - speechType : 1 normal, 2 CNG | 177 * - speechType : 1 normal, 2 CNG |
| 178 * | 178 * |
| 179 * Return value : >0 - Samples in decoded vector | 179 * Return value : >0 - Samples in decoded vector |
| 180 * -1 - Error | 180 * -1 - Error |
| 181 */ | 181 */ |
| 182 | 182 |
| 183 int16_t WebRtcIlbcfix_Decode(IlbcDecoderInstance* iLBCdec_inst, | 183 int WebRtcIlbcfix_Decode(IlbcDecoderInstance* iLBCdec_inst, |
| 184 const uint8_t* encoded, |
| 185 int16_t len, |
| 186 int16_t* decoded, |
| 187 int16_t* speechType); |
| 188 int WebRtcIlbcfix_Decode20Ms(IlbcDecoderInstance* iLBCdec_inst, |
| 184 const uint8_t* encoded, | 189 const uint8_t* encoded, |
| 185 int16_t len, | 190 int16_t len, |
| 186 int16_t* decoded, | 191 int16_t* decoded, |
| 187 int16_t* speechType); | 192 int16_t* speechType); |
| 188 int16_t WebRtcIlbcfix_Decode20Ms(IlbcDecoderInstance* iLBCdec_inst, | 193 int WebRtcIlbcfix_Decode30Ms(IlbcDecoderInstance* iLBCdec_inst, |
| 189 const uint8_t* encoded, | 194 const uint8_t* encoded, |
| 190 int16_t len, | 195 int16_t len, |
| 191 int16_t* decoded, | 196 int16_t* decoded, |
| 192 int16_t* speechType); | 197 int16_t* speechType); |
| 193 int16_t WebRtcIlbcfix_Decode30Ms(IlbcDecoderInstance* iLBCdec_inst, | |
| 194 const uint8_t* encoded, | |
| 195 int16_t len, | |
| 196 int16_t* decoded, | |
| 197 int16_t* speechType); | |
| 198 | 198 |
| 199 /**************************************************************************** | 199 /**************************************************************************** |
| 200 * WebRtcIlbcfix_DecodePlc(...) | 200 * WebRtcIlbcfix_DecodePlc(...) |
| 201 * | 201 * |
| 202 * This function conducts PLC for iLBC frame(s). Output speech length | 202 * This function conducts PLC for iLBC frame(s). Output speech length |
| 203 * will be a multiple of 160 or 240 samples. | 203 * will be a multiple of 160 or 240 samples. |
| 204 * | 204 * |
| 205 * Input: | 205 * Input: |
| 206 * - iLBCdec_inst : iLBC instance, i.e. the user that should perform | 206 * - iLBCdec_inst : iLBC instance, i.e. the user that should perform |
| 207 * a PLC | 207 * a PLC |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |