mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
7b398701cf
Since range size is always 2^n, we can simply use modulo (implemented with a bitmask). The previous implementation used 64-bit integer division, which is done in software on ARMv7. Although the divisor was constant, the division could not be transformed into "multiplication by magic number" since the dividend was 64-bit. The now-unused and not-so-fast gst_fast_random_(u)int32_range functions were removed. Also, implementing bug fixes: 1) ADD_DITHER_TPDF_HF_I no longer discards bias. 2) We change TPDF's noise range to be the same as RPDF's. Previously, RPDF's noise ranged: { bias - dither, bias + dither } while TPDF's noise ranged: { bias/2 - dither/2, bias/2 + dither/2 - 1 } + { bias/2 - dither/2, bias/2 + dither/2 - 1 } = { bias - dither, bias + dither - 2 } Now, both range: { bias - dither, bias + dither - 1 } https://bugzilla.gnome.org/show_bug.cgi?id=746661 |
||
---|---|---|
.. | ||
adder | ||
app | ||
audioconvert | ||
audiorate | ||
audioresample | ||
audiotestsrc | ||
encoding | ||
gio | ||
playback | ||
subparse | ||
tcp | ||
typefind | ||
videoconvert | ||
videorate | ||
videoscale | ||
videotestsrc | ||
volume | ||
Makefile.am |