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

Side by Side Diff: webrtc/modules/audio_coding/codecs/g711/test/testG711.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 * testG711.cpp : Defines the entry point for the console application. 12 * testG711.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 18
19 /* include API */ 19 /* include API */
20 #include "g711_interface.h" 20 #include "webrtc/modules/audio_coding/codecs/g711/g711_interface.h"
21 21
22 /* Runtime statistics */ 22 /* Runtime statistics */
23 #include <time.h> 23 #include <time.h>
24 #define CLOCKS_PER_SEC_G711 1000 24 #define CLOCKS_PER_SEC_G711 1000
25 25
26 /* function for reading audio data from PCM file */ 26 /* function for reading audio data from PCM file */
27 bool readframe(int16_t* data, FILE* inp, size_t length) { 27 bool readframe(int16_t* data, FILE* inp, size_t length) {
28 size_t rlen = fread(data, sizeof(int16_t), length, inp); 28 size_t rlen = fread(data, sizeof(int16_t), length, inp);
29 if (rlen >= length) 29 if (rlen >= length)
30 return false; 30 return false;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 printf("Time to run G.711: %.2f s (%.2f %% of realtime)\n\n", 161 printf("Time to run G.711: %.2f s (%.2f %% of realtime)\n\n",
162 runtime, 162 runtime,
163 (100 * runtime / length_file)); 163 (100 * runtime / length_file));
164 printf("---------------------END----------------------\n"); 164 printf("---------------------END----------------------\n");
165 165
166 fclose(inp); 166 fclose(inp);
167 fclose(outp); 167 fclose(outp);
168 168
169 return 0; 169 return 0;
170 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698