summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xmga.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-13 00:14:47 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-13 00:14:47 +0000
commit82d26dd46068e89acd08cfdc0ddfaaf89803a5fb (patch)
tree21ead814e8d802870d1a92f4907b8dbe64cc4398 /libvo/vo_xmga.c
parentdc17b69e6d93e9d63727eb9f52294dd2c0fcba1f (diff)
downloadmpv-82d26dd46068e89acd08cfdc0ddfaaf89803a5fb.tar.bz2
mpv-82d26dd46068e89acd08cfdc0ddfaaf89803a5fb.tar.xz
added #define SHOW_TIME option... (debug)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@101 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xmga.c')
-rw-r--r--libvo/vo_xmga.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c
index ca857001d0..b89c4ad882 100644
--- a/libvo/vo_xmga.c
+++ b/libvo/vo_xmga.c
@@ -1,4 +1,6 @@
+//#define SHOW_TIME
+
/*
* video_out_xmga.c
*
@@ -45,6 +47,12 @@ LIBVO_EXTERN( xmga )
#include "x11_common.h"
+#ifdef SHOW_TIME
+#include "../linux/timer.h"
+static unsigned int timer=0;
+static unsigned int timerd=0;
+#endif
+
static vo_info_t vo_info =
{
"X11 (Matrox G200/G400 overlay in window using /dev/mga_vid)",
@@ -130,6 +138,14 @@ static void check_events(void)
}
static void flip_page(void){
+#ifdef SHOW_TIME
+ unsigned int t;
+ t=GetTimer();
+ printf(" [timer: %08X diff: %6d dd: %6d ] \n",t,t-timer,(t-timer)-timerd);
+ timerd=t-timer;
+ timer=t;
+#endif
+
check_events();
vo_mga_flip_page();
}