CVS: main/loader module.c,1.13,1.14
Update of /cvsroot/mplayer/main/loader In directory mail:/var/tmp.root/cvs-serv27148 Modified Files: module.c Log Message: patching out threads ;) raw measure: 18% cpu instead 30% Index: module.c =================================================================== RCS file: /cvsroot/mplayer/main/loader/module.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- module.c 25 Nov 2002 16:29:30 -0000 1.13 +++ module.c 25 Nov 2002 20:08:59 -0000 1.14 @@ -5,7 +5,7 @@ */ // define for quicktime calls debugging and/or MacOS-level emulation: -//#define EMU_QTX_API +#define EMU_QTX_API // define for quicktime debugging (verbose logging): //#define DEBUG_QTX_API @@ -326,6 +326,29 @@ for(i=0;i<28;i++) ((char*)0x6299e86d)[i]=0x90; for(i=0;i<5;i++) ((char*)0x6299e898)[i]=0x90; for(i=0;i<9;i++) ((char*)0x6299e8ac)[i]=0x90; + /* remove threads */ +#if 1 + for (i=0;i<0x6a;i++) ((char*)0x62a61b10)[i]=0x90; +#else + /* callers */ + for (i=0;i<5;i++) ((char*)0x629487c5)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x6294b275)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x629a24b1)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x629afc5a)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x62af799c)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x62af7efe)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x62afa33e)[i]=0x90; +#endif + /* load fonts */ +// for (i=0;i<5;i++) ((char*)0x6288dd77)[i]=0x90; + /* terminateqtml fix */ +#if 0 + for (i=0;i<2;i++) ((char*)0x629a13c7)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x629a13cb)[i]=0x90; + for (i=0;i<5;i++) ((char*)0x62890337)[i]=0x90; +// for (i=0;i<5;i++) ((char*)0x629a13d5)[i]=0x90; +// for (i=0;i<5;i++) ((char*)0x6299fe14)[i]=0x90; +#endif #ifdef EMU_QTX_API report_entry = report_func; report_ret = report_func_ret;
Hi,
// define for quicktime calls debugging and/or MacOS-level emulation: -//#define EMU_QTX_API +#define EMU_QTX_API 10l but this should add some speedup too ;)
-- Alex Beregszaszi <alex@naxine.org> (MPlayer Core Developer -- http://www.mplayerhq.hu/)
Hi,
Hi,
// define for quicktime calls debugging and/or MacOS-level emulation: -//#define EMU_QTX_API +#define EMU_QTX_API 10l but this should add some speedup too ;)
yes and more will come... we should locate the most used basic OS functions and emulate them at QTS (MacOS syscall) level instead of emualting it in win32 (in the macos emulator). currently only mutexes (ignored:)) and memory allocation (emulated using malloc/free) are handled at QTS level. btw if you don't know yet, here is the draft of current quicktime code: components (==quicktime plugins, like codecs, filters, qt player gui, etc) | | (MacOS syscalls, enable #define DEBUG_QTX_API to show them!) | quicktime.qts (MacOS emulation layer, wrappers to win32 funcs) | | (WinAPI calls, enable -DDETAILED_OUT to show them!) | win32.c (winapi emulation layer, wrappers to linux/unix funcs) | | (libc calls) | kernel funny, eh? :) currently there is a wrapper around quicktime.qts's entry point ("theQuickTimeDispatcher") and it can catch and emulate some macos syscalls directly. we should emulate as many as possible, and at the end we can drop quicktime.qts (and win32.c:)) away :) (...and release MPlayer's MacOS emulator product :)) A'rpi / Astral & ESP-team -- Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
participants (3)
-
Alex Beregszaszi -
Alex Beregszaszi -
Arpi