[gstreamer-bugs] [Bug 590919] gst_util_uint64_scale_int() and friends don't round

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Aug 10 22:25:03 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=590919

  GStreamer | gstreamer (core) | Ver: git

Kipp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #139999|0                           |1
        is obsolete|                            |
 Attachment #140001|0                           |1
        is obsolete|                            |
 Attachment #140002|0                           |1
        is obsolete|                            |




------- Comment #9 from Kipp  2009-08-11 05:24 UTC -------
Created an attachment (id=140411)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=140411&action=view)
refactor scale functions to allow re-use of their guts

This is the first of two patches to add rounding and ceiling versions of the
existing (truncating) functions _scale() and _scale_int() functions.  This
patch refactors the code, moving the wide integer multiplication and division
routines into stand-alone functions that can be reused to avoid duplication. 
This patch does not modify the exported API.

The division algorithms are replaced with versions that compute and return the
remainder as well as the quotient.  The remainder will be required, later, to
decide how to round the result, but is not currently used.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=590919.




More information about the Gstreamer-bugs mailing list