aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/filter.h b/src/filter.h
index 24b526d..1a37f67 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -1,8 +1,8 @@
/* this file is part of camorama, a gnome webcam viewer
*
* AUTHORS
- * Greg Jones <greg@fixedgear.org>
- * Bastien Nocera <hadess@hadess.net>
+ * Greg Jones <greg@fixedgear.org>
+ * Bastien Nocera <hadess@hadess.net>
* Sven Herzberg <herzi@gnome-de.org>
*
* Copyright (C) 2003 Greg Jones
@@ -32,18 +32,25 @@
G_BEGIN_DECLS
-typedef struct _CamoramaFilter CamoramaFilter;
+typedef struct _CamoramaFilter CamoramaFilter;
typedef struct _CamoramaFilterClass CamoramaFilterClass;
#define CAMORAMA_TYPE_FILTER (camorama_filter_get_type())
-#define CAMORAMA_FILTER(i) (G_TYPE_CHECK_INSTANCE_CAST((i), CAMORAMA_TYPE_FILTER, CamoramaFilter))
-#define CAMORAMA_FILTER_CLASS(c) (G_TYPE_CHECK_CLASS_CAST((c), CAMORAMA_TYPE_FILTER, CamoramaFilterClass))
-#define CAMORAMA_IS_FILTER(i) (G_TYPE_CHECK_INSTANCE_TYPE((i), CAMORAMA_TYPE_FILTER))
-#define CAMORAMA_IS_FILTER_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE((c), CAMORAMA_TYPE_FILTER))
-#define CAMORAMA_FILTER_GET_CLASS(i) (G_TYPE_INSTANCE_GET_CLASS((i), CAMORAMA_TYPE_FILTER, CamoramaFilterClass))
-
-GType camorama_filter_get_type (void);
-GType camorama_filter_mirror_get_type (void);
+#define CAMORAMA_FILTER(i) (G_TYPE_CHECK_INSTANCE_CAST((i), \
+ CAMORAMA_TYPE_FILTER, CamoramaFilter))
+#define CAMORAMA_FILTER_CLASS(c) (G_TYPE_CHECK_CLASS_CAST((c), \
+ CAMORAMA_TYPE_FILTER, \
+ CamoramaFilterClass))
+#define CAMORAMA_IS_FILTER(i) (G_TYPE_CHECK_INSTANCE_TYPE((i), \
+ CAMORAMA_TYPE_FILTER))
+#define CAMORAMA_IS_FILTER_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE((c), \
+ CAMORAMA_TYPE_FILTER))
+#define CAMORAMA_FILTER_GET_CLASS(i) (G_TYPE_INSTANCE_GET_CLASS((i), \
+ CAMORAMA_TYPE_FILTER, \
+ CamoramaFilterClass))
+
+GType camorama_filter_get_type(void);
+GType camorama_filter_mirror_get_type(void);
GType camorama_filter_laplace_get_type(void);
GType camorama_filter_reichardt_get_type(void);
GType camorama_filter_color_get_type(void);
@@ -56,36 +63,29 @@ GType camorama_filter_mono_weight_get_type(void);
GType camorama_filter_sobel_get_type(void);
GType camorama_filter_smooth_get_type(void);
-void
-camorama_filter_color_filter(void *__filter, guchar *image, int x, int y, int depth);
+void camorama_filter_color_filter(void *__filter, guchar *image, int x, int y,
+ int depth);
-void camorama_filters_init (void);
-gchar const* camorama_filter_get_name(CamoramaFilter* self);
-void camorama_filter_apply (CamoramaFilter* self,
- guchar* image,
- gint width,
- gint height,
- gint depth);
+void camorama_filters_init(void);
+gchar const *camorama_filter_get_name(CamoramaFilter * self);
+void camorama_filter_apply(CamoramaFilter *self, guchar *image,
+ gint width, gint height, gint depth);
struct _CamoramaFilter {
- GObject base_instance;
+ GObject base_instance;
};
struct _CamoramaFilterClass {
- GObjectClass base_class;
+ GObjectClass base_class;
- gchar const* name;
+ gchar const *name;
- void (*filter) (CamoramaFilter* self,
- guchar * image,
- gint width,
- gint height,
- gint depth);
+ void (*filter)(void *self,
+ guchar *image, gint width, gint height, gint depth);
};
-void yuv420p_to_rgb (guchar *image, guchar *temp, gint x, gint y, gint z);
+void yuv420p_to_rgb(guchar *image, guchar *temp, gint x, gint y, gint z);
G_END_DECLS
-#endif /* !CAMORAMA_FILTER_H */
-
+#endif /* !CAMORAMA_FILTER_H */

Privacy Policy