summaryrefslogtreecommitdiffstats
path: root/libaf/af_lavcresample.c
Commit message (Collapse)AuthorAgeFilesLines
* af_lavcresample: avoid multiple calls to av_resample_initreimar2010-11-021-2/+18
| | | | | | | | | | | | | Avoid calling av_resample_init again when the values are the same as before. The init function can be called multiple times when e.g. additional format filters are inserted, so this speeds things up. Patch by Dan Oscarsson [Dan.Oscarsson tieto com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31698 b3059339-0415-0410-9bf9-f77b7e298cf2 Reindent. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31699 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove trailing whitespace from most filesUoti Urpala2009-07-071-9/+9
|
* Use standard license headers with standard formatting.diego2008-05-141-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26772 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg now uses different (unified) #include paths.diego2008-02-251-8/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Relicense GPL v2 files as GPL v2+ and add proper license headers.diego2007-12-311-2/+19
| | | | | | | Done with permission from Michael Niedermayer, the author. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25557 b3059339-0415-0410-9bf9-f77b7e298cf2
* A/V sync: take audio filter buffers into accountuau2007-11-011-1/+1
| | | | | | | | | | | | | | | | | | 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
* libaf: change filter input/output ratio calculationsuau2007-11-011-7/+4
| | | | | | | | | | 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
* ff_gcd is already in libavutil/common.h, no need for an extra prototype herereimar2007-06-241-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23643 b3059339-0415-0410-9bf9-f77b7e298cf2
* reasonable cutoff frequency defaultmichael2007-03-221-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22773 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename open to af_open so as not to conflict with a previous header definition.diego2007-03-201-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22764 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move variable declaration to appropriate placereimar2007-02-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22200 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: remove tabs added in last commit from otherwise tab-free file.reimar2007-02-101-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22199 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory leaks.uau2007-02-101-2/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22197 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use AF_NCH for max number of channels instead of private CHANS define.uau2007-02-101-5/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22196 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move conditional compilation out of the code and into the build system.diego2006-01-311-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include paths by adding -I.. to CFLAGS.diego2005-11-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16983 b3059339-0415-0410-9bf9-f77b7e298cf2
* libavutil compile fix (working also with old libavcodec)reimar2005-08-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16169 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l to beastd due to new libavutil introductiongpoirier2005-08-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16168 b3059339-0415-0410-9bf9-f77b7e298cf2
* always cancel down fractions (frac_t) to avoid overflows and playbackreimar2005-01-081-4/+3
| | | | | | | | 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
* faster packed<->planar conversationmichael2004-12-311-6/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14284 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing AFMT_ dependancyalex2004-12-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make filters request a supported input format instead of failing.reimar2004-12-221-4/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14214 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initialize cutoff, too. Fixes crash when AF_CONTROL_COMMAND_LINE is not set.reimar2004-12-191-4/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14187 b3059339-0415-0410-9bf9-f77b7e298cf2
* libavcodec.so headers patch by (Glenn Washburn <glenniii at mail dot utexas ↵michael2004-11-031-0/+5
| | | | | | dot edu>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13860 b3059339-0415-0410-9bf9-f77b7e298cf2
* user selectable cutoff frequencymichael2004-10-211-6/+14
| | | | | | | simplify resampling factor if possible, so more then one resampler can be used, libaf will still die if there are too many like it does with the default resampler (2 with sampling rates which are relative prime are too many ...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13731 b3059339-0415-0410-9bf9-f77b7e298cf2
* libavcodec resampling ...michael2004-10-211-0/+155
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