summaryrefslogtreecommitdiff
path: root/libswresample/dither.c
Commit message (Collapse)AuthorAge
* swresample/dither: use av_malloc_array()Michael Niedermayer2014-04-08
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: set scale for 32->32/24 ditherMichael Niedermayer2013-06-05
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support a seperate output sample bits.Michael Niedermayer2013-02-24
| | | | | | This avoids user apps having to mangle dither scale. for pcm24 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/dither: fix division by 0Michael Niedermayer2013-01-14
| | | | | Found-by: Daemon404 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: 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: 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: 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: add a dither_scale parameter to tune the amplitude of the dither.Michael Niedermayer2012-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: pass context to swri_get_dither()Michael Niedermayer2012-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add triangular highpass ditherMichael Niedermayer2012-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add triangular dither supportMichael Niedermayer2012-04-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add dither support.Michael Niedermayer2012-04-10
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>