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_SOURCES = gstalpha.c
|
||||||
libgstalpha_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
|
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) \
|
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_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstalpha_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstalpha_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
||||||
libgstalphacolor_la_SOURCES = gstalphacolor.c
|
libgstalphacolor_la_SOURCES = gstalphacolor.c
|
||||||
libgstalphacolor_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
|
libgstalphacolor_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
|
||||||
$(GST_BASE_CFLAGS) $(GST_CFLAGS)
|
$(GST_BASE_CFLAGS) $(GST_CFLAGS)
|
||||||
libgstalphacolor_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \
|
libgstalphacolor_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
|
||||||
$(GST_BASE_LIBS) $(GST_LIBS) \
|
$(GST_BASE_LIBS) $(GST_LIBS)
|
||||||
-lgstvideo-@GST_MAJORMINOR@
|
|
||||||
libgstalphacolor_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstalphacolor_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstalphacolor_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstalphacolor_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <gst/base/gstbasetransform.h>
|
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
|
#include <gst/video/gstvideofilter.h>
|
||||||
#include <gst/controller/gstcontroller.h>
|
#include <gst/controller/gstcontroller.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -64,7 +64,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_alpha_debug);
|
||||||
|
|
||||||
struct _GstAlpha
|
struct _GstAlpha
|
||||||
{
|
{
|
||||||
GstBaseTransform parent;
|
GstVideoFilter parent;
|
||||||
|
|
||||||
/* caps */
|
/* caps */
|
||||||
GstVideoFormat format;
|
GstVideoFormat format;
|
||||||
|
@ -97,7 +97,7 @@ struct _GstAlpha
|
||||||
|
|
||||||
struct _GstAlphaClass
|
struct _GstAlphaClass
|
||||||
{
|
{
|
||||||
GstBaseTransformClass parent_class;
|
GstVideoFilterClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* elementfactory information */
|
/* 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,
|
static void gst_alpha_get_property (GObject * object, guint prop_id,
|
||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
GST_BOILERPLATE (GstAlpha, gst_alpha, GstBaseTransform,
|
GST_BOILERPLATE (GstAlpha, gst_alpha, GstVideoFilter, GST_TYPE_VIDEO_FILTER);
|
||||||
GST_TYPE_BASE_TRANSFORM);
|
|
||||||
|
|
||||||
#define GST_TYPE_ALPHA_METHOD (gst_alpha_method_get_type())
|
#define GST_TYPE_ALPHA_METHOD (gst_alpha_method_get_type())
|
||||||
static GType
|
static GType
|
||||||
|
|
Loading…
Reference in a new issue