Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: webrtc/modules/audio_coding/codecs/opus/opus_interface.h

Issue 2362703002: Adding audio network adaptor to AudioEncoderOpus. (Closed)
Patch Set: adding a missing deps Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 * 208 *
209 * Input: 209 * Input:
210 * - inst : Encoder context 210 * - inst : Encoder context
211 * - num_channels : 0 - Not forced 211 * - num_channels : 0 - Not forced
212 * 1 - Mono 212 * 1 - Mono
213 * 2 - Stereo 213 * 2 - Stereo
214 * 214 *
215 * Return value : 0 - Success 215 * Return value : 0 - Success
216 * -1 - Error 216 * -1 - Error
217 */ 217 */
218 int16_t WebRtcOpus_SetForceChannels(OpusEncInst* inst, int32_t num_channels); 218 int16_t WebRtcOpus_SetForceChannels(OpusEncInst* inst, size_t num_channels);
219 219
220 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, size_t channels); 220 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, size_t channels);
221 int16_t WebRtcOpus_DecoderFree(OpusDecInst* inst); 221 int16_t WebRtcOpus_DecoderFree(OpusDecInst* inst);
222 222
223 /**************************************************************************** 223 /****************************************************************************
224 * WebRtcOpus_DecoderChannels(...) 224 * WebRtcOpus_DecoderChannels(...)
225 * 225 *
226 * This function returns the number of channels created for Opus decoder. 226 * This function returns the number of channels created for Opus decoder.
227 */ 227 */
228 size_t WebRtcOpus_DecoderChannels(OpusDecInst* inst); 228 size_t WebRtcOpus_DecoderChannels(OpusDecInst* inst);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 * 1 - the packet contains FEC. 362 * 1 - the packet contains FEC.
363 */ 363 */
364 int WebRtcOpus_PacketHasFec(const uint8_t* payload, 364 int WebRtcOpus_PacketHasFec(const uint8_t* payload,
365 size_t payload_length_bytes); 365 size_t payload_length_bytes);
366 366
367 #ifdef __cplusplus 367 #ifdef __cplusplus
368 } // extern "C" 368 } // extern "C"
369 #endif 369 #endif
370 370
371 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_ 371 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698