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

Diff of /xvidcore/examples/xvid_encraw.c

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

revision 1.1.2.3, Sun Jan 19 15:10:11 2003 UTC revision 1.12, Sat Feb 22 21:36:27 2003 UTC
# Line 38  Line 38 
38  #include <stdlib.h>  #include <stdlib.h>
39  #include <string.h>  #include <string.h>
40  #include <math.h>  #include <math.h>
41  #ifndef _MSC_VER  #ifndef WIN32
42  #include <sys/time.h>  #include <sys/time.h>
43  #else  #else
44  #include <time.h>  #include <time.h>
# Line 526  Line 526 
526  /* Return time elapsed time in miliseconds since the program started */  /* Return time elapsed time in miliseconds since the program started */
527  static double msecond()  static double msecond()
528  {  {
529  #ifndef _MSC_VER  #ifndef WIN32
530          struct timeval  tv;          struct timeval  tv;
531          gettimeofday(&tv, 0);          gettimeofday(&tv, 0);
532          return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3;          return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3;
# Line 660  Line 660 
660    
661          if(use_assembler) {          if(use_assembler) {
662    
663  #ifdef ARCH_IA64  #ifdef ARCH_IS_IA64
664                  xinit.cpu_flags = XVID_CPU_FORCE | XVID_CPU_IA64;                  xinit.cpu_flags = XVID_CPU_FORCE | XVID_CPU_IA64;
665  #else  #else
666                  xinit.cpu_flags = 0;                  xinit.cpu_flags = 0;
# Line 727  Line 727 
727          xframe.length = -1;     /* this is written by the routine */          xframe.length = -1;     /* this is written by the routine */
728    
729          xframe.image = image;          xframe.image = image;
730          xframe.colorspace = XVID_CSP_YV12;      /* defined in <xvid.h> */          xframe.colorspace = XVID_CSP_I420;      /* defined in <xvid.h> */
731    
732          xframe.intra = -1; /* let the codec decide between I-frame (1) and P-frame (0) */          xframe.intra = -1; /* let the codec decide between I-frame (1) and P-frame (0) */
733    

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.12

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