video: move some interfaces

Move some interfaces to the video library
This commit is contained in:
Wim Taymans 2011-11-29 19:10:01 +01:00
parent 089c760993
commit 871b306fce
22 changed files with 54 additions and 49 deletions

View file

@ -565,7 +565,7 @@ KISS_FFT_F64_SIN
<SECTION>
<FILE>gstcolorbalance</FILE>
<INCLUDE>gst/interfaces/color.h</INCLUDE>
<INCLUDE>gst/video/colorbalance.h</INCLUDE>
GstColorBalance
GstColorBalanceInterface
GstColorBalanceType
@ -587,7 +587,7 @@ gst_color_balance_type_get_type
<SECTION>
<FILE>gstcolorbalancechannel</FILE>
<INCLUDE>gst/interfaces/colorbalancechannel.h</INCLUDE>
<INCLUDE>gst/video/colorbalancechannel.h</INCLUDE>
GstColorBalanceChannel
GstColorBalanceChannelClass
<SUBSECTION Standard>
@ -862,7 +862,7 @@ gst_tuner_norm_get_type
<SECTION>
<FILE>gstvideoorientation</FILE>
<INCLUDE>gst/interfaces/videoorientation.h</INCLUDE>
<INCLUDE>gst/video/videoorientation.h</INCLUDE>
GstVideoOrientation
GstVideoOrientationInterface
gst_video_orientation_get_hcenter
@ -883,7 +883,7 @@ gst_video_orientation_get_type
<SECTION>
<FILE>gstvideooverlay</FILE>
<INCLUDE>gst/interfaces/videooverlay.h</INCLUDE>
<INCLUDE>gst/video/videooverlay.h</INCLUDE>
GstXOverlay
GstXOverlayIface
gst_video_overlay_got_window_handle

View file

@ -22,9 +22,6 @@ gst_audio_base_src_get_type
#include <gst/audio/gstaudioringbuffer.h>
gst_audio_ring_buffer_get_type
#include <gst/interfaces/colorbalance.h>
gst_color_balance_get_type
gst_color_balance_channel_get_type
#include <gst/interfaces/mixer.h>
gst_mixer_get_type
gst_mixer_options_get_type
@ -39,10 +36,6 @@ gst_tuner_channel_get_type
gst_tuner_norm_get_type
#include <gst/interfaces/streamvolume.h>
gst_stream_volume_get_type
#include <gst/interfaces/videoorientation.h>
gst_video_orientation_get_type
#include <gst/interfaces/videooverlay.h>
gst_video_overlay_get_type
#include <gst/rtp/gstrtpbasedepayload.h>
@ -57,6 +50,13 @@ gst_rtp_base_audio_payload_get_type
gst_video_filter_get_type
#include <gst/video/gstvideosink.h>
gst_video_sink_get_type
#include <gst/video/colorbalance.h>
gst_color_balance_get_type
gst_color_balance_channel_get_type
#include <gst/video/videoorientation.h>
gst_video_orientation_get_type
#include <gst/video/videooverlay.h>
gst_video_overlay_get_type
#include <gst/pbutils/pbutils.h>
gst_discoverer_get_type

View file

@ -3,8 +3,6 @@ libgstinterfacesincludedir = \
$(includedir)/gstreamer-@GST_MAJORMINOR@/gst/interfaces
headers_interfaces = \
colorbalance.h \
colorbalancechannel.h \
mixer.h \
mixeroptions.h \
mixertrack.h \
@ -13,9 +11,7 @@ headers_interfaces = \
streamvolume.h \
tuner.h \
tunernorm.h \
tunerchannel.h \
videoorientation.h \
videooverlay.h
tunerchannel.h
# variables used for enum/marshal generation
glib_enum_headers = $(headers_interfaces)
@ -38,8 +34,6 @@ nodist_libgstinterfacesinclude_HEADERS = \
interfaces-enumtypes.h
libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES = \
colorbalance.c \
colorbalancechannel.c \
mixer.c \
mixeroptions.c \
mixertrack.c \
@ -48,9 +42,7 @@ libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES = \
streamvolume.c \
tuner.c \
tunernorm.c \
tunerchannel.c \
videoorientation.c \
videooverlay.c
tunerchannel.c
nodist_libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES = \
$(built_sources) \

View file

@ -1,19 +1,31 @@
# variables used for enum/marshal generation
glib_enum_headers = video.h
glib_enum_headers = video.h colorbalance.h
glib_enum_define = GST_VIDEO
glib_gen_prefix = gst_video
glib_gen_basename = video
built_sources = video-enumtypes.c
built_headers = video-enumtypes.h
built_sources = video-enumtypes.c video-marshal.c
built_headers = video-enumtypes.h video-marshal.h
BUILT_SOURCES = $(built_sources) $(built_headers)
lib_LTLIBRARIES = libgstvideo-@GST_MAJORMINOR@.la
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = video-marshal.list
libgstvideo_@GST_MAJORMINOR@_la_SOURCES = \
video.c gstvideosink.c gstvideofilter.c convertframe.c gstvideometa.c gstvideopool.c
colorbalance.c \
colorbalancechannel.c \
video.c \
gstvideosink.c \
gstvideofilter.c \
convertframe.c \
gstvideometa.c \
gstvideopool.c \
videoorientation.c \
videooverlay.c
nodist_libgstvideo_@GST_MAJORMINOR@_la_SOURCES = $(BUILT_SOURCES)
libgstvideo_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/video

View file

@ -25,7 +25,7 @@
#endif
#include "colorbalance.h"
#include "interfaces-marshal.h"
#include "video-marshal.h"
/**
* SECTION:gstcolorbalance
@ -100,7 +100,7 @@ gst_color_balance_class_init (GstColorBalanceInterface * iface)
GST_TYPE_COLOR_BALANCE, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstColorBalanceInterface, value_changed),
NULL, NULL,
gst_interfaces_marshal_VOID__OBJECT_INT,
gst_video_marshal_VOID__OBJECT_INT,
G_TYPE_NONE, 2, GST_TYPE_COLOR_BALANCE_CHANNEL, G_TYPE_INT);
initialized = TRUE;

View file

@ -23,8 +23,7 @@
#define __GST_COLOR_BALANCE_H__
#include <gst/gst.h>
#include <gst/interfaces/colorbalancechannel.h>
#include <gst/interfaces/interfaces-enumtypes.h>
#include <gst/video/colorbalancechannel.h>
G_BEGIN_DECLS

View file

@ -0,0 +1 @@
VOID:OBJECT,INT

View file

@ -24,7 +24,7 @@
#endif
#include "videoorientation.h"
#include "interfaces-marshal.h"
#include "video-marshal.h"
#include <string.h>

View file

@ -105,7 +105,7 @@
/* Our interfaces */
#include <gst/interfaces/navigation.h>
#include <gst/interfaces/videooverlay.h>
#include <gst/video/videooverlay.h>
#include <gst/video/gstvideometa.h>

View file

@ -115,9 +115,9 @@
/* Our interfaces */
#include <gst/interfaces/navigation.h>
#include <gst/interfaces/videooverlay.h>
#include <gst/interfaces/colorbalance.h>
#include <gst/interfaces/propertyprobe.h>
#include <gst/video/videooverlay.h>
#include <gst/video/colorbalance.h>
/* Helper functions */
#include <gst/video/gstvideometa.h>

View file

@ -47,8 +47,6 @@
#include <gst/fft/gstffts16.h>
#include <gst/fft/gstffts32.h>
#include <gst/interfaces/colorbalancechannel.h>
#include <gst/interfaces/colorbalance.h>
#include <gst/interfaces/interfaces-enumtypes.h>
#include <gst/interfaces/interfaces-marshal.h>
#include <gst/interfaces/mixer.h>
@ -60,8 +58,6 @@
#include <gst/interfaces/tunerchannel.h>
#include <gst/interfaces/tuner.h>
#include <gst/interfaces/tunernorm.h>
#include <gst/interfaces/videoorientation.h>
#include <gst/interfaces/videooverlay.h>
#include <gst/pbutils/codec-utils.h>
#include <gst/pbutils/descriptions.h>
@ -106,7 +102,12 @@
#include <gst/video/gstvideofilter.h>
#include <gst/video/gstvideosink.h>
#include <gst/video/video-enumtypes.h>
#include <gst/video/video-marshal.h>
#include <gst/video/video.h>
#include <gst/video/colorbalancechannel.h>
#include <gst/video/colorbalance.h>
#include <gst/video/videoorientation.h>
#include <gst/video/videooverlay.h>
/* we mostly just want to make sure that our library headers don't
* contain anything a C++ compiler might not like */

View file

@ -38,14 +38,11 @@
#include <gst/fft/gstffts32.h>
#include <gst/fft/gstfftf32.h>
#include <gst/fft/gstfftf64.h>
#include <gst/interfaces/colorbalance.h>
#include <gst/interfaces/mixer.h>
#include <gst/interfaces/navigation.h>
#include <gst/interfaces/propertyprobe.h>
#include <gst/interfaces/streamvolume.h>
#include <gst/interfaces/tuner.h>
#include <gst/interfaces/videoorientation.h>
#include <gst/interfaces/videooverlay.h>
#include <gst/pbutils/pbutils.h>
#include <gst/riff/riff-media.h>
#include <gst/riff/riff-read.h>
@ -69,6 +66,9 @@
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include <gst/video/gstvideosink.h>
#include <gst/video/colorbalance.h>
#include <gst/video/videoorientation.h>
#include <gst/video/videooverlay.h>
/* initial version of the file was generated using:
* grep -A1 "<STRUCT>" ../../docs/libs/gst-plugins-base-libs-decl.txt | \

View file

@ -8,7 +8,7 @@ EXAMPLES += gtk-videooverlay
gtk_videooverlay_SOURCES = gtk-videooverlay.c
gtk_videooverlay_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(X_CFLAGS) $(GTK_CFLAGS)
gtk_videooverlay_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) $(X_LIBS) $(LIBM) $(GTK_LIBS)
endif
@ -18,7 +18,7 @@ EXAMPLES += qt-videooverlay
qt_videooverlay_SOURCES = qt-videooverlay.cpp
qt_videooverlay_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) $(X_CFLAGS) $(QT_CFLAGS)
qt_videooverlay_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) $(X_LIBS) $(LIBM) $(QT_LIBS)
endif
@ -28,7 +28,7 @@ EXAMPLES += qtgv-videooverlay
qtgv_videooverlay_SOURCES = qtgv-videooverlay.cpp qtgv-videooverlay.h
qtgv_videooverlay_CXXFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CXXFLAGS) $(X_CFLAGS) $(QT_CFLAGS)
qtgv_videooverlay_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) $(X_LIBS) $(LIBM) $(QT_LIBS)
# qt moc support, according to http://qtnode.net/wiki/Qt_with_autotools

View file

@ -25,7 +25,7 @@
#include <glib.h>
#include <gst/gst.h>
#include <gst/interfaces/videooverlay.h>
#include <gst/video/videooverlay.h>
#include <QApplication>
#include <QTimer>

View file

@ -28,7 +28,7 @@
#include <QApplication>
#include <QTimer>
#include <gst/interfaces/videooverlay.h>
#include <gst/video/videooverlay.h>
SinkPipeline::SinkPipeline(QGraphicsView *parent) : QObject(parent)
{

View file

@ -8,7 +8,7 @@ stress_videooverlay_SOURCES = stress-videooverlay.c
stress_videooverlay_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(X_CFLAGS)
stress_videooverlay_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) $(X_LIBS) $(LIBM)
if HAVE_GTK_X11
@ -18,14 +18,14 @@ test_colorkey_SOURCES = test-colorkey.c
test_colorkey_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(X_CFLAGS) $(GTK_CFLAGS)
test_colorkey_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) $(X_LIBS) $(LIBM) $(GTK_LIBS)
test_videooverlay_SOURCES = test-videooverlay.c
test_videooverlay_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(X_CFLAGS) $(GTK_CFLAGS)
test_videooverlay_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) $(X_LIBS) $(LIBM) $(GTK_LIBS)
endif

View file

@ -22,7 +22,7 @@
#endif
#include <gst/gst.h>
#include <gst/interfaces/videooverlay.h>
#include <gst/video/videooverlay.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>