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

Side by Side Diff: webrtc/modules/audio_coding/codecs/cng/include/webrtc_cng.h

Issue 1319683002: AudioDecoder: Replace Init() with Reset() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@buffer
Patch Set: review fixes Created 5 years, 3 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 * 63 *
64 * Output: 64 * Output:
65 * - cng_inst : Initialized instance 65 * - cng_inst : Initialized instance
66 * 66 *
67 * Return value : 0 - Ok 67 * Return value : 0 - Ok
68 * -1 - Error 68 * -1 - Error
69 */ 69 */
70 70
71 int WebRtcCng_InitEnc(CNG_enc_inst* cng_inst, int fs, int16_t interval, 71 int WebRtcCng_InitEnc(CNG_enc_inst* cng_inst, int fs, int16_t interval,
72 int16_t quality); 72 int16_t quality);
73 int16_t WebRtcCng_InitDec(CNG_dec_inst* cng_inst); 73 void WebRtcCng_InitDec(CNG_dec_inst* cng_inst);
74 74
75 /**************************************************************************** 75 /****************************************************************************
76 * WebRtcCng_FreeEnc/Dec(...) 76 * WebRtcCng_FreeEnc/Dec(...)
77 * 77 *
78 * These functions frees the dynamic memory of a specified instance 78 * These functions frees the dynamic memory of a specified instance
79 * 79 *
80 * Input: 80 * Input:
81 * - cng_inst : Pointer to created instance that should be freed 81 * - cng_inst : Pointer to created instance that should be freed
82 * 82 *
83 * Return value : 0 - Ok 83 * Return value : 0 - Ok
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 * Return value : Error code 154 * Return value : Error code
155 */ 155 */
156 int16_t WebRtcCng_GetErrorCodeEnc(CNG_enc_inst* cng_inst); 156 int16_t WebRtcCng_GetErrorCodeEnc(CNG_enc_inst* cng_inst);
157 int16_t WebRtcCng_GetErrorCodeDec(CNG_dec_inst* cng_inst); 157 int16_t WebRtcCng_GetErrorCodeDec(CNG_dec_inst* cng_inst);
158 158
159 #ifdef __cplusplus 159 #ifdef __cplusplus
160 } 160 }
161 #endif 161 #endif
162 162
163 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_MAIN_INTERFACE_WEBRTC_CNG_H_ 163 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_MAIN_INTERFACE_WEBRTC_CNG_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/cng/cng_unittest.cc ('k') | webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698