[MPlayer-dev-eng] Proposed changes to af_resample

Anders Johansson ajh at watri.uwa.edu.au
Wed Jan 8 01:22:20 CET 2003


> On Tue, Jan 07, 2003 at 05:56:24PM +0800, Anders Johansson wrote:
> > Hi,
> > 
> > I have had a look at af_resample now. Instead of writing straight to
> > the CVS I am attaching a patch. If everyone think it is OK I will
> > apply it.
> > 
> > The basic changes are:
> > 1. If the input and output frequencies are almost the same linear
> >    interpolation is used. The increase in CPU load is negligible (try
> >    it yourself) and it is impossible to hear the errors.
> > 
> > 2. If input is float or if the user specify float then float
> >    processing is used.
> > 
> > 3. int processing and sloppy resampling is enabled by default, and
> >    will be used unless 1. or 2. applies.
> 
> Why is sloppy enabled by default? It sounds like #1 already takes care
> of the problem that sloppy was designed for, without generating
> incorrect samplerate as output.

Rule 1 only takes care of cases when input and output frequencies are
very close. The sloppy switch takes care of the cases when resampling
is needed but gcd(fin,fout)>5000, which would lead to slow startup. 

> Rich

//Anders



More information about the MPlayer-dev-eng mailing list