much build fixage turns out synaesthesia and smoothwav depend on gtk, maybe they should go to ext/
Original commit message from CVS: much build fixage turns out synaesthesia and smoothwav depend on gtk, maybe they should go to ext/
This commit is contained in:
parent
b0ee2a9d40
commit
84f8f25dfe
@ -1,5 +1,5 @@
|
|||||||
SUBDIRS=gst sys ext gst-libs
|
SUBDIRS=gst-libs gst sys ext
|
||||||
|
|
||||||
DIST_SUBDIRS=gst sys ext gst-libs
|
DIST_SUBDIRS=gst-libs gst sys ext
|
||||||
|
|
||||||
EXTRA_DIST=gst-plugins.spec AUTHORS COPYING README ChangeLog
|
EXTRA_DIST=gst-plugins.spec AUTHORS COPYING README ChangeLog
|
||||||
|
17
configure.ac
17
configure.ac
@ -311,6 +311,21 @@ AC_ARG_WITH(plugins,
|
|||||||
|
|
||||||
AC_SUBST(GST_PLUGINS_SELECTED)
|
AC_SUBST(GST_PLUGINS_SELECTED)
|
||||||
|
|
||||||
|
dnl needed for smoothwave, FIXME!
|
||||||
|
if test x$USE_GLIB2 = xno; then
|
||||||
|
AM_PATH_GTK(1.2.0,,
|
||||||
|
AC_MSG_ERROR(Cannot find gtk: Is gtk-config in path?))
|
||||||
|
HAVE_GTK=yes
|
||||||
|
# we have to have it
|
||||||
|
else
|
||||||
|
PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK=yes, HAVE_GTK=no)
|
||||||
|
|
||||||
|
GTK_CFLAGS=$GTK2_CFLAGS
|
||||||
|
GTK_LIBS=$GTK2_LIBS
|
||||||
|
fi
|
||||||
|
AC_SUBST(GTK_LIBS)
|
||||||
|
AC_SUBST(GTK_CFLAGS)
|
||||||
|
|
||||||
dnl ==========================================================================
|
dnl ==========================================================================
|
||||||
dnl ============================= sys plugins ================================
|
dnl ============================= sys plugins ================================
|
||||||
dnl ==========================================================================
|
dnl ==========================================================================
|
||||||
@ -1076,7 +1091,6 @@ sys/vcd/Makefile
|
|||||||
sys/vga/Makefile
|
sys/vga/Makefile
|
||||||
sys/xvideo/Makefile
|
sys/xvideo/Makefile
|
||||||
ext/Makefile
|
ext/Makefile
|
||||||
ext/a52/Makefile
|
|
||||||
ext/aalib/Makefile
|
ext/aalib/Makefile
|
||||||
ext/alsa/Makefile
|
ext/alsa/Makefile
|
||||||
ext/audiofile/Makefile
|
ext/audiofile/Makefile
|
||||||
@ -1088,6 +1102,7 @@ ext/vorbis/Makefile
|
|||||||
gst-libs/Makefile
|
gst-libs/Makefile
|
||||||
gst-libs/gst/Makefile
|
gst-libs/gst/Makefile
|
||||||
gst-libs/gst/audio/Makefile
|
gst-libs/gst/audio/Makefile
|
||||||
|
gst-libs/gst/resample/Makefile
|
||||||
gst-plugins.spec
|
gst-plugins.spec
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
if USE_A52
|
#if USE_A52
|
||||||
A52_DIR=a52
|
#A52_DIR=a52
|
||||||
else
|
#else
|
||||||
A52_DIR=
|
#A52_DIR=
|
||||||
endif
|
#endif
|
||||||
|
|
||||||
if USE_AALIB
|
if USE_AALIB
|
||||||
AALIB_DIR=aalib
|
AALIB_DIR=aalib
|
||||||
@ -52,9 +52,10 @@ else
|
|||||||
VORBIS_DIR=
|
VORBIS_DIR=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#$A52_DIR
|
||||||
SUBDIRS=$(A52_DIR) $(AALIB_DIR) $(ALSA_DIR) $(AUDIOFILE_DIR) $(ESD_DIR) \
|
SUBDIRS=$(AALIB_DIR) $(ALSA_DIR) $(AUDIOFILE_DIR) $(ESD_DIR) \
|
||||||
$(LAME_DIR) $(MAD_DIR) \
|
$(LAME_DIR) $(MAD_DIR) \
|
||||||
$(SDL_DIR) $(VORBIS_DIR)
|
$(SDL_DIR) $(VORBIS_DIR)
|
||||||
|
|
||||||
DIST_SUBDIRS=a52 aalib alsa audiofile esd lame mad sdl vorbis
|
#a52
|
||||||
|
DIST_SUBDIRS=aalib alsa audiofile esd lame mad sdl vorbis
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
filterdir = $(libdir)/gst
|
filterdir = $(libdir)/gst
|
||||||
filter_LTLIBRARIES = libgstmpegaudioparse.la libgstmp3types.la
|
filter_LTLIBRARIES = libgstmpegaudioparse.la libgstmp3types.la
|
||||||
|
|
||||||
libgstmpegaudioparse_la_SOURCES = gstmpegaudioparse.c gstmp3types.c
|
libgstmpegaudioparse_la_SOURCES = gstmpegaudioparse.c
|
||||||
# FIXME is this useful?
|
# FIXME is this useful?
|
||||||
libgstmpegaudioparse_la_CFLAGS = -O3 $(FOMIT_FRAME_POINTER) -ffast-math -finline-functions $(GST_CFLAGS)
|
libgstmpegaudioparse_la_CFLAGS = -O3 $(FOMIT_FRAME_POINTER) -ffast-math -finline-functions $(GST_CFLAGS)
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@ filterdir = $(libdir)/gst
|
|||||||
filter_LTLIBRARIES = libgstsynaesthesia.la
|
filter_LTLIBRARIES = libgstsynaesthesia.la
|
||||||
|
|
||||||
libgstsynaesthesia_la_SOURCES = core.c gstsynaesthesia.c
|
libgstsynaesthesia_la_SOURCES = core.c gstsynaesthesia.c
|
||||||
|
libgstsynaesthesia_la_CFLAGS = $(GST_CFLAGS) $(GTK_CFLAGS)
|
||||||
|
libgstsynaesthesia_la_LIBADD = $(GTK_LIBS)
|
||||||
|
|
||||||
noinst_HEADERS = core.h gstsynaesthesia.h
|
noinst_HEADERS = core.h gstsynaesthesia.h
|
||||||
|
|
||||||
|
@ -17,12 +17,13 @@
|
|||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gstsynaesthesia.h"
|
#include "gstsynaesthesia.h"
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
|
#warning hi, i'm synaesthesia. i'm severely broken. somebody please fix me.
|
||||||
|
|
||||||
static gboolean gst_synaesthesia_start(GstElement *element);
|
static gboolean gst_synaesthesia_start(GstElement *element);
|
||||||
|
|
||||||
GstElementDetails gst_synaesthesia_details = {
|
GstElementDetails gst_synaesthesia_details = {
|
||||||
@ -170,11 +171,11 @@ static void gst_synaesthesia_chain(GstPad *pad,GstBuffer *buf) {
|
|||||||
GDK_RGB_DITHER_NORMAL,
|
GDK_RGB_DITHER_NORMAL,
|
||||||
syna->sp.output,syna->width,
|
syna->sp.output,syna->width,
|
||||||
&syna->cmap);*/
|
&syna->cmap);*/
|
||||||
gdk_draw_gray_image(syna->image->window,
|
/* gdk_draw_gray_image(syna->image->window,
|
||||||
syna->image->style->fg_gc[GTK_STATE_NORMAL],
|
syna->image->style->fg_gc[GTK_STATE_NORMAL],
|
||||||
0,0,syna->width,syna->height,
|
0,0,syna->width,syna->height,
|
||||||
GDK_RGB_DITHER_NORMAL,
|
GDK_RGB_DITHER_NORMAL,
|
||||||
syna->sp.output,syna->width);
|
syna->sp.output,syna->width); */
|
||||||
|
|
||||||
gst_trace_add_entry(NULL,0,buf,"synaesthesia: calculated syna");
|
gst_trace_add_entry(NULL,0,buf,"synaesthesia: calculated syna");
|
||||||
|
|
||||||
@ -209,7 +210,7 @@ gst_synaesthesia_get_property(GObject *object, guint prop_id, GValue *value, GPa
|
|||||||
g_return_if_fail(GST_IS_SYNAESTHESIA(object));
|
g_return_if_fail(GST_IS_SYNAESTHESIA(object));
|
||||||
synaesthesia = GST_SYNAESTHESIA(object);
|
synaesthesia = GST_SYNAESTHESIA(object);
|
||||||
|
|
||||||
GST_DEBUG (0,"have synaesthesia get_property(%d), wanting %d\n",id,ARG_WIDGET);
|
GST_DEBUG (0,"have synaesthesia get_property(%d), wanting %d\n",prop_id,ARG_WIDGET);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_WIDTH: {
|
case ARG_WIDTH: {
|
||||||
@ -222,11 +223,11 @@ gst_synaesthesia_get_property(GObject *object, guint prop_id, GValue *value, GPa
|
|||||||
GST_DEBUG (0,"returning height value %d\n",g_value_get_int (value));
|
GST_DEBUG (0,"returning height value %d\n",g_value_get_int (value));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ARG_WIDGET: {
|
/* case ARG_WIDGET: {
|
||||||
g_value_set_object (value, G_OBJECT(synaesthesia->image));
|
g_value_set_object (value, G_OBJECT(synaesthesia->image));
|
||||||
GST_DEBUG (0,"returning widget value %p\n",g_value_get_object (value));
|
GST_DEBUG (0,"returning widget value %p\n",g_value_get_object (value));
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
default: {
|
default: {
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
GST_DEBUG (0,"returning invalid type\n");
|
GST_DEBUG (0,"returning invalid type\n");
|
||||||
@ -276,15 +277,15 @@ gst_synaesthesia_start(GstElement *element)
|
|||||||
coreInit(&syna->sp, syna->width, syna->height);
|
coreInit(&syna->sp, syna->width, syna->height);
|
||||||
setStarSize(&syna->sp, syna->starsize);
|
setStarSize(&syna->sp, syna->starsize);
|
||||||
|
|
||||||
setupPalette(&syna->sp, syna->cmap.colors);
|
/* setupPalette(&syna->sp, syna->cmap.colors); */
|
||||||
|
|
||||||
gdk_rgb_init();
|
gdk_rgb_init();
|
||||||
syna->image = gtk_drawing_area_new();
|
/* syna->image = gtk_drawing_area_new();
|
||||||
GST_DEBUG (0,"image is %p\n",syna->image);
|
GST_DEBUG (0,"image is %p\n",syna->image);
|
||||||
gtk_drawing_area_size(GTK_DRAWING_AREA(syna->image),
|
gtk_drawing_area_size(GTK_DRAWING_AREA(syna->image),
|
||||||
syna->width,
|
syna->width,
|
||||||
syna->height);
|
syna->height);
|
||||||
gtk_widget_show(syna->image);
|
gtk_widget_show(syna->image);*/
|
||||||
|
|
||||||
GST_DEBUG (0,"started synaesthesia\n");
|
GST_DEBUG (0,"started synaesthesia\n");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user