4 |
#if defined(WIN32) |
#if defined(WIN32) |
5 |
|
|
6 |
#include <windows.h> |
#include <windows.h> |
7 |
|
#include <stdio.h> |
8 |
|
|
9 |
|
|
10 |
|
#define DPRINTF_BUF_SZ 1024 |
11 |
|
static void dprintf(char *fmt, ...) |
12 |
|
{ |
13 |
|
va_list args; |
14 |
|
char buf[DPRINTF_BUF_SZ]; |
15 |
|
|
16 |
|
va_start(args, fmt); |
17 |
|
vsprintf(buf, fmt, args); |
18 |
|
OutputDebugString(buf); |
19 |
|
fprintf(stdout, "%s\n", buf); |
20 |
|
} |
21 |
|
|
22 |
|
|
23 |
#define DEBUGCBR(A,B,C) { char tmp[100]; wsprintf(tmp, "CBR: frame: %i, quant: %i, deviation: %i\n", (A), (B), (C)); OutputDebugString(tmp); } |
#define DEBUGCBR(A,B,C) { char tmp[100]; wsprintf(tmp, "CBR: frame: %i, quant: %i, deviation: %i\n", (A), (B), (C)); OutputDebugString(tmp); } |
24 |
|
|
78 |
return ts; |
return ts; |
79 |
} |
} |
80 |
|
|
81 |
#elif defined(LINUX) || defined(DJGPP) |
#elif defined(LINUX) || defined(DJGPP) || defined(FREEBSD) |
82 |
|
|
83 |
#ifdef _DEBUG |
#ifdef _DEBUG |
84 |
|
|
111 |
|
|
112 |
#else |
#else |
113 |
|
|
114 |
#define #define #define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
#define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
115 |
__attribute__ ((__aligned__(CACHE_LINE))) type name[(sizex)*(sizey)] |
__attribute__ ((__aligned__(CACHE_LINE))) type name[(sizex)*(sizey)] |
116 |
|
|
117 |
#define int8_t char |
#define int8_t char |