OLD | NEW |
1 /*********************************************************************** | 1 /*********************************************************************** |
2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. | 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
3 Redistribution and use in source and binary forms, with or without | 3 Redistribution and use in source and binary forms, with or without |
4 modification, are permitted provided that the following conditions | 4 modification, are permitted provided that the following conditions |
5 are met: | 5 are met: |
6 - Redistributions of source code must retain the above copyright notice, | 6 - Redistributions of source code must retain the above copyright notice, |
7 this list of conditions and the following disclaimer. | 7 this list of conditions and the following disclaimer. |
8 - Redistributions in binary form must reproduce the above copyright | 8 - Redistributions in binary form must reproduce the above copyright |
9 notice, this list of conditions and the following disclaimer in the | 9 notice, this list of conditions and the following disclaimer in the |
10 documentation and/or other materials provided with the distribution. | 10 documentation and/or other materials provided with the distribution. |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include <stdio.h> /* file writing */ | 32 #include <stdio.h> /* file writing */ |
33 #include <string.h> /* strcpy, strcmp */ | 33 #include <string.h> /* strcpy, strcmp */ |
34 | 34 |
35 #ifdef __cplusplus | 35 #ifdef __cplusplus |
36 extern "C" | 36 extern "C" |
37 { | 37 { |
38 #endif | 38 #endif |
39 | 39 |
40 unsigned long GetHighResolutionTime(void); /* O time in usec*/ | 40 unsigned long GetHighResolutionTime(void); /* O time in usec*/ |
41 | 41 |
42 /* make SILK_DEBUG dependent on compiler's _DEBUG */ | 42 /* Set to 1 to enable DEBUG_STORE_DATA() macros for dumping |
43 #if defined _WIN32 | 43 * intermediate signals from the codec. |
44 #ifdef _DEBUG | 44 */ |
45 #define SILK_DEBUG 1 | 45 #define SILK_DEBUG 0 |
46 #else | |
47 #define SILK_DEBUG 0 | |
48 #endif | |
49 | |
50 /* overrule the above */ | |
51 #if 0 | |
52 /* #define NO_ASSERTS*/ | |
53 #undef SILK_DEBUG | |
54 #define SILK_DEBUG 1 | |
55 #endif | |
56 #else | |
57 #define SILK_DEBUG 0 | |
58 #endif | |
59 | 46 |
60 /* Flag for using timers */ | 47 /* Flag for using timers */ |
61 #define SILK_TIC_TOC 0 | 48 #define SILK_TIC_TOC 0 |
62 | 49 |
63 | 50 |
64 #if SILK_TIC_TOC | 51 #if SILK_TIC_TOC |
65 | 52 |
66 #if (defined(_WIN32) || defined(_WINCE)) | 53 #if (defined(_WIN32) || defined(_WINCE)) |
67 #include <windows.h> /* timer */ | 54 #include <windows.h> /* timer */ |
68 #else /* Linux or Mac*/ | 55 #else /* Linux or Mac*/ |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 #define DEBUG_STORE_DATA(FILE_NAME, DATA_PTR, N_BYTES) | 257 #define DEBUG_STORE_DATA(FILE_NAME, DATA_PTR, N_BYTES) |
271 #define SILK_DEBUG_STORE_CLOSE_FILES | 258 #define SILK_DEBUG_STORE_CLOSE_FILES |
272 | 259 |
273 #endif /* SILK_DEBUG */ | 260 #endif /* SILK_DEBUG */ |
274 | 261 |
275 #ifdef __cplusplus | 262 #ifdef __cplusplus |
276 } | 263 } |
277 #endif | 264 #endif |
278 | 265 |
279 #endif /* SILK_DEBUG_H */ | 266 #endif /* SILK_DEBUG_H */ |
OLD | NEW |