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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/structs.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 /* 11 /*
12 * structs.h 12 * structs.h
13 * 13 *
14 * This header file contains all the structs used in the ISAC codec 14 * This header file contains all the structs used in the ISAC codec
15 * 15 *
16 */ 16 */
17 17
18 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_STRUCTS_H_ 18 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_STRUCTS_H_
19 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_STRUCTS_H_ 19 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_STRUCTS_H_
20 20
21 21
22 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 22 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
23 #include "webrtc/modules/audio_coding/codecs/isac/bandwidth_info.h"
23 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/settings.h" 24 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/settings.h"
24 #include "webrtc/typedefs.h" 25 #include "webrtc/typedefs.h"
25 26
26 /* Bitstream struct for decoder */ 27 /* Bitstream struct for decoder */
27 typedef struct Bitstreamstruct_dec { 28 typedef struct Bitstreamstruct_dec {
28 29
29 uint16_t stream[INTERNAL_STREAM_SIZE_W16]; /* Array bytestream to decode */ 30 uint16_t stream[INTERNAL_STREAM_SIZE_W16]; /* Array bytestream to decode */
30 uint32_t W_upper; /* Upper boundary of interval W */ 31 uint32_t W_upper; /* Upper boundary of interval W */
31 uint32_t streamval; 32 uint32_t streamval;
32 uint16_t stream_index; /* Index to the current position in bytestream */ 33 uint16_t stream_index; /* Index to the current position in bytestream */
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 uint32_t startWaitPeriod; 239 uint32_t startWaitPeriod;
239 240
240 /* number of consecutive pkts sent during which the bwe estimate has 241 /* number of consecutive pkts sent during which the bwe estimate has
241 remained at a value greater than the upstream threshold for determining hig hspeed network */ 242 remained at a value greater than the upstream threshold for determining hig hspeed network */
242 int16_t countHighSpeedSent; 243 int16_t countHighSpeedSent;
243 244
244 /* flag indicated the desired number of packets over threshold rate have been sent and 245 /* flag indicated the desired number of packets over threshold rate have been sent and
245 bwe will assume the connection is over broadband network */ 246 bwe will assume the connection is over broadband network */
246 int16_t highSpeedSend; 247 int16_t highSpeedSend;
247 248
248 249 IsacBandwidthInfo external_bw_info;
249
250
251 } BwEstimatorstr; 250 } BwEstimatorstr;
252 251
253 252
254 typedef struct { 253 typedef struct {
255 254
256 /* boolean, flags if previous packet exceeded B.N. */ 255 /* boolean, flags if previous packet exceeded B.N. */
257 int16_t PrevExceed; 256 int16_t PrevExceed;
258 /* ms */ 257 /* ms */
259 int16_t ExceedAgo; 258 int16_t ExceedAgo;
260 /* packets left to send in current burst */ 259 /* packets left to send in current burst */
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 int16_t full; /* 0 - first byte in memory filled, second empty*/ 373 int16_t full; /* 0 - first byte in memory filled, second empty*/
375 /* 1 - both bytes are empty (we just filled the previous memory */ 374 /* 1 - both bytes are empty (we just filled the previous memory */
376 uint16_t beforeLastWord; 375 uint16_t beforeLastWord;
377 uint16_t lastWord; 376 uint16_t lastWord;
378 } transcode_obj; 377 } transcode_obj;
379 378
380 379
381 //Bitstr_enc myBitStr; 380 //Bitstr_enc myBitStr;
382 381
383 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_STRUCTS_H_ */ 382 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_STRUCTS_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698