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> |
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; |
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; |
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 |
|
|