19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid_stat.c,v 1.12 2002-09-27 18:35:35 edgomez Exp $ |
* $Id: xvid_stat.c,v 1.14 2002-09-28 14:27:15 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
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(); |