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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/test/test_iSACfixfloat.c

Issue 1179093002: Reland "Upconvert various types to int.", isac portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 6 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
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int main(int argc, char* argv[]) { 81 int main(int argc, char* argv[]) {
82 char inname[50], outname[50], bottleneck_file[50], bitfilename[60], 82 char inname[50], outname[50], bottleneck_file[50], bitfilename[60],
83 bitending[10] = "_bits.pcm"; 83 bitending[10] = "_bits.pcm";
84 FILE* inp, *outp, *f_bn, *bitsp; 84 FILE* inp, *outp, *f_bn, *bitsp;
85 int framecnt, endfile; 85 int framecnt, endfile;
86 86
87 int i, j, errtype, plc = 0; 87 int i, j, errtype, plc = 0;
88 int16_t CodingMode; 88 int16_t CodingMode;
89 int16_t bottleneck; 89 int16_t bottleneck;
90 90
91 int16_t framesize = 30; /* ms */ 91 int framesize = 30; /* ms */
92 // int16_t framesize = 60; /* To invoke cisco complexity case at frame 2252 */ 92 // int framesize = 60; /* To invoke cisco complexity case at frame 2252 */
93 93
94 int cur_framesmpls, err; 94 int cur_framesmpls, err;
95 95
96 /* Runtime statistics */ 96 /* Runtime statistics */
97 double starttime; 97 double starttime;
98 double runtime; 98 double runtime;
99 double length_file; 99 double length_file;
100 100
101 int16_t stream_len = 0; 101 int16_t stream_len = 0;
102 int16_t declen; 102 int declen;
103 103
104 int16_t shortdata[FRAMESAMPLES_10ms]; 104 int16_t shortdata[FRAMESAMPLES_10ms];
105 int16_t decoded[MAX_FRAMESAMPLES]; 105 int16_t decoded[MAX_FRAMESAMPLES];
106 uint16_t streamdata[600]; 106 uint16_t streamdata[600];
107 int16_t speechType[1]; 107 int16_t speechType[1];
108 108
109 // int16_t* iSACstruct; 109 // int16_t* iSACstruct;
110 110
111 char version_number[20]; 111 char version_number[20];
112 int mode = -1, tmp, nbTest = 0; /*,sss;*/ 112 int mode = -1, tmp, nbTest = 0; /*,sss;*/
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 fclose(outp); 609 fclose(outp);
610 610
611 WebRtcIsac_Free(ISAC_main_inst); 611 WebRtcIsac_Free(ISAC_main_inst);
612 WebRtcIsacfix_Free(ISACFIX_main_inst); 612 WebRtcIsacfix_Free(ISACFIX_main_inst);
613 613
614 // fclose(histfile); 614 // fclose(histfile);
615 // fclose(ratefile); 615 // fclose(ratefile);
616 616
617 return 0; 617 return 0;
618 } 618 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698