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

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

Issue 1438663003: modules/audio_coding: Remove some codec include dirs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase again Created 5 years, 1 month 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
11 11
12 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_MAIN_INCLUDE_WEBRTC_CNG_H_ 12 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_WEBRTC_CNG_H_
13 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_MAIN_INCLUDE_WEBRTC_CNG_H_ 13 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_WEBRTC_CNG_H_
14 14
15 #include <stddef.h> 15 #include <stddef.h>
16 #include "webrtc/typedefs.h" 16 #include "webrtc/typedefs.h"
17 17
18 #ifdef __cplusplus 18 #ifdef __cplusplus
19 extern "C" { 19 extern "C" {
20 #endif 20 #endif
21 21
22 #define WEBRTC_CNG_MAX_LPC_ORDER 12 22 #define WEBRTC_CNG_MAX_LPC_ORDER 12
23 #define WEBRTC_CNG_MAX_OUTSIZE_ORDER 640 23 #define WEBRTC_CNG_MAX_OUTSIZE_ORDER 640
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 * Return value : 0 - Ok 137 * Return value : 0 - Ok
138 * -1 - Error 138 * -1 - Error
139 */ 139 */
140 int16_t WebRtcCng_Generate(CNG_dec_inst* cng_inst, int16_t* outData, 140 int16_t WebRtcCng_Generate(CNG_dec_inst* cng_inst, int16_t* outData,
141 size_t nrOfSamples, int16_t new_period); 141 size_t nrOfSamples, int16_t new_period);
142 142
143 /***************************************************************************** 143 /*****************************************************************************
144 * WebRtcCng_GetErrorCodeEnc/Dec(...) 144 * WebRtcCng_GetErrorCodeEnc/Dec(...)
145 * 145 *
146 * This functions can be used to check the error code of a CNG instance. When 146 * This functions can be used to check the error code of a CNG instance. When
147 * a function returns -1 a error code will be set for that instance. The 147 * a function returns -1 a error code will be set for that instance. The
148 * function below extract the code of the last error that occurred in the 148 * function below extract the code of the last error that occurred in the
149 * specified instance. 149 * specified instance.
150 * 150 *
151 * Input: 151 * Input:
152 * - CNG_inst : CNG enc/dec instance 152 * - CNG_inst : CNG enc/dec instance
153 * 153 *
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_INCLUDE_WEBRTC_CNG_H_ 163 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_WEBRTC_CNG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698