summaryrefslogtreecommitdiff
path: root/libswresample/resample.c
Commit message (Collapse)AuthorAge
* swresample: replace 2 av_free() by av_freep()Michael Niedermayer2013-09-16
| | | | | | avoids leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/resample: fix filter rounding and cliping for s32Michael Niedermayer2013-02-04
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/ build_filter: use av_calloc() fix buffer overflowMichael Niedermayer2013-01-27
| | | | | | | Fixes integer & buffer overflow Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lswr: Improve default resampler's default parametersAlexander Strasser2013-01-04
| | | | | | | | | | | | | | After making some blind tests on a small collection of music samples for home usage. It turned out that the default cutoff was too low. The impact of filter_size was not clearly distinguishable (the results were on the edge) with the music samples but turned out to be clearly audible in some synthetic samples. Thanks to Daniel for helping out with the listening tests. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* swr: Add SOX resampler supportRob Sykes2012-12-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add a lowpass default so that each Resampler can have its own default.Rob Sykes2012-12-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move flush into ResamplerMichael Niedermayer2012-12-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Add API to make resample engine selectable.Rob Sykes2012-12-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/resample: fix SSSE3 included unconditionally.Clément Bœsch2012-11-15
| | | | 10l Regression since 8ea88339.
* swr/resample: move templating parameters to template itself.Clément Bœsch2012-11-15
| | | | | | | | | It has various benefits such as allowing some refactoring, clarifying the code in the inclusion part, and making the template understandable in standalone. This commit is based on the templating method used by Justin Ruggles for libavresample.
* swri_resample_init: unsupported sample formats are an internal error.Michael Niedermayer2012-10-11
| | | | | | | This condition cannot happen. Fixes CID733802 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/resample: mark mm_flags as potentially unusedMichael Niedermayer2012-09-13
| | | | | | They are unused when asm is disabled Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libswr: remove redundant ARCH_X86, MMX* implicates X86Michael Niedermayer2012-09-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swsresample: Fix unprotected inline asmDerek Buitenhuis2012-09-07
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/resample: update SSSE3 flag to new nameMichael Niedermayer2012-09-01
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bessel: check that the function terminates as expected by av_assert2().Michael Niedermayer2012-08-09
| | | | | | A clear abort is better than wrong output and a possible crash. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: resampling: add filter type and Kaiser window beta to AVOptionsJustin Ruggles2012-07-23
|
* swr: fix MMX resample code, add emmsMichael Niedermayer2012-06-30
| | | | | | Fixes Ticket1495 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix compilation with ancient toolchain that doesnt support SSSE3Michael Niedermayer2012-06-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: MMX2 & SSSE3 int16 resample coreMichael Niedermayer2012-06-28
| | | | | | about 4 times faster Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: introduce filter_alloc in preparation of SIMD resample optimisationsMichael Niedermayer2012-06-19
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add swr_get_delay() to find the exact delay the swresampler introduces.Michael Niedermayer2012-05-18
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: change sample format representation so as to maintain the planer/packed ↵Michael Niedermayer2012-04-28
| | | | | | distinction. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: simplify code by using av_get_bytes_per_sample()Michael Niedermayer2012-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* resample: support double precission resamplingMichael Niedermayer2012-04-10
| | | | | | | This commit is dedicated to the audiophiles who can hear it when a needle is dropped on the moon. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support float & int32 in the resamplerMichael Niedermayer2012-04-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* resample: update copyright years, they where incorrect.Michael Niedermayer2012-04-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* resample: Fix boundary handling with fragments.Michael Niedermayer2012-03-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libswresample: introduce int swr_set_compensation() instead of void ↵Marton Balint2012-01-09
| | | | | | | | | | swr_compensate() The new version returns AVERROR(EINVAL) is the specified paramters are invalid, and also creates the resampler if none was used so far. Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: use int16_t instead of short for resampling.Clément Bœsch2011-11-17
|
* swr: use "swri_" prefix instead of "swr_" for the private API.Clément Bœsch2011-11-17
|
* swr: drop 'AV' prefix from ResampleContext.Clément Bœsch2011-11-17
| | | | This type/struct is not part of the public API.
* swr: rename resample2 to resample.Clément Bœsch2011-11-16