5 |
|
|
6 |
#include <windows.h> |
#include <windows.h> |
7 |
|
|
8 |
|
#define DEBUGCBR(A,B,C) { char tmp[100]; wsprintf(tmp, "CBR: frame: %i, quant: %i, deviation: %i\n", (A), (B), (C)); OutputDebugString(tmp); } |
9 |
|
|
10 |
#ifdef _DEBUG |
#ifdef _DEBUG |
11 |
#define DEBUG(S) OutputDebugString((S)); |
#define DEBUG(S) OutputDebugString((S)); |
12 |
#define DEBUG1(S,I) { char tmp[100]; wsprintf(tmp, "%s %i\n", (S), (I)); OutputDebugString(tmp); } |
#define DEBUG1(S,I) { char tmp[100]; wsprintf(tmp, "%s %i\n", (S), (I)); OutputDebugString(tmp); } |
65 |
|
|
66 |
#elif defined(LINUX) || defined(DJGPP) |
#elif defined(LINUX) || defined(DJGPP) |
67 |
|
|
|
|
|
68 |
#ifdef _DEBUG |
#ifdef _DEBUG |
69 |
|
|
70 |
#include <stdio.h> |
#include <stdio.h> |
74 |
#define DEBUG2(S,A,B) fprintf(DEBUG_WHERE, "%s%i=%i\n", (S), (A), (B)) |
#define DEBUG2(S,A,B) fprintf(DEBUG_WHERE, "%s%i=%i\n", (S), (A), (B)) |
75 |
#define DEBUG3(S,A,B,C) fprintf(DEBUG_WHERE, "%s %i %x %x\n", (S), (A), (B), (C)) |
#define DEBUG3(S,A,B,C) fprintf(DEBUG_WHERE, "%s %i %x %x\n", (S), (A), (B), (C)) |
76 |
#define DEBUG8(S,A,B,C,D,E,F,G,H) |
#define DEBUG8(S,A,B,C,D,E,F,G,H) |
77 |
|
#define DEBUGCBR(A,B,C) fprintf(DEBUG_WHERE, "CBR: frame: %i, quant: %i, deviation: %i\n", (A), (B), (C)) |
78 |
#else |
#else |
79 |
#define DEBUG(S) |
#define DEBUG(S) |
80 |
#define DEBUG1(S,I) |
#define DEBUG1(S,I) |
81 |
#define DEBUG2(X,A,B) |
#define DEBUG2(X,A,B) |
82 |
#define DEBUG3(X,A,B,C) |
#define DEBUG3(X,A,B,C) |
83 |
#define DEBUG8(X,A,B,C,D,E,F,G,H) |
#define DEBUG8(X,A,B,C,D,E,F,G,H) |
84 |
|
#define DEBUGCBR(A,B,C) |
85 |
#endif |
#endif |
86 |
|
|
87 |
#define CACHE_LINE 16 |
#define CACHE_LINE 16 |
161 |
#define DEBUG2(X,A,B) |
#define DEBUG2(X,A,B) |
162 |
#define DEBUG3(X,A,B,C) |
#define DEBUG3(X,A,B,C) |
163 |
#define DEBUG8(X,A,B,C,D,E,F,G,H) |
#define DEBUG8(X,A,B,C,D,E,F,G,H) |
164 |
|
#define DEBUGCBR(A,B,C) |
165 |
|
|
166 |
#include <inttypes.h> |
#include <inttypes.h> |
167 |
|
|