summaryrefslogtreecommitdiff
path: root/libswresample/dither_template.c
Commit message (Collapse)AuthorAge
* swresample/dither_template: Add missing license headerMichael Niedermayer2015-09-27
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swresample/dither_template: Do not define macro functions to nothingMichael Niedermayer2015-05-07
| | | | | | This avoids potential warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix "may be used uninitialized in this function" warningsMichael Niedermayer2013-01-20
| | | | | | | The uninitialized use implicates 0 channels, which is unlikely to reach this function but fixed anyway in this commit. 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: 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: 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: reorder the operations in the noise shaping codeMichael Niedermayer2013-01-10
| | | | 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: 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>