mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
alpha: Cleanup using G_DECLARE_FINAL_TYPE
We started depending on GLib 2.44, so we can clean up all the GObject boilerplate macros.
This commit is contained in:
parent
b928517f1e
commit
acab06b2e8
2 changed files with 7 additions and 38 deletions
|
@ -29,19 +29,10 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_ALPHA \
|
#define GST_TYPE_ALPHA (gst_alpha_get_type ())
|
||||||
(gst_alpha_get_type())
|
|
||||||
#define GST_ALPHA(obj) \
|
G_DECLARE_FINAL_TYPE (GstAlpha, gst_alpha, GST, ALPHA, GstVideoFilter)
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ALPHA,GstAlpha))
|
|
||||||
#define GST_ALPHA_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ALPHA,GstAlphaClass))
|
|
||||||
#define GST_IS_ALPHA(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ALPHA))
|
|
||||||
#define GST_IS_ALPHA_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ALPHA))
|
|
||||||
|
|
||||||
typedef struct _GstAlpha GstAlpha;
|
|
||||||
typedef struct _GstAlphaClass GstAlphaClass;
|
|
||||||
/**
|
/**
|
||||||
* GstAlphaMethod:
|
* GstAlphaMethod:
|
||||||
* @ALPHA_METHOD_SET: Set/adjust alpha channel
|
* @ALPHA_METHOD_SET: Set/adjust alpha channel
|
||||||
|
@ -101,13 +92,6 @@ struct _GstAlpha
|
||||||
guint noise_level2;
|
guint noise_level2;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAlphaClass
|
|
||||||
{
|
|
||||||
GstVideoFilterClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_alpha_get_type (void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_ALPHA_H__ */
|
#endif /* __GST_ALPHA_H__ */
|
||||||
|
|
|
@ -23,19 +23,11 @@
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
#include <gst/video/gstvideofilter.h>
|
#include <gst/video/gstvideofilter.h>
|
||||||
|
|
||||||
#define GST_TYPE_ALPHA_COLOR \
|
#define GST_TYPE_ALPHA_COLOR (gst_alpha_color_get_type ())
|
||||||
(gst_alpha_color_get_type())
|
|
||||||
#define GST_ALPHA_COLOR(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ALPHA_COLOR,GstAlphaColor))
|
|
||||||
#define GST_ALPHA_COLOR_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ALPHA_COLOR,GstAlphaColorClass))
|
|
||||||
#define GST_IS_ALPHA_COLOR(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ALPHA_COLOR))
|
|
||||||
#define GST_IS_ALPHA_COLOR_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ALPHA_COLOR))
|
|
||||||
|
|
||||||
typedef struct _GstAlphaColor GstAlphaColor;
|
G_DECLARE_FINAL_TYPE (GstAlphaColor, gst_alpha_color,
|
||||||
typedef struct _GstAlphaColorClass GstAlphaColorClass;
|
GST, ALPHA_COLOR,
|
||||||
|
GstVideoFilter)
|
||||||
|
|
||||||
struct _GstAlphaColor
|
struct _GstAlphaColor
|
||||||
{
|
{
|
||||||
|
@ -47,11 +39,4 @@ struct _GstAlphaColor
|
||||||
const gint *matrix;
|
const gint *matrix;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAlphaColorClass
|
|
||||||
{
|
|
||||||
GstVideoFilterClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_alpha_color_get_type (void);
|
|
||||||
|
|
||||||
#endif /* _GST_ALPHA_COLOR_H_ */
|
#endif /* _GST_ALPHA_COLOR_H_ */
|
||||||
|
|
Loading…
Reference in a new issue