AG_GST_PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= 2.8.0)
])
-translit(dnm, m, l) AM_CONDITIONAL(USE_GDK_PIXBUF3, true)
-AG_GST_CHECK_FEATURE(GDK_PIXBUF3, [GDK pixbuf], gdkpixbuf3, [
- AG_GST_PKG_CHECK_MODULES(GDK_PIXBUF3, gdk-pixbuf-3.0)
-])
-
dnl *** HAL ***
translit(dnm, m, l) AM_CONDITIONAL(USE_HAL, true)
AG_GST_CHECK_FEATURE(HAL, [HAL libraries], halelements, [
AM_CONDITIONAL(USE_GCONF, false)
AM_CONDITIONAL(USE_GCONFTOOL, false)
AM_CONDITIONAL(USE_GDK_PIXBUF, false)
-AM_CONDITIONAL(USE_GDK_PIXBUF3, false)
AM_CONDITIONAL(USE_GST_V4L2, false)
AM_CONDITIONAL(USE_HAL, false)
AM_CONDITIONAL(USE_JPEG, false)
if USE_GDK_PIXBUF
GDK_PIXBUF_DIR = gdk_pixbuf
else
-if USE_GDK_PIXBUF3
-GDK_PIXBUF_DIR = gdk_pixbuf
-else
GDK_PIXBUF_DIR =
endif
-endif
if USE_HAL
HAL_DIR = hal
-plugin_LTLIBRARIES =
-
-if USE_GDK_PIXBUF
-plugin_LTLIBRARIES += libgstgdkpixbuf.la
-
-endif
-
-if USE_GDK_PIXBUF3
-plugin_LTLIBRARIES += libgstgdkpixbuf3.la
-endif
+plugin_LTLIBRARIES = libgstgdkpixbuf.la
libgstgdkpixbuf_la_SOURCES = gstgdkpixbuf.c gstgdkpixbufsink.c pixbufscale.c
libgstgdkpixbuf_la_CFLAGS = \
libgstgdkpixbuf_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstgdkpixbuf_la_LIBTOOLFLAGS = --tag=disable-static
-libgstgdkpixbuf3_la_SOURCES = gstgdkpixbuf.c gstgdkpixbufsink.c pixbufscale.c
-libgstgdkpixbuf3_la_CFLAGS = \
- $(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_BASE_CFLAGS) \
- $(GST_CFLAGS) $(GDK_PIXBUF3_CFLAGS) \
- -DGDK_PIXBUF3=1
-libgstgdkpixbuf3_la_LIBADD = \
- $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
- $(GST_BASE_LIBS) \
- $(GST_LIBS) $(GDK_PIXBUF3_LIBS)
-libgstgdkpixbuf3_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-libgstgdkpixbuf3_la_LIBTOOLFLAGS = --tag=disable-static
-
noinst_HEADERS = \
gstgdkpixbuf.h \
gstgdkpixbufsink.h \
- pixbufscale.h
-
+ pixbufscale.h \
+ gstgdkanimation.h
static void gst_gdk_pixbuf_type_find (GstTypeFind * tf, gpointer ignore);
#endif
-#ifdef GDK_PIXBUF3
-typedef GstGdkPixbuf GstGdkPixbuf3;
-typedef GstGdkPixbufClass GstGdkPixbuf3Class;
-
-GST_BOILERPLATE (GstGdkPixbuf3, gst_gdk_pixbuf, GstElement, GST_TYPE_ELEMENT);
-#else
GST_BOILERPLATE (GstGdkPixbuf, gst_gdk_pixbuf, GstElement, GST_TYPE_ELEMENT);
-#endif
static gboolean
gst_gdk_pixbuf_sink_setcaps (GstPad * pad, GstCaps * caps)
}
#endif
-#ifdef GDK_PIXBUF3
-#define PLUGIN_NAME "gdkpixbuf3"
-#define GDKPIXBUFDEC "gdkpixbufdec3"
-#define GDKPIXBUFSINK "gdkpixbufsink3"
-#else
-#define PLUGIN_NAME "gdkpixbuf"
-#define GDKPIXBUFDEC "gdkpixbufdec"
-#define GDKPIXBUFSINK "gdkpixbufsink"
-#endif
-
/* entry point to initialize the plug-in
* initialize the plug-in itself
* register the element factories and pad templates
static gboolean
plugin_init (GstPlugin * plugin)
{
- GST_DEBUG_CATEGORY_INIT (gst_gdk_pixbuf_debug, PLUGIN_NAME, 0,
+ GST_DEBUG_CATEGORY_INIT (gst_gdk_pixbuf_debug, "gdkpixbuf", 0,
"gdk pixbuf loader");
- if (!gst_element_register (plugin, GDKPIXBUFDEC, GST_RANK_SECONDARY,
+ if (!gst_element_register (plugin, "gdkpixbufdec", GST_RANK_SECONDARY,
GST_TYPE_GDK_PIXBUF))
return FALSE;
gst_gdk_pixbuf_type_find, NULL, GST_CAPS_ANY, NULL);
#endif
- if (!gst_element_register (plugin, GDKPIXBUFSINK, GST_RANK_NONE,
+ if (!gst_element_register (plugin, "gdkpixbufsink", GST_RANK_NONE,
GST_TYPE_GDK_PIXBUF_SINK))
return FALSE;
* so keep the name plugin_desc, or you cannot get your plug-in registered */
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
- PLUGIN_NAME,
+ "gdkpixbuf",
"GdkPixbuf-based image decoder, scaler and sink",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
PROP_LAST
};
-#ifdef GDK_PIXBUF3
-typedef GstGdkPixbufSink GstGdkPixbufSink3;
-typedef GstGdkPixbufSinkClass GstGdkPixbufSink3Class;
-GST_BOILERPLATE (GstGdkPixbufSink3, gst_gdk_pixbuf_sink, GstVideoSink,
- GST_TYPE_VIDEO_SINK);
-#else
GST_BOILERPLATE (GstGdkPixbufSink, gst_gdk_pixbuf_sink, GstVideoSink,
GST_TYPE_VIDEO_SINK);
-#endif
static void gst_gdk_pixbuf_sink_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
};
if (!pixbufscale_method_type) {
-#ifdef GDK_PIXBUF3
- pixbufscale_method_type =
- g_enum_register_static ("GstPixbuf3ScaleMethod", pixbufscale_methods);
-#else
pixbufscale_method_type =
g_enum_register_static ("GstPixbufScaleMethod", pixbufscale_methods);
-#endif
}
return pixbufscale_method_type;
}
static gboolean parse_caps (GstCaps * caps, gint * width, gint * height);
-#ifdef GDK_PIXBUF3
-typedef GstPixbufScale GstPixbufScale3;
-typedef GstPixbufScaleClass GstPixbufScale3Class;
-
-GST_BOILERPLATE (GstPixbufScale3, gst_pixbufscale, GstBaseTransform,
- GST_TYPE_BASE_TRANSFORM);
-#else
GST_BOILERPLATE (GstPixbufScale, gst_pixbufscale, GstBaseTransform,
GST_TYPE_BASE_TRANSFORM);
-#endif
static void
gst_pixbufscale_base_init (gpointer g_class)
return ret;
}
-#ifdef GDK_PIXBUF3
-#define GDKPIXBUFSCALE "gdkpixbufscale3"
-#else
-#define GDKPIXBUFSCALE "gdkpixbufscale"
-#endif
-
gboolean
pixbufscale_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, GDKPIXBUFSCALE, GST_RANK_NONE,
+ if (!gst_element_register (plugin, "gdkpixbufscale", GST_RANK_NONE,
GST_TYPE_PIXBUFSCALE))
return FALSE;
- GST_DEBUG_CATEGORY_INIT (pixbufscale_debug, GDKPIXBUFSCALE, 0,
+ GST_DEBUG_CATEGORY_INIT (pixbufscale_debug, "gdkpixbufscale", 0,
"pixbufscale element");
return TRUE;