mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
signalprocessor: ladspa is not using this anymore
When we port lv2, we'll go the same route as the new ladspa plugin.
This commit is contained in:
parent
3d72bc2bd9
commit
668dcf0c09
6 changed files with 2 additions and 1363 deletions
|
@ -2407,7 +2407,6 @@ gst-libs/gst/basecamerabinsrc/Makefile
|
|||
gst-libs/gst/egl/Makefile
|
||||
gst-libs/gst/insertbin/Makefile
|
||||
gst-libs/gst/interfaces/Makefile
|
||||
gst-libs/gst/signalprocessor/Makefile
|
||||
gst-libs/gst/codecparsers/Makefile
|
||||
gst-libs/gst/uridownloader/Makefile
|
||||
sys/Makefile
|
||||
|
|
|
@ -2,9 +2,9 @@ if HAVE_EGL
|
|||
EGL_DIR = egl
|
||||
endif
|
||||
|
||||
SUBDIRS = interfaces signalprocessor basecamerabinsrc codecparsers \
|
||||
SUBDIRS = interfaces basecamerabinsrc codecparsers \
|
||||
insertbin uridownloader $(EGL_DIR)
|
||||
|
||||
noinst_HEADERS = gst-i18n-plugin.h gettext.h glib-compat-private.h
|
||||
DIST_SUBDIRS = interfaces egl signalprocessor basecamerabinsrc codecparsers \
|
||||
DIST_SUBDIRS = interfaces egl basecamerabinsrc codecparsers \
|
||||
insertbin uridownloader
|
||||
|
|
7
gst-libs/gst/signalprocessor/.gitignore
vendored
7
gst-libs/gst/signalprocessor/.gitignore
vendored
|
@ -1,7 +0,0 @@
|
|||
Makefile
|
||||
Makefile.in
|
||||
*.o
|
||||
*.lo
|
||||
*.la
|
||||
.deps
|
||||
.libs
|
|
@ -1,16 +0,0 @@
|
|||
lib_LTLIBRARIES = libgstsignalprocessor-@GST_API_VERSION@.la
|
||||
|
||||
libgstsignalprocessor_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/signalprocessor
|
||||
libgstsignalprocessor_@GST_API_VERSION@include_HEADERS = gstsignalprocessor.h
|
||||
|
||||
libgstsignalprocessor_@GST_API_VERSION@_la_SOURCES = gstsignalprocessor.c
|
||||
libgstsignalprocessor_@GST_API_VERSION@_la_CFLAGS = \
|
||||
$(GST_PLUGINS_BAD_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||
$(GST_CFLAGS)
|
||||
libgstsignalprocessor_@GST_API_VERSION@_la_LIBADD = \
|
||||
$(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_API_VERSION@ \
|
||||
$(GST_LIBS)
|
||||
libgstsignalprocessor_@GST_API_VERSION@_la_LDFLAGS = \
|
||||
$(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,136 +0,0 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
||||
* 2005 Wim Taymans <wim@fluendo.com>
|
||||
*
|
||||
* gstsignalprocessor.h:
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __GST_SIGNAL_PROCESSOR_H__
|
||||
#define __GST_SIGNAL_PROCESSOR_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/audio/audio.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GST_SIGNAL_PROCESSOR_CLASS_FLAG_CAN_PROCESS_IN_PLACE = 1<<0
|
||||
} GstSignalProcessorClassFlags;
|
||||
|
||||
#define GST_SIGNAL_PROCESSOR_CLASS_CAN_PROCESS_IN_PLACE(klass) \
|
||||
(GST_SIGNAL_PROCESSOR_CLASS (klass)->flags & \
|
||||
GST_SIGNAL_PROCESSOR_CLASS_FLAG_CAN_PROCESS_IN_PLACE)
|
||||
#define GST_SIGNAL_PROCESSOR_CLASS_SET_CAN_PROCESS_IN_PLACE(klass) \
|
||||
GST_SIGNAL_PROCESSOR_CLASS (klass)->flags |= \
|
||||
GST_SIGNAL_PROCESSOR_CLASS_FLAG_CAN_PROCESS_IN_PLACE
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GST_SIGNAL_PROCESSOR_STATE_NULL,
|
||||
GST_SIGNAL_PROCESSOR_STATE_INITIALIZED,
|
||||
GST_SIGNAL_PROCESSOR_STATE_RUNNING
|
||||
} GstSignalProcessorState;
|
||||
|
||||
|
||||
#define GST_TYPE_SIGNAL_PROCESSOR (gst_signal_processor_get_type())
|
||||
#define GST_SIGNAL_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SIGNAL_PROCESSOR,GstSignalProcessor))
|
||||
#define GST_SIGNAL_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SIGNAL_PROCESSOR,GstSignalProcessorClass))
|
||||
#define GST_SIGNAL_PROCESSOR_GET_CLASS(obj) \
|
||||
(G_TYPE_INSTANCE_GET_CLASS ((obj),GST_TYPE_SIGNAL_PROCESSOR,GstSignalProcessorClass))
|
||||
#define GST_IS_SIGNAL_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SIGNAL_PROCESSOR))
|
||||
#define GST_IS_SIGNAL_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SIGNAL_PROCESSOR))
|
||||
|
||||
#define GST_SIGNAL_PROCESSOR_IS_INITIALIZED(obj) \
|
||||
(GST_SIGNAL_PROCESSOR (obj)->state >= GST_SIGNAL_PROCESSOR_STATE_INITIALIZED)
|
||||
#define GST_SIGNAL_PROCESSOR_IS_RUNNING(obj) \
|
||||
(GST_SIGNAL_PROCESSOR (obj)->state == GST_SIGNAL_PROCESSOR_STATE_RUNNING)
|
||||
|
||||
typedef struct _GstSignalProcessorGroup GstSignalProcessorGroup;
|
||||
typedef struct _GstSignalProcessor GstSignalProcessor;
|
||||
typedef struct _GstSignalProcessorClass GstSignalProcessorClass;
|
||||
|
||||
|
||||
struct _GstSignalProcessorGroup {
|
||||
guint channels; /**< Number of channels in buffers */
|
||||
guint nframes; /**< Number of frames currently allocated per channel */
|
||||
GstMapInfo interleaved_map; /**< Interleaved buffer (c1c2c1c2...)*/
|
||||
gfloat *buffer; /**< De-interleaved buffer (c1c1...c2c2...) */
|
||||
};
|
||||
|
||||
struct _GstSignalProcessor {
|
||||
GstElement element;
|
||||
|
||||
/* state */
|
||||
GstCaps *caps;
|
||||
GstSignalProcessorState state;
|
||||
GstFlowReturn flow_state;
|
||||
GstPadMode mode;
|
||||
|
||||
/* pending inputs before processing can take place */
|
||||
guint pending_in;
|
||||
/* pending outputs to be filled */
|
||||
guint pending_out;
|
||||
|
||||
/* multi-channel signal pads */
|
||||
GstSignalProcessorGroup *group_in;
|
||||
GstSignalProcessorGroup *group_out;
|
||||
|
||||
/* single channel signal pads */
|
||||
GstMapInfo *audio_in;
|
||||
GstMapInfo *audio_out;
|
||||
|
||||
/* sampling rate */
|
||||
gint sample_rate;
|
||||
|
||||
};
|
||||
|
||||
struct _GstSignalProcessorClass {
|
||||
GstElementClass parent_class;
|
||||
|
||||
/*< public >*/
|
||||
guint num_group_in;
|
||||
guint num_group_out;
|
||||
guint num_audio_in;
|
||||
guint num_audio_out;
|
||||
|
||||
guint flags;
|
||||
|
||||
/* virtual methods for subclasses */
|
||||
|
||||
gboolean (*setup) (GstSignalProcessor *self, GstCaps *caps);
|
||||
gboolean (*start) (GstSignalProcessor *self);
|
||||
void (*stop) (GstSignalProcessor *self);
|
||||
void (*cleanup) (GstSignalProcessor *self);
|
||||
void (*process) (GstSignalProcessor *self, guint num_frames);
|
||||
gboolean (*event) (GstSignalProcessor *self, GstEvent *event);
|
||||
};
|
||||
|
||||
|
||||
GType gst_signal_processor_get_type (void);
|
||||
void gst_signal_processor_class_add_pad_template (GstSignalProcessorClass *klass,
|
||||
const gchar *name, GstPadDirection direction, guint index, guint channels);
|
||||
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
#endif /* __GST_SIGNAL_PROCESSOR_H__ */
|
Loading…
Reference in a new issue