mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
various updates to work with cvs code
Original commit message from CVS: various updates to work with cvs code
This commit is contained in:
parent
eeb676888a
commit
7cae4e5629
24 changed files with 183 additions and 8533 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 3ce22b87b251e36d30660b72b8020011246b0c64
|
||||
Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7
|
10
configure.ac
10
configure.ac
|
@ -58,6 +58,11 @@ PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|||
AC_SUBST(PYGTK_DEFSDIR)
|
||||
AC_MSG_RESULT($PYGTK_DEFSDIR)
|
||||
|
||||
AC_MSG_CHECKING(for pygtk h2def)
|
||||
PYGTK_H2DEF=`$PKG_CONFIG --variable=datadir pygtk-2.0`/pygtk/2.0/codegen/h2def.py
|
||||
AC_SUBST(PYGTK_H2DEF)
|
||||
AC_MSG_RESULT($PYGTK_H2DEF)
|
||||
|
||||
dnl required version substitutions for use in the spec file
|
||||
PYGTK_VERSION=pygtk_required_version
|
||||
GTK_VERSION=gtk_required_version
|
||||
|
@ -74,6 +79,11 @@ AM_PATH_GTK_2_0(gtk_required_version,,[AC_MSG_ERROR(maybe you want the gtk-gnome
|
|||
dnl check to make sure we can find gstreamer
|
||||
PKG_CHECK_MODULES(GST, gstreamer >= gstreamer_required_version, HAVE_GST="yes", HAVE_GST="no")
|
||||
|
||||
AC_MSG_CHECKING(for gstreamer include dir)
|
||||
GST_INCLUDEDIR=`$PKG_CONFIG --variable=includedir gstreamer`
|
||||
AC_SUBST(GST_INCLUDEDIR)
|
||||
AC_MSG_RESULT($GST_INCLUDEDIR)
|
||||
|
||||
if test "x$HAVE_GST" = "xno"; then
|
||||
AC_MSG_ERROR(need GStreamer $gstreamer_required_version)
|
||||
fi
|
||||
|
|
|
@ -2,4 +2,8 @@ EXTRA_DIST = \
|
|||
f2f.py \
|
||||
oggplay.py \
|
||||
cp.py \
|
||||
dvdplay.py
|
||||
dvdplay.py \
|
||||
identity.py \
|
||||
ilat.py \
|
||||
lat.py \
|
||||
rot13.py
|
||||
|
|
|
@ -44,9 +44,9 @@ def filter(filters):
|
|||
return -1
|
||||
filesrc.set_property('location', sys.argv[1])
|
||||
|
||||
filesink = gst_element_factory_make ('disksink', 'sink')
|
||||
filesink = gst_element_factory_make ('filesink', 'sink')
|
||||
if not filesink:
|
||||
print 'could not find plugin \"disksink\"'
|
||||
print 'could not find plugin \"filesink\"'
|
||||
return -1
|
||||
filesink.set_property('location', sys.argv[2])
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ from gstreamer import *
|
|||
from gobject import GObject
|
||||
import gtk
|
||||
|
||||
class DVDPlay(object):
|
||||
class DVDPlayer(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
|
@ -77,8 +77,22 @@ class DVDPlay(object):
|
|||
if ret:
|
||||
return ret
|
||||
|
||||
ret = self.run()
|
||||
return ret
|
||||
return self.run()
|
||||
|
||||
def run(self):
|
||||
print 'setting to PLAYING state'
|
||||
|
||||
self.pipeline.set_state(STATE_PLAYING)
|
||||
|
||||
gtk.idle_add(self.idle,self.pipeline)
|
||||
|
||||
#gtk.threads_enter()
|
||||
gtk.main()
|
||||
#gtk.threads_leave()
|
||||
|
||||
self.pipeline.set_state(STATE_NULL)
|
||||
|
||||
return 0
|
||||
|
||||
def build_video_thread(self):
|
||||
# ***** pre-construct the video thread *****
|
||||
|
@ -94,15 +108,43 @@ class DVDPlay(object):
|
|||
self.color = gst_element_factory_make('colorspace','color')
|
||||
assert self.color
|
||||
|
||||
self.show = gst_element_factory_make('sdlvideosink','show')
|
||||
self.efx = gst_element_factory_make('identity','identity')
|
||||
#self.efx = gst_element_factory_make('edgeTV','EdgeTV')
|
||||
#self.efx = gst_element_factory_make('agingTV','AgingTV')
|
||||
#effectv: diceTV: DiceTV
|
||||
#effectv: warpTV: WarpTV
|
||||
#effectv: shagadelicTV: ShagadelicTV
|
||||
#effectv: vertigoTV: VertigoTV
|
||||
#self.efx = gst_element_factory_make('revTV','RevTV')
|
||||
#self.efx = gst_element_factory_make('quarkTV','QuarkTV')
|
||||
assert self.efx
|
||||
|
||||
self.color2 = gst_element_factory_make('colorspace','color2')
|
||||
assert self.color2
|
||||
|
||||
self.show = gst_element_factory_make('videosink','show')
|
||||
#self.show = gst_element_factory_make('sdlvideosink','show')
|
||||
#self.show = gst_element_factory_make('fakesink','fakesinkv')
|
||||
assert self.show
|
||||
#self.show.set_property('silent', 0)
|
||||
#self.show.set_property('sync', 1)
|
||||
|
||||
for e in (self.v_queue, self.v_decode, self.color, self.show):
|
||||
#self.deinterlace = gst_element_factory_make('deinterlace','deinterlace')
|
||||
self.deinterlace = gst_element_factory_make('identity','deinterlace')
|
||||
assert self.deinterlace
|
||||
|
||||
last = None
|
||||
for e in (self.v_queue, self.v_decode, self.color, self.efx, self.color2, self.deinterlace, self.show):
|
||||
self.v_thread.add(e)
|
||||
if last:
|
||||
last.connect(e)
|
||||
last = e
|
||||
|
||||
self.v_queue.connect(self.v_decode)
|
||||
self.v_decode.connect(self.color)
|
||||
self.color.connect(self.show)
|
||||
#self.v_queue.connect(self.v_decode)
|
||||
#self.v_decode.connect(self.color)
|
||||
#self.color.connect(self.efx)
|
||||
#self.efx.connect(self.color2)
|
||||
#self.color2.connect(self.show)
|
||||
|
||||
def build_audio_thread(self):
|
||||
# ***** pre-construct the audio thread *****
|
||||
|
@ -116,7 +158,10 @@ class DVDPlay(object):
|
|||
assert self.a_decode
|
||||
|
||||
self.osssink = gst_element_factory_make('osssink','osssink')
|
||||
#self.osssink = gst_element_factory_make('fakesink','fakesinka')
|
||||
assert self.osssink
|
||||
#self.osssink.set_property('silent', 0)
|
||||
#self.osssink.set_property('sync', 0)
|
||||
|
||||
for e in (self.a_queue, self.a_decode, self.osssink):
|
||||
self.a_thread.add(e)
|
||||
|
@ -129,9 +174,10 @@ class DVDPlay(object):
|
|||
self.pipeline = gst_pipeline_new('pipeline')
|
||||
assert self.pipeline
|
||||
|
||||
self.src = gst_element_factory_make('dvdsrc','src');
|
||||
self.src = gst_element_factory_make('dvdreadsrc','src');
|
||||
assert self.src
|
||||
|
||||
#GObject.connect(self.src,'deep_notify',self.dnprint)
|
||||
self.src.set_property('location', self.location)
|
||||
self.src.set_property('title', self.title)
|
||||
self.src.set_property('chapter', self.chapter)
|
||||
|
@ -139,6 +185,7 @@ class DVDPlay(object):
|
|||
|
||||
self.parse = gst_element_factory_make('mpegdemux','parse')
|
||||
assert self.parse
|
||||
self.parse.set_property('sync', 0)
|
||||
|
||||
self.pipeline.add(self.src)
|
||||
self.pipeline.add(self.parse)
|
||||
|
@ -166,26 +213,21 @@ class DVDPlay(object):
|
|||
GObject.connect(self.src,'eos',self.eof)
|
||||
#GObject.connect(show,'have_size',self.mpegparse_have_size, self.pipeline)
|
||||
|
||||
return 0
|
||||
|
||||
def run(self):
|
||||
print 'setting to PLAYING state'
|
||||
|
||||
self.pipeline.set_state(STATE_PLAYING)
|
||||
|
||||
gtk.idle_add(self.idle,self.pipeline)
|
||||
|
||||
#gtk.threads_enter()
|
||||
gtk.main()
|
||||
#gtk.threads_leave()
|
||||
|
||||
self.pipeline.set_state(STATE_NULL)
|
||||
#GObject.connect(self.pipeline,'error',self.pipeline_error)
|
||||
#GObject.connect(self.pipeline,'deep_notify',self.dnprint)
|
||||
|
||||
return 0
|
||||
|
||||
def pipeline_error(self, sender, obj, error):
|
||||
print "(%s) ERROR: %s: %s" % (self, obj.name(), error)
|
||||
|
||||
def dnprint(self, sender, obj, param):
|
||||
str = obj.get_property(param.name)
|
||||
print '%s: %s = %s' % (sender.get_name(), param.name, str)
|
||||
|
||||
if __name__ == '__main__':
|
||||
#gst_debug_set_categories(-1)
|
||||
#gst_info_set_categories(-1)
|
||||
player = DVDPlay()
|
||||
#gst_debug_set_categories(0xFFFFFFFFL)
|
||||
#gst_info_set_categories(0xFFFFFFFFL)
|
||||
player = DVDPlayer()
|
||||
ret = player.main()
|
||||
sys.exit(ret)
|
||||
|
|
|
@ -95,7 +95,7 @@ def check(f, n, b):
|
|||
|
||||
def main():
|
||||
"Identity timer and latency check"
|
||||
gst_debug_set_categories(0)
|
||||
gst_debug_set_categories(0L)
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print 'usage: %s identites buffers' % (sys.argv[0],)
|
||||
|
|
|
@ -2,4 +2,8 @@ EXTRA_DIST = \
|
|||
f2f.py \
|
||||
oggplay.py \
|
||||
cp.py \
|
||||
dvdplay.py
|
||||
dvdplay.py \
|
||||
identity.py \
|
||||
ilat.py \
|
||||
lat.py \
|
||||
rot13.py
|
||||
|
|
|
@ -44,9 +44,9 @@ def filter(filters):
|
|||
return -1
|
||||
filesrc.set_property('location', sys.argv[1])
|
||||
|
||||
filesink = gst_element_factory_make ('disksink', 'sink')
|
||||
filesink = gst_element_factory_make ('filesink', 'sink')
|
||||
if not filesink:
|
||||
print 'could not find plugin \"disksink\"'
|
||||
print 'could not find plugin \"filesink\"'
|
||||
return -1
|
||||
filesink.set_property('location', sys.argv[2])
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ from gstreamer import *
|
|||
from gobject import GObject
|
||||
import gtk
|
||||
|
||||
class DVDPlay(object):
|
||||
class DVDPlayer(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
|
@ -77,8 +77,22 @@ class DVDPlay(object):
|
|||
if ret:
|
||||
return ret
|
||||
|
||||
ret = self.run()
|
||||
return ret
|
||||
return self.run()
|
||||
|
||||
def run(self):
|
||||
print 'setting to PLAYING state'
|
||||
|
||||
self.pipeline.set_state(STATE_PLAYING)
|
||||
|
||||
gtk.idle_add(self.idle,self.pipeline)
|
||||
|
||||
#gtk.threads_enter()
|
||||
gtk.main()
|
||||
#gtk.threads_leave()
|
||||
|
||||
self.pipeline.set_state(STATE_NULL)
|
||||
|
||||
return 0
|
||||
|
||||
def build_video_thread(self):
|
||||
# ***** pre-construct the video thread *****
|
||||
|
@ -94,15 +108,43 @@ class DVDPlay(object):
|
|||
self.color = gst_element_factory_make('colorspace','color')
|
||||
assert self.color
|
||||
|
||||
self.show = gst_element_factory_make('sdlvideosink','show')
|
||||
self.efx = gst_element_factory_make('identity','identity')
|
||||
#self.efx = gst_element_factory_make('edgeTV','EdgeTV')
|
||||
#self.efx = gst_element_factory_make('agingTV','AgingTV')
|
||||
#effectv: diceTV: DiceTV
|
||||
#effectv: warpTV: WarpTV
|
||||
#effectv: shagadelicTV: ShagadelicTV
|
||||
#effectv: vertigoTV: VertigoTV
|
||||
#self.efx = gst_element_factory_make('revTV','RevTV')
|
||||
#self.efx = gst_element_factory_make('quarkTV','QuarkTV')
|
||||
assert self.efx
|
||||
|
||||
self.color2 = gst_element_factory_make('colorspace','color2')
|
||||
assert self.color2
|
||||
|
||||
self.show = gst_element_factory_make('videosink','show')
|
||||
#self.show = gst_element_factory_make('sdlvideosink','show')
|
||||
#self.show = gst_element_factory_make('fakesink','fakesinkv')
|
||||
assert self.show
|
||||
#self.show.set_property('silent', 0)
|
||||
#self.show.set_property('sync', 1)
|
||||
|
||||
for e in (self.v_queue, self.v_decode, self.color, self.show):
|
||||
#self.deinterlace = gst_element_factory_make('deinterlace','deinterlace')
|
||||
self.deinterlace = gst_element_factory_make('identity','deinterlace')
|
||||
assert self.deinterlace
|
||||
|
||||
last = None
|
||||
for e in (self.v_queue, self.v_decode, self.color, self.efx, self.color2, self.deinterlace, self.show):
|
||||
self.v_thread.add(e)
|
||||
if last:
|
||||
last.connect(e)
|
||||
last = e
|
||||
|
||||
self.v_queue.connect(self.v_decode)
|
||||
self.v_decode.connect(self.color)
|
||||
self.color.connect(self.show)
|
||||
#self.v_queue.connect(self.v_decode)
|
||||
#self.v_decode.connect(self.color)
|
||||
#self.color.connect(self.efx)
|
||||
#self.efx.connect(self.color2)
|
||||
#self.color2.connect(self.show)
|
||||
|
||||
def build_audio_thread(self):
|
||||
# ***** pre-construct the audio thread *****
|
||||
|
@ -116,7 +158,10 @@ class DVDPlay(object):
|
|||
assert self.a_decode
|
||||
|
||||
self.osssink = gst_element_factory_make('osssink','osssink')
|
||||
#self.osssink = gst_element_factory_make('fakesink','fakesinka')
|
||||
assert self.osssink
|
||||
#self.osssink.set_property('silent', 0)
|
||||
#self.osssink.set_property('sync', 0)
|
||||
|
||||
for e in (self.a_queue, self.a_decode, self.osssink):
|
||||
self.a_thread.add(e)
|
||||
|
@ -129,9 +174,10 @@ class DVDPlay(object):
|
|||
self.pipeline = gst_pipeline_new('pipeline')
|
||||
assert self.pipeline
|
||||
|
||||
self.src = gst_element_factory_make('dvdsrc','src');
|
||||
self.src = gst_element_factory_make('dvdreadsrc','src');
|
||||
assert self.src
|
||||
|
||||
#GObject.connect(self.src,'deep_notify',self.dnprint)
|
||||
self.src.set_property('location', self.location)
|
||||
self.src.set_property('title', self.title)
|
||||
self.src.set_property('chapter', self.chapter)
|
||||
|
@ -139,6 +185,7 @@ class DVDPlay(object):
|
|||
|
||||
self.parse = gst_element_factory_make('mpegdemux','parse')
|
||||
assert self.parse
|
||||
self.parse.set_property('sync', 0)
|
||||
|
||||
self.pipeline.add(self.src)
|
||||
self.pipeline.add(self.parse)
|
||||
|
@ -166,26 +213,21 @@ class DVDPlay(object):
|
|||
GObject.connect(self.src,'eos',self.eof)
|
||||
#GObject.connect(show,'have_size',self.mpegparse_have_size, self.pipeline)
|
||||
|
||||
return 0
|
||||
|
||||
def run(self):
|
||||
print 'setting to PLAYING state'
|
||||
|
||||
self.pipeline.set_state(STATE_PLAYING)
|
||||
|
||||
gtk.idle_add(self.idle,self.pipeline)
|
||||
|
||||
#gtk.threads_enter()
|
||||
gtk.main()
|
||||
#gtk.threads_leave()
|
||||
|
||||
self.pipeline.set_state(STATE_NULL)
|
||||
#GObject.connect(self.pipeline,'error',self.pipeline_error)
|
||||
#GObject.connect(self.pipeline,'deep_notify',self.dnprint)
|
||||
|
||||
return 0
|
||||
|
||||
def pipeline_error(self, sender, obj, error):
|
||||
print "(%s) ERROR: %s: %s" % (self, obj.name(), error)
|
||||
|
||||
def dnprint(self, sender, obj, param):
|
||||
str = obj.get_property(param.name)
|
||||
print '%s: %s = %s' % (sender.get_name(), param.name, str)
|
||||
|
||||
if __name__ == '__main__':
|
||||
#gst_debug_set_categories(-1)
|
||||
#gst_info_set_categories(-1)
|
||||
player = DVDPlay()
|
||||
#gst_debug_set_categories(0xFFFFFFFFL)
|
||||
#gst_info_set_categories(0xFFFFFFFFL)
|
||||
player = DVDPlayer()
|
||||
ret = player.main()
|
||||
sys.exit(ret)
|
||||
|
|
|
@ -95,7 +95,7 @@ def check(f, n, b):
|
|||
|
||||
def main():
|
||||
"Identity timer and latency check"
|
||||
gst_debug_set_categories(0)
|
||||
gst_debug_set_categories(0L)
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print 'usage: %s identites buffers' % (sys.argv[0],)
|
||||
|
|
|
@ -14,10 +14,18 @@ _gstreamermodule_la_CFLAGS = $(GST_CFLAGS)
|
|||
_gstreamermodule_la_LIBADD = $(GST_LIBS)
|
||||
_gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgstreamer
|
||||
nodist__gstreamermodule_la_SOURCES = gstreamer.c
|
||||
CLEANFILES = gstreamer.c
|
||||
EXTRA_DIST = gstreamer.defs gstreamer.override
|
||||
CLEANFILES = gstreamer.c gstreamer-base.defs
|
||||
EXTRA_DIST = gstreamer-extra.defs gstreamer.override
|
||||
gstreamer.c: gstreamer.defs gstreamer.override
|
||||
|
||||
GST_INCLUDES=$(wildcard $(GST_INCLUDEDIR)/gst/*.h)
|
||||
|
||||
gstreamer-base.defs: $(GST_INCLUDES)
|
||||
$(PYTHON) $(PYGTK_H2DEF) $(GST_INCLUDES) > gstreamer-base.defs
|
||||
|
||||
gstreamer.defs: gstreamer-base.defs gstreamer-extra.defs
|
||||
cat gstreamer-base.defs gstreamer-extra.defs > gstreamer.defs
|
||||
|
||||
.defs.c:
|
||||
(cd $(srcdir) \
|
||||
&& $(PYGTK_CODEGEN) \
|
||||
|
@ -32,21 +40,3 @@ gstreamer.c: gstreamer.defs gstreamer.override
|
|||
# --register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
||||
# --register $(top_srcdir)/bonobo/bonobo-types.defs \
|
||||
# --register $(top_srcdir)/bonobo/bonoboui-types.defs \
|
||||
|
||||
# this should go in core
|
||||
|
||||
enums:
|
||||
glib-mkenums \
|
||||
--fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
|
||||
--fprod "/* enumerations from \"@filename@\" */\n" \
|
||||
--vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
|
||||
--ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
|
||||
/usr/include/gst/*.h > tmp-enum-types.h
|
||||
|
||||
glib-mkenums \
|
||||
--fhead "#include <gst/gst.h>" \
|
||||
--fprod "\n/* enumerations from \"@filename@\" */" \
|
||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
|
||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
|
||||
/usr/include/gst/*.h > tmp-enum-types.c
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -18,11 +18,3 @@
|
|||
'("char*" "data")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function gst_info_set_categories
|
||||
(c-name "gst_info_set_categories")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("guint32" "categories")
|
||||
)
|
||||
)
|
||||
|
|
|
@ -22,5 +22,3 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
#include "gstreamer-fixes.h"
|
||||
|
||||
#include "tmp-enum-types.c"
|
||||
|
|
|
@ -24,4 +24,3 @@
|
|||
|
||||
#include <gst/gstqueue.h>
|
||||
#include <gst/gsttypefind.h>
|
||||
#include "tmp-enum-types.h"
|
||||
|
|
|
@ -1,424 +0,0 @@
|
|||
|
||||
/* Generated data (by glib-mkenums) */
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstautoplug.h" */
|
||||
GType
|
||||
gst_autoplug_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_AUTOPLUG_TO_CAPS, "GST_AUTOPLUG_TO_CAPS", "to-caps" },
|
||||
{ GST_AUTOPLUG_TO_RENDERER, "GST_AUTOPLUG_TO_RENDERER", "to-renderer" },
|
||||
{ GST_AUTOPLUG_FLAG_LAST, "GST_AUTOPLUG_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstAutoplugFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbin.h" */
|
||||
GType
|
||||
gst_bin_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_BIN_FLAG_MANAGER, "GST_BIN_FLAG_MANAGER", "flag-manager" },
|
||||
{ GST_BIN_SELF_SCHEDULABLE, "GST_BIN_SELF_SCHEDULABLE", "self-schedulable" },
|
||||
{ GST_BIN_FLAG_PREFER_COTHREADS, "GST_BIN_FLAG_PREFER_COTHREADS", "flag-prefer-cothreads" },
|
||||
{ GST_BIN_FLAG_FIXED_CLOCK, "GST_BIN_FLAG_FIXED_CLOCK", "flag-fixed-clock" },
|
||||
{ GST_BIN_FLAG_LAST, "GST_BIN_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstBinFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbuffer.h" */
|
||||
GType
|
||||
gst_buffer_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_BUFFER_READONLY, "GST_BUFFER_READONLY", "readonly" },
|
||||
{ GST_BUFFER_ORIGINAL, "GST_BUFFER_ORIGINAL", "original" },
|
||||
{ GST_BUFFER_DONTFREE, "GST_BUFFER_DONTFREE", "dontfree" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstBufferFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstclock.h" */
|
||||
GType
|
||||
gst_clock_return_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_CLOCK_STOPPED, "GST_CLOCK_STOPPED", "stopped" },
|
||||
{ GST_CLOCK_TIMEOUT, "GST_CLOCK_TIMEOUT", "timeout" },
|
||||
{ GST_CLOCK_EARLY, "GST_CLOCK_EARLY", "early" },
|
||||
{ GST_CLOCK_ERROR, "GST_CLOCK_ERROR", "error" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstClockReturn", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstcpu.h" */
|
||||
GType
|
||||
gst_cpu_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GFlagsValue values[] = {
|
||||
{ GST_CPU_FLAG_MMX, "GST_CPU_FLAG_MMX", "mmx" },
|
||||
{ GST_CPU_FLAG_SSE, "GST_CPU_FLAG_SSE", "sse" },
|
||||
{ GST_CPU_FLAG_MMXEXT, "GST_CPU_FLAG_MMXEXT", "mmxext" },
|
||||
{ GST_CPU_FLAG_3DNOW, "GST_CPU_FLAG_3DNOW", "3dnow" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_flags_register_static ("GstCPUFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstelement.h" */
|
||||
GType
|
||||
gst_element_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_ELEMENT_COMPLEX, "GST_ELEMENT_COMPLEX", "complex" },
|
||||
{ GST_ELEMENT_DECOUPLED, "GST_ELEMENT_DECOUPLED", "decoupled" },
|
||||
{ GST_ELEMENT_THREAD_SUGGESTED, "GST_ELEMENT_THREAD_SUGGESTED", "thread-suggested" },
|
||||
{ GST_ELEMENT_NO_SEEK, "GST_ELEMENT_NO_SEEK", "no-seek" },
|
||||
{ GST_ELEMENT_INFINITE_LOOP, "GST_ELEMENT_INFINITE_LOOP", "infinite-loop" },
|
||||
{ GST_ELEMENT_SCHEDULER_PRIVATE1, "GST_ELEMENT_SCHEDULER_PRIVATE1", "scheduler-private1" },
|
||||
{ GST_ELEMENT_SCHEDULER_PRIVATE2, "GST_ELEMENT_SCHEDULER_PRIVATE2", "scheduler-private2" },
|
||||
{ GST_ELEMENT_NEW_LOOPFUNC, "GST_ELEMENT_NEW_LOOPFUNC", "new-loopfunc" },
|
||||
{ GST_ELEMENT_EVENT_AWARE, "GST_ELEMENT_EVENT_AWARE", "event-aware" },
|
||||
{ GST_ELEMENT_FLAG_LAST, "GST_ELEMENT_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstElementFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstevent.h" */
|
||||
GType
|
||||
gst_event_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_EVENT_UNKNOWN, "GST_EVENT_UNKNOWN", "unknown" },
|
||||
{ GST_EVENT_EOS, "GST_EVENT_EOS", "eos" },
|
||||
{ GST_EVENT_FLUSH, "GST_EVENT_FLUSH", "flush" },
|
||||
{ GST_EVENT_EMPTY, "GST_EVENT_EMPTY", "empty" },
|
||||
{ GST_EVENT_SEEK, "GST_EVENT_SEEK", "seek" },
|
||||
{ GST_EVENT_DISCONTINUOUS, "GST_EVENT_DISCONTINUOUS", "discontinuous" },
|
||||
{ GST_EVENT_NEW_MEDIA, "GST_EVENT_NEW_MEDIA", "new-media" },
|
||||
{ GST_EVENT_INFO, "GST_EVENT_INFO", "info" },
|
||||
{ GST_EVENT_ERROR, "GST_EVENT_ERROR", "error" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstEventType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_seek_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_SEEK_ANY, "GST_SEEK_ANY", "any" },
|
||||
{ GST_SEEK_TIMEOFFSET_SET, "GST_SEEK_TIMEOFFSET_SET", "timeoffset-set" },
|
||||
{ GST_SEEK_BYTEOFFSET_SET, "GST_SEEK_BYTEOFFSET_SET", "byteoffset-set" },
|
||||
{ GST_SEEK_BYTEOFFSET_CUR, "GST_SEEK_BYTEOFFSET_CUR", "byteoffset-cur" },
|
||||
{ GST_SEEK_BYTEOFFSET_END, "GST_SEEK_BYTEOFFSET_END", "byteoffset-end" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstSeekType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstobject.h" */
|
||||
GType
|
||||
gst_object_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_DESTROYED, "GST_DESTROYED", "destroyed" },
|
||||
{ GST_FLOATING, "GST_FLOATING", "floating" },
|
||||
{ GST_OBJECT_FLAG_LAST, "GST_OBJECT_FLAG_LAST", "object-flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstObjectFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstpad.h" */
|
||||
GType
|
||||
gst_region_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_REGION_VOID, "GST_REGION_VOID", "void" },
|
||||
{ GST_REGION_OFFSET_LEN, "GST_REGION_OFFSET_LEN", "offset-len" },
|
||||
{ GST_REGION_TIME_LEN, "GST_REGION_TIME_LEN", "time-len" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstRegionType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_connect_return_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" },
|
||||
{ GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" },
|
||||
{ GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" },
|
||||
{ GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadConnectReturn", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_direction_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_UNKNOWN, "GST_PAD_UNKNOWN", "unknown" },
|
||||
{ GST_PAD_SRC, "GST_PAD_SRC", "src" },
|
||||
{ GST_PAD_SINK, "GST_PAD_SINK", "sink" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadDirection", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_DISABLED, "GST_PAD_DISABLED", "disabled" },
|
||||
{ GST_PAD_EOS, "GST_PAD_EOS", "eos" },
|
||||
{ GST_PAD_FLAG_LAST, "GST_PAD_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_presence_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_ALWAYS, "GST_PAD_ALWAYS", "always" },
|
||||
{ GST_PAD_SOMETIMES, "GST_PAD_SOMETIMES", "sometimes" },
|
||||
{ GST_PAD_REQUEST, "GST_PAD_REQUEST", "request" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadPresence", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||
GType
|
||||
gst_parse_error_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" },
|
||||
{ GST_PARSE_ERROR_NO_SUCH_ELEMENT, "GST_PARSE_ERROR_NO_SUCH_ELEMENT", "no-such-element" },
|
||||
{ GST_PARSE_ERROR_NO_SUCH_PROPERTY, "GST_PARSE_ERROR_NO_SUCH_PROPERTY", "no-such-property" },
|
||||
{ GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstParseError", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||
GType
|
||||
gst_props_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PROPS_END_TYPE, "GST_PROPS_END_TYPE", "end-type" },
|
||||
{ GST_PROPS_INVALID_TYPE, "GST_PROPS_INVALID_TYPE", "invalid-type" },
|
||||
{ GST_PROPS_INT_TYPE, "GST_PROPS_INT_TYPE", "int-type" },
|
||||
{ GST_PROPS_FLOAT_TYPE, "GST_PROPS_FLOAT_TYPE", "float-type" },
|
||||
{ GST_PROPS_FOURCC_TYPE, "GST_PROPS_FOURCC_TYPE", "fourcc-type" },
|
||||
{ GST_PROPS_BOOL_TYPE, "GST_PROPS_BOOL_TYPE", "bool-type" },
|
||||
{ GST_PROPS_STRING_TYPE, "GST_PROPS_STRING_TYPE", "string-type" },
|
||||
{ GST_PROPS_VAR_TYPE, "GST_PROPS_VAR_TYPE", "var-type" },
|
||||
{ GST_PROPS_LIST_TYPE, "GST_PROPS_LIST_TYPE", "list-type" },
|
||||
{ GST_PROPS_FLOAT_RANGE_TYPE, "GST_PROPS_FLOAT_RANGE_TYPE", "float-range-type" },
|
||||
{ GST_PROPS_INT_RANGE_TYPE, "GST_PROPS_INT_RANGE_TYPE", "int-range-type" },
|
||||
{ GST_PROPS_LAST_TYPE, "GST_PROPS_LAST_TYPE", "last-type" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPropsType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||
GType
|
||||
gst_scheduler_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_SCHEDULER_FLAG_FIXED_CLOCK, "GST_SCHEDULER_FLAG_FIXED_CLOCK", "fixed-clock" },
|
||||
{ GST_SCHEDULER_FLAG_LAST, "GST_SCHEDULER_FLAG_LAST", "last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstSchedulerFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_scheduler_state_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_SCHEDULER_STATE_NONE, "GST_SCHEDULER_STATE_NONE", "none" },
|
||||
{ GST_SCHEDULER_STATE_RUNNING, "GST_SCHEDULER_STATE_RUNNING", "running" },
|
||||
{ GST_SCHEDULER_STATE_STOPPED, "GST_SCHEDULER_STATE_STOPPED", "stopped" },
|
||||
{ GST_SCHEDULER_STATE_ERROR, "GST_SCHEDULER_STATE_ERROR", "error" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstSchedulerState", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstthread.h" */
|
||||
GType
|
||||
gst_thread_state_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_THREAD_STATE_STARTED, "GST_THREAD_STATE_STARTED", "state-started" },
|
||||
{ GST_THREAD_STATE_SPINNING, "GST_THREAD_STATE_SPINNING", "state-spinning" },
|
||||
{ GST_THREAD_STATE_REAPING, "GST_THREAD_STATE_REAPING", "state-reaping" },
|
||||
{ GST_THREAD_FLAG_LAST, "GST_THREAD_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstThreadState", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttimecache.h" */
|
||||
GType
|
||||
gst_time_cache_certainty_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_TIME_CACHE_UNKNOWN, "GST_TIME_CACHE_UNKNOWN", "unknown" },
|
||||
{ GST_TIME_CACHE_CERTAIN, "GST_TIME_CACHE_CERTAIN", "certain" },
|
||||
{ GST_TIME_CACHE_FUZZY_LOCATION, "GST_TIME_CACHE_FUZZY_LOCATION", "fuzzy-location" },
|
||||
{ GST_TIME_CACHE_FUZZY_TIMESTAMP, "GST_TIME_CACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" },
|
||||
{ GST_TIME_CACHE_FUZZY, "GST_TIME_CACHE_FUZZY", "fuzzy" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstTimeCacheCertainty", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttypes.h" */
|
||||
GType
|
||||
gst_element_state_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GFlagsValue values[] = {
|
||||
{ GST_STATE_VOID_PENDING, "GST_STATE_VOID_PENDING", "void-pending" },
|
||||
{ GST_STATE_NULL, "GST_STATE_NULL", "null" },
|
||||
{ GST_STATE_READY, "GST_STATE_READY", "ready" },
|
||||
{ GST_STATE_PAUSED, "GST_STATE_PAUSED", "paused" },
|
||||
{ GST_STATE_PLAYING, "GST_STATE_PLAYING", "playing" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_flags_register_static ("GstElementState", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_element_state_return_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_STATE_FAILURE, "GST_STATE_FAILURE", "failure" },
|
||||
{ GST_STATE_SUCCESS, "GST_STATE_SUCCESS", "success" },
|
||||
{ GST_STATE_ASYNC, "GST_STATE_ASYNC", "async" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstElementStateReturn", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* Generated data ends here */
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
|
||||
/* Generated data (by glib-mkenums) */
|
||||
|
||||
#ifndef __GST_ENUM_TYPES_H__
|
||||
#define __GST_ENUM_TYPES_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstautoplug.h" */
|
||||
|
||||
GType gst_autoplug_flags_get_type (void);
|
||||
#define GST_TYPE_AUTOPLUG_FLAGS (gst_autoplug_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbin.h" */
|
||||
|
||||
GType gst_bin_flags_get_type (void);
|
||||
#define GST_TYPE_BIN_FLAGS (gst_bin_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbuffer.h" */
|
||||
|
||||
GType gst_buffer_flags_get_type (void);
|
||||
#define GST_TYPE_BUFFER_FLAGS (gst_buffer_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstclock.h" */
|
||||
|
||||
GType gst_clock_return_get_type (void);
|
||||
#define GST_TYPE_CLOCK_RETURN (gst_clock_return_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstcpu.h" */
|
||||
|
||||
GType gst_cpu_flags_get_type (void);
|
||||
#define GST_TYPE_CPU_FLAGS (gst_cpu_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstelement.h" */
|
||||
|
||||
GType gst_element_flags_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_FLAGS (gst_element_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstevent.h" */
|
||||
|
||||
GType gst_event_type_get_type (void);
|
||||
#define GST_TYPE_EVENT_TYPE (gst_event_type_get_type())
|
||||
|
||||
GType gst_seek_type_get_type (void);
|
||||
#define GST_TYPE_SEEK_TYPE (gst_seek_type_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstobject.h" */
|
||||
|
||||
GType gst_object_flags_get_type (void);
|
||||
#define GST_TYPE_OBJECT_FLAGS (gst_object_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstpad.h" */
|
||||
|
||||
GType gst_region_type_get_type (void);
|
||||
#define GST_TYPE_REGION_TYPE (gst_region_type_get_type())
|
||||
|
||||
GType gst_pad_connect_return_get_type (void);
|
||||
#define GST_TYPE_PAD_CONNECT_RETURN (gst_pad_connect_return_get_type())
|
||||
|
||||
GType gst_pad_direction_get_type (void);
|
||||
#define GST_TYPE_PAD_DIRECTION (gst_pad_direction_get_type())
|
||||
|
||||
GType gst_pad_flags_get_type (void);
|
||||
#define GST_TYPE_PAD_FLAGS (gst_pad_flags_get_type())
|
||||
|
||||
GType gst_pad_presence_get_type (void);
|
||||
#define GST_TYPE_PAD_PRESENCE (gst_pad_presence_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||
|
||||
GType gst_parse_error_get_type (void);
|
||||
#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||
|
||||
GType gst_props_type_get_type (void);
|
||||
#define GST_TYPE_PROPS_TYPE (gst_props_type_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||
|
||||
GType gst_scheduler_flags_get_type (void);
|
||||
#define GST_TYPE_SCHEDULER_FLAGS (gst_scheduler_flags_get_type())
|
||||
|
||||
GType gst_scheduler_state_get_type (void);
|
||||
#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstthread.h" */
|
||||
|
||||
GType gst_thread_state_get_type (void);
|
||||
#define GST_TYPE_THREAD_STATE (gst_thread_state_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttimecache.h" */
|
||||
|
||||
GType gst_time_cache_certainty_get_type (void);
|
||||
#define GST_TYPE_TIME_CACHE_CERTAINTY (gst_time_cache_certainty_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttypes.h" */
|
||||
|
||||
GType gst_element_state_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_STATE (gst_element_state_get_type())
|
||||
|
||||
GType gst_element_state_return_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_STATE_RETURN (gst_element_state_return_get_type())
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_ENUM_TYPES_H__ */
|
||||
|
||||
/* Generated data ends here */
|
||||
|
|
@ -14,10 +14,18 @@ _gstreamermodule_la_CFLAGS = $(GST_CFLAGS)
|
|||
_gstreamermodule_la_LIBADD = $(GST_LIBS)
|
||||
_gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgstreamer
|
||||
nodist__gstreamermodule_la_SOURCES = gstreamer.c
|
||||
CLEANFILES = gstreamer.c
|
||||
EXTRA_DIST = gstreamer.defs gstreamer.override
|
||||
CLEANFILES = gstreamer.c gstreamer-base.defs
|
||||
EXTRA_DIST = gstreamer-extra.defs gstreamer.override
|
||||
gstreamer.c: gstreamer.defs gstreamer.override
|
||||
|
||||
GST_INCLUDES=$(wildcard $(GST_INCLUDEDIR)/gst/*.h)
|
||||
|
||||
gstreamer-base.defs: $(GST_INCLUDES)
|
||||
$(PYTHON) $(PYGTK_H2DEF) $(GST_INCLUDES) > gstreamer-base.defs
|
||||
|
||||
gstreamer.defs: gstreamer-base.defs gstreamer-extra.defs
|
||||
cat gstreamer-base.defs gstreamer-extra.defs > gstreamer.defs
|
||||
|
||||
.defs.c:
|
||||
(cd $(srcdir) \
|
||||
&& $(PYGTK_CODEGEN) \
|
||||
|
@ -32,21 +40,3 @@ gstreamer.c: gstreamer.defs gstreamer.override
|
|||
# --register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
||||
# --register $(top_srcdir)/bonobo/bonobo-types.defs \
|
||||
# --register $(top_srcdir)/bonobo/bonoboui-types.defs \
|
||||
|
||||
# this should go in core
|
||||
|
||||
enums:
|
||||
glib-mkenums \
|
||||
--fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
|
||||
--fprod "/* enumerations from \"@filename@\" */\n" \
|
||||
--vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
|
||||
--ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
|
||||
/usr/include/gst/*.h > tmp-enum-types.h
|
||||
|
||||
glib-mkenums \
|
||||
--fhead "#include <gst/gst.h>" \
|
||||
--fprod "\n/* enumerations from \"@filename@\" */" \
|
||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
|
||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
|
||||
/usr/include/gst/*.h > tmp-enum-types.c
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -18,11 +18,3 @@
|
|||
'("char*" "data")
|
||||
)
|
||||
)
|
||||
|
||||
(define-function gst_info_set_categories
|
||||
(c-name "gst_info_set_categories")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("guint32" "categories")
|
||||
)
|
||||
)
|
||||
|
|
|
@ -22,5 +22,3 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
#include "gstreamer-fixes.h"
|
||||
|
||||
#include "tmp-enum-types.c"
|
||||
|
|
|
@ -24,4 +24,3 @@
|
|||
|
||||
#include <gst/gstqueue.h>
|
||||
#include <gst/gsttypefind.h>
|
||||
#include "tmp-enum-types.h"
|
||||
|
|
|
@ -1,424 +0,0 @@
|
|||
|
||||
/* Generated data (by glib-mkenums) */
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstautoplug.h" */
|
||||
GType
|
||||
gst_autoplug_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_AUTOPLUG_TO_CAPS, "GST_AUTOPLUG_TO_CAPS", "to-caps" },
|
||||
{ GST_AUTOPLUG_TO_RENDERER, "GST_AUTOPLUG_TO_RENDERER", "to-renderer" },
|
||||
{ GST_AUTOPLUG_FLAG_LAST, "GST_AUTOPLUG_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstAutoplugFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbin.h" */
|
||||
GType
|
||||
gst_bin_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_BIN_FLAG_MANAGER, "GST_BIN_FLAG_MANAGER", "flag-manager" },
|
||||
{ GST_BIN_SELF_SCHEDULABLE, "GST_BIN_SELF_SCHEDULABLE", "self-schedulable" },
|
||||
{ GST_BIN_FLAG_PREFER_COTHREADS, "GST_BIN_FLAG_PREFER_COTHREADS", "flag-prefer-cothreads" },
|
||||
{ GST_BIN_FLAG_FIXED_CLOCK, "GST_BIN_FLAG_FIXED_CLOCK", "flag-fixed-clock" },
|
||||
{ GST_BIN_FLAG_LAST, "GST_BIN_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstBinFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbuffer.h" */
|
||||
GType
|
||||
gst_buffer_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_BUFFER_READONLY, "GST_BUFFER_READONLY", "readonly" },
|
||||
{ GST_BUFFER_ORIGINAL, "GST_BUFFER_ORIGINAL", "original" },
|
||||
{ GST_BUFFER_DONTFREE, "GST_BUFFER_DONTFREE", "dontfree" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstBufferFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstclock.h" */
|
||||
GType
|
||||
gst_clock_return_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_CLOCK_STOPPED, "GST_CLOCK_STOPPED", "stopped" },
|
||||
{ GST_CLOCK_TIMEOUT, "GST_CLOCK_TIMEOUT", "timeout" },
|
||||
{ GST_CLOCK_EARLY, "GST_CLOCK_EARLY", "early" },
|
||||
{ GST_CLOCK_ERROR, "GST_CLOCK_ERROR", "error" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstClockReturn", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstcpu.h" */
|
||||
GType
|
||||
gst_cpu_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GFlagsValue values[] = {
|
||||
{ GST_CPU_FLAG_MMX, "GST_CPU_FLAG_MMX", "mmx" },
|
||||
{ GST_CPU_FLAG_SSE, "GST_CPU_FLAG_SSE", "sse" },
|
||||
{ GST_CPU_FLAG_MMXEXT, "GST_CPU_FLAG_MMXEXT", "mmxext" },
|
||||
{ GST_CPU_FLAG_3DNOW, "GST_CPU_FLAG_3DNOW", "3dnow" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_flags_register_static ("GstCPUFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstelement.h" */
|
||||
GType
|
||||
gst_element_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_ELEMENT_COMPLEX, "GST_ELEMENT_COMPLEX", "complex" },
|
||||
{ GST_ELEMENT_DECOUPLED, "GST_ELEMENT_DECOUPLED", "decoupled" },
|
||||
{ GST_ELEMENT_THREAD_SUGGESTED, "GST_ELEMENT_THREAD_SUGGESTED", "thread-suggested" },
|
||||
{ GST_ELEMENT_NO_SEEK, "GST_ELEMENT_NO_SEEK", "no-seek" },
|
||||
{ GST_ELEMENT_INFINITE_LOOP, "GST_ELEMENT_INFINITE_LOOP", "infinite-loop" },
|
||||
{ GST_ELEMENT_SCHEDULER_PRIVATE1, "GST_ELEMENT_SCHEDULER_PRIVATE1", "scheduler-private1" },
|
||||
{ GST_ELEMENT_SCHEDULER_PRIVATE2, "GST_ELEMENT_SCHEDULER_PRIVATE2", "scheduler-private2" },
|
||||
{ GST_ELEMENT_NEW_LOOPFUNC, "GST_ELEMENT_NEW_LOOPFUNC", "new-loopfunc" },
|
||||
{ GST_ELEMENT_EVENT_AWARE, "GST_ELEMENT_EVENT_AWARE", "event-aware" },
|
||||
{ GST_ELEMENT_FLAG_LAST, "GST_ELEMENT_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstElementFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstevent.h" */
|
||||
GType
|
||||
gst_event_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_EVENT_UNKNOWN, "GST_EVENT_UNKNOWN", "unknown" },
|
||||
{ GST_EVENT_EOS, "GST_EVENT_EOS", "eos" },
|
||||
{ GST_EVENT_FLUSH, "GST_EVENT_FLUSH", "flush" },
|
||||
{ GST_EVENT_EMPTY, "GST_EVENT_EMPTY", "empty" },
|
||||
{ GST_EVENT_SEEK, "GST_EVENT_SEEK", "seek" },
|
||||
{ GST_EVENT_DISCONTINUOUS, "GST_EVENT_DISCONTINUOUS", "discontinuous" },
|
||||
{ GST_EVENT_NEW_MEDIA, "GST_EVENT_NEW_MEDIA", "new-media" },
|
||||
{ GST_EVENT_INFO, "GST_EVENT_INFO", "info" },
|
||||
{ GST_EVENT_ERROR, "GST_EVENT_ERROR", "error" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstEventType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_seek_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_SEEK_ANY, "GST_SEEK_ANY", "any" },
|
||||
{ GST_SEEK_TIMEOFFSET_SET, "GST_SEEK_TIMEOFFSET_SET", "timeoffset-set" },
|
||||
{ GST_SEEK_BYTEOFFSET_SET, "GST_SEEK_BYTEOFFSET_SET", "byteoffset-set" },
|
||||
{ GST_SEEK_BYTEOFFSET_CUR, "GST_SEEK_BYTEOFFSET_CUR", "byteoffset-cur" },
|
||||
{ GST_SEEK_BYTEOFFSET_END, "GST_SEEK_BYTEOFFSET_END", "byteoffset-end" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstSeekType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstobject.h" */
|
||||
GType
|
||||
gst_object_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_DESTROYED, "GST_DESTROYED", "destroyed" },
|
||||
{ GST_FLOATING, "GST_FLOATING", "floating" },
|
||||
{ GST_OBJECT_FLAG_LAST, "GST_OBJECT_FLAG_LAST", "object-flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstObjectFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstpad.h" */
|
||||
GType
|
||||
gst_region_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_REGION_VOID, "GST_REGION_VOID", "void" },
|
||||
{ GST_REGION_OFFSET_LEN, "GST_REGION_OFFSET_LEN", "offset-len" },
|
||||
{ GST_REGION_TIME_LEN, "GST_REGION_TIME_LEN", "time-len" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstRegionType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_connect_return_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" },
|
||||
{ GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" },
|
||||
{ GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" },
|
||||
{ GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadConnectReturn", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_direction_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_UNKNOWN, "GST_PAD_UNKNOWN", "unknown" },
|
||||
{ GST_PAD_SRC, "GST_PAD_SRC", "src" },
|
||||
{ GST_PAD_SINK, "GST_PAD_SINK", "sink" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadDirection", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_DISABLED, "GST_PAD_DISABLED", "disabled" },
|
||||
{ GST_PAD_EOS, "GST_PAD_EOS", "eos" },
|
||||
{ GST_PAD_FLAG_LAST, "GST_PAD_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_pad_presence_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PAD_ALWAYS, "GST_PAD_ALWAYS", "always" },
|
||||
{ GST_PAD_SOMETIMES, "GST_PAD_SOMETIMES", "sometimes" },
|
||||
{ GST_PAD_REQUEST, "GST_PAD_REQUEST", "request" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPadPresence", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||
GType
|
||||
gst_parse_error_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" },
|
||||
{ GST_PARSE_ERROR_NO_SUCH_ELEMENT, "GST_PARSE_ERROR_NO_SUCH_ELEMENT", "no-such-element" },
|
||||
{ GST_PARSE_ERROR_NO_SUCH_PROPERTY, "GST_PARSE_ERROR_NO_SUCH_PROPERTY", "no-such-property" },
|
||||
{ GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstParseError", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||
GType
|
||||
gst_props_type_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_PROPS_END_TYPE, "GST_PROPS_END_TYPE", "end-type" },
|
||||
{ GST_PROPS_INVALID_TYPE, "GST_PROPS_INVALID_TYPE", "invalid-type" },
|
||||
{ GST_PROPS_INT_TYPE, "GST_PROPS_INT_TYPE", "int-type" },
|
||||
{ GST_PROPS_FLOAT_TYPE, "GST_PROPS_FLOAT_TYPE", "float-type" },
|
||||
{ GST_PROPS_FOURCC_TYPE, "GST_PROPS_FOURCC_TYPE", "fourcc-type" },
|
||||
{ GST_PROPS_BOOL_TYPE, "GST_PROPS_BOOL_TYPE", "bool-type" },
|
||||
{ GST_PROPS_STRING_TYPE, "GST_PROPS_STRING_TYPE", "string-type" },
|
||||
{ GST_PROPS_VAR_TYPE, "GST_PROPS_VAR_TYPE", "var-type" },
|
||||
{ GST_PROPS_LIST_TYPE, "GST_PROPS_LIST_TYPE", "list-type" },
|
||||
{ GST_PROPS_FLOAT_RANGE_TYPE, "GST_PROPS_FLOAT_RANGE_TYPE", "float-range-type" },
|
||||
{ GST_PROPS_INT_RANGE_TYPE, "GST_PROPS_INT_RANGE_TYPE", "int-range-type" },
|
||||
{ GST_PROPS_LAST_TYPE, "GST_PROPS_LAST_TYPE", "last-type" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstPropsType", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||
GType
|
||||
gst_scheduler_flags_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_SCHEDULER_FLAG_FIXED_CLOCK, "GST_SCHEDULER_FLAG_FIXED_CLOCK", "fixed-clock" },
|
||||
{ GST_SCHEDULER_FLAG_LAST, "GST_SCHEDULER_FLAG_LAST", "last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstSchedulerFlags", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_scheduler_state_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_SCHEDULER_STATE_NONE, "GST_SCHEDULER_STATE_NONE", "none" },
|
||||
{ GST_SCHEDULER_STATE_RUNNING, "GST_SCHEDULER_STATE_RUNNING", "running" },
|
||||
{ GST_SCHEDULER_STATE_STOPPED, "GST_SCHEDULER_STATE_STOPPED", "stopped" },
|
||||
{ GST_SCHEDULER_STATE_ERROR, "GST_SCHEDULER_STATE_ERROR", "error" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstSchedulerState", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstthread.h" */
|
||||
GType
|
||||
gst_thread_state_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_THREAD_STATE_STARTED, "GST_THREAD_STATE_STARTED", "state-started" },
|
||||
{ GST_THREAD_STATE_SPINNING, "GST_THREAD_STATE_SPINNING", "state-spinning" },
|
||||
{ GST_THREAD_STATE_REAPING, "GST_THREAD_STATE_REAPING", "state-reaping" },
|
||||
{ GST_THREAD_FLAG_LAST, "GST_THREAD_FLAG_LAST", "flag-last" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstThreadState", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttimecache.h" */
|
||||
GType
|
||||
gst_time_cache_certainty_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_TIME_CACHE_UNKNOWN, "GST_TIME_CACHE_UNKNOWN", "unknown" },
|
||||
{ GST_TIME_CACHE_CERTAIN, "GST_TIME_CACHE_CERTAIN", "certain" },
|
||||
{ GST_TIME_CACHE_FUZZY_LOCATION, "GST_TIME_CACHE_FUZZY_LOCATION", "fuzzy-location" },
|
||||
{ GST_TIME_CACHE_FUZZY_TIMESTAMP, "GST_TIME_CACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" },
|
||||
{ GST_TIME_CACHE_FUZZY, "GST_TIME_CACHE_FUZZY", "fuzzy" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstTimeCacheCertainty", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttypes.h" */
|
||||
GType
|
||||
gst_element_state_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GFlagsValue values[] = {
|
||||
{ GST_STATE_VOID_PENDING, "GST_STATE_VOID_PENDING", "void-pending" },
|
||||
{ GST_STATE_NULL, "GST_STATE_NULL", "null" },
|
||||
{ GST_STATE_READY, "GST_STATE_READY", "ready" },
|
||||
{ GST_STATE_PAUSED, "GST_STATE_PAUSED", "paused" },
|
||||
{ GST_STATE_PLAYING, "GST_STATE_PLAYING", "playing" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_flags_register_static ("GstElementState", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
GType
|
||||
gst_element_state_return_get_type (void)
|
||||
{
|
||||
static GType etype = 0;
|
||||
if (etype == 0) {
|
||||
static const GEnumValue values[] = {
|
||||
{ GST_STATE_FAILURE, "GST_STATE_FAILURE", "failure" },
|
||||
{ GST_STATE_SUCCESS, "GST_STATE_SUCCESS", "success" },
|
||||
{ GST_STATE_ASYNC, "GST_STATE_ASYNC", "async" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
etype = g_enum_register_static ("GstElementStateReturn", values);
|
||||
}
|
||||
return etype;
|
||||
}
|
||||
|
||||
|
||||
/* Generated data ends here */
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
|
||||
/* Generated data (by glib-mkenums) */
|
||||
|
||||
#ifndef __GST_ENUM_TYPES_H__
|
||||
#define __GST_ENUM_TYPES_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstautoplug.h" */
|
||||
|
||||
GType gst_autoplug_flags_get_type (void);
|
||||
#define GST_TYPE_AUTOPLUG_FLAGS (gst_autoplug_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbin.h" */
|
||||
|
||||
GType gst_bin_flags_get_type (void);
|
||||
#define GST_TYPE_BIN_FLAGS (gst_bin_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstbuffer.h" */
|
||||
|
||||
GType gst_buffer_flags_get_type (void);
|
||||
#define GST_TYPE_BUFFER_FLAGS (gst_buffer_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstclock.h" */
|
||||
|
||||
GType gst_clock_return_get_type (void);
|
||||
#define GST_TYPE_CLOCK_RETURN (gst_clock_return_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstcpu.h" */
|
||||
|
||||
GType gst_cpu_flags_get_type (void);
|
||||
#define GST_TYPE_CPU_FLAGS (gst_cpu_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstelement.h" */
|
||||
|
||||
GType gst_element_flags_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_FLAGS (gst_element_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstevent.h" */
|
||||
|
||||
GType gst_event_type_get_type (void);
|
||||
#define GST_TYPE_EVENT_TYPE (gst_event_type_get_type())
|
||||
|
||||
GType gst_seek_type_get_type (void);
|
||||
#define GST_TYPE_SEEK_TYPE (gst_seek_type_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstobject.h" */
|
||||
|
||||
GType gst_object_flags_get_type (void);
|
||||
#define GST_TYPE_OBJECT_FLAGS (gst_object_flags_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstpad.h" */
|
||||
|
||||
GType gst_region_type_get_type (void);
|
||||
#define GST_TYPE_REGION_TYPE (gst_region_type_get_type())
|
||||
|
||||
GType gst_pad_connect_return_get_type (void);
|
||||
#define GST_TYPE_PAD_CONNECT_RETURN (gst_pad_connect_return_get_type())
|
||||
|
||||
GType gst_pad_direction_get_type (void);
|
||||
#define GST_TYPE_PAD_DIRECTION (gst_pad_direction_get_type())
|
||||
|
||||
GType gst_pad_flags_get_type (void);
|
||||
#define GST_TYPE_PAD_FLAGS (gst_pad_flags_get_type())
|
||||
|
||||
GType gst_pad_presence_get_type (void);
|
||||
#define GST_TYPE_PAD_PRESENCE (gst_pad_presence_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||
|
||||
GType gst_parse_error_get_type (void);
|
||||
#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||
|
||||
GType gst_props_type_get_type (void);
|
||||
#define GST_TYPE_PROPS_TYPE (gst_props_type_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||
|
||||
GType gst_scheduler_flags_get_type (void);
|
||||
#define GST_TYPE_SCHEDULER_FLAGS (gst_scheduler_flags_get_type())
|
||||
|
||||
GType gst_scheduler_state_get_type (void);
|
||||
#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gstthread.h" */
|
||||
|
||||
GType gst_thread_state_get_type (void);
|
||||
#define GST_TYPE_THREAD_STATE (gst_thread_state_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttimecache.h" */
|
||||
|
||||
GType gst_time_cache_certainty_get_type (void);
|
||||
#define GST_TYPE_TIME_CACHE_CERTAINTY (gst_time_cache_certainty_get_type())
|
||||
|
||||
/* enumerations from "/usr/include/gst/gsttypes.h" */
|
||||
|
||||
GType gst_element_state_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_STATE (gst_element_state_get_type())
|
||||
|
||||
GType gst_element_state_return_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_STATE_RETURN (gst_element_state_return_get_type())
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_ENUM_TYPES_H__ */
|
||||
|
||||
/* Generated data ends here */
|
||||
|
Loading…
Reference in a new issue