summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad.c
Commit message (Collapse)AuthorAgeFilesLines
* libmpcodecs: remove redundant audio and video decoderswm42012-08-201-28/+0
| | | | | | | | Probably all of these are supported by libavcodec. Missing things can be added back. Also remove qtpalette.h. It was used by demux_mov.c, and should have been deleted with commit 1fde09db6f4ce.
* Remove support for libdvwm42012-08-201-4/+0
| | | | | This removes the libdv demuxer and audio/video decoders. FFmpeg has support for it, and it's even preferred over the internal decoders.
* Remove win32/qt/xanim/real binary codecs loadingwm42012-08-161-19/+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.
* libmpcodecs: add ad_spdif.c, S/PDIF passthrough decodermplayer-svn2012-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patch by Naoya OYAMA, naoya.oyama gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34191 b3059339-0415-0410-9bf9-f77b7e298cf2 fix ad_spdif Call av_register_all() before initialising the SPDIF muxer. Fixes playback with -demuxer mpegts -ac spdifac3. Patch by Naoya OYAMA, naoya D oyama gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34291 b3059339-0415-0410-9bf9-f77b7e298cf2 Use new API avformat_new_stream() instead of the deprecated av_new_stream(). Patch by Naoya OYAMA, naoya D oyama gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34292 b3059339-0415-0410-9bf9-f77b7e298cf2 Cosmetics: Remove empty statement. Patch by Naoya OYAMA, naoya D oyama gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34293 b3059339-0415-0410-9bf9-f77b7e298cf2 Use init_avformat() instead of av_register_all(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34294 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: diego
* Remove some demuxers and decoderswm42012-07-301-16/+0
| | | | | | | | | | | | | | | | | | Most of these demuxers and decoders are provided in better form by libav, while the mplayer builtin ones are essentially unmaintained. The only legimitate use case for not using the libav ones was working around libav bugs or bugs related to the way mplayer uses libav. Instead of trying to keep dead code alive, development effort should go into improving libav or the mplayer libav glue code. Note that the libav demuxer have been preferred over the mplayer builtin ones for a while in mplayer2. There were some exceptions: playing DVDs with dvdnav or playing network sources. (That's because some stream modules and network.c requested explicit file formats, such as DEMUXER_TYPE_MPEG_PS, which mapped to builtin demuxers.) With this commit, they are switched to use libav. One caveat is that the requested format is not passed to libavformat, instead we rely on the auto probing to select the correct libav demuxer (see code in demux_open_stream()).
* configure, build: remove --disable-libav supportUoti Urpala2011-12-111-2/+0
| | | | | Remove support for building the player without libavcodec and libavformat. These libraries are now always required.
* mp3lib: drop internal mp3lib treeUoti Urpala2011-04-021-4/+0
| | | | | | | | | | | | | Delete mp3lib which has been the default mp3 decoder until now. In addition to being an unnecessary embedded library it now fails to compile correctly with the new gcc-4.6, producing noise. After the deletion the default decoder priority for mp3 will be first libmpg123 (a newer version of the code that mp3lib was based on) if available, then ffmp3float which should be available in all normal compiles. I think that some tweaking may be required as these decoder alternatives get wider testing, but any problems should be solvable and there should be no need for mp3lib.
* build: enable/disable all FFmpeg libraries togetherUoti Urpala2010-11-021-1/+1
| | | | | | | | | Enable all of libavcodec, libavformat, libswscale, and libpostproc together (libavutil is always required). based on svn commit by diego: git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32226 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove commented-out mpcodecs_ad_null leftoversdiego2010-11-021-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32058 b3059339-0415-0410-9bf9-f77b7e298cf2
* libgsm: Remove libgsm wrapperreimar2010-11-021-2/+0
| | | | | | | | | | Remove copy of old and ugly libgsm code and wrapper. Decoding these formats is supported via FFmpeg both natively and through libgsm. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31657 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31664 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_mpg123: add MP3 decoding through libmpg123diego2010-11-021-0/+4
| | | | | | patch by Thomas Orgis, thomas-forum orgis org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31590 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge svn changes up to r30463Uoti Urpala2010-03-091-1/+19
|\ | | | | | | | | | | Note that r30455 is wrong, that commit does not in fact change the default behavior as claimed in the commit message. It only breaks "-af-adv force=0", which was already pretty much useless though.
| * Add missing license headers to all files in the libmpcodecs directory.diego2010-01-301-1/+19
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30463 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30301Uoti Urpala2010-01-251-1/+1
|\|
| * More changes needed to make ad_hwac3 truly independent from liba52.reimar2010-01-111-1/+1
| | | | | | | | | | | | | | Patch by Benoît Amiaux [benoit amiaux gmail com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30286 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29117Uoti Urpala2009-04-011-3/+1
|\|
| * cosmetics: Remove file names from file header, it only causes trouble.diego2009-03-151-3/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28959 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27399Uoti Urpala2008-08-021-5/+5
|\| | | | | | | | | | | | | | | | | | | Conflicts: libmpcodecs/vd.c libmpcodecs/ve_raw.c libvo/video_out.c libvo/x11_common.c mplayer.c
| * Change a bunch of codec-specific preprocessor directives from a HAVE_diego2008-08-021-5/+5
| | | | | | | | | | | | | | prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27395 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27374Uoti Urpala2008-07-301-8/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cfg-common-opts.h cfg-mplayer.h command.c configure libmpcodecs/dec_video.c libmpcodecs/vd.c libmpcodecs/vf_vo.c libmpdemux/demuxer.h libmpdemux/stheader.h mp_core.h mplayer.c stream/stream_radio.c
| * Start unifying names of internal preprocessor directives.diego2008-07-301-8/+8
| | | | | | | | | | | | | | | | Replace all USE_ prefixes by CONFIG_ prefixes to indicate options which are configurable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make audio decoder description structs constUoti Urpala2008-04-261-27/+27
|/ | | | | | Make the per-decoder struct ad_functions and its ->info struct constants. Same for the mpcodecs_ad_drivers[] table of pointers to those structs.
* Simplify preprocessor condition for QT codecs, configure already does thediego2008-03-151-1/+1
| | | | | | | necessary checks, no need to duplicate them. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26238 b3059339-0415-0410-9bf9-f77b7e298cf2
* DTS decoding via libdcartogni2007-07-221-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23841 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add explicit location for headers from the libmpdemux/ directory.diego2007-03-151-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22619 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add explicit location for headers from the stream/ directory.diego2007-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22617 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove separation between Win32 DLL and DirectShow support in the build system.diego2006-06-211-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18768 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_hwmpa: pass-through fake audio codec for hardware mpeg decodersnicodvb2006-01-151-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17398 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove MPlayer native 14_4 and 28_8 codecs (they are in lavc)rtognimp2005-12-091-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17152 b3059339-0415-0410-9bf9-f77b7e298cf2
* Speex support. Seeking and pts generation does not work.reimar2005-11-051-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16916 b3059339-0415-0410-9bf9-f77b7e298cf2
* musepack demuxing and decoding support (demuxing is v7 bitstream only).reimar2005-07-101-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15959 b3059339-0415-0410-9bf9-f77b7e298cf2
* TwinVQ decoder and demuxerrtognimp2004-12-291-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14277 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cinepak, CYUV and RoqA/V are now in ffmpegrtognimp2004-07-151-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12828 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removed mpflac as ffflac is way better and ad_flac won't compile with ↵alex2004-04-051-4/+0
| | | | | | external flac git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12128 b3059339-0415-0410-9bf9-f77b7e298cf2
* FLAC decoding support via imported libmpflac.lumag2003-10-041-0/+4
| | | | | | | TODO: fix FLAC-in-ogg decoding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11005 b3059339-0415-0410-9bf9-f77b7e298cf2
* RealAudio 1.0 (14_4) and 2.0 (28_8) native decoders.rtognimp2003-06-081-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10262 b3059339-0415-0410-9bf9-f77b7e298cf2
* MACOSX support patch, based on Dan Christiansens workalex2003-02-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9503 b3059339-0415-0410-9bf9-f77b7e298cf2
* DMO audio support (including 6ch support too)arpi2002-12-011-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8327 b3059339-0415-0410-9bf9-f77b7e298cf2
* qt video dll codecs supportarpi2002-11-121-0/+2
| | | | | | | based on sample svq3 decoder code by Sascha Sommer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8161 b3059339-0415-0410-9bf9-f77b7e298cf2
* usage of libmpeg2, liba52, mp3lib & svq1 can be disabledarpi2002-11-011-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8027 b3059339-0415-0410-9bf9-f77b7e298cf2
* qtaudio - audio decoder using win32 quicktime 5 dllsarpi2002-10-311-0/+2
| | | | | | | based on code by Sascha Sommer <saschasommer@freenet.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8009 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync driver names with codec-cfgarpi2002-08-301-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7175 b3059339-0415-0410-9bf9-f77b7e298cf2
* native DV audio/video decoders using libdvarpi2002-08-051-0/+4
| | | | | | | based on patch by Alexander Neundorf <neundorf@kde.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6928 b3059339-0415-0410-9bf9-f77b7e298cf2
* readaudio decoder - not yet workingarpi2002-06-101-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6368 b3059339-0415-0410-9bf9-f77b7e298cf2
* vf control codes added, autoq supportarpi2002-04-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5520 b3059339-0415-0410-9bf9-f77b7e298cf2
* libmad support, rewritten from scratch using Xine decoder as samplearpi2002-04-031-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5480 b3059339-0415-0410-9bf9-f77b7e298cf2
* ehh. vorbis support...arpi2002-04-011-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5455 b3059339-0415-0410-9bf9-f77b7e298cf2
* reworked ADPCM decoders; changes include:melanson2002-03-301-2/+0
| | | | | | | | | | * fixed MS IMA ADPCM * dissolved adpcm.c/.h into appropriate ad_* decoders * DK4 audio is handled directly by IMA ADPCM decoder (this obsoletes ad_dk4adpcm.c) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5409 b3059339-0415-0410-9bf9-f77b7e298cf2
* Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved ↵atmos42002-03-261-0/+4
| | | | | | buffering scheme. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5357 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_msgsm addedarpi2002-03-251-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5346 b3059339-0415-0410-9bf9-f77b7e298cf2
* ok, use ad_* stuffarpi2002-03-251-0/+58
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5345 b3059339-0415-0410-9bf9-f77b7e298cf2