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

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

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 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 25 matching lines...) Expand all
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 * 188 *
189 * Input: 189 * Input:
190 * - inst : Encoder context 190 * - inst : Encoder context
191 * - complexity : New target complexity (0-10, inclusive) 191 * - complexity : New target complexity (0-10, inclusive)
192 * 192 *
193 * Return value : 0 - Success 193 * Return value : 0 - Success
194 * -1 - Error 194 * -1 - Error
195 */ 195 */
196 int16_t WebRtcOpus_SetComplexity(OpusEncInst* inst, int32_t complexity); 196 int16_t WebRtcOpus_SetComplexity(OpusEncInst* inst, int32_t complexity);
197 197
198 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, int channels); 198 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, size_t channels);
199 int16_t WebRtcOpus_DecoderFree(OpusDecInst* inst); 199 int16_t WebRtcOpus_DecoderFree(OpusDecInst* inst);
200 200
201 /**************************************************************************** 201 /****************************************************************************
202 * WebRtcOpus_DecoderChannels(...) 202 * WebRtcOpus_DecoderChannels(...)
203 * 203 *
204 * This function returns the number of channels created for Opus decoder. 204 * This function returns the number of channels created for Opus decoder.
205 */ 205 */
206 int WebRtcOpus_DecoderChannels(OpusDecInst* inst); 206 size_t WebRtcOpus_DecoderChannels(OpusDecInst* inst);
207 207
208 /**************************************************************************** 208 /****************************************************************************
209 * WebRtcOpus_DecoderInit(...) 209 * WebRtcOpus_DecoderInit(...)
210 * 210 *
211 * This function resets state of the decoder. 211 * This function resets state of the decoder.
212 * 212 *
213 * Input: 213 * Input:
214 * - inst : Decoder context 214 * - inst : Decoder context
215 */ 215 */
216 void WebRtcOpus_DecoderInit(OpusDecInst* inst); 216 void WebRtcOpus_DecoderInit(OpusDecInst* inst);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 * 1 - the packet contains FEC. 340 * 1 - the packet contains FEC.
341 */ 341 */
342 int WebRtcOpus_PacketHasFec(const uint8_t* payload, 342 int WebRtcOpus_PacketHasFec(const uint8_t* payload,
343 size_t payload_length_bytes); 343 size_t payload_length_bytes);
344 344
345 #ifdef __cplusplus 345 #ifdef __cplusplus
346 } // extern "C" 346 } // extern "C"
347 #endif 347 #endif
348 348
349 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_ 349 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INTERFACE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/opus_inst.h ('k') | webrtc/modules/audio_coding/codecs/opus/opus_interface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698