[gstreamer-bugs] [Bug 625959] geometrictransform: make CircleGeometricTransform "radius" property relative

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Aug 3 15:50:17 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=625959
  GStreamer | gst-plugins-bad | unspecified

--- Comment #3 from Filippo Argiolas <fargiolas at gnome.org> 2010-08-03 22:50:14 UTC ---
(In reply to comment #2)
> Review of attachment 167058 [details]:
> 
> Found one suspicious change, the others looks fine.
> 
> ::: gst/geometrictransform/gstcirclegeometrictransform.c
> @@ +159,3 @@
> +      cgt->radius * sqrt (0.5 * (gt->width * gt->width +
> +          gt->height * gt->height));
> +  cgt->precalc_radius2 = cgt->precalc_radius * cgt->precalc_radius;
> 
> Shouldn't the 0.5 be outside the sqrt?
> 
> the sqrt calculates the diagonal length, and you split it in half to get the
> maximum radius, right?

Yup :-P you're right! Correct patch following.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list