Commit 45d7dfed authored by Niels De Graef's avatar Niels De Graef

libpng: Use G_DECLARE_FINAL_TYPE

parent 2cf28f30
......@@ -19,7 +19,5 @@
#include <gst/gst.h>
#include <png.h>
GType gst_pngenc_get_type (void);
extern GstPadTemplate *gst_png_sink_factory ();
extern GstPadTemplate *gst_png_src_factory ();
......@@ -30,13 +30,7 @@
G_BEGIN_DECLS
#define GST_TYPE_PNGDEC (gst_pngdec_get_type())
#define GST_PNGDEC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PNGDEC,GstPngDec))
#define GST_PNGDEC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PNGDEC,GstPngDecClass))
#define GST_IS_PNGDEC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PNGDEC))
#define GST_IS_PNGDEC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PNGDEC))
typedef struct _GstPngDec GstPngDec;
typedef struct _GstPngDecClass GstPngDecClass;
G_DECLARE_FINAL_TYPE (GstPngDec, gst_pngdec, GST, PNGDEC, GstVideoDecoder)
struct _GstPngDec
{
......@@ -59,13 +53,6 @@ struct _GstPngDec
gsize read_data;
};
struct _GstPngDecClass
{
GstVideoDecoderClass parent_class;
};
GType gst_pngdec_get_type(void);
G_END_DECLS
#endif /* __GST_PNGDEC_H__ */
......@@ -27,19 +27,10 @@
#include <gst/video/gstvideoencoder.h>
#include <png.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
G_BEGIN_DECLS
#define GST_TYPE_PNGENC (gst_pngenc_get_type())
#define GST_PNGENC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PNGENC,GstPngEnc))
#define GST_PNGENC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PNGENC,GstPngEncClass))
#define GST_IS_PNGENC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PNGENC))
#define GST_IS_PNGENC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PNGENC))
typedef struct _GstPngEnc GstPngEnc;
typedef struct _GstPngEncClass GstPngEncClass;
#define GST_TYPE_PNGENC (gst_pngenc_get_type())
G_DECLARE_FINAL_TYPE (GstPngEnc, gst_pngenc, GST, PNGENC, GstVideoEncoder)
struct _GstPngEnc
{
......@@ -59,17 +50,6 @@ struct _GstPngEnc
gboolean newmedia;
};
struct _GstPngEncClass
{
GstVideoEncoderClass parent_class;
};
GType gst_pngenc_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
G_END_DECLS
#endif /* __GST_PNGENC_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment