summaryrefslogtreecommitdiff
path: root/libswresample
Commit message (Collapse)AuthorAge
...
* swr: fix handling of timestamps that cause multiple drops or silence injectionsMichael Niedermayer2013-01-13
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: limit buffer size for silence injectionMichael Niedermayer2013-01-13
| | | | | | This reduces memory usage for unreasonable large silence injections Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: limit buffer size for discarding.Michael Niedermayer2013-01-13
| | | | | | | This prevents insane memory usage in case of insane input values. Untested due to lack of a testcase that causes such insane allocation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move silence buffer to context to avoid per use malloc/freeMichael Niedermayer2013-01-13
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move buffer used to discard sample to contextMichael Niedermayer2013-01-13
| | | | | | | | This avoids the need to allocate & free to repeatly Fixes Ticket2122 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: work with 4 noise shaping coeffs at a timeMichael Niedermayer2013-01-12
| | | | | | 63->38 kcycles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/noise_shaping_data: pad coeffs to multiple of 4 when they are 1 belowMichael Niedermayer2013-01-12
| | | | | | This allows using code working with 4 at a time Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: use a local variable for ns_coeffsMichael Niedermayer2013-01-12
| | | | | | maybe a very tiny bit faster Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: use local variable for ns_errorsMichael Niedermayer2013-01-12
| | | | | | 71 -> 63 kcycles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: minor simplification for the noise shaping pos updateMichael Niedermayer2013-01-12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: check that allocation of in/out_convert succeededMichael Niedermayer2013-01-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Use a temporary buffer for dither/Noise shaping when the input is read onlyMichael Niedermayer2013-01-10
| | | | | | This avoids copying the input Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: mark noise data for noise shaping as constMichael Niedermayer2013-01-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add seperate in/out pointers to the noise shaping codeMichael Niedermayer2013-01-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: rename dither_pos to noise_posMichael Niedermayer2013-01-10
| | | | | | THis more closely matches what the field represents Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: scale data down in noise shaping to avoid clipingMichael Niedermayer2013-01-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: reorder the operations in the noise shaping codeMichael Niedermayer2013-01-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add noise_scale field to seperate it from the noise shaping scalesMichael Niedermayer2013-01-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix the noise sample type for noise shapingMichael Niedermayer2013-01-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: split swri_dither_init() outMichael Niedermayer2013-01-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: remove unused variableMichael Niedermayer2013-01-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move dither related fields to their own contextMichael Niedermayer2013-01-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: update copyright years of a few files iam working onMichael Niedermayer2013-01-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Implement Noise shaping ditherMichael Niedermayer2013-01-09
| | | | | | | | | | | | | | | The following variants are implemented: lipshitz noise shaping dither shibata noise shaping dither low shibata noise shaping dither high shibata noise shaping dither f-weighted noise shaping dither modified-e-weighted noise shaping dither improved-e-weighted noise shaping dither Data tables taken from SOX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: use SIMD for ditheringMichael Niedermayer2013-01-09
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix assertion failure if dither is used without the preout buffer ↵Michael Niedermayer2013-01-08
| | | | | | differing from in 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>
* lswr: improve rematrixing error message.Nicolas George2012-12-31
| | | | | Report channel layout/count for insufficiently determined rematrixing.
* docs: add soxr documentationRob Sykes2012-12-27
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* soxr_resample: soxr API parameter renameRob Sykes2012-12-27
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* soxr_resample: Correct email addressRob Sykes2012-12-27
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support -async X as a simple way to do what ffmpeg -async X didMichael Niedermayer2012-12-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/doxy: fix missing quote in code example.Clément Bœsch2012-12-16
|
* audioconvert/arm: require alignment of 16Michael Niedermayer2012-12-14
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* audioconvert: support simd code with specific alignment requirements.Michael Niedermayer2012-12-14
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* 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: make realloc_audio() available outside swresample.cMichael 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>
* doxy: fix swr group nameMichael Niedermayer2012-12-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* resample: remove disabled debug codeMichael Niedermayer2012-12-06
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: remove unused ONE define.Clément Bœsch2012-12-05
|
* lswr/swresample: use AV_OPT_TYPE_SAMPLE_FMT for sample format optionsStefano Sabatini2012-12-03
| | | | Improve usability and robustness.
* swr: include stdint.h instead of inttypes.h.Clément Bœsch2012-11-20
| | | | | | | | | stdint.h is for the [u]int*_t types, which is the only thing we need for the prototypes. inttypes.h includes stdint.h and defines more thing we don't need here. Bump micro in case a user app was relying on this include for its own code.
* swr: fix a few typo in the public header.Clément Bœsch2012-11-20
|
* swr-doxy: elaborate on swr_get_delay() and the timebaseMichael Niedermayer2012-11-20
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: general doxy text about swr and example code.Michael Niedermayer2012-11-20
| | | | | | Based on doxy from avr Reviewed-by: Clément Bœsch Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: set default channel count options to 0.Clément Bœsch2012-11-19
| | | | | | If not set, they will be defined using the channel layout setting, which is much more convenient when using swr_alloc() instead of swr_alloc_set_opts().
* swr/resample: fix SSSE3 included unconditionally.Clément Bœsch2012-11-15
| | | | 10l Regression since 8ea88339.