mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +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>
|
#include <aalib.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
G_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
#define GST_TYPE_AASINK (gst_aasink_get_type())
|
||||||
#define GST_TYPE_AASINK \
|
G_DECLARE_FINAL_TYPE (GstAASink, gst_aasink, GST, AASINK, GstVideoSink)
|
||||||
(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;
|
|
||||||
|
|
||||||
struct _GstAASink {
|
struct _GstAASink {
|
||||||
GstVideoSink parent;
|
GstVideoSink parent;
|
||||||
|
@ -61,15 +47,6 @@ struct _GstAASink {
|
||||||
gint aa_driver;
|
gint aa_driver;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAASinkClass {
|
G_END_DECLS
|
||||||
GstVideoSinkClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_aasink_get_type(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GST_AASINKE_H__ */
|
#endif /* __GST_AASINKE_H__ */
|
||||||
|
|
|
@ -27,24 +27,11 @@
|
||||||
#include <aalib.h>
|
#include <aalib.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
G_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
#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 _GstAATvDroplet GstAATvDroplet;
|
||||||
typedef struct _GstAATvARGB GstAATvARGB;
|
typedef struct _GstAATvARGB GstAATvARGB;
|
||||||
|
|
||||||
|
@ -97,15 +84,7 @@ extern "C" {
|
||||||
struct aa_renderparams ascii_parms;
|
struct aa_renderparams ascii_parms;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAATvClass {
|
G_END_DECLS
|
||||||
GstVideoFilterClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_aatv_get_type(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GST_AASINKE_H__ */
|
#endif /* __GST_AASINKE_H__ */
|
||||||
|
|
Loading…
Reference in a new issue