summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad_liba52.c
Commit message (Collapse)AuthorAgeFilesLines
* Rip out 3DNOW supportwm42012-07-301-4/+0
| | | | | | | | Ancient AMD specific enhancement to the MMX instruction set. Officually discontinued by AMD. Note that support for this was already disabled in the previous commit. This commit removes the actual code.
* Remove compile time/runtime CPU detection, and drop some platformswm42012-07-301-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mplayer had three ways of enabling CPU specific assembler routines: a) Enable them at compile time; crash if the CPU can't handle it. b) Enable them at compile time, but let the configure script detect your CPU. Your binary will only crash if you try to run it on a different system that has less features than yours. This was the default, I think. c) Runtime detection. The implementation of b) and c) suck. a) is not really feasible (it sucks for users). Remove all code related to this, and use libav's CPU detection instead. Now the configure script will always enable CPU specific features, and disable them at runtime if libav reports them not as available. One implication is that now the compiler is always expected to handle SSE (etc.) inline assembly at runtime, unless it's explicitly disabled. Only checks for x86 CPU specific features are kept, the rest is either unused or barely used. Get rid of all the dump -mpcu, -march etc. flags. Trust the compiler to select decent settings. Get rid of support for the following operating systems: - BSD/OS (some ancient BSD fork) - QNX (don't care) - BeOS (dead, Haiku support is still welcome) - AIX (don't care) - HP-UX (don't care) - OS/2 (dead, actual support has been removed a while ago) Remove the configure code for detecting the endianness. Instead, use the standard header <endian.h>, which can be used if _GNU_SOURCE or _BSD_SOURCE is defined. (Maybe these changes should have been in a separate commit.) Since this is a quite violent code removal orgy, and I'm testing only on x86 32 bit Linux, expect regressions.
* ad_liba52: Fix -ac a52 with tags other than 0x2000 or dnetreimar2011-04-131-3/+3
| | | | | | | Audio with all codec tags other than 0x2000 was byte-swapped, while only "dnet" should be. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33028 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_liba52: fix -a52drc handlingUoti Urpala2010-11-231-1/+1
| | | | Custom values other than 0 were ignored. Fix.
* Remove remaining %lf printf conversionsreimar2010-11-021-0/+1
| | | | | | Most cases are just code in comments. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32438 b3059339-0415-0410-9bf9-f77b7e298cf2
* options: move audio_output_channels, audio_output_format to structUoti Urpala2010-11-021-2/+3
|
* options: move -a52drc to option structUoti Urpala2010-06-021-9/+8
| | | | Also allow a range up to 2.
* Merge svn changes up to r31169Uoti Urpala2010-05-301-16/+0
|\
| * Remove internal liba52 copy.diego2010-05-091-16/+0
| | | | | | | | | | | | | | Nowadays FFmpeg is faster than liba52 and external liba52 is well supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31147 b3059339-0415-0410-9bf9-f77b7e298cf2
| * libmpcodecs: Mark functions not used outside of their files as static.diego2010-02-161-2/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30597 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Mark all ad_info_t/vd_info_t structure declarations as const.diego2010-02-121-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30546 b3059339-0415-0410-9bf9-f77b7e298cf2
* | cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf"Uoti Urpala2010-05-291-2/+4
| | | | | | | | | | | | | | Change 'struct vf_instance' pointer arguments to more standard style as in the subject. Also some other minor formatting fixes. Patch by Diego Biurrun.
* | Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | | | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* | Merge svn changes up to r30463Uoti Urpala2010-03-091-0/+18
|\| | | | | | | | | | | 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-0/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30463 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-4/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-3/+3
| |
* | Merge svn changes up to r28537Uoti Urpala2009-02-121-1/+1
|\|
| * Give _XOPEN_SOURCE #define an explicit 600 value. Fixes build on Open Solaris.diego2009-02-071-1/+1
| | | | | | | | | | | | | | patch by Imran Syed, freakabcd gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28480 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28461Uoti Urpala2009-02-041-0/+1
|\|
| * swab() needs _XOPEN_SOURCE to be defined.reimar2009-02-031-0/+1
| | | | | | | | | | | | | | Fixes two implicit declaration warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28455 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27649Uoti Urpala2008-09-201-0/+25
|\| | | | | | | | | | | | | Conflicts: Makefile configure libvo/x11_common.c
| * External liba52 support, part 2 of 2.rathann2008-09-151-0/+19
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27620 b3059339-0415-0410-9bf9-f77b7e298cf2
| * External liba52 support part 1 of 2.rathann2008-09-151-0/+6
| | | | | | | | | | | | | | | | | | | | Conditionalize enabling of some the acceleration because liba52-0.7.4 doesn't support all that MPlayer's included copy does. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27619 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make various functions staticUoti Urpala2008-08-121-2/+2
| |
* | Merge svn changes up to r26979Uoti Urpala2008-06-041-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the conflicts are trivial. Conflicts: Makefile cfg-mplayer.h input/input.c libmenu/vf_menu.c libmpcodecs/dec_video.c libmpcodecs/vf_expand.c libmpcodecs/vf_vo.c libmpdemux/demux_mkv.c libmpdemux/demuxer.c libmpdemux/demuxer.h libvo/vo_directfb2.c libvo/vo_gl.c libvo/vo_winvidix.c libvo/vo_xv.c libvo/vo_xvidix.c libvo/vo_xvmc.c libvo/x11_common.c mplayer.c osdep/timer-linux.c stream/cache2.c
| * Properly free memory allocate by liba52.reimar2008-06-011-0/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26955 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make audio decoder description structs constUoti Urpala2008-04-261-1/+1
|/ | | | | | Make the per-decoder struct ad_functions and its ->info struct constants. Same for the mpcodecs_ad_drivers[] table of pointers to those structs.
* Remove duplicate #include of mpbswap.h.diego2008-03-141-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26237 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move extern int audio_output_channels; to ad_internal.hreimar2007-07-301-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23938 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure we always have a swab() prototype when we use it,reimar2007-06-241-0/+1
| | | | | | | even if we use our osdep/swab.c emulation git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23658 b3059339-0415-0410-9bf9-f77b7e298cf2
* Hack around libavutil/bswap.h compilation problems due to always_inline ↵reimar2006-12-071-1/+1
| | | | | | undefined. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove bswap.h, use libavutil/bswap.h instead.diego2006-11-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21388 b3059339-0415-0410-9bf9-f77b7e298cf2
* verbosity--;diego2006-09-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19950 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move #ifdefs around complete files into the build system.diego2006-06-211-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18774 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync with liba52 0.7.4, patch by Emanuele Giaquinta >emanuele.giaquinta ! ↵rathann2006-06-151-14/+9
| | | | | | | | | gmail * com< part 1: functional changes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18723 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure maxlen is respected, instead of just failing the assert later on.reimar2006-02-101-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17582 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.diego2005-11-181-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* No overlap allowed in memcpy, use memmovehzoli2005-05-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15561 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure that samplesize is at least 2, as some demuxers set it to 1hzoli2005-05-241-0/+1
| | | | | | | | (demux_ogg for ac3 in ogm) or possibly even 0, and it causes preinit to set audio_out_minsize too low, which causes overflow (assert). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15560 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix ADCTRL_SKIP_FRAME and add ADCTRL_RESYNC_STREAMhzoli2005-05-241-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15559 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add float output support. Add ADCTRL_QUERY_FORMAT control to report thehzoli2005-02-251-4/+85
| | | | | | | supported output formats. Add ADCTRL_SET_VOLUME (not yet used). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14818 b3059339-0415-0410-9bf9-f77b7e298cf2
* setting samplesize to 2 in decoders where neccessary.reimar2004-09-211-0/+1
| | | | | | | | Needed because initialization of sh_audio was moved from dec_audio to demuxer.c, and some demuxers set samplesize incorrect or to 0. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13428 b3059339-0415-0410-9bf9-f77b7e298cf2
* a52 dynamic range compression support by Peter Ganstereralex2004-04-261-0/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12286 b3059339-0415-0410-9bf9-f77b7e298cf2
* reversing my brokeness, but imho dnet is still broken on BE systemsalex2003-10-021-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10979 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix for bigendian systemsalex2003-09-261-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10950 b3059339-0415-0410-9bf9-f77b7e298cf2
* ac3 byteswapping support (when format!=0x2000)arpi2003-05-171-3/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10120 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec detection code ("borrowed" from FFmpeg andarpi2003-01-181-0/+1
| | | | | | | | | libmpeg2) & enough code to enable the AltiVec IMDCT in liba52 and the DCT64 in mp3lib. patch by Romain Dolbeau <dolbeau@irisa.fr> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9004 b3059339-0415-0410-9bf9-f77b7e298cf2
* usage of libmpeg2, liba52, mp3lib & svq1 can be disabledarpi2002-11-011-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8027 b3059339-0415-0410-9bf9-f77b7e298cf2
* -afm/-vfm help implemenetd, some cosmetics of ad/vd codec names/commentsarpi2002-08-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7192 b3059339-0415-0410-9bf9-f77b7e298cf2
* -afm/-vfm migration from ID (int) to NAME (string) - simplifies code and ↵arpi2002-08-301-1/+0
| | | | | | makes dlopen()'ing possible git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7181 b3059339-0415-0410-9bf9-f77b7e298cf2
* renamed to match driver family namearpi2002-08-301-0/+192
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7173 b3059339-0415-0410-9bf9-f77b7e298cf2