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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 * This function disables Opus internal DTX for encoding. | 173 * This function disables Opus internal DTX for encoding. |
174 * | 174 * |
175 * Input: | 175 * Input: |
176 * - inst : Encoder context | 176 * - inst : Encoder context |
177 * | 177 * |
178 * Return value : 0 - Success | 178 * Return value : 0 - Success |
179 * -1 - Error | 179 * -1 - Error |
180 */ | 180 */ |
181 int16_t WebRtcOpus_DisableDtx(OpusEncInst* inst); | 181 int16_t WebRtcOpus_DisableDtx(OpusEncInst* inst); |
182 | 182 |
| 183 /**************************************************************************** |
| 184 * WebRtcOpus_EnableCbr() |
| 185 * |
| 186 * This function enables CBR for encoding. |
| 187 * |
| 188 * Input: |
| 189 * - inst : Encoder context |
| 190 * |
| 191 * Return value : 0 - Success |
| 192 * -1 - Error |
| 193 */ |
| 194 int16_t WebRtcOpus_EnableCbr(OpusEncInst* inst); |
| 195 |
| 196 /**************************************************************************** |
| 197 * WebRtcOpus_DisableCbr() |
| 198 * |
| 199 * This function disables CBR for encoding. |
| 200 * |
| 201 * Input: |
| 202 * - inst : Encoder context |
| 203 * |
| 204 * Return value : 0 - Success |
| 205 * -1 - Error |
| 206 */ |
| 207 int16_t WebRtcOpus_DisableCbr(OpusEncInst* inst); |
| 208 |
183 /* | 209 /* |
184 * WebRtcOpus_SetComplexity(...) | 210 * WebRtcOpus_SetComplexity(...) |
185 * | 211 * |
186 * This function adjusts the computational complexity. The effect is the same as | 212 * This function adjusts the computational complexity. The effect is the same as |
187 * calling the complexity setting of Opus as an Opus encoder related CTL. | 213 * calling the complexity setting of Opus as an Opus encoder related CTL. |
188 * | 214 * |
189 * Input: | 215 * Input: |
190 * - inst : Encoder context | 216 * - inst : Encoder context |
191 * - complexity : New target complexity (0-10, inclusive) | 217 * - complexity : New target complexity (0-10, inclusive) |
192 * | 218 * |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 * 1 - the packet contains FEC. | 388 * 1 - the packet contains FEC. |
363 */ | 389 */ |
364 int WebRtcOpus_PacketHasFec(const uint8_t* payload, | 390 int WebRtcOpus_PacketHasFec(const uint8_t* payload, |
365 size_t payload_length_bytes); | 391 size_t payload_length_bytes); |
366 | 392 |
367 #ifdef __cplusplus | 393 #ifdef __cplusplus |
368 } // extern "C" | 394 } // extern "C" |
369 #endif | 395 #endif |
370 | 396 |
371 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_ | 397 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_ |
OLD | NEW |