annotate osdep/gettimeofday.c @ 11118:344052fdfc4a
Fix colorkey for xvidix, tested on Riva128 4MB X@15/16/24bpp (aka 15/15/32 in nvidia_vid)
This is very cool, using mplayer -vo xvidix -ao oss -framedrop -dr movie.avi I can play
640x272 DivX 1MBps on PII 233, 64MB, i440LX, Riva128 4MB AGP, FreeBSD 5.0, XFree 4.2.0,
with little framedrop,
author |
atmos4 |
date |
Tue, 14 Oct 2003 21:29:25 +0000 |
parents |
5c639ec8c39e |
children |
08cac43f1e38 |
rev |
line source |
9834
|
1 #include "../config.h"
|
9829
|
2
|
|
3 #ifndef HAVE_GETTIMEOFDAY
|
|
4 #include <sys/time.h>
|
|
5 #include <sys/timeb.h>
|
|
6 void gettimeofday(struct timeval* t,void* timezone)
|
|
7 { struct timeb timebuffer;
|
|
8 ftime( &timebuffer );
|
|
9 t->tv_sec=timebuffer.time;
|
|
10 t->tv_usec=1000*timebuffer.millitm;
|
|
11 }
|
|
12 #endif
|