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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/interface/isac.h

Issue 1208923002: iSAC: Functions for importing and exporting bandwidth est. info (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review comments Created 5 years, 5 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_
13 13
14 /* 14 #include "webrtc/modules/audio_coding/codecs/isac/bandwidth_info.h"
15 * Define the fixed-point numeric formats
16 */
17 #include "webrtc/typedefs.h" 15 #include "webrtc/typedefs.h"
18 16
19 typedef struct WebRtcISACStruct ISACStruct; 17 typedef struct WebRtcISACStruct ISACStruct;
20 18
21 #if defined(__cplusplus) 19 #if defined(__cplusplus)
22 extern "C" { 20 extern "C" {
23 #endif 21 #endif
24 22
25 /***************************************************************************** * 23 /***************************************************************************** *
26 * WebRtcIsac_AssignSize(...) 24 * WebRtcIsac_AssignSize(...)
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 * Return value : >0 - number of samples in decoded vector 699 * Return value : >0 - number of samples in decoded vector
702 * -1 - Error 700 * -1 - Error
703 */ 701 */
704 int WebRtcIsac_DecodeRcu( 702 int WebRtcIsac_DecodeRcu(
705 ISACStruct* ISAC_main_inst, 703 ISACStruct* ISAC_main_inst,
706 const uint8_t* encoded, 704 const uint8_t* encoded,
707 int16_t len, 705 int16_t len,
708 int16_t* decoded, 706 int16_t* decoded,
709 int16_t* speechType); 707 int16_t* speechType);
710 708
709 /* Fills in an IsacBandwidthInfo struct. */
710 void WebRtcIsac_GetBandwidthInfo(ISACStruct* inst, IsacBandwidthInfo* bwinfo);
711
712 /* Uses the values from an IsacBandwidthInfo struct. */
713 void WebRtcIsac_SetBandwidthInfo(ISACStruct* inst,
714 const IsacBandwidthInfo* bwinfo);
711 715
712 #if defined(__cplusplus) 716 #if defined(__cplusplus)
713 } 717 }
714 #endif 718 #endif
715 719
716 720
717 721
718 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_ */ 722 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_INTERFACE_ISAC_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698