Mercurial > mplayer.hg
annotate loader/driver.h @ 10578:b9d289fd8a57
10000l, the old code was slow as hell, copying stuff extra times and
actually broken -- blanking the whole screen at each 'page flip' with
-dr enabled. benchmarks:
before:
56% cpu for decode
56% cpu for vo with no -dr
25% cpu for vo with -dr
after:
56% cpu for decode
25% cpu for vo without -dr
0% cpu for vo with -dr
if vo_fbdev is going to do pageflip, it needs to do it for REAL, using
vertical scroll registers (like g2), not copying a temp buffer (which
will shear anyway and is super-slow).
author | rfelker |
---|---|
date | Tue, 12 Aug 2003 08:24:24 +0000 |
parents | 174e2a58b4cd |
children | f5537cc95b02 |
rev | line source |
---|---|
1307
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
diff
changeset
|
1 #ifndef loader_driver_h |
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
diff
changeset
|
2 #define loader_driver_h |
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
diff
changeset
|
3 |
7386 | 4 #ifdef __cplusplus |
5 extern "C" { | |
6 #endif | |
7 | |
8 #include "wine/windef.h" | |
9 #include "wine/driver.h" | |
1307
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
diff
changeset
|
10 |
7386 | 11 void SetCodecPath(const char* path); |
12 void CodecAlloc(void); | |
13 void CodecRelease(void); | |
14 | |
15 HDRVR DrvOpen(LPARAM lParam2); | |
16 void DrvClose(HDRVR hdrvr); | |
17 | |
18 #ifdef __cplusplus | |
19 } | |
20 #endif | |
1307
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
diff
changeset
|
21 |
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
diff
changeset
|
22 #endif |