summaryrefslogtreecommitdiffstats
path: root/libaf/af.c
Commit message (Collapse)AuthorAgeFilesLines
* audio: auto-add downmix filter when stereo output is requestedcigaes2010-11-021-0/+25
| | | | | | | | | | When -channels 2 [default] is specified and the audio decoder used does not support internal downmixing, automatically add a pan filter after the decoder to downmix to stereo. Patch by Clément Bœsch, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32356 b3059339-0415-0410-9bf9-f77b7e298cf2
* af.c: Minor simplification of af_initreimar2010-11-021-5/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32347 b3059339-0415-0410-9bf9-f77b7e298cf2
* af.c: add "const" to af_append(), af_prepend() prototypesreimar2010-11-021-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32346 b3059339-0415-0410-9bf9-f77b7e298cf2
* build: enable/disable all FFmpeg libraries togetherUoti Urpala2010-11-021-3/+3
| | | | | | | | | 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
* af_lavcac3enc: actually enable the filter by defaultUoti Urpala2010-05-261-3/+1
| | | | | The filter was changed earlier to allow building without FFmpeg internal symbols. Make it actually available by default.
* Merge svn changes up to r30663Uoti Urpala2010-03-101-42/+55
|\ | | | | | | | | | | | | Conflicts: gui/cfg.c libmpcodecs/vd_dmo.c mplayer.c
| * Move code that makes the filter chain match the desired output format intoreimar2010-02-191-42/+55
| | | | | | | | | | | | | | | | | | a separate function. Call this function also from af_add, fixes audio corruption with e.g. -softvol -af format=s16be (bug #1561). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30659 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30375Uoti Urpala2010-01-251-0/+1
|\|
| * Add a proper header for our strsep implementation so strsep willreimar2010-01-171-0/+1
| | | | | | | | | | | | | | not be used without a declaration, causing issues on 64 bit systems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30355 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-43/+43
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | build: Readd support for code depending on FFmpeg internalsUoti Urpala2009-07-261-1/+1
| | | | | | | | | | | | | | | | Add configure option --ffmpeg-source-dir=PATH. If the user specifies this option then building code that depends on FFmpeg internals is enabled and the files files which use internal lavf headers will get them from this path. The FFmpeg libraries linked with must export needed internal symbols.
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-43/+43
|/
* Add libbs2b audio filter itself.bircoph2009-04-021-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29132 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary malloc.h #includes and related #ifdeffery.diego2009-04-021-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove af_msg special-casing API in libaf.bircoph2009-03-281-18/+15
| | | | | | | Replace it by standard mp_msg message system. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29088 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing #include "config.h", fixes the warning:diego2009-02-211-0/+1
| | | | | | | libaf/af.c:23:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28697 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add statistics audio filter that prints information about the audio stream.diego2009-02-211-0/+2
| | | | | | | patch by Nicolas George, nicolas.george normalesup org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28696 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:diego2009-02-171-1/+1
| | | | | | | mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace informal license notices by standard license headerdiego2009-01-051-0/+18
| | | | | | | and add standard license header where missing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28264 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename a bunch of miscellaneous preprocessor directives.diego2008-08-071-1/+1
| | | | | | | Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27423 b3059339-0415-0410-9bf9-f77b7e298cf2
* Start unifying names of internal preprocessor directives.diego2008-07-301-4/+4
| | | | | | | | 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
* Add new audio filter for encoding multi-channel audio into ac3 at runtime.ulion2007-12-131-0/+4
| | | | | | | | And if set first parameter of this filter to 1, it will do ac3 passthrough like hwac3 did. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25385 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix my wrong code in r25530.ulion2007-12-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25334 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix missing command line bug by making the input parameter constant.ulion2007-12-101-6/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25330 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prevent from using data->len when data is NULL (when play() return NULL).ulion2007-11-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25143 b3059339-0415-0410-9bf9-f77b7e298cf2
* A/V sync: take audio filter buffers into accountuau2007-11-011-1/+2
| | | | | | | | | | | | | | | | | | Substract the delay caused by filter buffering when calculating currently playing audio position. This matters for af_scaletempo which buffers significant and varying amounts of data. For other current filters the effect is normally insignificant. Instead of the old time-based filter delay field (which was ignored) this version stores the per-filter delay in units of bytes input read without corresponding output. This allows the current scaletempo behavior where other filters before and after it can see the same nominal samplerate even though the real duration of the data varies; in this case the other filters can not know the delay they're causing in terms of real time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24928 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add audio filter scaletempouau2007-11-011-0/+2
| | | | | | | Patch by Robert Juliano, juliano.1 osu edu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24924 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change decode_audio() interfaceuau2007-11-011-20/+3
| | | | | | | | | | | | Rewrite decode_audio to better deal with filters that handle input in large blocks. It now always places output in sh_audio->a_out_buffer (which was always given as a parameter before) and reallocates the buffer if needed. After the changes filters can return arbitrarily large blocks of data without some of it being lost. The new version also allows simplifying some code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24920 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some pointless 'inline' qualifiersuau2007-11-011-1/+1
| | | | | | | Most of these functions aren't even used in the same translation unit. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24918 b3059339-0415-0410-9bf9-f77b7e298cf2
* libaf: Remove rational number implementationuau2007-11-011-47/+0
| | | | | | | | Remove the mul/cancel/gcd functions and some related code. Use ff_gcd instead of the removed af_gcd in af_resample.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24917 b3059339-0415-0410-9bf9-f77b7e298cf2
* libaf: change filter input/output ratio calculationsuau2007-11-011-27/+16
| | | | | | | | | | Change the audio filters to use a double instead of rationals for the ratio of output to input size. The rationals could overflow when calculating the overall ratio of a filter chain and gave no real advantage compared to doubles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24916 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused functions in af.cuau2007-11-011-33/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24915 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change value used to indicate "unknown audio format" from 0 to -1.uau2006-11-081-2/+4
| | | | | | | 0 collided with a valid format value. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20787 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix stupid use of multiplication to check signs which fails because of uau2006-09-181-5/+1
| | | | | | | | overflow. Negative values do not seem to be used so just remove the failing test. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19889 b3059339-0415-0410-9bf9-f77b7e298cf2
* makes several libaf functions static coz they are not used outside their ↵reynaldo2006-07-091-5/+5
| | | | | | source files. Patch by Stefan Huehner, stefan AT huehner-org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18972 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename sinesupress to sinesuppress, including af_sinesupress.c file rename.corey2006-06-071-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18612 b3059339-0415-0410-9bf9-f77b7e298cf2
* New karaoke afreynaldo2006-05-131-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18471 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get ride of the several if(identify) messy lines and rearangment of some of ↵reynaldo2006-04-241-2/+0
| | | | | | the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
* very simple filter which can remove a sine at a specified frequency, usefull ↵michael2006-04-131-0/+2
| | | | | | | | | to get rid of the 50/60hz noise on ultra crappy equipment probably works only with 1 channel input git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18083 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix memory leak when filter with given name does not exist.reimar2006-03-081-4/+4
| | | | | | | Also prints which filter failed in the malloc-failed case git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17781 b3059339-0415-0410-9bf9-f77b7e298cf2
* semi-hack: avoid passing 0-length blocks to audio filters.reimar2005-10-201-0/+1
| | | | | | | Fixes bugzilla bug #391 (lavcresample crashes). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16816 b3059339-0415-0410-9bf9-f77b7e298cf2
* documentation-only patch: make doxygen compatible and createreimar2005-10-011-6/+10
| | | | | | | af_chain and af_filter doxygen modules. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16628 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid hang with -af-adv force=3reimar2005-07-231-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16073 b3059339-0415-0410-9bf9-f77b7e298cf2
* make -srate work again, unify audio filter init and preinit.reimar2005-06-241-15/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15812 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix mp_msg vs af_msg usage as pointed out by Ivo.diego2005-06-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15792 b3059339-0415-0410-9bf9-f77b7e298cf2
* adds some more -identify output, patch by kiriuja < mplayer DASH patches PAM ↵gpoirier2005-06-201-0/+2
| | | | | | en DASH directo POUM net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15790 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prevent segfault when filter chain is empty (e.g. because allreimar2005-05-011-0/+5
| | | | | | | filters returned AF_DETACH). Fixes bugzilla bug #293. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15313 b3059339-0415-0410-9bf9-f77b7e298cf2
* change list traversal so the loop begins at the first filter after removinghenry2005-04-161-13/+12
| | | | | | | one, instead at the second git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15192 b3059339-0415-0410-9bf9-f77b7e298cf2
* finally remove the refences to bps outside libaf. also simplification of ↵alex2005-02-251-5/+6
| | | | | | some messages and removed redundants git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14819 b3059339-0415-0410-9bf9-f77b7e298cf2
* filter for adding a center channel, adding a high pass filter would be nicealex2005-02-211-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14751 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make this file compile with gcc-4.0.0:gpoirier2005-01-221-3/+3
| | | | | | | | It's syntacticly incorrect to use the "&" operand to take the address of a variable that is declared as "register" as a register has no address. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14570 b3059339-0415-0410-9bf9-f77b7e298cf2
* always cancel down fractions (frac_t) to avoid overflows and playbackreimar2005-01-081-6/+46
| | | | | | | | problems (e.g. when using resample and equalizer filters together, see http://mplayerhq.hu/pipermail/mplayer-users/2004-December/050058.html) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14434 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_bits2fmt and af_str2fmt_short, also removed the extra FORMAT_BPS control ↵alex2005-01-031-4/+4
| | | | | | in format.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14336 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use lavcresample only when libavcodec is compiled in.reimar2005-01-031-8/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14327 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make af_control_any_rev return the matching filterreimar2005-01-011-5/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14293 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use lavcresample when accuracy-optimized audio filter chain is requested.reimar2004-12-261-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14244 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adds support for LADSPA (Linux Audio Developer's Simple Plugin API) plugins.ivo2004-12-231-0/+4
| | | | | | | | | | Compilation is optional and can be controled by configure. You need to have the LADSPA SDK installed in order to have it autodetected by configure. Manual page is updated. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14218 b3059339-0415-0410-9bf9-f77b7e298cf2
* head related transfer functionhenry2004-11-201-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13997 b3059339-0415-0410-9bf9-f77b7e298cf2
* sine sweep generatormichael2004-10-211-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13722 b3059339-0415-0410-9bf9-f77b7e298cf2
* libavcodec resampling ...michael2004-10-211-0/+4
| | | | | | | libaf doesnt seem to support planar audio, so we need to convert it :( git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13714 b3059339-0415-0410-9bf9-f77b7e298cf2
* make af_help conform better to the the afm/vfm/etc equivalentsalex2004-10-051-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13567 b3059339-0415-0410-9bf9-f77b7e298cf2
* reimplementation of the pl_extrastereo and pl_volnorm pluginsalex2004-10-041-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13551 b3059339-0415-0410-9bf9-f77b7e298cf2
* mplayer -af help now lists all available audio filters.ivo2004-09-061-0/+8
| | | | | | | Updated manual page. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13270 b3059339-0415-0410-9bf9-f77b7e298cf2
* Send a command throught the filter chain until some item returns AF_OK. ↵alex2004-06-251-2/+14
| | | | | | Patch by Reimar Doeffinger git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12669 b3059339-0415-0410-9bf9-f77b7e298cf2
* if the user wants fast, use fast code! otherwise the user has to putrfelker2004-01-271-0/+6
| | | | | | | | af=resample=44100:0:0 in the config file, which will resample all files, not just ones that need it. libaf still sux! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11860 b3059339-0415-0410-9bf9-f77b7e298cf2
* disable af export for systems without mmapfaust32003-09-211-15/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10909 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding filter for exporting audio data to visual effect applicationsanders2003-09-201-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10893 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding support for more logical libaf configurationanders2003-01-171-3/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8970 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding sub-woofer filter, use this filter to add a sub channel to the audio ↵anders2003-01-071-0/+2
| | | | | | stream git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8833 b3059339-0415-0410-9bf9-f77b7e298cf2
* sig 11 fix in reinit and resample + spelling error fixesanders2003-01-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8712 b3059339-0415-0410-9bf9-f77b7e298c