diff options
Diffstat (limited to 'gst/videofilter')
-rw-r--r-- | gst/videofilter/gstvideobalance.h | 15 | ||||
-rw-r--r-- | gst/videofilter/gstvideofilter.h | 43 | ||||
-rw-r--r-- | gst/videofilter/gstvideoflip.h | 15 |
3 files changed, 37 insertions, 36 deletions
diff --git a/gst/videofilter/gstvideobalance.h b/gst/videofilter/gstvideobalance.h index 03a3d066..45aab910 100644 --- a/gst/videofilter/gstvideobalance.h +++ b/gst/videofilter/gstvideobalance.h @@ -28,6 +28,7 @@ G_BEGIN_DECLS + #define GST_TYPE_VIDEOBALANCE \ (gst_videobalance_get_type()) #define GST_VIDEOBALANCE(obj) \ @@ -38,30 +39,30 @@ G_BEGIN_DECLS (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEOBALANCE)) #define GST_IS_VIDEOBALANCE_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOBALANCE)) + typedef struct _GstVideobalance GstVideobalance; typedef struct _GstVideobalanceClass GstVideobalanceClass; -struct _GstVideobalance -{ +struct _GstVideobalance { GstVideofilter videofilter; - guint8 *tabley, **tableu, **tablev; + guint8 *tabley, **tableu, **tablev; gboolean needupdate; gdouble contrast; gdouble brightness; gdouble hue; gdouble saturation; - + GList *channels; }; -struct _GstVideobalanceClass -{ +struct _GstVideobalanceClass { GstVideofilterClass parent_class; }; -GType gst_videobalance_get_type (void); +GType gst_videobalance_get_type(void); G_END_DECLS + #endif /* __GST_VIDEOBALANCE_H__ */ diff --git a/gst/videofilter/gstvideofilter.h b/gst/videofilter/gstvideofilter.h index 2c10a211..e6c346c0 100644 --- a/gst/videofilter/gstvideofilter.h +++ b/gst/videofilter/gstvideofilter.h @@ -25,17 +25,18 @@ #include <gst/gst.h> -G_BEGIN_DECLS typedef struct _GstVideofilter GstVideofilter; +G_BEGIN_DECLS + +typedef struct _GstVideofilter GstVideofilter; typedef struct _GstVideofilterClass GstVideofilterClass; -typedef void (*GstVideofilterFilterFunc) (GstVideofilter * filter, +typedef void (*GstVideofilterFilterFunc)(GstVideofilter *filter, void *out_data, void *in_data); -typedef void (*GstVideofilterSetupFunc) (GstVideofilter * filter); +typedef void (*GstVideofilterSetupFunc)(GstVideofilter *filter); typedef struct _GstVideofilterFormat GstVideofilterFormat; -struct _GstVideofilterFormat -{ +struct _GstVideofilterFormat { char *fourcc; int bpp; GstVideofilterFilterFunc filter_func; @@ -57,11 +58,10 @@ struct _GstVideofilterFormat #define GST_IS_VIDEOFILTER_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOFILTER)) -struct _GstVideofilter -{ +struct _GstVideofilter { GstElement element; - GstPad *sinkpad, *srcpad; + GstPad *sinkpad,*srcpad; /* video state */ gboolean inited; @@ -81,29 +81,28 @@ struct _GstVideofilter GstBuffer *out_buf; }; -struct _GstVideofilterClass -{ +struct _GstVideofilterClass { GstElementClass parent_class; GPtrArray *formats; GstVideofilterSetupFunc setup; }; -GType gst_videofilter_get_type (void); +GType gst_videofilter_get_type(void); -int gst_videofilter_get_input_width (GstVideofilter * videofilter); -int gst_videofilter_get_input_height (GstVideofilter * videofilter); -void gst_videofilter_set_output_size (GstVideofilter * videofilter, +int gst_videofilter_get_input_width(GstVideofilter *videofilter); +int gst_videofilter_get_input_height(GstVideofilter *videofilter); +void gst_videofilter_set_output_size(GstVideofilter *videofilter, int width, int height); -GstVideofilterFormat *gst_videofilter_find_format_by_structure (GstVideofilter * - filter, const GstStructure * structure); -GstCaps *gst_videofilter_class_get_capslist (GstVideofilterClass * - videofilterclass); +GstVideofilterFormat *gst_videofilter_find_format_by_structure (GstVideofilter *filter, + const GstStructure *structure); +GstCaps *gst_videofilter_class_get_capslist(GstVideofilterClass *videofilterclass); -void gst_videofilter_class_add_format (GstVideofilterClass * videofilterclass, - GstVideofilterFormat * format); -void gst_videofilter_class_add_pad_templates (GstVideofilterClass * - videofilterclass); +void gst_videofilter_class_add_format(GstVideofilterClass *videofilterclass, + GstVideofilterFormat *format); +void gst_videofilter_class_add_pad_templates (GstVideofilterClass *videofilterclass); G_END_DECLS + #endif /* __GST_VIDEOFILTER_H__ */ + diff --git a/gst/videofilter/gstvideoflip.h b/gst/videofilter/gstvideoflip.h index a43d2b4c..83b37718 100644 --- a/gst/videofilter/gstvideoflip.h +++ b/gst/videofilter/gstvideoflip.h @@ -27,8 +27,9 @@ #include "gstvideofilter.h" -G_BEGIN_DECLS typedef enum -{ +G_BEGIN_DECLS + +typedef enum { GST_VIDEOFLIP_METHOD_IDENTITY, GST_VIDEOFLIP_METHOD_90R, GST_VIDEOFLIP_METHOD_180, @@ -53,19 +54,19 @@ G_BEGIN_DECLS typedef enum typedef struct _GstVideoflip GstVideoflip; typedef struct _GstVideoflipClass GstVideoflipClass; -struct _GstVideoflip -{ +struct _GstVideoflip { GstVideofilter videofilter; GstVideoflipMethod method; }; -struct _GstVideoflipClass -{ +struct _GstVideoflipClass { GstVideofilterClass parent_class; }; -GType gst_videoflip_get_type (void); +GType gst_videoflip_get_type(void); G_END_DECLS + #endif /* __GST_VIDEOFLIP_H__ */ + |