summaryrefslogtreecommitdiff
path: root/gst/videomeasure
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-21 21:39:18 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-21 21:39:18 +0100
commitf96e4f15817974e8d3675bfe3980cdf02815bd74 (patch)
tree8eb2ba9bc6058e9a8d5ad2a46e6bd5034e3f3813 /gst/videomeasure
parent46f4c7a6c127dbd20fd9f88a10518e084501cd36 (diff)
downloadgstreamer-plugins-bad-f96e4f15817974e8d3675bfe3980cdf02815bd74.tar.gz
Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
Diffstat (limited to 'gst/videomeasure')
-rw-r--r--gst/videomeasure/gstvideomeasure_ssim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/videomeasure/gstvideomeasure_ssim.c b/gst/videomeasure/gstvideomeasure_ssim.c
index d377b9bd6..515c26159 100644
--- a/gst/videomeasure/gstvideomeasure_ssim.c
+++ b/gst/videomeasure/gstvideomeasure_ssim.c
@@ -1304,13 +1304,13 @@ gst_ssim_finalize (GObject * object)
typedef gfloat (*GstSSimWeightFunc) (GstSSim * ssim, gint y, gint x);
-gfloat
+static gfloat
gst_ssim_weight_func_none (GstSSim * ssim, gint y, gint x)
{
return 1;
}
-gfloat
+static gfloat
gst_ssim_weight_func_gauss (GstSSim * ssim, gint y, gint x)
{
gfloat coord = sqrt (x * x + y * y);
@@ -1318,7 +1318,7 @@ gst_ssim_weight_func_gauss (GstSSim * ssim, gint y, gint x)
(ssim->sigma * sqrt (2 * G_PI));
}
-gboolean
+static gboolean
gst_ssim_regenerate_windows (GstSSim * ssim)
{
gint windowiseven;
@@ -1339,16 +1339,16 @@ gst_ssim_regenerate_windows (GstSSim * ssim)
switch (ssim->windowtype) {
case 0:
- func = (GstSSimWeightFunc) gst_ssim_weight_func_none;
+ func = gst_ssim_weight_func_none;
break;
case 1:
- func = (GstSSimWeightFunc) gst_ssim_weight_func_gauss;
+ func = gst_ssim_weight_func_gauss;
break;
default:
GST_WARNING_OBJECT (ssim, "unknown window type - %d. Defaulting to %d",
ssim->windowtype, 1);
ssim->windowtype = 1;
- func = (GstSSimWeightFunc) gst_ssim_weight_func_gauss;
+ func = gst_ssim_weight_func_gauss;
}
for (y = 0; y < ssim->windowsize; y++) {