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

Side by Side Diff: webrtc/modules/audio_coding/codecs/g722/test/testG722.cc

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 * testG722.cpp : Defines the entry point for the console application. 12 * testG722.cpp : Defines the entry point for the console application.
13 */ 13 */
14 14
15 #include <stdio.h> 15 #include <stdio.h>
16 #include <stdlib.h> 16 #include <stdlib.h>
17 #include <string.h> 17 #include <string.h>
18 #include "webrtc/typedefs.h" 18 #include "webrtc/typedefs.h"
19 19
20 /* include API */ 20 /* include API */
21 #include "g722_interface.h" 21 #include "webrtc/modules/audio_coding/codecs/g722/g722_interface.h"
22 22
23 /* Runtime statistics */ 23 /* Runtime statistics */
24 #include <time.h> 24 #include <time.h>
25 #define CLOCKS_PER_SEC_G722 100000 25 #define CLOCKS_PER_SEC_G722 100000
26 26
27 // Forward declaration 27 // Forward declaration
28 typedef struct WebRtcG722EncInst G722EncInst; 28 typedef struct WebRtcG722EncInst G722EncInst;
29 typedef struct WebRtcG722DecInst G722DecInst; 29 typedef struct WebRtcG722DecInst G722DecInst;
30 30
31 /* function for reading audio data from PCM file */ 31 /* function for reading audio data from PCM file */
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 printf("\n\nLength of speech file: %.1f s\n", length_file); 149 printf("\n\nLength of speech file: %.1f s\n", length_file);
150 printf("Time to run G.722: %.2f s (%.2f %% of realtime)\n\n", runtime, (100*runtime/length_file)); 150 printf("Time to run G.722: %.2f s (%.2f %% of realtime)\n\n", runtime, (100*runtime/length_file));
151 printf("---------------------END----------------------\n"); 151 printf("---------------------END----------------------\n");
152 152
153 fclose(inp); 153 fclose(inp);
154 fclose(outbitp); 154 fclose(outbitp);
155 fclose(outp); 155 fclose(outp);
156 156
157 return 0; 157 return 0;
158 } 158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698