[cvs] / xvidcore / examples / xvid_stat.c Repository:
ViewVC logotype

Diff of /xvidcore/examples/xvid_stat.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17, Wed Dec 18 20:48:25 2002 UTC revision 1.20, Sat Feb 15 15:22:17 2003 UTC
# Line 66  Line 66 
66  #include <stdlib.h>  #include <stdlib.h>
67  #include <string.h>  #include <string.h>
68  #include <math.h>  #include <math.h>
69  #ifndef _MSC_VER  #ifndef WIN32
70  #include <sys/time.h>  #include <sys/time.h>
71  #else  #else
72  #include <time.h>  #include <time.h>
# Line 205  Line 205 
205          double totaldectime=0.;          double totaldectime=0.;
206    
207          long totalsize=0;          long totalsize=0;
208          long hints_size;          long hints_size = 0;
209          int status;          int status;
210          int bigendian;          int bigendian = 0;
211    
212          long m4v_size;          long m4v_size = 0;
213          long frame_type[ABS_MAXFRAMENR];          long frame_type[ABS_MAXFRAMENR];
214          int Iframes=0, Pframes=0, use_assembler=0;          int Iframes=0, Pframes=0, use_assembler=0;
215          double framepsnr[ABS_MAXFRAMENR];          double framepsnr[ABS_MAXFRAMENR];
# Line 413  Line 413 
413                  bigendian = 1;                  bigendian = 1;
414          else          else
415                  bigendian = 0;                  bigendian = 0;
416            totalsize = 0;
417    
418  /*****************************************************************************  /*****************************************************************************
419   *                            Main loop   *                            Main loop
# Line 636  Line 637 
637  /* Return time elapsed time in miliseconds since the program started */  /* Return time elapsed time in miliseconds since the program started */
638  static double msecond()  static double msecond()
639  {  {
640  #ifndef _MSC_VER  #ifndef WIN32
641          struct timeval  tv;          struct timeval  tv;
642          gettimeofday(&tv, 0);          gettimeofday(&tv, 0);
643          return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3;          return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.20

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4