Skip to content
  • Sebastian Dröge's avatar
    gst/audioconvert/audioconvert.c: Add docs to the integer pack functions and... · 293a9c09
    Sebastian Dröge authored
    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.
    293a9c09
To find the state of this project's repository at the time of any of these versions, check out the tags.
ChangeLog 1.12 MiB