Ticket #3986: 3986-test-1.patch
File 3986-test-1.patch, 1.7 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/guidegrid.cpp
56 56 qApp->unlock(); 57 57 58 58 while (gg->isVisible()) 59 usleep(50 );59 usleep(5000); 60 60 } 61 61 else 62 62 gg->exec(); -
libs/libmythtv/videoout_xv.cpp
2982 2982 gl_context->SwapBuffers(); 2983 2983 } 2984 2984 2985 uint64_t startt, endt; 2986 rdtsc(startt); 2985 2987 X11S(XSync(XJ_disp, False)); 2988 rdtsc(endt); 2989 if (endt > startt) 2990 cout<<(endt-startt)<<":"; 2986 2991 } 2987 2992 2988 2993 void VideoOutputXv::ShowPip(VideoFrame *frame, NuppelVideoPlayer *pipplayer) -
libs/libmyth/util.h
78 78 MPUBLIC QString createTempFile(QString name_template = "/tmp/mythtv_XXXXXX", 79 79 bool dir = false); 80 80 81 // CPU Tick timing function 82 #ifdef MMX 83 #ifdef _WIN32 84 typedef LONGLONG uint64_t 85 inline void rdtsc(uint64_t &x) 86 { 87 QueryPerformanceCounter((LARGE_INTEGER*)(&x)); 88 } 89 #else 90 typedef struct { 91 uint a; 92 uint b; 93 } timing_ab_t; 94 inline void rdtsc(uint64_t &x) 95 { 96 timing_ab_t &y = (timing_ab_t&) x; 97 asm("rdtsc \n" 98 "mov %%eax, %0 \n" 99 "mov %%edx, %1 \n" 100 : 101 : "m"(y.a), "m"(y.b) 102 : "%eax", "%edx"); 103 } 104 #endif 105 106 #else // if !MMX 107 inline void rdtsc(uint64_t &x) { x = 0ULL; } 108 #endif // !MMX 109 81 110 #endif // UTIL_H_