#include <string.h>
#include <math.h>
-GST_DEBUG_CATEGORY (cairo_debug);
static gboolean
plugin_init (GstPlugin * plugin)
{
- gst_element_register (plugin, "cairooverlay", GST_RANK_NONE,
- GST_TYPE_CAIRO_OVERLAY);
-
- GST_DEBUG_CATEGORY_INIT (cairo_debug, "cairo", 0, "Cairo elements");
-
- return TRUE;
+ return GST_ELEMENT_REGISTER (cairooverlay, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, cairo,
#define TEMPLATE_CAPS GST_VIDEO_CAPS_MAKE("{ xRGB, ARGB, RGB16 }")
#endif
+GST_DEBUG_CATEGORY (cairo_debug);
+
static GstStaticPadTemplate gst_cairo_overlay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
);
G_DEFINE_TYPE (GstCairoOverlay, gst_cairo_overlay, GST_TYPE_BASE_TRANSFORM);
-
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (cairooverlay, "cairooverlay",
+ GST_RANK_NONE, GST_TYPE_CAIRO_OVERLAY, GST_DEBUG_CATEGORY_INIT (cairo_debug,
+ "cairo", 0, "Cairo elements"););
enum
{
PROP_0,
gboolean attach_compo_to_buffer;
};
+GST_ELEMENT_REGISTER_DECLARE (cairooverlay);
+
G_END_DECLS
#endif /* __GST_CAIRO_OVERLAY_H__ */