gst/audioconvert/audioconvert.c: Add docs to the integer pack functions and implement...
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 27 Mar 2007 12:44:14 +0000 (12:44 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 27 Mar 2007 12:44:14 +0000 (12:44 +0000)
commit293a9c09b858faeda971300a8f00a439b73aeb37
treeb5697504d5bdcc774e26f0d95a785bf2606dab40
parente1544977a6c6413e9ca39a9044139dba3b4e9b94
gst/audioconvert/audioconvert.c: Add docs to the integer pack functions and implement proper rounding. Before we had ...

Original commit message from CVS:
* gst/audioconvert/audioconvert.c:
Add docs to the integer pack functions and implement proper
rounding. Before we had rounding towards negative infinity, i.e.
always the smaller number was taken. Now we use natural rounding,
i.e. rounding to the nearest integer and to the one with the largest
absolute value for X.5. The old rounding introduced some minor
distortions. Fixes #420079
* tests/check/elements/audioconvert.c: (GST_START_TEST):
Fix one unit test that assumed the old rounding and added unit tests
for checking signed/unsigned int16 <-> signed/unsigned int16 with
depth 8, one for signed int16 <-> unsigned int16 and one for the new
rounding from signed int32 to signed/unsigned int16.
ChangeLog
gst/audioconvert/audioconvert.c
tests/check/elements/audioconvert.c