summaryrefslogtreecommitdiff
path: root/ext/snapshot/gstsnapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snapshot/gstsnapshot.h')
-rw-r--r--ext/snapshot/gstsnapshot.h51
1 files changed, 24 insertions, 27 deletions
diff --git a/ext/snapshot/gstsnapshot.h b/ext/snapshot/gstsnapshot.h
index 23cca9111..0ca1fb933 100644
--- a/ext/snapshot/gstsnapshot.h
+++ b/ext/snapshot/gstsnapshot.h
@@ -26,9 +26,8 @@
#include <png.h>
#ifdef __cplusplus
-extern "C"
-{
-#endif /* __cplusplus */
+extern "C" {
+#endif /* __cplusplus */
#define GST_TYPE_SNAPSHOT \
@@ -42,38 +41,36 @@ extern "C"
#define GST_IS_SNAPSHOT_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SNAPSHOT))
- typedef struct _GstSnapshot GstSnapshot;
- typedef struct _GstSnapshotClass GstSnapshotClass;
+typedef struct _GstSnapshot GstSnapshot;
+typedef struct _GstSnapshotClass GstSnapshotClass;
- struct _GstSnapshot
- {
- GstElement element;
+struct _GstSnapshot {
+ GstElement element;
- guint32 format;
- gint width;
- gint height;
- gint to_bpp;
- glong frame;
- glong cur_frame;
- const gchar *location;
- gboolean snapshot_asked;
+ guint32 format;
+ gint width;
+ gint height;
+ gint to_bpp;
+ glong frame;
+ glong cur_frame;
+ const gchar *location;
+ gboolean snapshot_asked;
- png_structp png_struct_ptr;
- png_infop png_info_ptr;
+ png_structp png_struct_ptr;
+ png_infop png_info_ptr;
- GstPad *sinkpad, *srcpad;
- };
+ GstPad *sinkpad,*srcpad;
+};
- struct _GstSnapshotClass
- {
- GstElementClass parent_class;
+struct _GstSnapshotClass {
+ GstElementClass parent_class;
- void (*snapshot) (GstElement * elem);
- };
+ void (*snapshot) (GstElement *elem);
+};
#ifdef __cplusplus
}
-#endif /* __cplusplus */
+#endif /* __cplusplus */
-#endif /* __GST_SNAPSHOT_H__ */
+#endif /* __GST_SNAPSHOT_H__ */