mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
alpha: Use GstVideoFilter as base class for automatic QoS support
This commit is contained in:
parent
c01cf035c1
commit
6f80d41c04
2 changed files with 8 additions and 10 deletions
|
@ -2,18 +2,17 @@ plugin_LTLIBRARIES = libgstalpha.la libgstalphacolor.la
|
|||
|
||||
libgstalpha_la_SOURCES = gstalpha.c
|
||||
libgstalpha_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
|
||||
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GST_CONTROLLER_CFLAGS)
|
||||
$(GST_CONTROLLER_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
libgstalpha_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
|
||||
$(GST_LIBS) $(GST_BASE_LIBS) $(LIBM) $(GST_CONTROLLER_LIBS)
|
||||
$(GST_CONTROLLER_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
|
||||
libgstalpha_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstalpha_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
libgstalphacolor_la_SOURCES = gstalphacolor.c
|
||||
libgstalphacolor_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
|
||||
$(GST_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
libgstalphacolor_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \
|
||||
$(GST_BASE_LIBS) $(GST_LIBS) \
|
||||
-lgstvideo-@GST_MAJORMINOR@
|
||||
libgstalphacolor_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
|
||||
$(GST_BASE_LIBS) $(GST_LIBS)
|
||||
libgstalphacolor_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstalphacolor_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
#include <gst/gst.h>
|
||||
#include <gst/base/gstbasetransform.h>
|
||||
#include <gst/video/video.h>
|
||||
#include <gst/video/gstvideofilter.h>
|
||||
#include <gst/controller/gstcontroller.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -64,7 +64,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_alpha_debug);
|
|||
|
||||
struct _GstAlpha
|
||||
{
|
||||
GstBaseTransform parent;
|
||||
GstVideoFilter parent;
|
||||
|
||||
/* caps */
|
||||
GstVideoFormat format;
|
||||
|
@ -97,7 +97,7 @@ struct _GstAlpha
|
|||
|
||||
struct _GstAlphaClass
|
||||
{
|
||||
GstBaseTransformClass parent_class;
|
||||
GstVideoFilterClass parent_class;
|
||||
};
|
||||
|
||||
/* elementfactory information */
|
||||
|
@ -173,8 +173,7 @@ static void gst_alpha_set_property (GObject * object, guint prop_id,
|
|||
static void gst_alpha_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec);
|
||||
|
||||
GST_BOILERPLATE (GstAlpha, gst_alpha, GstBaseTransform,
|
||||
GST_TYPE_BASE_TRANSFORM);
|
||||
GST_BOILERPLATE (GstAlpha, gst_alpha, GstVideoFilter, GST_TYPE_VIDEO_FILTER);
|
||||
|
||||
#define GST_TYPE_ALPHA_METHOD (gst_alpha_method_get_type())
|
||||
static GType
|
||||
|
|
Loading…
Reference in a new issue