--- trunk/xvidcore/examples/xvid_stat.c 2002/12/18 21:48:46 729 +++ trunk/xvidcore/examples/xvid_stat.c 2003/02/22 21:37:50 896 @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: xvid_stat.c,v 1.18 2002-12-18 21:48:46 edgomez Exp $ + * $Id: xvid_stat.c,v 1.22 2003-02-22 21:37:49 chl Exp $ * ****************************************************************************/ @@ -66,7 +66,7 @@ #include #include #include -#ifndef _MSC_VER +#ifndef WIN32 #include #else #include @@ -637,7 +637,7 @@ /* Return time elapsed time in miliseconds since the program started */ static double msecond() { -#ifndef _MSC_VER +#ifndef WIN32 struct timeval tv; gettimeofday(&tv, 0); return tv.tv_sec*1.0e3 + tv.tv_usec * 1.0e-3; @@ -853,7 +853,7 @@ if(use_assembler) { -#ifdef ARCH_IA64 +#ifdef ARCH_IS_IA64 xinit.cpu_flags = XVID_CPU_FORCE | XVID_CPU_IA64; #else xinit.cpu_flags = 0; @@ -915,7 +915,7 @@ xframe.length = -1; /* this is written by the routine */ xframe.image = image; - xframe.colorspace = XVID_CSP_YV12; /* defined in */ + xframe.colorspace = XVID_CSP_I420; /* defined in */ xframe.intra = -1; /* let the codec decide between I-frame (1) and P-frame (0) */ @@ -997,7 +997,7 @@ xframe.length = m4v_size; xframe.image = out_buffer; xframe.stride = XDIM; - xframe.colorspace = XVID_CSP_YV12; /* XVID_CSP_USER is fastest (no memcopy involved) */ + xframe.colorspace = XVID_CSP_I420; /* XVID_CSP_USER is fastest (no memcopy involved) */ xerr = xvid_decore(dec_handle, XVID_DEC_DECODE, &xframe, NULL);