From 24501c6358bbee95e2f238beeb4ef33a8d09b7b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 7 Aug 2016 08:51:06 +0300 Subject: [PATCH] fdkaac: Initial plugin skeleton --- configure.ac | 9 +++++++++ ext/fdkaac/Makefile.am | 13 +++++++++++++ ext/fdkaac/plugin.c | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 ext/fdkaac/Makefile.am create mode 100644 ext/fdkaac/plugin.c diff --git a/configure.ac b/configure.ac index 70be2e1..e807625 100644 --- a/configure.ac +++ b/configure.ac @@ -2296,6 +2296,14 @@ AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [ fi ]) +dnl *** fdkaac *** +translit(dnm, m, l) AM_CONDITIONAL(USE_FDK_AAC, true) +AG_GST_CHECK_FEATURE(FDK_AAC, [fdkaac plugin], fdkaac, [ + PKG_CHECK_MODULES(FDK_AAC, fdk-aac, HAVE_FDK_AAC="yes", [ + HAVE_FDK_AAC="no" + ]) +]) + dnl *** flite *** translit(dnm, m, l) AM_CONDITIONAL(USE_FLITE, true) AG_GST_CHECK_FEATURE(FLITE, [Flite plugin], flite, [ @@ -3755,6 +3763,7 @@ ext/gl/Makefile ext/gtk/Makefile ext/faac/Makefile ext/faad/Makefile +ext/fdkaac/Makefile ext/flite/Makefile ext/fluidsynth/Makefile ext/gsm/Makefile diff --git a/ext/fdkaac/Makefile.am b/ext/fdkaac/Makefile.am new file mode 100644 index 0000000..36c7464 --- /dev/null +++ b/ext/fdkaac/Makefile.am @@ -0,0 +1,13 @@ +plugin_LTLIBRARIES = libgstfdkaac.la + +libgstfdkaac_la_SOURCES = plugin.c +libgstfdkaac_la_CFLAGS = -DGST_USE_UNSTABLE_API \ + $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \ + $(GST_CFLAGS) $(FDK_AAC_CFLAGS) +libgstfdkaac_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ + -lgstaudio-@GST_API_VERSION@ -lgstpbutils-@GST_API_VERSION@ \ + $(GST_BASE_LIBS) $(FDK_AAC_LIBS) +libgstfdkaac_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libgstfdkaac_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS) + +noinst_HEADERS = diff --git a/ext/fdkaac/plugin.c b/ext/fdkaac/plugin.c new file mode 100644 index 0000000..3ac215d --- /dev/null +++ b/ext/fdkaac/plugin.c @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2016 Sebastian Dröge + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser 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 + * + */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +static gboolean +plugin_init (GstPlugin * plugin) +{ + return TRUE; +} + +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, + GST_VERSION_MINOR, + fdkaac, + "Fraunhofer FDK AAC Codec plugin", + plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) -- 2.7.4