diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 7e8cbd1d54..a8fbb3c79c 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -53908,23 +53908,26 @@ if the conversion worked or not. - Calculates the simpler representation of @a and @b. + Calculates the simpler representation of @numerator and @denominator and +update both values with the resulting simplified fraction. Simplify a fraction using a simple continued fraction decomposition. The idea here is to convert fractions such as 333333/10000000 to 1/30 using 32 bit arithmetic only. The algorithm is not perfect and relies upon two arbitrary parameters to remove non-significative terms from the simple continued fraction decomposition. Using 8 and 333 for -n_terms and threshold respectively seems to give nice results. +@n_terms and @threshold respectively seems to give nice results. + First value as #gint + Second value as #gint @@ -53932,6 +53935,7 @@ n_terms and threshold respectively seems to give nice results. + threshold (typical value: 333) diff --git a/subprojects/gstreamer/gst/gstutils.c b/subprojects/gstreamer/gst/gstutils.c index a48c72ee0f..12eeee9c02 100644 --- a/subprojects/gstreamer/gst/gstutils.c +++ b/subprojects/gstreamer/gst/gstutils.c @@ -3675,21 +3675,20 @@ gst_util_greatest_common_divisor_int64 (gint64 a, gint64 b) /** * gst_util_simplify_fraction: - * @a: First value as #gint - * @b: Second value as #gint + * @numerator: First value as #gint + * @denominator: Second value as #gint * @n_terms: non-significative terms (typical value: 8) - * @threashold: threshold (typical value: 333) + * @threshold: threshold (typical value: 333) * - * Calculates the simpler representation of @a and @b. + * Calculates the simpler representation of @numerator and @denominator and + * update both values with the resulting simplified fraction. * * Simplify a fraction using a simple continued fraction decomposition. * The idea here is to convert fractions such as 333333/10000000 to 1/30 * using 32 bit arithmetic only. The algorithm is not perfect and relies * upon two arbitrary parameters to remove non-significative terms from * the simple continued fraction decomposition. Using 8 and 333 for - * n_terms and threshold respectively seems to give nice results. - * - * Returns: simple representation of @a and @b + * @n_terms and @threshold respectively seems to give nice results. * * Since: 1.24 */