aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmDither.cxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pcm/Volume: improved ditheringMax Kellermann2013-12-281-0/+13
| | | | | Instead of just adding a rectangular random value before shifting back to the normal scale, use the existing PcmDither library.
* pcm/PcmDither: inline Dither24To16() and Dither32To16()Max Kellermann2013-12-281-2/+2
|
* pcm/Dither: move shift from DitherConvert() to Dither()Max Kellermann2013-12-241-2/+2
| | | | All callers need this shift, so let's move it to the basic method.
* pcm/Dither: rename DitherShift() to DitherConvert()Max Kellermann2013-12-241-7/+7
|
* pcm/Dither: convert remaining methods to templatesMax Kellermann2013-12-221-21/+27
| | | | | Use the SampleTraits template and let the compiler generate a special case for S32 instead of reusing S24_P32.
* pcm/Dither: generic sample dithering using templateMax Kellermann2013-12-221-13/+22
|
* pcm_*: move to src/pcm/Max Kellermann2013-04-091-0/+89