comparison libvo/vo_xmga.c @ 100:201c2f931497

added #define SHOW_TIME option... (debug)
author arpi_esp
date Tue, 13 Mar 2001 00:14:47 +0000
parents cdb2e30be421
children 93ea0c6aae7f
comparison
equal deleted inserted replaced
99:fb1fc94eaff0 100:201c2f931497
1
2 //#define SHOW_TIME
1 3
2 /* 4 /*
3 * video_out_xmga.c 5 * video_out_xmga.c
4 * 6 *
5 * Copyright (C) Zoltan Ponekker - Jan 2001 7 * Copyright (C) Zoltan Ponekker - Jan 2001
42 #include <X11/Xlib.h> 44 #include <X11/Xlib.h>
43 #include <X11/Xutil.h> 45 #include <X11/Xutil.h>
44 #include <errno.h> 46 #include <errno.h>
45 47
46 #include "x11_common.h" 48 #include "x11_common.h"
49
50 #ifdef SHOW_TIME
51 #include "../linux/timer.h"
52 static unsigned int timer=0;
53 static unsigned int timerd=0;
54 #endif
47 55
48 static vo_info_t vo_info = 56 static vo_info_t vo_info =
49 { 57 {
50 "X11 (Matrox G200/G400 overlay in window using /dev/mga_vid)", 58 "X11 (Matrox G200/G400 overlay in window using /dev/mga_vid)",
51 "xmga", 59 "xmga",
128 if(e&VO_EVENT_EXPOSE) mDrawColorKey(); 136 if(e&VO_EVENT_EXPOSE) mDrawColorKey();
129 137
130 } 138 }
131 139
132 static void flip_page(void){ 140 static void flip_page(void){
141 #ifdef SHOW_TIME
142 unsigned int t;
143 t=GetTimer();
144 printf(" [timer: %08X diff: %6d dd: %6d ] \n",t,t-timer,(t-timer)-timerd);
145 timerd=t-timer;
146 timer=t;
147 #endif
148
133 check_events(); 149 check_events();
134 vo_mga_flip_page(); 150 vo_mga_flip_page();
135 } 151 }
136 152
137 static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format ) 153 static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format )