projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d4579b
)
deinterlace: reuse core function for GCD
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 6 Sep 2012 14:49:02 +0000
(16:49 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 6 Sep 2012 14:52:18 +0000
(16:52 +0200)
gst/deinterlace/gstdeinterlace.c
patch
|
blob
|
history
diff --git
a/gst/deinterlace/gstdeinterlace.c
b/gst/deinterlace/gstdeinterlace.c
index d4597ad3e45a3d2fdcc0366493d143dcf98ecf3f..555083157e886f7a3e203c4d5a6beb33c3ee084e 100644
(file)
--- a/
gst/deinterlace/gstdeinterlace.c
+++ b/
gst/deinterlace/gstdeinterlace.c
@@
-2060,19
+2060,6
@@
gst_deinterlace_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
return ret;
}
-static gint
-gst_greatest_common_divisor (gint a, gint b)
-{
- while (b != 0) {
- int temp = a;
-
- a = b;
- b = temp % b;
- }
-
- return ABS (a);
-}
-
static gboolean
gst_fraction_double (gint * n_out, gint * d_out, gboolean half)
{
@@
-2087,7
+2074,7
@@
gst_fraction_double (gint * n_out, gint * d_out, gboolean half)
if (n == 0 || (n == G_MAXINT && d == 1))
return TRUE;
- gcd = gst_greatest_common_divisor (n, d);
+ gcd = gst_
util_
greatest_common_divisor (n, d);
n /= gcd;
d /= gcd;