From 07053e5c539da726e69510c0c2df326c683dde97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 22 Jun 2013 11:27:37 +0200 Subject: [PATCH] daala: Initial version of a Daala plugin --- configure.ac | 16 ++++++++++++++++ ext/Makefile.am | 8 ++++++++ ext/daala/Makefile.am | 20 ++++++++++++++++++++ ext/daala/gstdaala.c | 36 ++++++++++++++++++++++++++++++++++++ ext/daala/gstdaaladec.c | 0 ext/daala/gstdaaladec.h | 0 ext/daala/gstdaalaenc.c | 0 ext/daala/gstdaalaenc.h | 0 8 files changed, 80 insertions(+) create mode 100644 ext/daala/Makefile.am create mode 100644 ext/daala/gstdaala.c create mode 100644 ext/daala/gstdaaladec.c create mode 100644 ext/daala/gstdaaladec.h create mode 100644 ext/daala/gstdaalaenc.c create mode 100644 ext/daala/gstdaalaenc.h diff --git a/configure.ac b/configure.ac index e96a6f08d1..d0113f5cd8 100644 --- a/configure.ac +++ b/configure.ac @@ -1250,6 +1250,20 @@ AG_GST_CHECK_FEATURE(WAYLAND, [wayland sink], wayland , [ ]) ]) +dnl *** Daala *** +translit(dnm, m, l) AM_CONDITIONAL(USE_DAALA, true) +AG_GST_CHECK_FEATURE(DAALA, [daala], daala, [ + if test "x$BUILD_EXPERIMENTAL" = "xyes"; then + PKG_CHECK_MODULES(DAALA, daala, [ + HAVE_DAALA="yes" + ], [ + HAVE_DAALA="no" + ]) + AC_SUBST(DAALA_CFLAGS) + AC_SUBST(DAALA_LIBS) + fi +]) + dnl *** DTS *** translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true) AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [ @@ -2198,6 +2212,7 @@ AM_CONDITIONAL(USE_DECKLINK, false) AM_CONDITIONAL(DECKLINK_OSX, false) AM_CONDITIONAL(USE_DIRECTFB, false) AM_CONDITIONAL(USE_WAYLAND, false) +AM_CONDITIONAL(USE_DAALA, false) AM_CONDITIONAL(USE_DTS, false) AM_CONDITIONAL(USE_EXIF, false) AM_CONDITIONAL(USE_RESINDVD, false) @@ -2462,6 +2477,7 @@ ext/dash/Makefile ext/dc1394/Makefile ext/directfb/Makefile ext/wayland/Makefile +ext/daala/Makefile ext/dts/Makefile ext/eglgles/Makefile ext/faac/Makefile diff --git a/ext/Makefile.am b/ext/Makefile.am index 0a75e21178..034e982cd6 100644 --- a/ext/Makefile.am +++ b/ext/Makefile.am @@ -76,6 +76,12 @@ else WAYLAND_DIR= endif +if USE_DAALA +DAALA_DIR=daala +else +DAALA_DIR= +endif + if USE_DTS DTS_DIR=dts else @@ -392,6 +398,7 @@ SUBDIRS=\ $(DC1394_DIR) \ $(DIRECTFB_DIR) \ $(WAYLAND_DIR) \ + $(DAALA_DIR) \ $(DTS_DIR) \ $(RESINDVD_DIR) \ $(EGLGLES_DIR) \ @@ -464,6 +471,7 @@ DIST_SUBDIRS = \ kate \ libmms \ lv2 \ + daala \ dts \ eglgles \ modplug \ diff --git a/ext/daala/Makefile.am b/ext/daala/Makefile.am new file mode 100644 index 0000000000..225a3f3fe1 --- /dev/null +++ b/ext/daala/Makefile.am @@ -0,0 +1,20 @@ +plugin_LTLIBRARIES = libgstdaala.la + +noinst_HEADERS = gstdaalaenc.h \ + gstdaaladec.h + +libgstdaala_la_SOURCES = gstdaala.c \ + gstdaalaenc.c \ + gstdaaladec.c + +libgstdaala_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(DAALA_CFLAGS) +libgstdaala_la_LIBADD = \ + $(GST_PLUGINS_BASE_LIBS) \ + -lgsttag-$(GST_API_VERSION) \ + -lgstvideo-$(GST_API_VERSION) \ + $(GST_BASE_LIBS) \ + $(GST_LIBS) \ + $(DAALA_LIBS) +libgstdaala_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libgstdaala_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS) + diff --git a/ext/daala/gstdaala.c b/ext/daala/gstdaala.c new file mode 100644 index 0000000000..b21f38939a --- /dev/null +++ b/ext/daala/gstdaala.c @@ -0,0 +1,36 @@ +/* GStreamer + * Copyright (C) 2013 Sebastian Dröge + * + * 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. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include + +static gboolean +plugin_init (GstPlugin * plugin) +{ + return TRUE; +} + +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, + GST_VERSION_MINOR, + daala, + "Daala plugin", + plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) diff --git a/ext/daala/gstdaaladec.c b/ext/daala/gstdaaladec.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ext/daala/gstdaaladec.h b/ext/daala/gstdaaladec.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ext/daala/gstdaalaenc.c b/ext/daala/gstdaalaenc.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ext/daala/gstdaalaenc.h b/ext/daala/gstdaalaenc.h new file mode 100644 index 0000000000..e69de29bb2