videoscale: Use G_DECLARE_FINAL_TYPE

This commit is contained in:
Niels De Graef 2020-03-12 13:29:22 +01:00 committed by GStreamer Merge Bot
parent 761bb9b9ff
commit 1dd63e44b9

View file

@ -26,17 +26,10 @@
G_BEGIN_DECLS
#define GST_TYPE_VIDEO_SCALE \
(gst_video_scale_get_type())
#define GST_VIDEO_SCALE(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_SCALE,GstVideoScale))
#define GST_VIDEO_SCALE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_SCALE,GstVideoScaleClass))
#define GST_IS_VIDEO_SCALE(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_SCALE))
#define GST_IS_VIDEO_SCALE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_SCALE))
#define GST_TYPE_VIDEO_SCALE (gst_video_scale_get_type())
#define GST_VIDEO_SCALE_CAST(obj) ((GstVideoScale *)(obj))
G_DECLARE_FINAL_TYPE (GstVideoScale, gst_video_scale, GST, VIDEO_SCALE,
GstVideoFilter)
/**
@ -68,9 +61,6 @@ typedef enum {
GST_VIDEO_SCALE_MITCHELL
} GstVideoScaleMethod;
typedef struct _GstVideoScale GstVideoScale;
typedef struct _GstVideoScaleClass GstVideoScaleClass;
/**
* GstVideoScale:
*
@ -96,12 +86,6 @@ struct _GstVideoScale {
gint borders_w;
};
struct _GstVideoScaleClass {
GstVideoFilterClass parent_class;
};
G_GNUC_INTERNAL GType gst_video_scale_get_type (void);
G_END_DECLS
#endif /* __GST_VIDEO_SCALE_H__ */