summaryrefslogtreecommitdiffstats
path: root/libswresample/swresample_internal.h
Commit message (Collapse)AuthorAgeFilesLines
* swresample: Use double and float for matrixes for best quality and speedMichael Niedermayer2016-09-271-1/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swresample: Skip over dither steps if dithering scale is 0Michael Niedermayer2016-08-181-0/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swresample: add exact_rational optionMuhammad Faiz2016-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | give high quality resampling as good as with linear_interp=on as fast as without linear_interp=on tested visually with ffplay ffplay -f lavfi "aevalsrc='sin(10000*t*t)', aresample=osr=48000, showcqt=gamma=5" ffplay -f lavfi "aevalsrc='sin(10000*t*t)', aresample=osr=48000:linear_interp=on, showcqt=gamma=5" ffplay -f lavfi "aevalsrc='sin(10000*t*t)', aresample=osr=48000:exact_rational=on, showcqt=gamma=5" slightly speed improvement for fair comparison with -cpuflags 0 audio.wav is ~ 1 hour 44100 stereo 16bit wav file ffmpeg -i audio.wav -af aresample=osr=48000 -f null - old new real 13.498s 13.121s user 13.364s 12.987s sys 0.131s 0.129s linear_interp=on old new real 23.035s 23.050s user 22.907s 22.917s sys 0.119s 0.125s exact_rational=on real 12.418s user 12.298s sys 0.114s possibility to decrease memory usage if soft compensation is ignored Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* all: Make header guard names consistentTimothy Gu2016-01-311-2/+2
|
* swresample: allow double precision beta value for the Kaiser windowGanesh Ajjanagadde2015-11-081-2/+2
| | | | | | | | | | | | | Kaiser windows inherently don't require beta to be an integer. This was an arbitrary restriction. Moreover, soxr does not require it, and in fact often estimates beta to a non-integral value. Thus, this patch allows greater flexibility for swresample clients. Micro version is updated. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swresample/swresample_internal: add av_warn_unused_resultGanesh Ajjanagadde2015-10-151-0/+4
| | | | | | | This will trigger a few warnings that need to be fixed. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* lswr: Allow 64 channels internally.Carl Eugen Hoyos2015-07-171-1/+1
|
* swr: Remember previously set int_sample_format from userMichael Niedermayer2015-06-221-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: soxr implementation for swr_get_out_samples()Rob Sykes2015-06-211-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Add swr_get_out_samples()Michael Niedermayer2015-06-041-0/+2
| | | | | | Previous version reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com> Previous version reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/dither: check memory allocationGanesh Ajjanagadde2015-06-031-1/+1
| | | | | | check memory allocation in swri_get_dither() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Allow reinitialization without ever setting channel layoutsMichael Niedermayer2015-04-121-0/+2
|
* swresample: Allow reinitialization without ever setting channel countsMichael Niedermayer2015-04-121-0/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Add prefix to soxr_resamplerMichael Niedermayer2015-02-271-0/+2
| | | | | | also move declaration to header Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/x86/rematrix_init: Check av_malloc* return codes, forward errorsMichael Niedermayer2015-02-091-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Use int instead of enum for fields which are accessed through ↵Michael Niedermayer2015-02-021-4/+4
| | | | | | AVOptions as int Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample_internal.h: Move struct declaration before first use.Reimar Döffinger2015-01-271-21/+21
| | | | | | | It seems more logical and works with more restricted C compilers like tinycc. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* swr: aarch64 audio_convert and neon clobber testMichael Niedermayer2014-08-271-0/+4
| | | | | | | Ported from avresample Code by: Mans Rullgard, Janne Grunau, Martin Storsjo Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bump libpostproc and libswresampleMichael Niedermayer2014-08-101-0/+2
| | | | | | | this is needed / avoids some headaches as one of their dependancies (libavutil) was bumped Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix spelling errorsAndreas Cadhalpun2014-07-121-1/+1
| | | | | Reviewed-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: remove obsolete resample prototypesJames Almer2014-07-021-4/+0
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: handle initial negative sample index outside DSP function.Ronald S. Bultje2014-06-141-0/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Make rematrix maxvalue user settableMichael Niedermayer2013-07-221-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add native_simd_oneMichael Niedermayer2013-06-041-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support a seperate output sample bits.Michael Niedermayer2013-02-241-0/+1
| | | | | | This avoids user apps having to mangle dither scale. for pcm24 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support first_ptsMichael Niedermayer2013-01-211-0/+2
| | | | | Trolled-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move silence buffer to context to avoid per use malloc/freeMichael Niedermayer2013-01-131-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move buffer used to discard sample to contextMichael Niedermayer2013-01-131-0/+1
| | | | | | | | This avoids the need to allocate & free to repeatly Fixes Ticket2122 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-101-0/+1
| | | | | | This avoids copying the input Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: mark noise data for noise shaping as constMichael Niedermayer2013-01-101-4/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add seperate in/out pointers to the noise shaping codeMichael Niedermayer2013-01-101-4/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: rename dither_pos to noise_posMichael Niedermayer2013-01-101-1/+1
| | | | | | THis more closely matches what the field represents Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add noise_scale field to seperate it from the noise shaping scalesMichael Niedermayer2013-01-101-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix the noise sample type for noise shapingMichael Niedermayer2013-01-091-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: split swri_dither_init() outMichael Niedermayer2013-01-091-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move dither related fields to their own contextMichael Niedermayer2013-01-091-10/+15
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: update copyright years of a few files iam working onMichael Niedermayer2013-01-091-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Implement Noise shaping ditherMichael Niedermayer2013-01-091-0/+14
| | | | | | | | | | | | | | | 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>
* docs: add soxr documentationRob Sykes2012-12-271-11/+11
| | | | 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-251-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Add SOX resampler supportRob Sykes2012-12-111-1/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move flush into ResamplerMichael Niedermayer2012-12-111-0/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: make realloc_audio() available outside swresample.cMichael Niedermayer2012-12-111-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Add API to make resample engine selectable.Rob Sykes2012-12-111-4/+19
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Replace rest of libavutil/audioconvert.h with libavutil/channel_layout.hPaul B Mahol2012-11-131-1/+1
| | | | | | Also remove it in once case when it is not needed. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* swr: use 64bit index/len for x86_64 mixMichael Niedermayer2012-10-281-3/+10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ARM: libswresample: NEON optimised flat float to s16 conversionMans Rullgard2012-09-241-0/+4
| | | | | Adapted to swr by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add Dolby/DPLII downmix support to libswresampleMichael Niedermayer2012-09-071-0/+4
| | | | | | Based on code by John Stebbins <jstebbins.hb@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: update copyright yearsMichael Niedermayer2012-09-071-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: resampling: add filter type and Kaiser window beta to AVOptionsJustin Ruggles2012-07-231-1/+3
|
OpenPOWER on IntegriCloud