mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
libpng: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
2cf28f3021
commit
45d7dfedb8
3 changed files with 5 additions and 40 deletions
|
@ -19,7 +19,5 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
|
|
||||||
GType gst_pngenc_get_type (void);
|
|
||||||
|
|
||||||
extern GstPadTemplate *gst_png_sink_factory ();
|
extern GstPadTemplate *gst_png_sink_factory ();
|
||||||
extern GstPadTemplate *gst_png_src_factory ();
|
extern GstPadTemplate *gst_png_src_factory ();
|
||||||
|
|
|
@ -30,13 +30,7 @@
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_PNGDEC (gst_pngdec_get_type())
|
#define GST_TYPE_PNGDEC (gst_pngdec_get_type())
|
||||||
#define GST_PNGDEC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PNGDEC,GstPngDec))
|
G_DECLARE_FINAL_TYPE (GstPngDec, gst_pngdec, GST, PNGDEC, GstVideoDecoder)
|
||||||
#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;
|
|
||||||
|
|
||||||
struct _GstPngDec
|
struct _GstPngDec
|
||||||
{
|
{
|
||||||
|
@ -59,13 +53,6 @@ struct _GstPngDec
|
||||||
gsize read_data;
|
gsize read_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPngDecClass
|
|
||||||
{
|
|
||||||
GstVideoDecoderClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_pngdec_get_type(void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_PNGDEC_H__ */
|
#endif /* __GST_PNGDEC_H__ */
|
||||||
|
|
|
@ -27,19 +27,10 @@
|
||||||
#include <gst/video/gstvideoencoder.h>
|
#include <gst/video/gstvideoencoder.h>
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
G_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
|
||||||
#define GST_TYPE_PNGENC (gst_pngenc_get_type())
|
#define GST_TYPE_PNGENC (gst_pngenc_get_type())
|
||||||
#define GST_PNGENC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PNGENC,GstPngEnc))
|
G_DECLARE_FINAL_TYPE (GstPngEnc, gst_pngenc, GST, PNGENC, GstVideoEncoder)
|
||||||
#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;
|
|
||||||
|
|
||||||
struct _GstPngEnc
|
struct _GstPngEnc
|
||||||
{
|
{
|
||||||
|
@ -59,17 +50,6 @@ struct _GstPngEnc
|
||||||
gboolean newmedia;
|
gboolean newmedia;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPngEncClass
|
G_END_DECLS
|
||||||
{
|
|
||||||
GstVideoEncoderClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_pngenc_get_type(void);
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GST_PNGENC_H__ */
|
#endif /* __GST_PNGENC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue