[svn] / branches / dev-api-4 / xvidcore / examples / xvid_stat.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/examples/xvid_stat.c

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

revision 548, Fri Sep 27 18:35:35 2002 UTC revision 559, Sat Sep 28 14:27:16 2002 UTC
# Line 19  Line 19 
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    
# Line 277  Line 277 
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    
# Line 295  Line 292 
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    
# Line 558  Line 555 
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();

Legend:
Removed from v.548  
changed lines
  Added in v.559

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