277 |
****************************************************************************/ |
****************************************************************************/ |
278 |
|
|
279 |
if (XDIM <= 0 || XDIM >= 2048 || YDIM <=0 || YDIM >= 2048 ) { |
if (XDIM <= 0 || XDIM >= 2048 || YDIM <=0 || YDIM >= 2048 ) { |
280 |
fprintf(stderr, |
fprintf(stderr, "Trying to retreive width and height from PGM header\n"); |
|
"Trying to retreive width and height from PGM header\n", |
|
|
XDIM, |
|
|
YDIM); |
|
281 |
ARG_INPUTTYPE = 1; /* pgm */ |
ARG_INPUTTYPE = 1; /* pgm */ |
282 |
} |
} |
283 |
|
|
292 |
} |
} |
293 |
|
|
294 |
if ( ARG_FRAMERATE <= 0) { |
if ( ARG_FRAMERATE <= 0) { |
295 |
fprintf(stderr,"Wrong Fraterate %s \n",argv[5]); |
fprintf(stderr,"Wrong Framerate %s \n",argv[5]); |
296 |
return -1; |
return -1; |
297 |
} |
} |
298 |
|
|
555 |
#ifndef _MSC_VER |
#ifndef _MSC_VER |
556 |
struct timeval tv; |
struct timeval tv; |
557 |
gettimeofday(&tv, 0); |
gettimeofday(&tv, 0); |
558 |
return tv.tv_sec*10e3 + tv.tv_usec * 1.0e-3; |
return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3; |
559 |
#else |
#else |
560 |
clock_t clk; |
clock_t clk; |
561 |
clk = clock(); |
clk = clock(); |