| OLD | NEW | 
|    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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  246   } |  246   } | 
|  247  |  247  | 
|  248   framecnt = 0; |  248   framecnt = 0; | 
|  249   endfile = 0; |  249   endfile = 0; | 
|  250  |  250  | 
|  251   /* Initialize encoder and decoder */ |  251   /* Initialize encoder and decoder */ | 
|  252   if (WebRtcIsac_EncoderInit(ISAC_main_inst, codingMode) < 0) { |  252   if (WebRtcIsac_EncoderInit(ISAC_main_inst, codingMode) < 0) { | 
|  253     printf("cannot initialize encoder\n"); |  253     printf("cannot initialize encoder\n"); | 
|  254     return -1; |  254     return -1; | 
|  255   } |  255   } | 
|  256   if (WebRtcIsac_DecoderInit(ISAC_main_inst) < 0) { |  256   WebRtcIsac_DecoderInit(ISAC_main_inst); | 
|  257     printf("cannot initialize decoder\n"); |  | 
|  258     return -1; |  | 
|  259   } |  | 
|  260  |  257  | 
|  261   // { |  258   // { | 
|  262   //   int32_t b1, b2; |  259   //   int32_t b1, b2; | 
|  263   //   FILE* fileID = fopen("GetBNTest.txt", "w"); |  260   //   FILE* fileID = fopen("GetBNTest.txt", "w"); | 
|  264   //   b2 = 32100; |  261   //   b2 = 32100; | 
|  265   //   while (b2 <= 52000) { |  262   //   while (b2 <= 52000) { | 
|  266   //     WebRtcIsac_Control(ISAC_main_inst, b2, frameSize); |  263   //     WebRtcIsac_Control(ISAC_main_inst, b2, frameSize); | 
|  267   //     WebRtcIsac_GetUplinkBw(ISAC_main_inst, &b1); |  264   //     WebRtcIsac_GetUplinkBw(ISAC_main_inst, &b1); | 
|  268   //     fprintf(fileID, "%5d %5d\n", b2, b1); |  265   //     fprintf(fileID, "%5d %5d\n", b2, b1); | 
|  269   //     b2 += 10; |  266   //     b2 += 10; | 
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  570   str->lastArrivalTime = 0; |  567   str->lastArrivalTime = 0; | 
|  571  |  568  | 
|  572   str->maxPayloadLB = 0; |  569   str->maxPayloadLB = 0; | 
|  573   str->maxPayloadUB = 0; |  570   str->maxPayloadUB = 0; | 
|  574   str->lbBytes = 0; |  571   str->lbBytes = 0; | 
|  575   str->ubBytes = 0; |  572   str->ubBytes = 0; | 
|  576  |  573  | 
|  577   return 0; |  574   return 0; | 
|  578 }; |  575 }; | 
|  579 #endif |  576 #endif | 
| OLD | NEW |