OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 * | 104 * |
105 * Return value : >0 - Samples in decoded vector | 105 * Return value : >0 - Samples in decoded vector |
106 * -1 - Error | 106 * -1 - Error |
107 */ | 107 */ |
108 | 108 |
109 int16_t WebRtcG711_DecodeU(const uint8_t* encoded, | 109 int16_t WebRtcG711_DecodeU(const uint8_t* encoded, |
110 int16_t len, | 110 int16_t len, |
111 int16_t* decoded, | 111 int16_t* decoded, |
112 int16_t* speechType); | 112 int16_t* speechType); |
113 | 113 |
114 /**************************************************************************** | |
115 * WebRtcG711_DurationEst(...) | |
116 * | |
117 * This function estimates the duration of a G711 packet in samples. | |
118 * | |
119 * Input: | |
120 * - payload : Encoded data | |
121 * - payloadLengthBytes : Bytes in encoded vector | |
122 * | |
123 * Return value : The duration of the packet in samples, which is | |
124 * just payload_length_bytes, since G.711 uses one | |
125 * byte per sample. | |
126 */ | |
127 | |
128 int WebRtcG711_DurationEst(const uint8_t* payload, | |
129 int payload_length_bytes); | |
130 | |
131 /********************************************************************** | 114 /********************************************************************** |
132 * WebRtcG711_Version(...) | 115 * WebRtcG711_Version(...) |
133 * | 116 * |
134 * This function gives the version string of the G.711 codec. | 117 * This function gives the version string of the G.711 codec. |
135 * | 118 * |
136 * Input: | 119 * Input: |
137 * - lenBytes: the size of Allocated space (in Bytes) where | 120 * - lenBytes: the size of Allocated space (in Bytes) where |
138 * the version number is written to (in string format). | 121 * the version number is written to (in string format). |
139 * | 122 * |
140 * Output: | 123 * Output: |
141 * - version: Pointer to a buffer where the version number is | 124 * - version: Pointer to a buffer where the version number is |
142 * written to. | 125 * written to. |
143 * | 126 * |
144 */ | 127 */ |
145 | 128 |
146 int16_t WebRtcG711_Version(char* version, int16_t lenBytes); | 129 int16_t WebRtcG711_Version(char* version, int16_t lenBytes); |
147 | 130 |
148 #ifdef __cplusplus | 131 #ifdef __cplusplus |
149 } | 132 } |
150 #endif | 133 #endif |
151 | 134 |
152 #endif /* MODULES_AUDIO_CODING_CODECS_G711_MAIN_INTERFACE_G711_INTERFACE_H_ */ | 135 #endif /* MODULES_AUDIO_CODING_CODECS_G711_MAIN_INTERFACE_G711_INTERFACE_H_ */ |
OLD | NEW |