summaryrefslogtreecommitdiffstats
path: root/loader/wine/windef.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove win32/qt/xanim/real binary codecs loadingwm42012-08-161-628/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the win32 loader - the win32 emulation layer, as well as the code for using DirectShow/DMO/VFW codecs. Remove loading of xanim, QuickTime, and RealMedia codecs. The win32 emulation layer is based on a very old version of wine. Apparently, wine code was copied and hacked until it was somehow able to load a limited collection of binary codecs. It poked around in the code segment of some known binary codecs to disable unsupported win32 API calls to make them work. Example from module.c: for (i=0;i<5;i++) RVA(0x19e842)[i]=0x90; // make_new_region ? for (i=0;i<28;i++) RVA(0x19e86d)[i]=0x90; // call__call_CreateCompatibleDC ? for (i=0;i<5;i++) RVA(0x19e898)[i]=0x90; // jmp_to_call_loadbitmap ? for (i=0;i<9;i++) RVA(0x19e8ac)[i]=0x90; // call__calls_OLE_shit ? for (i=0;i<106;i++) RVA(0x261b10)[i]=0x90; // disable threads Just to show how utterly insane this code is. You wouldn't want even your worst enemy to have to maintain this. In fact, it seems nobody made major changes to this code ever since it was committed. Most formats can be decoded by libavcodecs these days, and the loader couldn't be used on 64 bit platforms anyway. The same is (probably) true for the other binary codecs. General note about how support for win32 codecs could be added back: It's not possible to replace the win32 loader code by using wine as library, because modern wine can not be linked with native Linux programs for certain reasons. It would be possible to to move DirectShow video decoding into a separate process linked with wine, like the CoreAVC-for-Linux patches do. There is also the mplayer-ww fork, which uses the dshownative library to use DirectShow codecs on Windows.
* cleanup: Silence compilation warnings on MinGW-w64wm42012-03-011-4/+8
| | | | | | | | | | | | | | | | | | | Some of the code, especially the dshow and windows codec loader parts, are extremely hacky and likely full of bugs. The goal is merely getting rid of warnings that could obscure more important warnings and actual bugs, instead of fixing actual problems. This reduces the number of warnings from over 500 to almost the same as when compiling on Linux. Note that many problems stem from using the ancient wine-derived windows headers. There are some differences to the "proper" windows header. Changing the code to compile with the proper headers would be too much trouble, and it still has to work on Unix. Some of the changes might actually break compilation on legacy MinGW, but we don't support that anymore. Always use MinGW-w64, even when compiling to 32 bit. Fixes some warnings in the win32 loader code on Linux too.
* Remove pointless egcs #ifdefs; that compiler was never supported.diego2010-02-111-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30539 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove extern "C" declarations from loader code.diego2010-02-111-8/+0
| | | | | | | Our loader code is not a general-purpose library and not used from C++. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30538 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.diego2008-10-161-1/+1
| | | | | | | | We were using an inconsistent mix of the three variants and 'volatile' should be the most correct and portable variant. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27791 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add MPLAYER_ prefix to multiple inclusion guards.diego2008-02-231-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26077 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove $Id$ tags, they make diffs between different versionsreimar2008-01-271-1/+0
| | | | | | | harder to read than necessary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25877 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a ton of illegal identifiers. Identifiers starting with __ or _ and adiego2008-01-201-3/+3
| | | | | | | | capital letter are reserved for the system, those starting with _ are reserved at the file level. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25822 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove leading underscores from multiple inclusion guards,diego2007-09-131-6/+6
| | | | | | | leading underscores are reserved in the C standard. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24442 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of superfluous __WINE__ #define, it was always enabled anddiego2007-06-021-38/+0
| | | | | | | cluttered the code. Blessed by Reimar. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23448 b3059339-0415-0410-9bf9-f77b7e298cf2
* CVS --> Subversion in copyright noticesdiego2006-06-221-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18786 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark modified imported files as such to comply with GPL ยง2a.diego2005-04-151-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15167 b3059339-0415-0410-9bf9-f77b7e298cf2
* loader gcc warning fixes and avifile syncrathann2004-08-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13183 b3059339-0415-0410-9bf9-f77b7e298cf2
* last mingw32 support patch by Sascha Sommeralex2003-04-241-3/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9979 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix some warnings on cygwin, patch by Sylvain Petreolle <spetreolle@yahoo.fr>atmos42002-08-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7183 b3059339-0415-0410-9bf9-f77b7e298cf2
* cygwin & darwin fixes by Joey Parrish <joey@yunamusic.com>arpi2002-06-041-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6303 b3059339-0415-0410-9bf9-f77b7e298cf2
* reversed patch - faszom (C++) .so-baarpi2001-12-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3549 b3059339-0415-0410-9bf9-f77b7e298cf2
* ULONG bug fixpontscho2001-12-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3540 b3059339-0415-0410-9bf9-f77b7e298cf2
* workaround for Alpha - by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>arpi2001-12-161-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3537 b3059339-0415-0410-9bf9-f77b7e298cf2
* 'You' bug fixedarpi_esp2001-03-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@187 b3059339-0415-0410-9bf9-f77b7e298cf2
* DLL loader updated from avifile-0.60beta4arpi_esp2001-03-181-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@129 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initial revisionarpi_esp2001-02-241-0/+656
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2 b3059339-0415-0410-9bf9-f77b7e298cf2