mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
aalib: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
66296fcae3
commit
9ad65fa60b
2 changed files with 8 additions and 52 deletions
|
@ -27,24 +27,10 @@
|
|||
|
||||
#include <aalib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
#define GST_TYPE_AASINK \
|
||||
(gst_aasink_get_type())
|
||||
#define GST_AASINK(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AASINK,GstAASink))
|
||||
#define GST_AASINK_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AASINK,GstAASinkClass))
|
||||
#define GST_IS_AASINK(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AASINK))
|
||||
#define GST_IS_AASINK_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AASINK))
|
||||
|
||||
typedef struct _GstAASink GstAASink;
|
||||
typedef struct _GstAASinkClass GstAASinkClass;
|
||||
#define GST_TYPE_AASINK (gst_aasink_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstAASink, gst_aasink, GST, AASINK, GstVideoSink)
|
||||
|
||||
struct _GstAASink {
|
||||
GstVideoSink parent;
|
||||
|
@ -61,15 +47,6 @@ struct _GstAASink {
|
|||
gint aa_driver;
|
||||
};
|
||||
|
||||
struct _GstAASinkClass {
|
||||
GstVideoSinkClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_aasink_get_type(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_AASINKE_H__ */
|
||||
|
|
|
@ -27,24 +27,11 @@
|
|||
#include <aalib.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_AATV (gst_aatv_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstAATv, gst_aatv, GST, AATV, GstVideoFilter)
|
||||
|
||||
#define GST_TYPE_AATV \
|
||||
(gst_aatv_get_type())
|
||||
#define GST_AATV(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AATV,GstAATv))
|
||||
#define GST_AATV_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AATV,GstAATvClass))
|
||||
#define GST_IS_AATV(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AATV))
|
||||
#define GST_IS_AATV_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AATV))
|
||||
|
||||
typedef struct _GstAATv GstAATv;
|
||||
typedef struct _GstAATvClass GstAATvClass;
|
||||
typedef struct _GstAATvDroplet GstAATvDroplet;
|
||||
typedef struct _GstAATvARGB GstAATvARGB;
|
||||
|
||||
|
@ -97,15 +84,7 @@ extern "C" {
|
|||
struct aa_renderparams ascii_parms;
|
||||
};
|
||||
|
||||
struct _GstAATvClass {
|
||||
GstVideoFilterClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_aatv_get_type(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
#endif /* __GST_AASINKE_H__ */
|
||||
|
|
Loading…
Reference in a new issue