diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-12-13 01:05:32 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-19 12:02:31 +0000 |
commit | 2b7cc47990bf6ee9a3cdc55e3c64835bde69fea6 (patch) | |
tree | 09990a0f321add830e61081e9a2c454fa4f97b88 /gst-libs | |
parent | 06e4403fdb86d481e0600e2250f3ae625ba60cb4 (diff) |
allocatorsbad: physmem moved to -base
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/Makefile.am | 6 | ||||
-rw-r--r-- | gst-libs/gst/allocators/Makefile.am | 65 | ||||
-rw-r--r-- | gst-libs/gst/allocators/badallocators.h | 28 | ||||
-rw-r--r-- | gst-libs/gst/allocators/gstphysmemory.c | 69 | ||||
-rw-r--r-- | gst-libs/gst/allocators/gstphysmemory.h | 63 | ||||
-rw-r--r-- | gst-libs/gst/allocators/meson.build | 24 | ||||
-rw-r--r-- | gst-libs/gst/meson.build | 1 |
7 files changed, 3 insertions, 253 deletions
diff --git a/gst-libs/gst/Makefile.am b/gst-libs/gst/Makefile.am index 62dd9fdfa..ae541aaf8 100644 --- a/gst-libs/gst/Makefile.am +++ b/gst-libs/gst/Makefile.am @@ -7,18 +7,18 @@ OPENCV_DIR=opencv endif SUBDIRS = uridownloader adaptivedemux interfaces basecamerabinsrc codecparsers \ - insertbin mpegts video audio player allocators isoff $(WAYLAND_DIR) \ + insertbin mpegts video audio player isoff $(WAYLAND_DIR) \ $(OPENCV_DIR) noinst_HEADERS = gst-i18n-plugin.h gettext.h glib-compat-private.h DIST_SUBDIRS = uridownloader adaptivedemux interfaces basecamerabinsrc \ - codecparsers insertbin mpegts wayland opencv video audio player allocators isoff + codecparsers insertbin mpegts wayland opencv video audio player isoff adaptivedemux: uridownloader INDEPENDENT_SUBDIRS = \ interfaces basecamerabinsrc codecparsers insertbin uridownloader \ - mpegts player allocators isoff $(WAYLAND_DIR) $(OPENCV_DIR) + mpegts player isoff $(WAYLAND_DIR) $(OPENCV_DIR) .PHONY: independent-subdirs $(INDEPENDENT_SUBDIRS) diff --git a/gst-libs/gst/allocators/Makefile.am b/gst-libs/gst/allocators/Makefile.am deleted file mode 100644 index e50d077ca..000000000 --- a/gst-libs/gst/allocators/Makefile.am +++ /dev/null @@ -1,65 +0,0 @@ -lib_LTLIBRARIES = libgstbadallocators-@GST_API_VERSION@.la - -libgstbadallocators_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/allocators - -libgstbadallocators_@GST_API_VERSION@_include_HEADERS = \ - badallocators.h \ - gstphysmemory.h - -noinst_HEADERS = - -libgstbadallocators_@GST_API_VERSION@_la_SOURCES = \ - gstphysmemory.c - -libgstbadallocators_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM) -libgstbadallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) -libgstbadallocators_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) - -if HAVE_INTROSPECTION -BUILT_GIRSOURCES = GstBadAllocators-@GST_API_VERSION@.gir - -gir_headers=$(patsubst %,$(srcdir)/%, $(libgstbadallocators_@GST_API_VERSION@_include_HEADERS)) -gir_sources=$(patsubst %,$(srcdir)/%, $(libgstbadallocators_@GST_API_VERSION@_la_SOURCES)) -gir_cincludes=$(patsubst %,--c-include='gst/badallocators/%',$(libgstbadallocators_@GST_API_VERSION@_include_HEADERS)) - -GstBadAllocators-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstbadallocators-@GST_API_VERSION@.la - $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\ - GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \ - CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \ - $(INTROSPECTION_SCANNER) -v --namespace GstBadAllocators \ - --nsversion=@GST_API_VERSION@ \ - --identifier-prefix=Gst \ - --symbol-prefix=gst \ - --warn-all \ - --c-include "gst/allocators/badallocators.h" \ - -I$(top_srcdir)/gst-libs \ - -I$(top_builddir)/gst-libs \ - --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \ - --library=libgstbadallocators-@GST_API_VERSION@.la \ - --include=Gst-@GST_API_VERSION@ \ - --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-@GST_API_VERSION@ \ - --pkg-export gstreamer-badallocators-@GST_API_VERSION@ \ - --output $@ \ - $(gir_headers) \ - $(gir_sources) - -# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to -# install anything - we need to install inside our prefix. -girdir = $(datadir)/gir-1.0 -gir_DATA = $(BUILT_GIRSOURCES) - -typelibsdir = $(libdir)/girepository-1.0/ - -typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) - -%.typelib: %.gir $(INTROSPECTION_COMPILER) - $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \ - $(INTROSPECTION_COMPILER) \ - --includedir=$(srcdir) \ - --includedir=$(builddir) \ - --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \ - $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) - -CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) -endif diff --git a/gst-libs/gst/allocators/badallocators.h b/gst-libs/gst/allocators/badallocators.h deleted file mode 100644 index 4e182157d..000000000 --- a/gst-libs/gst/allocators/badallocators.h +++ /dev/null @@ -1,28 +0,0 @@ -/* GStreamer - * Copyright (C) 2017 GStreamer developers - * - * allocatorsbad.h: single include header for gst-allocators-bad library - * - * 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_ALLOCATORS_BAD_H__ -#define __GST_ALLOCATORS_BAD_H__ - -#include <gst/allocators/gstphysmemory.h> - -#endif /* __GST_ALLOCATORS_BAD_H__ */ - diff --git a/gst-libs/gst/allocators/gstphysmemory.c b/gst-libs/gst/allocators/gstphysmemory.c deleted file mode 100644 index da1dc5f68..000000000 --- a/gst-libs/gst/allocators/gstphysmemory.c +++ /dev/null @@ -1,69 +0,0 @@ -/* GStreamer - * Copyright (C) 2017 Sebastian Dröge <sebastian@centricular.com> - * - * 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., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "gstphysmemory.h" - -G_DEFINE_INTERFACE (GstPhysMemoryAllocator, gst_phys_memory_allocator, - GST_TYPE_ALLOCATOR); - -static void -gst_phys_memory_allocator_default_init (GstPhysMemoryAllocatorInterface * iface) -{ -} - -/** - * gst_is_phys_memory: - * @mem: a #GstMemory - * - * Returns: whether the memory at @mem is backed by physical memory - * - * Since: 1.12 - */ -gboolean -gst_is_phys_memory (GstMemory * mem) -{ - return mem != NULL && mem->allocator != NULL - && g_type_is_a (G_OBJECT_TYPE (mem->allocator), - GST_TYPE_PHYS_MEMORY_ALLOCATOR); -} - -/** - * gst_phys_memory_get_phys_addr: - * @mem: a #GstMemory - * - * Returns: Physical memory address that is backing @mem, or 0 if none - * - * Since: 1.12 - */ -guintptr -gst_phys_memory_get_phys_addr (GstMemory * mem) -{ - GstPhysMemoryAllocatorInterface *iface; - - g_return_val_if_fail (gst_is_phys_memory (mem), 0); - - iface = GST_PHYS_MEMORY_ALLOCATOR_GET_INTERFACE (mem->allocator); - g_return_val_if_fail (iface->get_phys_addr != NULL, 0); - - return iface->get_phys_addr ((GstPhysMemoryAllocator *) mem->allocator, mem); -} diff --git a/gst-libs/gst/allocators/gstphysmemory.h b/gst-libs/gst/allocators/gstphysmemory.h deleted file mode 100644 index e8cc9f4ac..000000000 --- a/gst-libs/gst/allocators/gstphysmemory.h +++ /dev/null @@ -1,63 +0,0 @@ -/* GStreamer - * Copyright (C) 2017 Sebastian Dröge <sebastian@centricular.com> - * - * 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., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifndef __GST_PHYS_MEMORY_H__ -#define __GST_PHYS_MEMORY_H__ - -#include <gst/gst.h> - -G_BEGIN_DECLS - -typedef struct _GstPhysMemoryAllocator GstPhysMemoryAllocator; -typedef struct _GstPhysMemoryAllocatorInterface GstPhysMemoryAllocatorInterface; - -#define GST_TYPE_PHYS_MEMORY_ALLOCATOR (gst_phys_memory_allocator_get_type()) -#define GST_IS_PHYS_MEMORY_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PHYS_MEMORY_ALLOCATOR)) -#define GST_IS_PHYS_MEMORY_ALLOCATOR_INTERFACE(iface) (G_TYPE_CHECK_INTERFACE_TYPE ((iface), GST_TYPE_PHYS_MEMORY_ALLOCATOR)) -#define GST_PHYS_MEMORY_ALLOCATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_PHYS_MEMORY_ALLOCATOR, GstPhysMemoryAllocatorInterface)) -#define GST_PHYS_MEMORY_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PHYS_MEMORY_ALLOCATOR, GstPhysMemoryAllocator)) -#define GST_PHYS_MEMORY_ALLOCATOR_INTERFACE(iface) (G_TYPE_CHECK_INTERFACE_CAST ((iface), GST_TYPE_PHYS_MEMORY_ALLOCATOR, GstPhysMemoryAllocatorInterface)) -#define GST_PHYS_MEMORY_ALLOCATOR_CAST(obj) ((GstPhysMemoryAllocator *)(obj)) - -/** - * GstPhysMemoryAllocatorInterface: - * - * Marker interface for allocators with physical address backed memory - * - * Since: 1.12 - */ -struct _GstPhysMemoryAllocatorInterface -{ - GTypeInterface parent_iface; - - guintptr (*get_phys_addr) (GstPhysMemoryAllocator * allocator, GstMemory * mem); -}; - -GST_EXPORT -GType gst_phys_memory_allocator_get_type (void); - -GST_EXPORT -gboolean gst_is_phys_memory (GstMemory *mem); - -GST_EXPORT -guintptr gst_phys_memory_get_phys_addr (GstMemory * mem); - -G_END_DECLS - -#endif /* __GST_PHYS_MEMORY_H__ */ diff --git a/gst-libs/gst/allocators/meson.build b/gst-libs/gst/allocators/meson.build deleted file mode 100644 index 447bc80f8..000000000 --- a/gst-libs/gst/allocators/meson.build +++ /dev/null @@ -1,24 +0,0 @@ -badallocators_sources = [ - 'gstphysmemory.c', -] - -badallocators_headers = [ - 'badallocators.h', - 'gstphysmemory.h', -] - -install_headers(badallocators_headers, subdir : 'gstreamer-1.0/gst/allocators') - -gstbadallocators = library('gstbadallocators-' + api_version, - badallocators_sources, - c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'], - include_directories : [configinc, libsinc], - version : libversion, - soversion : soversion, - install : true, - dependencies : [gst_dep] -) - -gstbadallocators_dep = declare_dependency(link_with : gstbadallocators, - include_directories : [libsinc], - dependencies : [gst_dep]) diff --git a/gst-libs/gst/meson.build b/gst-libs/gst/meson.build index 32b812667..aac5398af 100644 --- a/gst-libs/gst/meson.build +++ b/gst-libs/gst/meson.build @@ -1,6 +1,5 @@ subdir('uridownloader') -subdir('allocators') subdir('adaptivedemux') subdir('audio') subdir('basecamerabinsrc') |