| 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 25 matching lines...) Expand all Loading... |
| 36 * Favor faithfulness to the original input. | 36 * Favor faithfulness to the original input. |
| 37 * | 37 * |
| 38 * Output: | 38 * Output: |
| 39 * - inst : a pointer to Encoder context that is created | 39 * - inst : a pointer to Encoder context that is created |
| 40 * if success. | 40 * if success. |
| 41 * | 41 * |
| 42 * Return value : 0 - Success | 42 * Return value : 0 - Success |
| 43 * -1 - Error | 43 * -1 - Error |
| 44 */ | 44 */ |
| 45 int16_t WebRtcOpus_EncoderCreate(OpusEncInst** inst, | 45 int16_t WebRtcOpus_EncoderCreate(OpusEncInst** inst, |
| 46 int32_t channels, | 46 size_t channels, |
| 47 int32_t application); | 47 int32_t application); |
| 48 | 48 |
| 49 int16_t WebRtcOpus_EncoderFree(OpusEncInst* inst); | 49 int16_t WebRtcOpus_EncoderFree(OpusEncInst* inst); |
| 50 | 50 |
| 51 /**************************************************************************** | 51 /**************************************************************************** |
| 52 * WebRtcOpus_Encode(...) | 52 * WebRtcOpus_Encode(...) |
| 53 * | 53 * |
| 54 * This function encodes audio as a series of Opus frames and inserts | 54 * This function encodes audio as a series of Opus frames and inserts |
| 55 * it into a packet. Input buffer can be any length. | 55 * it into a packet. Input buffer can be any length. |
| 56 * | 56 * |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 * 1 - the packet contains FEC. | 329 * 1 - the packet contains FEC. |
| 330 */ | 330 */ |
| 331 int WebRtcOpus_PacketHasFec(const uint8_t* payload, | 331 int WebRtcOpus_PacketHasFec(const uint8_t* payload, |
| 332 size_t payload_length_bytes); | 332 size_t payload_length_bytes); |
| 333 | 333 |
| 334 #ifdef __cplusplus | 334 #ifdef __cplusplus |
| 335 } // extern "C" | 335 } // extern "C" |
| 336 #endif | 336 #endif |
| 337 | 337 |
| 338 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INTERFACE_OPUS_INTERFACE_H_ | 338 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INTERFACE_OPUS_INTERFACE_H_ |
| OLD | NEW |