gstreamer/gst/audioconvert
Ilya Konstantinov 7b398701cf audioconvert: Avoid int division in quantization
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
2015-03-24 16:52:07 +01:00
..
.gitignore gst/audioconvert/gstaudioconvert.c: create channel conversion matrix when linking 2005-02-13 17:39:22 +00:00
audioconvert.c Constify some static arrays everywhere 2015-01-21 09:49:47 +01:00
audioconvert.h Fix FSF address 2012-11-03 23:05:09 +00:00
audioconvert.vcproj more working plugins 2004-07-27 21:41:30 +00:00
gstaudioconvert.c docs: remove outdated and pointless 'Last reviewed' lines from docs 2014-04-26 23:28:57 +01:00
gstaudioconvert.h Fix FSF address 2012-11-03 23:05:09 +00:00
gstaudioconvertorc-dist.c orc: update orc files 2015-01-27 13:39:14 +00:00
gstaudioconvertorc-dist.h Update disted orc backup files 2013-04-22 13:58:33 +01:00
gstaudioconvertorc.orc audioconvert: prefix orc functions with audio_convert_orc_ 2012-07-23 17:24:13 +02:00
gstaudioquantize.c audioconvert: Avoid int division in quantization 2015-03-24 16:52:07 +01:00
gstaudioquantize.h Fix FSF address 2012-11-03 23:05:09 +00:00
gstchannelmix.c audioconvert: never do mixing for 1->1 channel conversions 2014-02-18 10:48:07 +00:00
gstchannelmix.h Fix FSF address 2012-11-03 23:05:09 +00:00
gstfastrandom.h audioconvert: Avoid int division in quantization 2015-03-24 16:52:07 +01:00
Makefile.am gst: Add better support for static plugins 2013-04-15 15:52:58 +02:00
plugin.c Fix FSF address 2012-11-03 23:05:09 +00:00
plugin.h Fix FSF address 2012-11-03 23:05:09 +00:00