mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
Merge branch 'master' into 0.11
Conflicts: android/base.mk android/controller.mk android/dataprotocol.mk android/elements.mk android/gst-inspect.mk android/gst-launch.mk android/gst-plugin-scanner.mk android/gst.mk android/indexers.mk android/net.mk win32/common/libgstbase.def
This commit is contained in:
commit
6be4dbdb5a
60 changed files with 4703 additions and 9713 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
Android.mk
|
||||
ABOUT-NLS
|
||||
Makefile
|
||||
Makefile.in
|
||||
|
|
75
Android.mk
75
Android.mk
|
@ -1,17 +1,70 @@
|
|||
# This file is the top android makefile for all sub-modules.
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
GSTREAMER_TOP := $(LOCAL_PATH)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
include $(GSTREAMER_TOP)/android/gst.mk
|
||||
include $(GSTREAMER_TOP)/android/base.mk
|
||||
include $(GSTREAMER_TOP)/android/controller.mk
|
||||
include $(GSTREAMER_TOP)/android/dataprotocol.mk
|
||||
include $(GSTREAMER_TOP)/android/net.mk
|
||||
include $(GSTREAMER_TOP)/android/elements.mk
|
||||
include $(GSTREAMER_TOP)/android/indexers.mk
|
||||
include $(GSTREAMER_TOP)/android/tools.mk
|
||||
gstreamer_TOP := $(LOCAL_PATH)
|
||||
|
||||
GST_BUILT_SOURCES := \
|
||||
gst/gstenumtypes.h \
|
||||
gst/gstenumtypes.c \
|
||||
gst/gstmarshal.h \
|
||||
gst/gstmarshal.c \
|
||||
gst/parse/grammar.tab.h \
|
||||
gst/parse/grammar.tab.c \
|
||||
gst/parse/grammar.output \
|
||||
gst/parse/lex._gst_parse_yy.c \
|
||||
pkgconfig/gstreamer-0.10.pc \
|
||||
pkgconfig/gstreamer-base-0.10.pc \
|
||||
pkgconfig/gstreamer-controller-0.10.pc \
|
||||
pkgconfig/gstreamer-dataprotocol-0.10.pc \
|
||||
pkgconfig/gstreamer-net-0.10.pc \
|
||||
pkgconfig/gstreamer-0.10-uninstalled.pc \
|
||||
pkgconfig/gstreamer-base-0.10-uninstalled.pc \
|
||||
pkgconfig/gstreamer-controller-0.10-uninstalled.pc \
|
||||
pkgconfig/gstreamer-dataprotocol-0.10-uninstalled.pc \
|
||||
pkgconfig/gstreamer-net-0.10-uninstalled.pc \
|
||||
gst/Android.mk \
|
||||
gst/parse/Android.mk \
|
||||
libs/Android.mk \
|
||||
libs/gst/Android.mk \
|
||||
libs/gst/base/Android.mk \
|
||||
libs/gst/controller/Android.mk \
|
||||
libs/gst/dataprotocol/Android.mk \
|
||||
libs/gst/net/Android.mk \
|
||||
libs/gst/helpers/Android.mk \
|
||||
plugins/Android.mk \
|
||||
plugins/elements/Android.mk \
|
||||
plugins/indexers/Android.mk \
|
||||
tools/Android.mk
|
||||
|
||||
GST_BUILT_SOURCES := $(patsubst %, $(abspath $(gstreamer_TOP))/%, $(GST_BUILT_SOURCES))
|
||||
|
||||
.PHONY: gst-configure gst-configure-real
|
||||
gst-configure-real:
|
||||
echo $(GST_BUILT_SOURCES)
|
||||
cd $(gstreamer_TOP) ; \
|
||||
CC="$(CONFIGURE_CC)" \
|
||||
CFLAGS="$(CONFIGURE_CFLAGS)" \
|
||||
LD=$(TARGET_LD) \
|
||||
LDFLAGS="$(CONFIGURE_LDFLAGS)" \
|
||||
CPP=$(CONFIGURE_CPP) \
|
||||
CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
|
||||
PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
|
||||
PKG_CONFIG_TOP_BUILD_DIR=/ \
|
||||
$(abspath $(gstreamer_TOP))/$(CONFIGURE) --host=arm-linux-androideabi \
|
||||
--prefix=/system --disable-nls --disable-loadsave \
|
||||
--disable-valgrind --disable-gtk-doc && \
|
||||
for file in $(GST_BUILT_SOURCES); do \
|
||||
rm -f $$file && \
|
||||
make -C $$(dirname $$file) $$(basename $$file) ; \
|
||||
done
|
||||
|
||||
gst-configure: gst-configure-real
|
||||
|
||||
CONFIGURE_TARGETS += gst-configure
|
||||
|
||||
-include $(gstreamer_TOP)/gst/Android.mk
|
||||
-include $(gstreamer_TOP)/libs/Android.mk
|
||||
-include $(gstreamer_TOP)/plugins/Android.mk
|
||||
-include $(gstreamer_TOP)/tools/Android.mk
|
||||
|
|
481
android/NOTICE
481
android/NOTICE
|
@ -1,481 +0,0 @@
|
|||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
|
@ -1,77 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
#------------------------------------
|
||||
# include section
|
||||
#-----------------------------------
|
||||
gst_base_COPY_HEADERS_TO := gstreamer-0.11/gst/base
|
||||
gst_base_COPY_HEADERS := \
|
||||
../libs/gst/base/gstadapter.h \
|
||||
../libs/gst/base/gstbasesink.h \
|
||||
../libs/gst/base/gstbasesrc.h \
|
||||
../libs/gst/base/gstbasetransform.h \
|
||||
../libs/gst/base/gstbitreader.h \
|
||||
../libs/gst/base/gstbytereader.h \
|
||||
../libs/gst/base/gstbytewriter.h \
|
||||
../libs/gst/base/gstcollectpads.h \
|
||||
../libs/gst/base/gstdataqueue.h \
|
||||
../libs/gst/base/gstpushsrc.h \
|
||||
../libs/gst/base/gsttypefindhelper.h
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
base_LOCAL_SRC_FILES:= \
|
||||
libs/gst/base/gstadapter.c \
|
||||
libs/gst/base/gstbasesink.c \
|
||||
libs/gst/base/gstbasesrc.c \
|
||||
libs/gst/base/gstbasetransform.c \
|
||||
libs/gst/base/gstbitreader.c \
|
||||
libs/gst/base/gstbytereader.c \
|
||||
libs/gst/base/gstbytewriter.c \
|
||||
libs/gst/base/gstcollectpads.c \
|
||||
libs/gst/base/gstpushsrc.c \
|
||||
libs/gst/base/gsttypefindhelper.c \
|
||||
libs/gst/base/gstdataqueue.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../,$(base_LOCAL_SRC_FILES))
|
||||
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstbase-$(GST_MAJORMINOR)
|
||||
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/../libs/gst/base \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH)/../libs \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := $(gst_base_COPY_HEADERS_TO)
|
||||
LOCAL_COPY_HEADERS := $(gst_base_COPY_HEADERS)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,64 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
#------------------------------------
|
||||
# include section
|
||||
#-----------------------------------
|
||||
gst_controller_COPY_HEADERS_TO := gstreamer-0.11/gst/controller
|
||||
gst_controller_COPY_HEADERS := \
|
||||
../libs/gst/controller/gstcontroller.h \
|
||||
../libs/gst/controller/gstcontrolsource.h \
|
||||
../libs/gst/controller/gstinterpolationcontrolsource.h \
|
||||
../libs/gst/controller/gstlfocontrolsource.h
|
||||
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
controller_LOCAL_SRC_FILES:= \
|
||||
libs/gst/controller/lib.c \
|
||||
libs/gst/controller/gstcontroller.c \
|
||||
libs/gst/controller/gstinterpolation.c \
|
||||
libs/gst/controller/gsthelper.c \
|
||||
libs/gst/controller/gstcontrolsource.c \
|
||||
libs/gst/controller/gstinterpolationcontrolsource.c \
|
||||
libs/gst/controller/gstlfocontrolsource.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../,$(controller_LOCAL_SRC_FILES))
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstcontroller-$(GST_MAJORMINOR)
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/../libs \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/gst/parse \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := $(gst_controller_COPY_HEADERS_TO)
|
||||
LOCAL_COPY_HEADERS := $(gst_controller_COPY_HEADERS)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,57 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
#------------------------------------
|
||||
# include section
|
||||
#-----------------------------------
|
||||
gst_dataprotocol_COPY_HEADERS_TO := gstreamer-0.11/gst/dataprotocol
|
||||
gst_dataprotocol_COPY_HEADERS := \
|
||||
../libs/gst/dataprotocol/dataprotocol.h
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
dataprotocol_LOCAL_SRC_FILES:= \
|
||||
libs/gst/dataprotocol/dataprotocol.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../,$(dataprotocol_LOCAL_SRC_FILES))
|
||||
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstdataprotocol-$(GST_MAJORMINOR)
|
||||
|
||||
LOCAL_TOP_PATH := $(LOCAL_PATH)/../../../..
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../libs \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/gst/parse \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := $(gst_dataprotocol_COPY_HEADERS_TO)
|
||||
LOCAL_COPY_HEADERS := $(gst_dataprotocol_COPY_HEADERS)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,62 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
elements_LOCAL_SRC_FILES:= \
|
||||
plugins/elements/gstcapsfilter.c \
|
||||
plugins/elements/gstelements.c \
|
||||
plugins/elements/gstfakesrc.c \
|
||||
plugins/elements/gstfakesink.c \
|
||||
plugins/elements/gstfdsrc.c \
|
||||
plugins/elements/gstfdsink.c \
|
||||
plugins/elements/gstfilesink.c \
|
||||
plugins/elements/gstfilesrc.c \
|
||||
plugins/elements/gstidentity.c \
|
||||
plugins/elements/gstqueue.c \
|
||||
plugins/elements/gstqueue2.c \
|
||||
plugins/elements/gsttee.c \
|
||||
plugins/elements/gsttypefindelement.c \
|
||||
plugins/elements/gstmultiqueue.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../,$(elements_LOCAL_SRC_FILES))
|
||||
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstbase-0.11 \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstcoreelements
|
||||
#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../libs \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH)/ \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/gst/parse \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,39 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
LOCAL_SRC_FILES:= ../tools/gst-inspect.c
|
||||
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= gst-inspect
|
||||
|
||||
LOCAL_TOP_PATH := $(LOCAL_PATH)/../..
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../tools \
|
||||
$(TARGET_OUT_HEADERS)/gstreamer-0.11 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
|
@ -1,38 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
LOCAL_SRC_FILES:= ../tools/gst-launch.c
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= gst-launch
|
||||
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../tools \
|
||||
$(TARGET_OUT_HEADERS)/gstreamer-0.11 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := \
|
||||
-DHAVE_CONFIG_H
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
|
@ -1,38 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
LOCAL_SRC_FILES:= ../libs/gst/helpers/gst-plugin-scanner.c
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= gst-plugin-scanner
|
||||
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../tools \
|
||||
$(TARGET_OUT_HEADERS)/gstreamer-0.11 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := \
|
||||
-DHAVE_CONFIG_H
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
185
android/gst.mk
185
android/gst.mk
|
@ -1,185 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
#------------------------------------
|
||||
# include section
|
||||
#-----------------------------------
|
||||
gst_COPY_HEADERS_TO := gstreamer-0.11/gst
|
||||
gst_COPY_HEADERS_BASE := \
|
||||
glib-compat.h \
|
||||
gst.h \
|
||||
gstbin.h \
|
||||
gstbuffer.h \
|
||||
gstbufferlist.h \
|
||||
gstbus.h \
|
||||
gstcaps.h \
|
||||
gstchildproxy.h \
|
||||
gstclock.h \
|
||||
gstcompat.h \
|
||||
gstdebugutils.h \
|
||||
gstelement.h \
|
||||
gstelementfactory.h \
|
||||
gsterror.h \
|
||||
gstevent.h \
|
||||
gstfilter.h \
|
||||
gstformat.h \
|
||||
gstghostpad.h \
|
||||
gstindex.h \
|
||||
gstindexfactory.h \
|
||||
gstinfo.h \
|
||||
gstinterface.h \
|
||||
gstiterator.h \
|
||||
gstmacros.h \
|
||||
gstmessage.h \
|
||||
gstminiobject.h \
|
||||
gstobject.h \
|
||||
gstpad.h \
|
||||
gstpadtemplate.h \
|
||||
gstparamspecs.h \
|
||||
gstparse.h \
|
||||
gstpipeline.h \
|
||||
gstplugin.h \
|
||||
gstpluginfeature.h \
|
||||
gstpluginloader.h \
|
||||
gstpoll.h \
|
||||
gstpreset.h \
|
||||
gstquery.h \
|
||||
gstregistry.h \
|
||||
gstregistrychunks.h \
|
||||
gstsegment.h \
|
||||
gststructure.h \
|
||||
gstsystemclock.h \
|
||||
gsttaglist.h \
|
||||
gsttagsetter.h \
|
||||
gsttask.h \
|
||||
gsttaskpool.h \
|
||||
gsttrace.h \
|
||||
gsttypefind.h \
|
||||
gsttypefindfactory.h \
|
||||
gsturi.h \
|
||||
gstutils.h \
|
||||
gstvalue.h \
|
||||
gstxml.h
|
||||
|
||||
gst_COPY_HEADERS_ANDROID := \
|
||||
gstconfig.h \
|
||||
gstversion.h \
|
||||
gstenumtypes.h \
|
||||
gstmarshal.h
|
||||
|
||||
gst_COPY_HEADERS := $(addprefix ../gst/,$(gst_COPY_HEADERS_BASE)) \
|
||||
$(addprefix ../android/gst/,$(gst_COPY_HEADERS_ANDROID))
|
||||
|
||||
#------------------------------------
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
gst_LOCAL_SRC_FILES_BASE:= \
|
||||
gst.c \
|
||||
gstobject.c \
|
||||
gstbin.c \
|
||||
gstbuffer.c \
|
||||
gstbufferlist.c \
|
||||
gstbus.c \
|
||||
gstcaps.c \
|
||||
gstchildproxy.c \
|
||||
gstclock.c \
|
||||
gstdebugutils.c \
|
||||
gstelement.c \
|
||||
gstelementfactory.c \
|
||||
gsterror.c \
|
||||
gstevent.c \
|
||||
gstfilter.c \
|
||||
gstformat.c \
|
||||
gstghostpad.c \
|
||||
gstindex.c \
|
||||
gstindexfactory.c \
|
||||
gstinfo.c \
|
||||
gstinterface.c \
|
||||
gstiterator.c \
|
||||
gstmessage.c \
|
||||
gstminiobject.c \
|
||||
gstpad.c \
|
||||
gstpadtemplate.c \
|
||||
gstparamspecs.c \
|
||||
gstpipeline.c \
|
||||
gstplugin.c \
|
||||
gstpluginfeature.c \
|
||||
gstpluginloader.c \
|
||||
gstpoll.c \
|
||||
gstpreset.c \
|
||||
gstquark.c \
|
||||
gstquery.c \
|
||||
gstregistry.c \
|
||||
gstregistrychunks.c \
|
||||
gstsegment.c \
|
||||
gststructure.c \
|
||||
gstsystemclock.c \
|
||||
gsttaglist.c \
|
||||
gsttagsetter.c \
|
||||
gsttask.c \
|
||||
gsttaskpool.c \
|
||||
gsttrace.c \
|
||||
gsttypefind.c \
|
||||
gsttypefindfactory.c \
|
||||
gsturi.c \
|
||||
gstutils.c \
|
||||
gstvalue.c \
|
||||
gstparse.c \
|
||||
gstregistrybinary.c \
|
||||
gstxml.c
|
||||
|
||||
|
||||
gst_LOCAL_SRC_FILES_ANDROID:= \
|
||||
gstenumtypes.c \
|
||||
gstmarshal.c \
|
||||
parse/grammar.tab.c \
|
||||
parse/lex._gst_parse_yy.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../gst/,$(gst_LOCAL_SRC_FILES_BASE)) \
|
||||
$(addprefix ../android/gst/,$(gst_LOCAL_SRC_FILES_ANDROID))
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libxml2
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstreamer-$(GST_MAJORMINOR)
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/gst/parse \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../gst/parse \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := \
|
||||
-D_GNU_SOURCE \
|
||||
-DG_LOG_DOMAIN=g_log_domain_gstreamer \
|
||||
-DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
|
||||
-DGST_DISABLE_DEPRECATED \
|
||||
-DHAVE_CONFIG_H
|
||||
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := $(gst_COPY_HEADERS_TO)
|
||||
LOCAL_COPY_HEADERS := $(gst_COPY_HEADERS)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,231 +0,0 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
||||
* 2004,2005 Wim Taymans <wim@fluendo.com>
|
||||
*
|
||||
* gstconfig.h: GST_DISABLE_* macros for build configuration
|
||||
*
|
||||
* 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., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* SECTION:gstconfig
|
||||
* @short_description: Build configuration options
|
||||
*
|
||||
* This describes the configuration options for GStreamer. When building
|
||||
* GStreamer there are a lot of parts (known internally as "subsystems" ) that
|
||||
* can be disabled for various reasons. The most common reasons are speed and
|
||||
* size, which is important because GStreamer is designed to run on embedded
|
||||
* systems.
|
||||
*
|
||||
* If a subsystem is disabled, most of this changes are done in an API
|
||||
* compatible way, so you don't need to adapt your code in most cases. It is
|
||||
* never done in an ABI compatible way though. So if you want to disable a
|
||||
* suybsystem, you have to rebuild all programs depending on GStreamer, too.
|
||||
*
|
||||
* If a subsystem is disabled in GStreamer, a value is defined in
|
||||
* <gst/gst.h>. You can check this if you do subsystem-specific stuff.
|
||||
* <example id="example-gstconfig">
|
||||
* <title>Doing subsystem specific things</title>
|
||||
* <programlisting>
|
||||
* &hash;ifndef GST_DISABLE_GST_DEBUG
|
||||
* // do stuff specific to the debugging subsystem
|
||||
* &hash;endif // GST_DISABLE_GST_DEBUG
|
||||
* </programlisting>
|
||||
* </example>
|
||||
*/
|
||||
|
||||
#ifndef __GST_CONFIG_H__
|
||||
#define __GST_CONFIG_H__
|
||||
|
||||
/* trick gtk-doc into believing these symbols are defined (yes, it's ugly) */
|
||||
|
||||
#if 0
|
||||
#define GST_DISABLE_GST_DEBUG 1
|
||||
#define GST_DISABLE_LOADSAVE 1
|
||||
#define GST_DISABLE_PARSE 1
|
||||
#define GST_DISABLE_TRACE 1
|
||||
#define GST_DISABLE_ALLOC_TRACE 1
|
||||
#define GST_DISABLE_REGISTRY 1
|
||||
#define GST_DISABLE_PLUGIN 1
|
||||
#define GST_DISABLE_XML 1
|
||||
#define GST_DISABLE_LOADSAVE_REGISTRY 1
|
||||
#define GST_HAVE_GLIB_2_8 1
|
||||
#endif
|
||||
|
||||
/***** default padding of structures *****/
|
||||
#define GST_PADDING 4
|
||||
#define GST_PADDING_INIT { NULL }
|
||||
|
||||
/***** padding for very extensible base classes *****/
|
||||
#define GST_PADDING_LARGE 20
|
||||
|
||||
/***** disabling of subsystems *****/
|
||||
|
||||
/**
|
||||
* GST_DISABLE_GST_DEBUG:
|
||||
*
|
||||
* Configures the inclusion of the debugging subsystem
|
||||
*/
|
||||
/* #undef GST_DISABLE_GST_DEBUG */
|
||||
|
||||
/**
|
||||
* GST_DISABLE_LOADSAVE:
|
||||
*
|
||||
* Configures the inclusion of the plugin graph xml-serialisation
|
||||
* (was used in 0.8 by gst-editor)
|
||||
*/
|
||||
/* #undef GST_DISABLE_LOADSAVE */
|
||||
|
||||
/**
|
||||
* GST_DISABLE_PARSE:
|
||||
*
|
||||
* Configures the inclusion of the gst-lauch parser
|
||||
*/
|
||||
/* #undef GST_DISABLE_PARSE */
|
||||
|
||||
/**
|
||||
* GST_DISABLE_TRACE:
|
||||
*
|
||||
* Configures the inclusion of a resource tracing facillity
|
||||
* (seems to be unused)
|
||||
*/
|
||||
/* #undef GST_DISABLE_TRACE */
|
||||
|
||||
/**
|
||||
* GST_DISABLE_ALLOC_TRACE:
|
||||
*
|
||||
* Configures the use of a memory tracer based on the resource tracer
|
||||
* if TRACE is disabled, ALLOC_TRACE is disabled as well
|
||||
*/
|
||||
/* #undef GST_DISABLE_ALLOC_TRACE */
|
||||
|
||||
/**
|
||||
* GST_DISABLE_REGISTRY:
|
||||
*
|
||||
* Configures the use of the plugin registry.
|
||||
* If one disables this, required plugins need to be loaded and registered
|
||||
* manually
|
||||
*/
|
||||
/* #undef GST_DISABLE_REGISTRY */
|
||||
|
||||
/**
|
||||
* GST_DISABLE_XML:
|
||||
*
|
||||
* Configures the use libxml2. This setting is derived from the settings of
|
||||
* %GST_DISABLE_LOADSAVE and %GST_DISABLE_REGISTRY (in the xml registry case).
|
||||
*/
|
||||
/* #undef GST_DISABLE_XML */
|
||||
|
||||
/* FIXME: test and document these! */
|
||||
/* Configures the use of external plugins */
|
||||
/* #undef GST_DISABLE_PLUGIN */
|
||||
|
||||
/* printf extension format */
|
||||
/**
|
||||
* GST_PTR_FORMAT:
|
||||
*
|
||||
* printf format type used to debug GStreamer types.
|
||||
* This can only be used on types whose size is >= sizeof(gpointer).
|
||||
*/
|
||||
#define GST_PTR_FORMAT "P"
|
||||
/**
|
||||
* GST_SEGMENT_FORMAT:
|
||||
*
|
||||
* printf format type used to debug GStreamer segments.
|
||||
* This can only be used on pointers to GstSegment structures.
|
||||
*
|
||||
* Since: 0.10.10
|
||||
*/
|
||||
#define GST_SEGMENT_FORMAT "Q"
|
||||
|
||||
/* whether or not GST_PTR_FORMAT or GST_SEGMENT_FORMAT are using
|
||||
* the printf extension mechanism. This is for internal use in our
|
||||
* header files so we know whether we can use G_GNUC_PRINTF or not */
|
||||
#define GST_USING_PRINTF_EXTENSION
|
||||
|
||||
/* GST_DISABLE_PRINTF_EXTENSION:
|
||||
*
|
||||
* Define this to debug your debug log messages and make gcc spew warnings
|
||||
* if printf format string and arguments don't match up (this is usually
|
||||
* not the case when libc and gcc are used because printf format warnings
|
||||
* have to be disabled when the printf extension mechanism is in use).
|
||||
*
|
||||
* Note that using this option disables 'pretty logging' of GStreamer objects
|
||||
* like caps, tags, structures, events, pads etc., so that only their address
|
||||
* will be printed in the log.
|
||||
*
|
||||
* This define only disables use of the special registered printf format
|
||||
* extensions in the code compiled with it defined. It does not stop
|
||||
* GStreamer from registering these extensions in the first place if it
|
||||
* was compiled against a libc that supports this.
|
||||
*
|
||||
* (not official API)
|
||||
*/
|
||||
#ifdef GST_DISABLE_PRINTF_EXTENSION
|
||||
#undef GST_PTR_FORMAT
|
||||
#define GST_PTR_FORMAT "p"
|
||||
#undef GST_SEGMENT_FORMAT
|
||||
#define GST_SEGMENT_FORMAT "p"
|
||||
#undef GST_USING_PRINTF_EXTENSION
|
||||
#endif
|
||||
|
||||
/* whether or not the CPU supports unaligned access */
|
||||
#define GST_HAVE_UNALIGNED_ACCESS 0
|
||||
|
||||
/* FIXME: 0.11 (remove)
|
||||
* whether or not we are using glib 2.8 api, e.g. atomic gobject
|
||||
* refcounting */
|
||||
#define GST_HAVE_GLIB_2_8 1
|
||||
|
||||
/***** Deal with XML stuff, we have to handle both loadsave and registry *****/
|
||||
/* FIXME: move include to where we need it */
|
||||
/*#if (! (defined(GST_DISABLE_LOADSAVE) && defined(GST_DISABLE_REGISTRY)) )*/
|
||||
#ifndef GST_DISABLE_XML
|
||||
# include <libxml/parser.h>
|
||||
#else
|
||||
/* FIXME: 0.11 (replace by GST_DISABLE_XML) */
|
||||
# define GST_DISABLE_LOADSAVE_REGISTRY
|
||||
#endif
|
||||
|
||||
/**
|
||||
* GST_EXPORT:
|
||||
*
|
||||
* Export the given variable from the built shared object.
|
||||
*
|
||||
* On Windows, this exports the variable from the DLL.
|
||||
* On other platforms, this gets defined to "extern".
|
||||
*/
|
||||
/**
|
||||
* GST_PLUGIN_EXPORT:
|
||||
*
|
||||
* Export the plugin's definition.
|
||||
*
|
||||
* On Windows, this exports the plugin definition from the DLL.
|
||||
* On other platforms, this gets defined as a no-op.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
#define GST_PLUGIN_EXPORT __declspec(dllexport) extern
|
||||
#ifdef GST_EXPORTS
|
||||
#define GST_EXPORT __declspec(dllexport) extern
|
||||
#else
|
||||
#define GST_EXPORT __declspec(dllimport) extern
|
||||
#endif
|
||||
#else /* not _MSC_VER */
|
||||
#define GST_PLUGIN_EXPORT
|
||||
#define GST_EXPORT extern
|
||||
#endif
|
||||
|
||||
#endif /* __GST_CONFIG_H__ */
|
File diff suppressed because it is too large
Load diff
|
@ -1,203 +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 "gstobject.h" */
|
||||
GType gst_object_flags_get_type (void);
|
||||
#define GST_TYPE_OBJECT_FLAGS (gst_object_flags_get_type())
|
||||
|
||||
/* enumerations from "gstbin.h" */
|
||||
GType gst_bin_flags_get_type (void);
|
||||
#define GST_TYPE_BIN_FLAGS (gst_bin_flags_get_type())
|
||||
|
||||
/* enumerations from "gstbuffer.h" */
|
||||
GType gst_buffer_flag_get_type (void);
|
||||
#define GST_TYPE_BUFFER_FLAG (gst_buffer_flag_get_type())
|
||||
GType gst_buffer_copy_flags_get_type (void);
|
||||
#define GST_TYPE_BUFFER_COPY_FLAGS (gst_buffer_copy_flags_get_type())
|
||||
|
||||
/* enumerations from "gstbufferlist.h" */
|
||||
GType gst_buffer_list_item_get_type (void);
|
||||
#define GST_TYPE_BUFFER_LIST_ITEM (gst_buffer_list_item_get_type())
|
||||
|
||||
/* enumerations from "gstbus.h" */
|
||||
GType gst_bus_flags_get_type (void);
|
||||
#define GST_TYPE_BUS_FLAGS (gst_bus_flags_get_type())
|
||||
GType gst_bus_sync_reply_get_type (void);
|
||||
#define GST_TYPE_BUS_SYNC_REPLY (gst_bus_sync_reply_get_type())
|
||||
|
||||
/* enumerations from "gstcaps.h" */
|
||||
GType gst_caps_flags_get_type (void);
|
||||
#define GST_TYPE_CAPS_FLAGS (gst_caps_flags_get_type())
|
||||
|
||||
/* enumerations from "gstclock.h" */
|
||||
GType gst_clock_return_get_type (void);
|
||||
#define GST_TYPE_CLOCK_RETURN (gst_clock_return_get_type())
|
||||
GType gst_clock_entry_type_get_type (void);
|
||||
#define GST_TYPE_CLOCK_ENTRY_TYPE (gst_clock_entry_type_get_type())
|
||||
GType gst_clock_flags_get_type (void);
|
||||
#define GST_TYPE_CLOCK_FLAGS (gst_clock_flags_get_type())
|
||||
|
||||
/* enumerations from "gstdebugutils.h" */
|
||||
GType gst_debug_graph_details_get_type (void);
|
||||
#define GST_TYPE_DEBUG_GRAPH_DETAILS (gst_debug_graph_details_get_type())
|
||||
|
||||
/* enumerations from "gstelement.h" */
|
||||
GType gst_state_get_type (void);
|
||||
#define GST_TYPE_STATE (gst_state_get_type())
|
||||
GType gst_state_change_return_get_type (void);
|
||||
#define GST_TYPE_STATE_CHANGE_RETURN (gst_state_change_return_get_type())
|
||||
GType gst_state_change_get_type (void);
|
||||
#define GST_TYPE_STATE_CHANGE (gst_state_change_get_type())
|
||||
GType gst_element_flags_get_type (void);
|
||||
#define GST_TYPE_ELEMENT_FLAGS (gst_element_flags_get_type())
|
||||
|
||||
/* enumerations from "gsterror.h" */
|
||||
GType gst_core_error_get_type (void);
|
||||
#define GST_TYPE_CORE_ERROR (gst_core_error_get_type())
|
||||
GType gst_library_error_get_type (void);
|
||||
#define GST_TYPE_LIBRARY_ERROR (gst_library_error_get_type())
|
||||
GType gst_resource_error_get_type (void);
|
||||
#define GST_TYPE_RESOURCE_ERROR (gst_resource_error_get_type())
|
||||
GType gst_stream_error_get_type (void);
|
||||
#define GST_TYPE_STREAM_ERROR (gst_stream_error_get_type())
|
||||
|
||||
/* enumerations from "gstevent.h" */
|
||||
GType gst_event_type_flags_get_type (void);
|
||||
#define GST_TYPE_EVENT_TYPE_FLAGS (gst_event_type_flags_get_type())
|
||||
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())
|
||||
GType gst_seek_flags_get_type (void);
|
||||
#define GST_TYPE_SEEK_FLAGS (gst_seek_flags_get_type())
|
||||
|
||||
/* enumerations from "gstformat.h" */
|
||||
GType gst_format_get_type (void);
|
||||
#define GST_TYPE_FORMAT (gst_format_get_type())
|
||||
|
||||
/* enumerations from "gstindex.h" */
|
||||
GType gst_index_certainty_get_type (void);
|
||||
#define GST_TYPE_INDEX_CERTAINTY (gst_index_certainty_get_type())
|
||||
GType gst_index_entry_type_get_type (void);
|
||||
#define GST_TYPE_INDEX_ENTRY_TYPE (gst_index_entry_type_get_type())
|
||||
GType gst_index_lookup_method_get_type (void);
|
||||
#define GST_TYPE_INDEX_LOOKUP_METHOD (gst_index_lookup_method_get_type())
|
||||
GType gst_assoc_flags_get_type (void);
|
||||
#define GST_TYPE_ASSOC_FLAGS (gst_assoc_flags_get_type())
|
||||
GType gst_index_resolver_method_get_type (void);
|
||||
#define GST_TYPE_INDEX_RESOLVER_METHOD (gst_index_resolver_method_get_type())
|
||||
GType gst_index_flags_get_type (void);
|
||||
#define GST_TYPE_INDEX_FLAGS (gst_index_flags_get_type())
|
||||
|
||||
/* enumerations from "gstinfo.h" */
|
||||
GType gst_debug_level_get_type (void);
|
||||
#define GST_TYPE_DEBUG_LEVEL (gst_debug_level_get_type())
|
||||
GType gst_debug_color_flags_get_type (void);
|
||||
#define GST_TYPE_DEBUG_COLOR_FLAGS (gst_debug_color_flags_get_type())
|
||||
|
||||
/* enumerations from "gstiterator.h" */
|
||||
GType gst_iterator_result_get_type (void);
|
||||
#define GST_TYPE_ITERATOR_RESULT (gst_iterator_result_get_type())
|
||||
GType gst_iterator_item_get_type (void);
|
||||
#define GST_TYPE_ITERATOR_ITEM (gst_iterator_item_get_type())
|
||||
|
||||
/* enumerations from "gstmessage.h" */
|
||||
GType gst_message_type_get_type (void);
|
||||
#define GST_TYPE_MESSAGE_TYPE (gst_message_type_get_type())
|
||||
GType gst_structure_change_type_get_type (void);
|
||||
#define GST_TYPE_STRUCTURE_CHANGE_TYPE (gst_structure_change_type_get_type())
|
||||
GType gst_stream_status_type_get_type (void);
|
||||
#define GST_TYPE_STREAM_STATUS_TYPE (gst_stream_status_type_get_type())
|
||||
|
||||
/* enumerations from "gstminiobject.h" */
|
||||
GType gst_mini_object_flags_get_type (void);
|
||||
#define GST_TYPE_MINI_OBJECT_FLAGS (gst_mini_object_flags_get_type())
|
||||
|
||||
/* enumerations from "gstpad.h" */
|
||||
GType gst_pad_link_return_get_type (void);
|
||||
#define GST_TYPE_PAD_LINK_RETURN (gst_pad_link_return_get_type())
|
||||
GType gst_flow_return_get_type (void);
|
||||
#define GST_TYPE_FLOW_RETURN (gst_flow_return_get_type())
|
||||
GType gst_activate_mode_get_type (void);
|
||||
#define GST_TYPE_ACTIVATE_MODE (gst_activate_mode_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())
|
||||
|
||||
/* enumerations from "gstpadtemplate.h" */
|
||||
GType gst_pad_presence_get_type (void);
|
||||
#define GST_TYPE_PAD_PRESENCE (gst_pad_presence_get_type())
|
||||
GType gst_pad_template_flags_get_type (void);
|
||||
#define GST_TYPE_PAD_TEMPLATE_FLAGS (gst_pad_template_flags_get_type())
|
||||
|
||||
/* enumerations from "gstpipeline.h" */
|
||||
GType gst_pipeline_flags_get_type (void);
|
||||
#define GST_TYPE_PIPELINE_FLAGS (gst_pipeline_flags_get_type())
|
||||
|
||||
/* enumerations from "gstplugin.h" */
|
||||
GType gst_plugin_error_get_type (void);
|
||||
#define GST_TYPE_PLUGIN_ERROR (gst_plugin_error_get_type())
|
||||
GType gst_plugin_flags_get_type (void);
|
||||
#define GST_TYPE_PLUGIN_FLAGS (gst_plugin_flags_get_type())
|
||||
GType gst_plugin_dependency_flags_get_type (void);
|
||||
#define GST_TYPE_PLUGIN_DEPENDENCY_FLAGS (gst_plugin_dependency_flags_get_type())
|
||||
|
||||
/* enumerations from "gstpluginfeature.h" */
|
||||
GType gst_rank_get_type (void);
|
||||
#define GST_TYPE_RANK (gst_rank_get_type())
|
||||
|
||||
/* enumerations from "gstquery.h" */
|
||||
GType gst_query_type_get_type (void);
|
||||
#define GST_TYPE_QUERY_TYPE (gst_query_type_get_type())
|
||||
GType gst_buffering_mode_get_type (void);
|
||||
#define GST_TYPE_BUFFERING_MODE (gst_buffering_mode_get_type())
|
||||
|
||||
/* enumerations from "gstsystemclock.h" */
|
||||
GType gst_clock_type_get_type (void);
|
||||
#define GST_TYPE_CLOCK_TYPE (gst_clock_type_get_type())
|
||||
|
||||
/* enumerations from "gsttaglist.h" */
|
||||
GType gst_tag_merge_mode_get_type (void);
|
||||
#define GST_TYPE_TAG_MERGE_MODE (gst_tag_merge_mode_get_type())
|
||||
GType gst_tag_flag_get_type (void);
|
||||
#define GST_TYPE_TAG_FLAG (gst_tag_flag_get_type())
|
||||
|
||||
/* enumerations from "gsttask.h" */
|
||||
GType gst_task_state_get_type (void);
|
||||
#define GST_TYPE_TASK_STATE (gst_task_state_get_type())
|
||||
|
||||
/* enumerations from "gsttrace.h" */
|
||||
GType gst_alloc_trace_flags_get_type (void);
|
||||
#define GST_TYPE_ALLOC_TRACE_FLAGS (gst_alloc_trace_flags_get_type())
|
||||
|
||||
/* enumerations from "gsttypefind.h" */
|
||||
GType gst_type_find_probability_get_type (void);
|
||||
#define GST_TYPE_TYPE_FIND_PROBABILITY (gst_type_find_probability_get_type())
|
||||
|
||||
/* enumerations from "gsturi.h" */
|
||||
GType gst_uri_type_get_type (void);
|
||||
#define GST_TYPE_URI_TYPE (gst_uri_type_get_type())
|
||||
|
||||
/* enumerations from "gstutils.h" */
|
||||
GType gst_search_mode_get_type (void);
|
||||
#define GST_TYPE_SEARCH_MODE (gst_search_mode_get_type())
|
||||
|
||||
/* enumerations from "gstparse.h" */
|
||||
GType gst_parse_error_get_type (void);
|
||||
#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type())
|
||||
GType gst_parse_flags_get_type (void);
|
||||
#define GST_TYPE_PARSE_FLAGS (gst_parse_flags_get_type())
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_ENUM_TYPES_H__ */
|
||||
|
||||
/* Generated data ends here */
|
||||
|
|
@ -1,586 +0,0 @@
|
|||
#include "gst_private.h"
|
||||
#include "glib-object.h"
|
||||
#include "gstmarshal.h"
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
|
||||
#define g_marshal_value_peek_char(v) g_value_get_char (v)
|
||||
#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
|
||||
#define g_marshal_value_peek_int(v) g_value_get_int (v)
|
||||
#define g_marshal_value_peek_uint(v) g_value_get_uint (v)
|
||||
#define g_marshal_value_peek_long(v) g_value_get_long (v)
|
||||
#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
|
||||
#define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
|
||||
#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
|
||||
#define g_marshal_value_peek_enum(v) g_value_get_enum (v)
|
||||
#define g_marshal_value_peek_flags(v) g_value_get_flags (v)
|
||||
#define g_marshal_value_peek_float(v) g_value_get_float (v)
|
||||
#define g_marshal_value_peek_double(v) g_value_get_double (v)
|
||||
#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
|
||||
#define g_marshal_value_peek_param(v) g_value_get_param (v)
|
||||
#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
|
||||
#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
|
||||
#define g_marshal_value_peek_object(v) g_value_get_object (v)
|
||||
#else /* !G_ENABLE_DEBUG */
|
||||
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
|
||||
* Do not access GValues directly in your code. Instead, use the
|
||||
* g_value_get_*() functions
|
||||
*/
|
||||
#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
|
||||
#define g_marshal_value_peek_char(v) (v)->data[0].v_int
|
||||
#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
|
||||
#define g_marshal_value_peek_int(v) (v)->data[0].v_int
|
||||
#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
|
||||
#define g_marshal_value_peek_long(v) (v)->data[0].v_long
|
||||
#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
|
||||
#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
|
||||
#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
|
||||
#define g_marshal_value_peek_enum(v) (v)->data[0].v_long
|
||||
#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
|
||||
#define g_marshal_value_peek_float(v) (v)->data[0].v_float
|
||||
#define g_marshal_value_peek_double(v) (v)->data[0].v_double
|
||||
#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
|
||||
#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
|
||||
#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
|
||||
#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
|
||||
#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
|
||||
#endif /* !G_ENABLE_DEBUG */
|
||||
|
||||
|
||||
/* VOID:VOID (./gstmarshal.list:1) */
|
||||
|
||||
/* VOID:BOOLEAN (./gstmarshal.list:2) */
|
||||
|
||||
/* VOID:INT (./gstmarshal.list:3) */
|
||||
|
||||
/* VOID:STRING (./gstmarshal.list:4) */
|
||||
|
||||
/* VOID:BOXED (./gstmarshal.list:5) */
|
||||
|
||||
/* VOID:BOXED,OBJECT (./gstmarshal.list:6) */
|
||||
void
|
||||
gst_marshal_VOID__BOXED_OBJECT (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__BOXED_OBJECT) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__BOXED_OBJECT callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__BOXED_OBJECT) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_boxed (param_values + 1),
|
||||
g_marshal_value_peek_object (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:POINTER (./gstmarshal.list:7) */
|
||||
|
||||
/* VOID:POINTER,OBJECT (./gstmarshal.list:8) */
|
||||
void
|
||||
gst_marshal_VOID__POINTER_OBJECT (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__POINTER_OBJECT) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__POINTER_OBJECT callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__POINTER_OBJECT) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_pointer (param_values + 1),
|
||||
g_marshal_value_peek_object (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT (./gstmarshal.list:9) */
|
||||
|
||||
/* VOID:OBJECT,OBJECT (./gstmarshal.list:10) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_OBJECT (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_OBJECT callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_object (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT,PARAM (./gstmarshal.list:11) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_PARAM (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_PARAM) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_PARAM callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_PARAM) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_param (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT,POINTER (./gstmarshal.list:12) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_POINTER (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_POINTER) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_POINTER callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_POINTER) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_pointer (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT,BOXED (./gstmarshal.list:13) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_BOXED (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_BOXED) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_BOXED callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_BOXED) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_boxed (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT,BOXED,STRING (./gstmarshal.list:14) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_BOXED_STRING (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_BOXED_STRING) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_BOXED_STRING callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 4);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_BOXED_STRING) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_boxed (param_values + 2),
|
||||
g_marshal_value_peek_string (param_values + 3), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT,OBJECT,STRING (./gstmarshal.list:15) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_OBJECT_STRING (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_STRING) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_OBJECT_STRING callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 4);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_OBJECT_STRING) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_object (param_values + 2),
|
||||
g_marshal_value_peek_string (param_values + 3), data2);
|
||||
}
|
||||
|
||||
/* VOID:OBJECT,STRING (./gstmarshal.list:16) */
|
||||
void
|
||||
gst_marshal_VOID__OBJECT_STRING (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__OBJECT_STRING) (gpointer data1,
|
||||
gpointer arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__OBJECT_STRING callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__OBJECT_STRING) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_object (param_values + 1),
|
||||
g_marshal_value_peek_string (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:INT,INT (./gstmarshal.list:17) */
|
||||
void
|
||||
gst_marshal_VOID__INT_INT (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1,
|
||||
gint arg_1, gint arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__INT_INT callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_int (param_values + 1),
|
||||
g_marshal_value_peek_int (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:INT64 (./gstmarshal.list:18) */
|
||||
void
|
||||
gst_marshal_VOID__INT64 (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__INT64) (gpointer data1,
|
||||
gint64 arg_1, gpointer data2);
|
||||
register GMarshalFunc_VOID__INT64 callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 2);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__INT64) (marshal_data ? marshal_data : cc->callback);
|
||||
|
||||
callback (data1, g_marshal_value_peek_int64 (param_values + 1), data2);
|
||||
}
|
||||
|
||||
/* VOID:UINT,BOXED (./gstmarshal.list:19) */
|
||||
void
|
||||
gst_marshal_VOID__UINT_BOXED (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef void (*GMarshalFunc_VOID__UINT_BOXED) (gpointer data1,
|
||||
guint arg_1, gpointer arg_2, gpointer data2);
|
||||
register GMarshalFunc_VOID__UINT_BOXED callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
|
||||
g_return_if_fail (n_param_values == 3);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_VOID__UINT_BOXED) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
callback (data1,
|
||||
g_marshal_value_peek_uint (param_values + 1),
|
||||
g_marshal_value_peek_boxed (param_values + 2), data2);
|
||||
}
|
||||
|
||||
/* VOID:UINT,POINTER (./gstmarshal.list:20) */
|
||||
|
||||
/* BOOLEAN:VOID (./gstmarshal.list:21) */
|
||||
void
|
||||
gst_marshal_BOOLEAN__VOID (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef gboolean (*GMarshalFunc_BOOLEAN__VOID) (gpointer data1,
|
||||
gpointer data2);
|
||||
register GMarshalFunc_BOOLEAN__VOID callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
gboolean v_return;
|
||||
|
||||
g_return_if_fail (return_value != NULL);
|
||||
g_return_if_fail (n_param_values == 1);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_BOOLEAN__VOID) (marshal_data ? marshal_data : cc->callback);
|
||||
|
||||
v_return = callback (data1, data2);
|
||||
|
||||
g_value_set_boolean (return_value, v_return);
|
||||
}
|
||||
|
||||
/* BOOLEAN:POINTER (./gstmarshal.list:22) */
|
||||
void
|
||||
gst_marshal_BOOLEAN__POINTER (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER) (gpointer data1,
|
||||
gpointer arg_1, gpointer data2);
|
||||
register GMarshalFunc_BOOLEAN__POINTER callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
gboolean v_return;
|
||||
|
||||
g_return_if_fail (return_value != NULL);
|
||||
g_return_if_fail (n_param_values == 2);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_BOOLEAN__POINTER) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
v_return = callback (data1,
|
||||
g_marshal_value_peek_pointer (param_values + 1), data2);
|
||||
|
||||
g_value_set_boolean (return_value, v_return);
|
||||
}
|
||||
|
||||
/* POINTER:POINTER (./gstmarshal.list:23) */
|
||||
void
|
||||
gst_marshal_POINTER__POINTER (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef gpointer (*GMarshalFunc_POINTER__POINTER) (gpointer data1,
|
||||
gpointer arg_1, gpointer data2);
|
||||
register GMarshalFunc_POINTER__POINTER callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
gpointer v_return;
|
||||
|
||||
g_return_if_fail (return_value != NULL);
|
||||
g_return_if_fail (n_param_values == 2);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_POINTER__POINTER) (marshal_data ? marshal_data :
|
||||
cc->callback);
|
||||
|
||||
v_return = callback (data1,
|
||||
g_marshal_value_peek_pointer (param_values + 1), data2);
|
||||
|
||||
g_value_set_pointer (return_value, v_return);
|
||||
}
|
||||
|
||||
/* BOXED:BOXED (./gstmarshal.list:24) */
|
||||
void
|
||||
gst_marshal_BOXED__BOXED (GClosure * closure,
|
||||
GValue * return_value G_GNUC_UNUSED,
|
||||
guint n_param_values,
|
||||
const GValue * param_values,
|
||||
gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
|
||||
{
|
||||
typedef gpointer (*GMarshalFunc_BOXED__BOXED) (gpointer data1,
|
||||
gpointer arg_1, gpointer data2);
|
||||
register GMarshalFunc_BOXED__BOXED callback;
|
||||
register GCClosure *cc = (GCClosure *) closure;
|
||||
register gpointer data1, data2;
|
||||
gpointer v_return;
|
||||
|
||||
g_return_if_fail (return_value != NULL);
|
||||
g_return_if_fail (n_param_values == 2);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure)) {
|
||||
data1 = closure->data;
|
||||
data2 = g_value_peek_pointer (param_values + 0);
|
||||
} else {
|
||||
data1 = g_value_peek_pointer (param_values + 0);
|
||||
data2 = closure->data;
|
||||
}
|
||||
callback =
|
||||
(GMarshalFunc_BOXED__BOXED) (marshal_data ? marshal_data : cc->callback);
|
||||
|
||||
v_return = callback (data1,
|
||||
g_marshal_value_peek_boxed (param_values + 1), data2);
|
||||
|
||||
g_value_take_boxed (return_value, v_return);
|
||||
}
|
|
@ -1,164 +0,0 @@
|
|||
|
||||
#ifndef __gst_marshal_MARSHAL_H__
|
||||
#define __gst_marshal_MARSHAL_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* VOID:VOID (./gstmarshal.list:1) */
|
||||
#define gst_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID
|
||||
|
||||
/* VOID:BOOLEAN (./gstmarshal.list:2) */
|
||||
#define gst_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN
|
||||
|
||||
/* VOID:INT (./gstmarshal.list:3) */
|
||||
#define gst_marshal_VOID__INT g_cclosure_marshal_VOID__INT
|
||||
|
||||
/* VOID:STRING (./gstmarshal.list:4) */
|
||||
#define gst_marshal_VOID__STRING g_cclosure_marshal_VOID__STRING
|
||||
|
||||
/* VOID:BOXED (./gstmarshal.list:5) */
|
||||
#define gst_marshal_VOID__BOXED g_cclosure_marshal_VOID__BOXED
|
||||
|
||||
/* VOID:BOXED,OBJECT (./gstmarshal.list:6) */
|
||||
extern void gst_marshal_VOID__BOXED_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:POINTER (./gstmarshal.list:7) */
|
||||
#define gst_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER
|
||||
|
||||
/* VOID:POINTER,OBJECT (./gstmarshal.list:8) */
|
||||
extern void gst_marshal_VOID__POINTER_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT (./gstmarshal.list:9) */
|
||||
#define gst_marshal_VOID__OBJECT g_cclosure_marshal_VOID__OBJECT
|
||||
|
||||
/* VOID:OBJECT,OBJECT (./gstmarshal.list:10) */
|
||||
extern void gst_marshal_VOID__OBJECT_OBJECT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT,PARAM (./gstmarshal.list:11) */
|
||||
extern void gst_marshal_VOID__OBJECT_PARAM (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT,POINTER (./gstmarshal.list:12) */
|
||||
extern void gst_marshal_VOID__OBJECT_POINTER (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT,BOXED (./gstmarshal.list:13) */
|
||||
extern void gst_marshal_VOID__OBJECT_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT,BOXED,STRING (./gstmarshal.list:14) */
|
||||
extern void gst_marshal_VOID__OBJECT_BOXED_STRING (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT,OBJECT,STRING (./gstmarshal.list:15) */
|
||||
extern void gst_marshal_VOID__OBJECT_OBJECT_STRING (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:OBJECT,STRING (./gstmarshal.list:16) */
|
||||
extern void gst_marshal_VOID__OBJECT_STRING (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:INT,INT (./gstmarshal.list:17) */
|
||||
extern void gst_marshal_VOID__INT_INT (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:INT64 (./gstmarshal.list:18) */
|
||||
extern void gst_marshal_VOID__INT64 (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:UINT,BOXED (./gstmarshal.list:19) */
|
||||
extern void gst_marshal_VOID__UINT_BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* VOID:UINT,POINTER (./gstmarshal.list:20) */
|
||||
#define gst_marshal_VOID__UINT_POINTER g_cclosure_marshal_VOID__UINT_POINTER
|
||||
|
||||
/* BOOLEAN:VOID (./gstmarshal.list:21) */
|
||||
extern void gst_marshal_BOOLEAN__VOID (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* BOOLEAN:POINTER (./gstmarshal.list:22) */
|
||||
extern void gst_marshal_BOOLEAN__POINTER (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* POINTER:POINTER (./gstmarshal.list:23) */
|
||||
extern void gst_marshal_POINTER__POINTER (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
/* BOXED:BOXED (./gstmarshal.list:24) */
|
||||
extern void gst_marshal_BOXED__BOXED (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
const GValue *param_values,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __gst_marshal_MARSHAL_H__ */
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
||||
* 2000 Wim Taymans <wtay@chello.be>
|
||||
*
|
||||
* gstversion.h: Version information for GStreamer
|
||||
*
|
||||
* 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., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
/**
|
||||
* SECTION:gstversion
|
||||
* @short_description: GStreamer version macros.
|
||||
*
|
||||
* Use the GST_VERSION_* macros e.g. when defining own plugins. The GStreamer
|
||||
* runtime checks if these plugin and core version match and refuses to use a
|
||||
* plugin compiled against a different version of GStreamer.
|
||||
* You can also use the macros to keep the GStreamer version information in
|
||||
* your application.
|
||||
*
|
||||
* Use the gst_version() function if you want to know which version of
|
||||
* GStreamer you are currently linked against.
|
||||
*
|
||||
* The version macros get defined by including "gst/gst.h".
|
||||
*/
|
||||
|
||||
#ifndef __GST_VERSION_H__
|
||||
#define __GST_VERSION_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* GST_VERSION_MAJOR:
|
||||
*
|
||||
* The major version of GStreamer at compile time:
|
||||
*/
|
||||
#define GST_VERSION_MAJOR (0)
|
||||
/**
|
||||
* GST_VERSION_MINOR:
|
||||
*
|
||||
* The minor version of GStreamer at compile time:
|
||||
*/
|
||||
#define GST_VERSION_MINOR (10)
|
||||
/**
|
||||
* GST_VERSION_MICRO:
|
||||
*
|
||||
* The micro version of GStreamer at compile time:
|
||||
*/
|
||||
#define GST_VERSION_MICRO (26)
|
||||
/**
|
||||
* GST_VERSION_NANO:
|
||||
*
|
||||
* The nano version of GStreamer at compile time:
|
||||
* Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
|
||||
*/
|
||||
#define GST_VERSION_NANO (0)
|
||||
|
||||
/**
|
||||
* GST_CHECK_VERSION:
|
||||
* @major: a number indicating the major version
|
||||
* @minor: a number indicating the minor version
|
||||
* @micro: a number indicating the micro version
|
||||
*
|
||||
* Check whether a GStreamer version equal to or greater than
|
||||
* major.minor.micro is present.
|
||||
*
|
||||
* Since: 0.10.18
|
||||
*/
|
||||
#define GST_CHECK_VERSION(major,minor,micro) \
|
||||
(GST_VERSION_MAJOR > (major) || \
|
||||
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR > (minor)) || \
|
||||
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
|
||||
GST_VERSION_MICRO >= (micro)))
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_VERSION_H__ */
|
|
@ -1,759 +0,0 @@
|
|||
Terminals which are not used
|
||||
|
||||
'.'
|
||||
'!'
|
||||
'='
|
||||
|
||||
|
||||
State 15 conflicts: 7 shift/reduce, 1 reduce/reduce
|
||||
State 22 conflicts: 2 shift/reduce
|
||||
State 23 conflicts: 6 shift/reduce, 1 reduce/reduce
|
||||
State 24 conflicts: 7 shift/reduce, 1 reduce/reduce
|
||||
State 26 conflicts: 6 shift/reduce, 1 reduce/reduce
|
||||
State 27 conflicts: 1 shift/reduce
|
||||
State 28 conflicts: 7 shift/reduce, 1 reduce/reduce
|
||||
State 37 conflicts: 1 shift/reduce
|
||||
|
||||
|
||||
Grammar
|
||||
|
||||
0 $accept: graph $end
|
||||
|
||||
1 element: IDENTIFIER
|
||||
2 | element ASSIGNMENT
|
||||
|
||||
3 assignments: /* empty */
|
||||
4 | assignments ASSIGNMENT
|
||||
|
||||
5 bin: '(' assignments chain ')'
|
||||
6 | BINREF assignments chain ')'
|
||||
7 | BINREF assignments ')'
|
||||
8 | BINREF assignments error ')'
|
||||
|
||||
9 pads: PADREF
|
||||
10 | PADREF padlist
|
||||
|
||||
11 padlist: ',' IDENTIFIER
|
||||
12 | ',' IDENTIFIER padlist
|
||||
|
||||
13 reference: REF
|
||||
14 | REF padlist
|
||||
|
||||
15 linkpart: reference
|
||||
16 | pads
|
||||
17 | /* empty */
|
||||
|
||||
18 link: linkpart LINK linkpart
|
||||
|
||||
19 linklist: link
|
||||
20 | link linklist
|
||||
21 | linklist error
|
||||
|
||||
22 chain: element
|
||||
23 | bin
|
||||
24 | chain chain
|
||||
25 | chain linklist
|
||||
26 | chain error
|
||||
27 | link chain
|
||||
28 | PARSE_URL chain
|
||||
29 | link PARSE_URL
|
||||
|
||||
30 graph: /* empty */
|
||||
31 | chain
|
||||
|
||||
|
||||
Terminals, with rules where they appear
|
||||
|
||||
$end (0) 0
|
||||
'!' (33)
|
||||
'(' (40) 5
|
||||
')' (41) 5 6 7 8
|
||||
',' (44) 11 12
|
||||
'.' (46)
|
||||
'=' (61)
|
||||
error (256) 8 21 26
|
||||
PARSE_URL (258) 28 29
|
||||
IDENTIFIER (259) 1 11 12
|
||||
BINREF (260) 6 7 8
|
||||
PADREF (261) 9 10
|
||||
REF (262) 13 14
|
||||
ASSIGNMENT (263) 2 4
|
||||
LINK (264) 18
|
||||
|
||||
|
||||
Nonterminals, with rules where they appear
|
||||
|
||||
$accept (16)
|
||||
on left: 0
|
||||
element (17)
|
||||
on left: 1 2, on right: 2 22
|
||||
assignments (18)
|
||||
on left: 3 4, on right: 4 5 6 7 8
|
||||
bin (19)
|
||||
on left: 5 6 7 8, on right: 23
|
||||
pads (20)
|
||||
on left: 9 10, on right: 16
|
||||
padlist (21)
|
||||
on left: 11 12, on right: 10 12 14
|
||||
reference (22)
|
||||
on left: 13 14, on right: 15
|
||||
linkpart (23)
|
||||
on left: 15 16 17, on right: 18
|
||||
link (24)
|
||||
on left: 18, on right: 19 20 27 29
|
||||
linklist (25)
|
||||
on left: 19 20 21, on right: 20 21 25
|
||||
chain (26)
|
||||
on left: 22 23 24 25 26 27 28 29, on right: 5 6 24 25 26 27 28
|
||||
31
|
||||
graph (27)
|
||||
on left: 30 31, on right: 0
|
||||
|
||||
|
||||
state 0
|
||||
|
||||
0 $accept: . graph $end
|
||||
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$end reduce using rule 30 (graph)
|
||||
$default reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 12
|
||||
chain go to state 13
|
||||
graph go to state 14
|
||||
|
||||
|
||||
state 1
|
||||
|
||||
28 chain: PARSE_URL . chain
|
||||
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$default reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 12
|
||||
chain go to state 15
|
||||
|
||||
|
||||
state 2
|
||||
|
||||
1 element: IDENTIFIER .
|
||||
|
||||
$default reduce using rule 1 (element)
|
||||
|
||||
|
||||
state 3
|
||||
|
||||
6 bin: BINREF . assignments chain ')'
|
||||
7 | BINREF . assignments ')'
|
||||
8 | BINREF . assignments error ')'
|
||||
|
||||
$default reduce using rule 3 (assignments)
|
||||
|
||||
assignments go to state 16
|
||||
|
||||
|
||||
state 4
|
||||
|
||||
9 pads: PADREF .
|
||||
10 | PADREF . padlist
|
||||
|
||||
',' shift, and go to state 17
|
||||
|
||||
$default reduce using rule 9 (pads)
|
||||
|
||||
padlist go to state 18
|
||||
|
||||
|
||||
state 5
|
||||
|
||||
13 reference: REF .
|
||||
14 | REF . padlist
|
||||
|
||||
',' shift, and go to state 17
|
||||
|
||||
$default reduce using rule 13 (reference)
|
||||
|
||||
padlist go to state 19
|
||||
|
||||
|
||||
state 6
|
||||
|
||||
5 bin: '(' . assignments chain ')'
|
||||
|
||||
$default reduce using rule 3 (assignments)
|
||||
|
||||
assignments go to state 20
|
||||
|
||||
|
||||
state 7
|
||||
|
||||
2 element: element . ASSIGNMENT
|
||||
22 chain: element .
|
||||
|
||||
ASSIGNMENT shift, and go to state 21
|
||||
|
||||
$default reduce using rule 22 (chain)
|
||||
|
||||
|
||||
state 8
|
||||
|
||||
23 chain: bin .
|
||||
|
||||
$default reduce using rule 23 (chain)
|
||||
|
||||
|
||||
state 9
|
||||
|
||||
16 linkpart: pads .
|
||||
|
||||
$default reduce using rule 16 (linkpart)
|
||||
|
||||
|
||||
state 10
|
||||
|
||||
15 linkpart: reference .
|
||||
|
||||
$default reduce using rule 15 (linkpart)
|
||||
|
||||
|
||||
state 11
|
||||
|
||||
18 link: linkpart . LINK linkpart
|
||||
|
||||
LINK shift, and go to state 22
|
||||
|
||||
|
||||
state 12
|
||||
|
||||
27 chain: link . chain
|
||||
29 | link . PARSE_URL
|
||||
|
||||
PARSE_URL shift, and go to state 23
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$default reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 12
|
||||
chain go to state 24
|
||||
|
||||
|
||||
state 13
|
||||
|
||||
24 chain: chain . chain
|
||||
25 | chain . linklist
|
||||
26 | chain . error
|
||||
31 graph: chain .
|
||||
|
||||
error shift, and go to state 25
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$end reduce using rule 31 (graph)
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 27
|
||||
chain go to state 28
|
||||
|
||||
|
||||
state 14
|
||||
|
||||
0 $accept: graph . $end
|
||||
|
||||
$end shift, and go to state 29
|
||||
|
||||
|
||||
state 15
|
||||
|
||||
24 chain: chain . chain
|
||||
25 | chain . linklist
|
||||
26 | chain . error
|
||||
28 | PARSE_URL chain .
|
||||
|
||||
error shift, and go to state 25
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$end reduce using rule 28 (chain)
|
||||
error [reduce using rule 28 (chain)]
|
||||
PARSE_URL [reduce using rule 28 (chain)]
|
||||
IDENTIFIER [reduce using rule 28 (chain)]
|
||||
BINREF [reduce using rule 28 (chain)]
|
||||
PADREF [reduce using rule 28 (chain)]
|
||||
REF [reduce using rule 28 (chain)]
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
LINK [reduce using rule 28 (chain)]
|
||||
'(' [reduce using rule 28 (chain)]
|
||||
')' reduce using rule 28 (chain)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 27
|
||||
chain go to state 28
|
||||
|
||||
|
||||
state 16
|
||||
|
||||
4 assignments: assignments . ASSIGNMENT
|
||||
6 bin: BINREF assignments . chain ')'
|
||||
7 | BINREF assignments . ')'
|
||||
8 | BINREF assignments . error ')'
|
||||
|
||||
error shift, and go to state 30
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
ASSIGNMENT shift, and go to state 31
|
||||
'(' shift, and go to state 6
|
||||
')' shift, and go to state 32
|
||||
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 12
|
||||
chain go to state 33
|
||||
|
||||
|
||||
state 17
|
||||
|
||||
11 padlist: ',' . IDENTIFIER
|
||||
12 | ',' . IDENTIFIER padlist
|
||||
|
||||
IDENTIFIER shift, and go to state 34
|
||||
|
||||
|
||||
state 18
|
||||
|
||||
10 pads: PADREF padlist .
|
||||
|
||||
$default reduce using rule 10 (pads)
|
||||
|
||||
|
||||
state 19
|
||||
|
||||
14 reference: REF padlist .
|
||||
|
||||
$default reduce using rule 14 (reference)
|
||||
|
||||
|
||||
state 20
|
||||
|
||||
4 assignments: assignments . ASSIGNMENT
|
||||
5 bin: '(' assignments . chain ')'
|
||||
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
ASSIGNMENT shift, and go to state 31
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$default reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 12
|
||||
chain go to state 35
|
||||
|
||||
|
||||
state 21
|
||||
|
||||
2 element: element ASSIGNMENT .
|
||||
|
||||
$default reduce using rule 2 (element)
|
||||
|
||||
|
||||
state 22
|
||||
|
||||
18 link: linkpart LINK . linkpart
|
||||
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
|
||||
PADREF [reduce using rule 17 (linkpart)]
|
||||
REF [reduce using rule 17 (linkpart)]
|
||||
$default reduce using rule 17 (linkpart)
|
||||
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 36
|
||||
|
||||
|
||||
state 23
|
||||
|
||||
28 chain: PARSE_URL . chain
|
||||
29 | link PARSE_URL .
|
||||
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
PARSE_URL [reduce using rule 29 (chain)]
|
||||
IDENTIFIER [reduce using rule 29 (chain)]
|
||||
BINREF [reduce using rule 29 (chain)]
|
||||
PADREF [reduce using rule 29 (chain)]
|
||||
REF [reduce using rule 29 (chain)]
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
LINK [reduce using rule 29 (chain)]
|
||||
'(' [reduce using rule 29 (chain)]
|
||||
$default reduce using rule 29 (chain)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 12
|
||||
chain go to state 15
|
||||
|
||||
|
||||
state 24
|
||||
|
||||
24 chain: chain . chain
|
||||
25 | chain . linklist
|
||||
26 | chain . error
|
||||
27 | link chain .
|
||||
|
||||
error shift, and go to state 25
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$end reduce using rule 27 (chain)
|
||||
error [reduce using rule 27 (chain)]
|
||||
PARSE_URL [reduce using rule 27 (chain)]
|
||||
IDENTIFIER [reduce using rule 27 (chain)]
|
||||
BINREF [reduce using rule 27 (chain)]
|
||||
PADREF [reduce using rule 27 (chain)]
|
||||
REF [reduce using rule 27 (chain)]
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
LINK [reduce using rule 27 (chain)]
|
||||
'(' [reduce using rule 27 (chain)]
|
||||
')' reduce using rule 27 (chain)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 27
|
||||
chain go to state 28
|
||||
|
||||
|
||||
state 25
|
||||
|
||||
26 chain: chain error .
|
||||
|
||||
$default reduce using rule 26 (chain)
|
||||
|
||||
|
||||
state 26
|
||||
|
||||
19 linklist: link .
|
||||
20 | link . linklist
|
||||
27 chain: link . chain
|
||||
29 | link . PARSE_URL
|
||||
|
||||
PARSE_URL shift, and go to state 23
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
PARSE_URL [reduce using rule 19 (linklist)]
|
||||
IDENTIFIER [reduce using rule 19 (linklist)]
|
||||
BINREF [reduce using rule 19 (linklist)]
|
||||
PADREF [reduce using rule 19 (linklist)]
|
||||
REF [reduce using rule 19 (linklist)]
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
LINK [reduce using rule 19 (linklist)]
|
||||
'(' [reduce using rule 19 (linklist)]
|
||||
$default reduce using rule 19 (linklist)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 37
|
||||
chain go to state 24
|
||||
|
||||
|
||||
state 27
|
||||
|
||||
21 linklist: linklist . error
|
||||
25 chain: chain linklist .
|
||||
|
||||
error shift, and go to state 38
|
||||
|
||||
$end reduce using rule 25 (chain)
|
||||
error [reduce using rule 25 (chain)]
|
||||
PARSE_URL reduce using rule 25 (chain)
|
||||
IDENTIFIER reduce using rule 25 (chain)
|
||||
BINREF reduce using rule 25 (chain)
|
||||
PADREF reduce using rule 25 (chain)
|
||||
REF reduce using rule 25 (chain)
|
||||
LINK reduce using rule 25 (chain)
|
||||
'(' reduce using rule 25 (chain)
|
||||
')' reduce using rule 25 (chain)
|
||||
|
||||
|
||||
state 28
|
||||
|
||||
24 chain: chain . chain
|
||||
24 | chain chain .
|
||||
25 | chain . linklist
|
||||
26 | chain . error
|
||||
|
||||
error shift, and go to state 25
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
|
||||
$end reduce using rule 24 (chain)
|
||||
error [reduce using rule 24 (chain)]
|
||||
PARSE_URL [reduce using rule 24 (chain)]
|
||||
IDENTIFIER [reduce using rule 24 (chain)]
|
||||
BINREF [reduce using rule 24 (chain)]
|
||||
PADREF [reduce using rule 24 (chain)]
|
||||
REF [reduce using rule 24 (chain)]
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
LINK [reduce using rule 24 (chain)]
|
||||
'(' [reduce using rule 24 (chain)]
|
||||
')' reduce using rule 24 (chain)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 27
|
||||
chain go to state 28
|
||||
|
||||
|
||||
state 29
|
||||
|
||||
0 $accept: graph $end .
|
||||
|
||||
$default accept
|
||||
|
||||
|
||||
state 30
|
||||
|
||||
8 bin: BINREF assignments error . ')'
|
||||
|
||||
')' shift, and go to state 39
|
||||
|
||||
|
||||
state 31
|
||||
|
||||
4 assignments: assignments ASSIGNMENT .
|
||||
|
||||
$default reduce using rule 4 (assignments)
|
||||
|
||||
|
||||
state 32
|
||||
|
||||
7 bin: BINREF assignments ')' .
|
||||
|
||||
$default reduce using rule 7 (bin)
|
||||
|
||||
|
||||
state 33
|
||||
|
||||
6 bin: BINREF assignments chain . ')'
|
||||
24 chain: chain . chain
|
||||
25 | chain . linklist
|
||||
26 | chain . error
|
||||
|
||||
error shift, and go to state 25
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
')' shift, and go to state 40
|
||||
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 27
|
||||
chain go to state 28
|
||||
|
||||
|
||||
state 34
|
||||
|
||||
11 padlist: ',' IDENTIFIER .
|
||||
12 | ',' IDENTIFIER . padlist
|
||||
|
||||
',' shift, and go to state 17
|
||||
|
||||
$default reduce using rule 11 (padlist)
|
||||
|
||||
padlist go to state 41
|
||||
|
||||
|
||||
state 35
|
||||
|
||||
5 bin: '(' assignments chain . ')'
|
||||
24 chain: chain . chain
|
||||
25 | chain . linklist
|
||||
26 | chain . error
|
||||
|
||||
error shift, and go to state 25
|
||||
PARSE_URL shift, and go to state 1
|
||||
IDENTIFIER shift, and go to state 2
|
||||
BINREF shift, and go to state 3
|
||||
PADREF shift, and go to state 4
|
||||
REF shift, and go to state 5
|
||||
'(' shift, and go to state 6
|
||||
')' shift, and go to state 42
|
||||
|
||||
LINK reduce using rule 17 (linkpart)
|
||||
|
||||
element go to state 7
|
||||
bin go to state 8
|
||||
pads go to state 9
|
||||
reference go to state 10
|
||||
linkpart go to state 11
|
||||
link go to state 26
|
||||
linklist go to state 27
|
||||
chain go to state 28
|
||||
|
||||
|
||||
state 36
|
||||
|
||||
18 link: linkpart LINK linkpart .
|
||||
|
||||
$default reduce using rule 18 (link)
|
||||
|
||||
|
||||
state 37
|
||||
|
||||
20 linklist: link linklist .
|
||||
21 | linklist . error
|
||||
|
||||
error shift, and go to state 38
|
||||
|
||||
$end reduce using rule 20 (linklist)
|
||||
error [reduce using rule 20 (linklist)]
|
||||
PARSE_URL reduce using rule 20 (linklist)
|
||||
IDENTIFIER reduce using rule 20 (linklist)
|
||||
BINREF reduce using rule 20 (linklist)
|
||||
PADREF reduce using rule 20 (linklist)
|
||||
REF reduce using rule 20 (linklist)
|
||||
LINK reduce using rule 20 (linklist)
|
||||
'(' reduce using rule 20 (linklist)
|
||||
')' reduce using rule 20 (linklist)
|
||||
|
||||
|
||||
state 38
|
||||
|
||||
21 linklist: linklist error .
|
||||
|
||||
$default reduce using rule 21 (linklist)
|
||||
|
||||
|
||||
state 39
|
||||
|
||||
8 bin: BINREF assignments error ')' .
|
||||
|
||||
$default reduce using rule 8 (bin)
|
||||
|
||||
|
||||
state 40
|
||||
|
||||
6 bin: BINREF assignments chain ')' .
|
||||
|
||||
$default reduce using rule 6 (bin)
|
||||
|
||||
|
||||
state 41
|
||||
|
||||
12 padlist: ',' IDENTIFIER padlist .
|
||||
|
||||
$default reduce using rule 12 (padlist)
|
||||
|
||||
|
||||
state 42
|
||||
|
||||
5 bin: '(' assignments chain ')' .
|
||||
|
||||
$default reduce using rule 5 (bin)
|
File diff suppressed because it is too large
Load diff
|
@ -1,72 +0,0 @@
|
|||
/* A Bison parser, made by GNU Bison 1.875d. */
|
||||
|
||||
/* Skeleton parser for Yacc-like parsing with Bison,
|
||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* As a special exception, when this file is copied by Bison into a
|
||||
Bison output file, you may use that output file without restriction.
|
||||
This special exception was added by the Free Software Foundation
|
||||
in version 1.24 of Bison. */
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||
know about them. */
|
||||
enum yytokentype {
|
||||
PARSE_URL = 258,
|
||||
IDENTIFIER = 259,
|
||||
BINREF = 260,
|
||||
PADREF = 261,
|
||||
REF = 262,
|
||||
ASSIGNMENT = 263,
|
||||
LINK = 264
|
||||
};
|
||||
#endif
|
||||
#define PARSE_URL 258
|
||||
#define IDENTIFIER 259
|
||||
#define BINREF 260
|
||||
#define PADREF 261
|
||||
#define REF 262
|
||||
#define ASSIGNMENT 263
|
||||
#define LINK 264
|
||||
|
||||
|
||||
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
#line 566 "./grammar.y"
|
||||
typedef union YYSTYPE {
|
||||
gchar *s;
|
||||
chain_t *c;
|
||||
link_t *l;
|
||||
GstElement *e;
|
||||
GSList *p;
|
||||
graph_t *g;
|
||||
} YYSTYPE;
|
||||
/* Line 1241 of yacc.c. */
|
||||
#line 64 "grammar.tab.h"
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,54 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
indexers_LOCAL_SRC_FILES:= \
|
||||
plugins/indexers/gstindexers.c \
|
||||
plugins/indexers/gstmemindex.c \
|
||||
plugins/indexers/gstfileindex.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../,$(indexers_LOCAL_SRC_FILES))
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libxml2
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstbase-0.11 \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstcoreindexers
|
||||
#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../libs \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/gst/parse \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,57 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
gst_net_COPY_HEADERS_TO := gstreamer-0.11/gst/net
|
||||
gst_net_COPY_HEADERS := \
|
||||
../libs/gst/net/gstnet.h \
|
||||
../libs/gst/net/gstnetclientclock.h \
|
||||
../libs/gst/net/gstnettimepacket.h \
|
||||
../libs/gst/net/gstnettimeprovider.h
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
GST_MAJORMINOR:= 0.11
|
||||
|
||||
net_LOCAL_SRC_FILES:= \
|
||||
libs/gst/net/gstnetclientclock.c \
|
||||
libs/gst/net/gstnettimepacket.c \
|
||||
libs/gst/net/gstnettimeprovider.c
|
||||
|
||||
LOCAL_SRC_FILES:= $(addprefix ../,$(net_LOCAL_SRC_FILES))
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libgstreamer-0.11 \
|
||||
libglib-2.0 \
|
||||
libgthread-2.0 \
|
||||
libgmodule-2.0 \
|
||||
libgobject-2.0
|
||||
|
||||
LOCAL_MODULE:= libgstnet-$(GST_MAJORMINOR)
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/../libs \
|
||||
$(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../gst \
|
||||
$(LOCAL_PATH)/ \
|
||||
$(LOCAL_PATH)/gst \
|
||||
$(LOCAL_PATH)/gst/parse \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0 \
|
||||
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
|
||||
external/libxml2/include
|
||||
|
||||
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
|
||||
LOCAL_SHARED_LIBRARIES += libicuuc
|
||||
LOCAL_C_INCLUDES += external/icu4c/common
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := -DHAVE_CONFIG_H
|
||||
#
|
||||
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
||||
#
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_COPY_HEADERS_TO := $(gst_net_COPY_HEADERS_TO)
|
||||
LOCAL_COPY_HEADERS := $(gst_net_COPY_HEADERS)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,9 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
GSTREAMER_TOP := $(LOCAL_PATH)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
include $(GSTREAMER_TOP)/gst-inspect.mk
|
||||
include $(GSTREAMER_TOP)/gst-launch.mk
|
||||
include $(GSTREAMER_TOP)/gst-plugin-scanner.mk
|
|
@ -33,6 +33,7 @@
|
|||
by elements and utillity classes that are most useful for plugin developers.
|
||||
</para>
|
||||
|
||||
<xi:include href="xml/gstbaseparse.xml" />
|
||||
<xi:include href="xml/gstbasesrc.xml" />
|
||||
<xi:include href="xml/gstbasesink.xml" />
|
||||
<xi:include href="xml/gstbasetransform.xml" />
|
||||
|
|
|
@ -212,6 +212,41 @@ GST_ADAPTER_GET_CLASS
|
|||
gst_adapter_get_type
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gstbaseparse</FILE>
|
||||
<TITLE>GstBaseParse</TITLE>
|
||||
<INCLUDE>gst/base/gstbaseparse.h</INCLUDE>
|
||||
GstBaseParse
|
||||
GstBaseParseClass
|
||||
|
||||
gst_base_parse_set_duration
|
||||
gst_base_parse_set_average_bitrate
|
||||
gst_base_parse_set_min_frame_size
|
||||
gst_base_parse_set_passthrough
|
||||
gst_base_parse_set_syncable
|
||||
gst_base_parse_set_has_timing_info
|
||||
gst_base_parse_set_frame_rate
|
||||
gst_base_parse_convert_default
|
||||
gst_base_parse_add_index_entry
|
||||
|
||||
GstBaseParseFrameFlags
|
||||
gst_base_parse_frame_init
|
||||
gst_base_parse_push_frame
|
||||
|
||||
GST_BASE_PARSE_SRC_PAD
|
||||
<SUBSECTION Standard>
|
||||
GstBaseParsePrivate
|
||||
GST_BASE_PARSE
|
||||
GST_BASE_PARSE_CAST
|
||||
GST_IS_BASE_PARSE
|
||||
GST_TYPE_BASE_PARSE
|
||||
GST_BASE_PARSE_CLASS
|
||||
GST_IS_BASE_PARSE_CLASS
|
||||
GST_BASE_PARSE_GET_CLASS
|
||||
<SUBSECTION Private>
|
||||
gst_base_parse_get_type
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gstbasesrc</FILE>
|
||||
<TITLE>GstBaseSrc</TITLE>
|
||||
|
|
|
@ -991,7 +991,7 @@
|
|||
<ARG>
|
||||
<NAME>GstQueue2::ring-buffer-max-size</NAME>
|
||||
<TYPE>guint64</TYPE>
|
||||
<RANGE><= G_MAXUINT</RANGE>
|
||||
<RANGE></RANGE>
|
||||
<FLAGS>rw</FLAGS>
|
||||
<NICK>Max. ring buffer size (bytes)</NICK>
|
||||
<BLURB>Max. amount of data in the ring buffer (bytes, 0 = disabled.</BLURB>
|
||||
|
|
|
@ -247,6 +247,23 @@ gstenumtypes.c: $(gst_headers)
|
|||
|
||||
gcov: $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstreamer-@GST_MAJORMINOR@ \
|
||||
-:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES) \
|
||||
$(nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS) \
|
||||
$(libgstreamer_@GST_MAJORMINOR@_la_LIBADD) \
|
||||
-ldl \
|
||||
-:SUBDIR gst/parse \
|
||||
-:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst \
|
||||
-:HEADERS $(libgstreamer_@GST_MAJORMINOR@include_HEADERS) \
|
||||
-:LIBFILTER_STATIC gstparse \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES = Gst-@GST_MAJORMINOR@.gir
|
||||
|
||||
|
|
|
@ -51,9 +51,6 @@ extern const char g_log_domain_gstreamer[];
|
|||
/* for the pad cache */
|
||||
#include "gstpad.h"
|
||||
|
||||
/* for GstBus */
|
||||
#include "gstbus.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* used by gstparse.c and grammar.y */
|
||||
|
@ -140,11 +137,6 @@ gint priv_gst_date_time_compare (gconstpointer dt1, gconstpointer dt2);
|
|||
extern gboolean _gst_disable_registry_cache;
|
||||
#endif
|
||||
|
||||
/* Secret API used by GstBin to set the bus in child bus mode
|
||||
* without sockets and everything. See bug #646624.
|
||||
*/
|
||||
void _priv_gst_bus_set_child_mode (GstBus * bus);
|
||||
|
||||
/* provide inline gst_g_value_get_foo_unchecked(), used in gststructure.c */
|
||||
#define DEFINE_INLINE_G_VALUE_GET_UNCHECKED(ret_type,name_type,v_field) \
|
||||
static inline ret_type \
|
||||
|
|
|
@ -513,12 +513,11 @@ gst_bin_init (GstBin * bin, GstBinClass * klass)
|
|||
bin->clock_dirty = FALSE;
|
||||
|
||||
/* Set up a bus for listening to child elements */
|
||||
bus = gst_bus_new ();
|
||||
bus = g_object_new (GST_TYPE_BUS, "enable-async", FALSE, NULL);
|
||||
bin->child_bus = bus;
|
||||
GST_DEBUG_OBJECT (bin, "using bus %" GST_PTR_FORMAT " to listen to children",
|
||||
bus);
|
||||
gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bin_bus_handler, bin);
|
||||
_priv_gst_bus_set_child_mode (bus);
|
||||
|
||||
bin->priv = GST_BIN_GET_PRIVATE (bin);
|
||||
bin->priv->asynchandling = DEFAULT_ASYNC_HANDLING;
|
||||
|
|
85
gst/gstbus.c
85
gst/gstbus.c
|
@ -89,6 +89,14 @@ enum
|
|||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
#define DEFAULT_ENABLE_ASYNC (TRUE)
|
||||
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_ENABLE_ASYNC
|
||||
};
|
||||
|
||||
static void gst_bus_dispose (GObject * object);
|
||||
|
||||
static GstObjectClass *parent_class = NULL;
|
||||
|
@ -97,15 +105,42 @@ static guint gst_bus_signals[LAST_SIGNAL] = { 0 };
|
|||
struct _GstBusPrivate
|
||||
{
|
||||
guint num_sync_message_emitters;
|
||||
GCond *queue_cond;
|
||||
GSource *watch_id;
|
||||
|
||||
gboolean enable_async;
|
||||
GstPoll *poll;
|
||||
GPollFD pollfd;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (GstBus, gst_bus, GST_TYPE_OBJECT);
|
||||
|
||||
static void
|
||||
gst_bus_set_property (GObject * object,
|
||||
guint prop_id, const GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstBus *bus = GST_BUS_CAST (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_ENABLE_ASYNC:
|
||||
bus->priv->enable_async = g_value_get_boolean (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gst_bus_constructed (GObject * object)
|
||||
{
|
||||
GstBus *bus = GST_BUS_CAST (object);
|
||||
|
||||
if (bus->priv->enable_async) {
|
||||
bus->priv->poll = gst_poll_new_timer ();
|
||||
gst_poll_get_read_gpollfd (bus->priv->poll, &bus->priv->pollfd);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gst_bus_class_init (GstBusClass * klass)
|
||||
{
|
||||
|
@ -114,6 +149,25 @@ gst_bus_class_init (GstBusClass * klass)
|
|||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
gobject_class->dispose = gst_bus_dispose;
|
||||
gobject_class->set_property = gst_bus_set_property;
|
||||
gobject_class->constructed = gst_bus_constructed;
|
||||
|
||||
/* GstBus:enable-async:
|
||||
*
|
||||
* Enable async message delivery support for bus watches,
|
||||
* gst_bus_pop() and similar API. Without this only the
|
||||
* synchronous message handlers are called.
|
||||
*
|
||||
* This property is used to create the child element buses
|
||||
* in #GstBin.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
g_object_class_install_property (gobject_class, PROP_ENABLE_ASYNC,
|
||||
g_param_spec_boolean ("enable-async", "Enable Async",
|
||||
"Enable async message delivery for bus watches and gst_bus_pop()",
|
||||
DEFAULT_ENABLE_ASYNC,
|
||||
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* GstBus::sync-message:
|
||||
|
@ -161,10 +215,7 @@ gst_bus_init (GstBus * bus)
|
|||
bus->queue_lock = g_mutex_new ();
|
||||
|
||||
bus->priv = G_TYPE_INSTANCE_GET_PRIVATE (bus, GST_TYPE_BUS, GstBusPrivate);
|
||||
bus->priv->queue_cond = g_cond_new ();
|
||||
|
||||
bus->priv->poll = gst_poll_new_timer ();
|
||||
gst_poll_get_read_gpollfd (bus->priv->poll, &bus->priv->pollfd);
|
||||
bus->priv->enable_async = DEFAULT_ENABLE_ASYNC;
|
||||
|
||||
GST_DEBUG_OBJECT (bus, "created");
|
||||
}
|
||||
|
@ -188,8 +239,6 @@ gst_bus_dispose (GObject * object)
|
|||
g_mutex_unlock (bus->queue_lock);
|
||||
g_mutex_free (bus->queue_lock);
|
||||
bus->queue_lock = NULL;
|
||||
g_cond_free (bus->priv->queue_cond);
|
||||
bus->priv->queue_cond = NULL;
|
||||
|
||||
if (bus->priv->poll)
|
||||
gst_poll_free (bus->priv->poll);
|
||||
|
@ -265,6 +314,11 @@ gst_bus_post (GstBus * bus, GstMessage * message)
|
|||
&& handler != gst_bus_sync_signal_handler)
|
||||
gst_bus_sync_signal_handler (bus, message, NULL);
|
||||
|
||||
/* If this is a bus without async message delivery
|
||||
* always drop the message */
|
||||
if (!bus->priv->poll)
|
||||
reply = GST_BUS_DROP;
|
||||
|
||||
/* now see what we should do with the message */
|
||||
switch (reply) {
|
||||
case GST_BUS_DROP:
|
||||
|
@ -275,8 +329,7 @@ gst_bus_post (GstBus * bus, GstMessage * message)
|
|||
/* pass the message to the async queue, refcount passed in the queue */
|
||||
GST_DEBUG_OBJECT (bus, "[msg %p] pushing on async queue", message);
|
||||
gst_atomic_queue_push (bus->queue, message);
|
||||
if (bus->priv->poll)
|
||||
gst_poll_write_control (bus->priv->poll);
|
||||
gst_poll_write_control (bus->priv->poll);
|
||||
GST_DEBUG_OBJECT (bus, "[msg %p] pushed on async queue", message);
|
||||
|
||||
break;
|
||||
|
@ -298,8 +351,7 @@ gst_bus_post (GstBus * bus, GstMessage * message)
|
|||
g_mutex_lock (lock);
|
||||
|
||||
gst_atomic_queue_push (bus->queue, message);
|
||||
if (bus->priv->poll)
|
||||
gst_poll_write_control (bus->priv->poll);
|
||||
gst_poll_write_control (bus->priv->poll);
|
||||
|
||||
/* now block till the message is freed */
|
||||
g_cond_wait (cond, lock);
|
||||
|
@ -1257,14 +1309,3 @@ error:
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Secret API used by GstBin to set the bus in child bus mode
|
||||
* without sockets and everything. See bug #646624.
|
||||
*/
|
||||
void
|
||||
_priv_gst_bus_set_child_mode (GstBus * bus)
|
||||
{
|
||||
if (bus->priv->poll)
|
||||
gst_poll_free (bus->priv->poll);
|
||||
bus->priv->poll = NULL;
|
||||
}
|
||||
|
|
|
@ -1500,6 +1500,7 @@ gst_element_default_send_event (GstElement * element, GstEvent * event)
|
|||
} else {
|
||||
GST_CAT_INFO (GST_CAT_ELEMENT_PADS, "can't send %s event on element %s",
|
||||
GST_EVENT_TYPE_NAME (event), GST_ELEMENT_NAME (element));
|
||||
gst_event_unref (event);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -664,6 +664,8 @@ gst_iterator_find_custom (GstIterator * it, GCompareFunc func,
|
|||
res =
|
||||
gst_iterator_fold (it, (GstIteratorFoldFunction) find_custom_fold_func,
|
||||
&ret, &data);
|
||||
if (res == GST_ITERATOR_RESYNC)
|
||||
gst_iterator_resync (it);
|
||||
} while (res == GST_ITERATOR_RESYNC);
|
||||
|
||||
/* no need to unset, it's just a pointer */
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if defined (_MSC_VER) && _MSC_VER >= 1400
|
||||
# include <io.h>
|
||||
|
@ -168,14 +169,23 @@ gst_trace_destroy (GstTrace * trace)
|
|||
void
|
||||
gst_trace_flush (GstTrace * trace)
|
||||
{
|
||||
int res, buf_len;
|
||||
|
||||
if (!trace) {
|
||||
trace = _gst_trace_default;
|
||||
if (!trace)
|
||||
return;
|
||||
}
|
||||
|
||||
g_return_if_fail (write (trace->fd, trace->buf,
|
||||
trace->bufoffset * sizeof (GstTraceEntry)) != -1);
|
||||
buf_len = trace->bufoffset * sizeof (GstTraceEntry);
|
||||
res = write (trace->fd, trace->buf, buf_len);
|
||||
if (res < 0) {
|
||||
g_warning ("Failed to write trace: %s", g_strerror (errno));
|
||||
return;
|
||||
} else if (res < buf_len) {
|
||||
g_warning ("Failed to write trace: only wrote %d/%d bytes", res, buf_len);
|
||||
return;
|
||||
}
|
||||
trace->bufoffset = 0;
|
||||
}
|
||||
|
||||
|
@ -206,7 +216,10 @@ gst_trace_text_flush (GstTrace * trace)
|
|||
g_snprintf (str, STRSIZE, "%20" G_GINT64_FORMAT " %10d %10d %s\n",
|
||||
trace->buf[i].timestamp,
|
||||
trace->buf[i].sequence, trace->buf[i].data, trace->buf[i].message);
|
||||
g_return_if_fail (write (trace->fd, str, strlen (str)) != -1);
|
||||
if (write (trace->fd, str, strlen (str)) < 0) {
|
||||
g_warning ("Failed to write trace %d: %s", i, g_strerror (errno));
|
||||
return;
|
||||
}
|
||||
}
|
||||
trace->bufoffset = 0;
|
||||
#undef STRSIZE
|
||||
|
|
|
@ -21,6 +21,14 @@ libgstparse_la_LIBADD = $(GST_ALL_LIBS)
|
|||
|
||||
noinst_HEADERS = grammar.tab.h types.h
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:STATIC libgstparse -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstparse_la_SOURCES) $(nodist_libgstparse_la_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(libgstparse_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstparse_la_LIBADD) \
|
||||
> $@
|
||||
|
||||
grammar.tab.c grammar.tab.h: grammar.y
|
||||
$(AM_V_GEN)$(BISON_PATH) -d -v -p_gst_parse_yy $(srcdir)/grammar.y -o grammar.tab.c && \
|
||||
mv grammar.tab.c grammar.tab_tmp.c && \
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
SUBDIRS = gst
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer \
|
||||
-:SUBDIR libs/gst \
|
||||
> $@
|
||||
|
|
|
@ -28,3 +28,9 @@ SUBDIRS_ALWAYS = base controller dataprotocol
|
|||
|
||||
SUBDIRS = $(SUBDIRS_ALWAYS) $(SUBDIRS_CHECK) $(SUBDIRS_NET) $(SUBDIRS_HELPERS)
|
||||
DIST_SUBDIRS = $(SUBDIRS_ALWAYS) check net helpers
|
||||
|
||||
Android.mk: Makefile.am
|
||||
echo $(PWD)
|
||||
androgenizer -:PROJECT gstreamer \
|
||||
-:SUBDIR $(patsubst %, libs/gst/%, $(SUBDIRS)) \
|
||||
> $@
|
||||
|
|
|
@ -4,6 +4,7 @@ libgstbase_@GST_MAJORMINOR@_la_DEPENDENCIES = \
|
|||
$(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la
|
||||
libgstbase_@GST_MAJORMINOR@_la_SOURCES = \
|
||||
gstadapter.c \
|
||||
gstbaseparse.c \
|
||||
gstbasesink.c \
|
||||
gstbasesrc.c \
|
||||
gstbasetransform.c \
|
||||
|
@ -24,6 +25,7 @@ libgstbase_@GST_MAJORMINOR@includedir = \
|
|||
|
||||
libgstbase_@GST_MAJORMINOR@include_HEADERS = \
|
||||
gstadapter.h \
|
||||
gstbaseparse.h \
|
||||
gstbasesink.h \
|
||||
gstbasesrc.h \
|
||||
gstbasetransform.h \
|
||||
|
@ -47,6 +49,18 @@ CLEANFILES = *.gcno *.gcda *.gcov
|
|||
|
||||
gcov: $(libgstbase_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstbase-@GST_MAJORMINOR@ -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstbase_@GST_MAJORMINOR@_la_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(libgstbase_@GST_MAJORMINOR@_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstbase_@GST_MAJORMINOR@_la_LDFLAGS) \
|
||||
$(libgstbase_@GST_MAJORMINOR@_la_LIBADD) \
|
||||
-:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/base \
|
||||
-:HEADERS $(libgstbase_@GST_MAJORMINOR@include_HEADERS) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES = GstBase-@GST_MAJORMINOR@.gir
|
||||
|
||||
|
|
3737
libs/gst/base/gstbaseparse.c
Normal file
3737
libs/gst/base/gstbaseparse.c
Normal file
File diff suppressed because it is too large
Load diff
306
libs/gst/base/gstbaseparse.h
Normal file
306
libs/gst/base/gstbaseparse.h
Normal file
|
@ -0,0 +1,306 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2008 Nokia Corporation. All rights reserved.
|
||||
*
|
||||
* Contact: Stefan Kost <stefan.kost@nokia.com>
|
||||
*
|
||||
* 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., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GST_BASE_PARSE_H__
|
||||
#define __GST_BASE_PARSE_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_BASE_PARSE (gst_base_parse_get_type())
|
||||
#define GST_BASE_PARSE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASE_PARSE,GstBaseParse))
|
||||
#define GST_BASE_PARSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASE_PARSE,GstBaseParseClass))
|
||||
#define GST_BASE_PARSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_BASE_PARSE,GstBaseParseClass))
|
||||
#define GST_IS_BASE_PARSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASE_PARSE))
|
||||
#define GST_IS_BASE_PARSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASE_PARSE))
|
||||
#define GST_BASE_PARSE_CAST(obj) ((GstBaseParse *)(obj))
|
||||
|
||||
/**
|
||||
* GST_BASE_PARSE_SRC_PAD:
|
||||
* @obj: base parse instance
|
||||
*
|
||||
* Gives the pointer to the source #GstPad object of the element.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
#define GST_BASE_PARSE_SRC_PAD(obj) (GST_BASE_PARSE_CAST (obj)->srcpad)
|
||||
|
||||
/**
|
||||
* GST_BASE_PARSE_SINK_PAD:
|
||||
* @obj: base parse instance
|
||||
*
|
||||
* Gives the pointer to the sink #GstPad object of the element.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
#define GST_BASE_PARSE_SINK_PAD(obj) (GST_BASE_PARSE_CAST (obj)->sinkpad)
|
||||
|
||||
/**
|
||||
* GST_BASE_PARSE_FLOW_DROPPED:
|
||||
*
|
||||
* A #GstFlowReturn that can be returned from parse_frame to
|
||||
* indicate that no output buffer was generated, or from pre_push_buffer to
|
||||
* to forego pushing buffer.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
#define GST_BASE_PARSE_FLOW_DROPPED GST_FLOW_CUSTOM_SUCCESS
|
||||
|
||||
/**
|
||||
* GST_BASE_PARSE_FLOW_QUEUED:
|
||||
*
|
||||
* A #GstFlowReturn that can be returned from parse frame to indicate that
|
||||
* the buffer will be queued to be pushed when the next OK
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
#define GST_BASE_PARSE_FLOW_QUEUED GST_FLOW_CUSTOM_SUCCESS_1
|
||||
|
||||
/* not public API, use accessor macros below */
|
||||
#define GST_BASE_PARSE_FLAG_LOST_SYNC (1 << 0)
|
||||
#define GST_BASE_PARSE_FLAG_DRAINING (1 << 1)
|
||||
|
||||
/**
|
||||
* GST_BASE_PARSE_LOST_SYNC:
|
||||
* @parse: base parse instance
|
||||
*
|
||||
* Obtains current sync status.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
#define GST_BASE_PARSE_LOST_SYNC(parse) (!!(GST_BASE_PARSE_CAST(parse)->flags & GST_BASE_PARSE_FLAG_LOST_SYNC))
|
||||
|
||||
/**
|
||||
* GST_BASE_PARSE_DRAINING:
|
||||
* @parse: base parse instance
|
||||
*
|
||||
* Obtains current drain status (ie. whether EOS has been received and
|
||||
* the parser is now processing the frames at the end of the stream)
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
#define GST_BASE_PARSE_DRAINING(parse) (!!(GST_BASE_PARSE_CAST(parse)->flags & GST_BASE_PARSE_FLAG_DRAINING))
|
||||
|
||||
/**
|
||||
* GstBaseParseFrameFlags:
|
||||
* @GST_BASE_PARSE_FRAME_FLAG_NONE: no flag
|
||||
* @GST_BASE_PARSE_FRAME_FLAG_NO_FRAME: set to indicate this buffer should not be
|
||||
* counted as frame, e.g. if this frame is dependent on a previous one.
|
||||
* As it is not counted as a frame, bitrate increases but frame to time
|
||||
* conversions are maintained.
|
||||
* @GST_BASE_PARSE_FRAME_FLAG_CLIP: @pre_push_buffer can set this to indicate
|
||||
* that regular segment clipping can still be performed (as opposed to
|
||||
* any custom one having been done).
|
||||
*
|
||||
* Flags to be used in a #GstBaseParseFrame.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
typedef enum {
|
||||
GST_BASE_PARSE_FRAME_FLAG_NONE = 0,
|
||||
GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = (1 << 0),
|
||||
GST_BASE_PARSE_FRAME_FLAG_CLIP = (1 << 1)
|
||||
} GstBaseParseFrameFlags;
|
||||
|
||||
/**
|
||||
* GstBaseParseFrame:
|
||||
* @buffer: data to check for valid frame or parsed frame.
|
||||
* Subclass is allowed to replace this buffer.
|
||||
* @overhead: subclass can set this to indicates the metadata overhead
|
||||
* for the given frame, which is then used to enable more accurate bitrate
|
||||
* computations. If this is -1, it is assumed that this frame should be
|
||||
* skipped in bitrate calculation.
|
||||
* @flags: a combination of input and output #GstBaseParseFrameFlags that
|
||||
* convey additional context to subclass or allow subclass to tune
|
||||
* subsequent #GstBaseParse actions.
|
||||
*
|
||||
* Frame (context) data passed to each frame parsing virtual methods. In
|
||||
* addition to providing the data to be checked for a valid frame or an already
|
||||
* identified frame, it conveys additional metadata or control information
|
||||
* from and to the subclass w.r.t. the particular frame in question (rather
|
||||
* than global parameters). Some of these may apply to each parsing stage, others
|
||||
* only to some a particular one. These parameters are effectively zeroed at start
|
||||
* of each frame's processing, i.e. parsing virtual method invocation sequence.
|
||||
*
|
||||
* Since: 0.10.33
|
||||
*/
|
||||
typedef struct {
|
||||
GstBuffer * buffer;
|
||||
guint flags;
|
||||
gint overhead;
|
||||
/*< private >*/
|
||||
gint _gst_reserved_i[2];
|
||||
gpointer _gst_reserved_p[2];
|
||||
} GstBaseParseFrame;
|
||||
|
||||
typedef struct _GstBaseParse GstBaseParse;
|
||||
typedef struct _GstBaseParseClass GstBaseParseClass;
|
||||
typedef struct _GstBaseParsePrivate GstBaseParsePrivate;
|
||||
|
||||
/**
|
||||
* GstBaseParse:
|
||||
* @element: the parent element.
|
||||
*
|
||||
* The opaque #GstBaseParse data structure.
|
||||
*/
|
||||
struct _GstBaseParse {
|
||||
GstElement element;
|
||||
|
||||
/*< protected >*/
|
||||
/* source and sink pads */
|
||||
GstPad *sinkpad;
|
||||
GstPad *srcpad;
|
||||
|
||||
guint flags;
|
||||
|
||||
/* MT-protected (with STREAM_LOCK) */
|
||||
GstSegment segment;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
||||
GstBaseParsePrivate *priv;
|
||||
};
|
||||
|
||||
/**
|
||||
* GstBaseParseClass:
|
||||
* @parent_class: the parent class
|
||||
* @start: Optional.
|
||||
* Called when the element starts processing.
|
||||
* Allows opening external resources.
|
||||
* @stop: Optional.
|
||||
* Called when the element stops processing.
|
||||
* Allows closing external resources.
|
||||
* @set_sink_caps: allows the subclass to be notified of the actual caps set.
|
||||
* @check_valid_frame: Check if the given piece of data contains a valid
|
||||
* frame.
|
||||
* @parse_frame: Parse the already checked frame. Subclass need to
|
||||
* set the buffer timestamp, duration, caps and possibly
|
||||
* other necessary metadata. This is called with srcpad's
|
||||
* STREAM_LOCK held.
|
||||
* @convert: Optional.
|
||||
* Convert between formats.
|
||||
* @event: Optional.
|
||||
* Event handler on the sink pad. This function should return
|
||||
* TRUE if the event was handled and can be dropped.
|
||||
* @src_event: Optional.
|
||||
* Event handler on the source pad. Should return TRUE
|
||||
* if the event was handled and can be dropped.
|
||||
* @pre_push_frame: Optional.
|
||||
* Called just prior to pushing a frame (after any pending
|
||||
* events have been sent) to give subclass a chance to perform
|
||||
* additional actions at this time (e.g. tag sending) or to
|
||||
* decide whether this buffer should be dropped or not
|
||||
* (e.g. custom segment clipping).
|
||||
*
|
||||
* Subclasses can override any of the available virtual methods or not, as
|
||||
* needed. At minimum @check_valid_frame and @parse_frame needs to be
|
||||
* overridden.
|
||||
*/
|
||||
struct _GstBaseParseClass {
|
||||
GstElementClass parent_class;
|
||||
|
||||
/*< public >*/
|
||||
/* virtual methods for subclasses */
|
||||
|
||||
gboolean (*start) (GstBaseParse * parse);
|
||||
|
||||
gboolean (*stop) (GstBaseParse * parse);
|
||||
|
||||
gboolean (*set_sink_caps) (GstBaseParse * parse,
|
||||
GstCaps * caps);
|
||||
|
||||
gboolean (*check_valid_frame) (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame,
|
||||
guint * framesize,
|
||||
gint * skipsize);
|
||||
|
||||
GstFlowReturn (*parse_frame) (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame);
|
||||
|
||||
GstFlowReturn (*pre_push_frame) (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame);
|
||||
|
||||
gboolean (*convert) (GstBaseParse * parse,
|
||||
GstFormat src_format,
|
||||
gint64 src_value,
|
||||
GstFormat dest_format,
|
||||
gint64 * dest_value);
|
||||
|
||||
gboolean (*event) (GstBaseParse * parse,
|
||||
GstEvent * event);
|
||||
|
||||
gboolean (*src_event) (GstBaseParse * parse,
|
||||
GstEvent * event);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
||||
};
|
||||
|
||||
GType gst_base_parse_get_type (void);
|
||||
|
||||
void gst_base_parse_frame_init (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame);
|
||||
|
||||
GstFlowReturn gst_base_parse_push_frame (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame);
|
||||
|
||||
void gst_base_parse_set_duration (GstBaseParse * parse,
|
||||
GstFormat fmt,
|
||||
gint64 duration,
|
||||
gint interval);
|
||||
|
||||
void gst_base_parse_set_average_bitrate (GstBaseParse * parse,
|
||||
guint bitrate);
|
||||
|
||||
void gst_base_parse_set_min_frame_size (GstBaseParse * parse,
|
||||
guint min_size);
|
||||
|
||||
void gst_base_parse_set_has_timing_info (GstBaseParse * parse,
|
||||
gboolean has_timing);
|
||||
|
||||
void gst_base_parse_set_syncable (GstBaseParse * parse,
|
||||
gboolean syncable);
|
||||
|
||||
void gst_base_parse_set_passthrough (GstBaseParse * parse,
|
||||
gboolean passthrough);
|
||||
|
||||
void gst_base_parse_set_frame_rate (GstBaseParse * parse,
|
||||
guint fps_num,
|
||||
guint fps_den,
|
||||
guint lead_in,
|
||||
guint lead_out);
|
||||
|
||||
gboolean gst_base_parse_convert_default (GstBaseParse * parse,
|
||||
GstFormat src_format,
|
||||
gint64 src_value,
|
||||
GstFormat dest_format,
|
||||
gint64 * dest_value);
|
||||
|
||||
gboolean gst_base_parse_add_index_entry (GstBaseParse * parse,
|
||||
guint64 offset,
|
||||
GstClockTime ts,
|
||||
gboolean key,
|
||||
gboolean force);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_BASE_PARSE_H__ */
|
|
@ -1112,6 +1112,8 @@ gst_base_src_query (GstPad * pad, GstQuery * query)
|
|||
gboolean result = FALSE;
|
||||
|
||||
src = GST_BASE_SRC (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (src == NULL))
|
||||
return FALSE;
|
||||
|
||||
bclass = GST_BASE_SRC_GET_CLASS (src);
|
||||
|
||||
|
@ -1759,6 +1761,11 @@ gst_base_src_event_handler (GstPad * pad, GstEvent * event)
|
|||
gboolean result = FALSE;
|
||||
|
||||
src = GST_BASE_SRC (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (src == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bclass = GST_BASE_SRC_GET_CLASS (src);
|
||||
|
||||
if (bclass->event) {
|
||||
|
|
|
@ -2085,10 +2085,17 @@ gst_base_transform_src_event (GstPad * pad, GstEvent * event)
|
|||
gboolean ret = TRUE;
|
||||
|
||||
trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (trans == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bclass = GST_BASE_TRANSFORM_GET_CLASS (trans);
|
||||
|
||||
if (bclass->src_event)
|
||||
ret = bclass->src_event (trans, event);
|
||||
else
|
||||
gst_event_unref (event);
|
||||
|
||||
gst_object_unref (trans);
|
||||
|
||||
|
|
|
@ -32,6 +32,18 @@ CLEANFILES = *.gcno *.gcda *.gcov
|
|||
|
||||
gcov: $(libgstcontroller_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstcontroller-@GST_MAJORMINOR@ -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstcontroller_@GST_MAJORMINOR@_la_SOURCES) \
|
||||
-:CFLAGS $(libgstcontroller_@GST_MAJORMINOR@_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstcontroller_@GST_MAJORMINOR@_la_LDFLAGS) \
|
||||
$(libgstcontroller_@GST_MAJORMINOR@_la_LIBADD) \
|
||||
-:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/controller \
|
||||
-:HEADERS $(libgstcontroller_@GST_MAJORMINOR@_include_HEADERS) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES = GstController-@GST_MAJORMINOR@.gir
|
||||
|
||||
|
|
|
@ -19,6 +19,18 @@ CLEANFILES = *.gcno *.gcda *.gcov *.gcov.out
|
|||
|
||||
gcov: $(libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstdataprotocol-@GST_MAJORMINOR@ -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstdataprotocol_@GST_MAJORMINOR@_la_SOURCES) \
|
||||
-:CFLAGS $(libgstdataprotocol_@GST_MAJORMINOR@_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstdataprotocol_@GST_MAJORMINOR@_la_LDFLAGS) \
|
||||
$(libgstdataprotocol_@GST_MAJORMINOR@_la_LIBADD) \
|
||||
-:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/dataprotocol \
|
||||
-:HEADERS $(libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
# Disabled until this is fixed:
|
||||
# http://bugzilla.gnome.org/show_bug.cgi?id=594202
|
||||
if FALSE
|
||||
|
|
|
@ -5,6 +5,15 @@ gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
|
|||
gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
|
||||
gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:EXECUTABLE gst-plugin-scanner -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(gst_plugin_scanner_SOURCES) \
|
||||
-:CFLAGS $(gst_plugin_scanner_CFLAGS) \
|
||||
-:LDFLAGS $(gst_plugin_scanner_LDADD) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
# clean out the old one to make sure everything is udpated correctly
|
||||
# remove again after release
|
||||
CLEANFILES = plugin-scanner
|
||||
|
|
|
@ -23,6 +23,19 @@ CLEANFILES = *.gcno *.gcda *.gcov
|
|||
|
||||
gcov: $(libgstnet_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstnet-@GST_MAJORMINOR@ -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstnet_@GST_MAJORMINOR@_la_SOURCES) \
|
||||
-:CFLAGS $(libgstnet_@GST_MAJORMINOR@_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstnet_@GST_MAJORMINOR@_la_LDFLAGS) \
|
||||
$(libgstnet_@GST_MAJORMINOR@_la_LIBADD) \
|
||||
-:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/net \
|
||||
-:HEADERS $(libgstnet_@GST_MAJORMINOR@_include_HEADERS) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES = GstNet-@GST_MAJORMINOR@.gir
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
SUBDIRS = elements indexers
|
||||
|
||||
DIST_SUBDIRS = elements indexers
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer \
|
||||
-:SUBDIR $(patsubst %,plugins/%, $(SUBDIRS)) \
|
||||
> $@
|
||||
|
|
|
@ -58,3 +58,14 @@ CLEANFILES = *.gcno *.gcda *.gcov *.gcov.out
|
|||
$(GCOV) -b -f -o $^ > $@.out
|
||||
|
||||
gcov: $(libgstcoreelements_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstcoreelements -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstcoreelements_la_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(libgstcoreelements_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstcoreelements_la_LDFLAGS) \
|
||||
$(libgstcoreelements_la_LIBADD) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
LOCAL_MODULE_PATH:=$$\(TARGET_OUT\)/lib/gstreamer-@GST_MAJORMINOR@ \
|
||||
> $@
|
||||
|
|
|
@ -135,7 +135,7 @@ gst_funnel_base_init (gpointer g_class)
|
|||
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
|
||||
|
||||
gst_element_class_set_details_simple (gstelement_class,
|
||||
"Farsight Funnel pipe fitting", "Generic", "N-to-1 pipe fitting",
|
||||
"Funnel pipe fitting", "Generic", "N-to-1 pipe fitting",
|
||||
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
|
|
|
@ -122,8 +122,8 @@ static inline gboolean gst_input_selector_is_active_sinkpad (GstInputSelector *
|
|||
sel, GstPad * pad);
|
||||
static GstPad *gst_input_selector_activate_sinkpad (GstInputSelector * sel,
|
||||
GstPad * pad);
|
||||
static GstPad *gst_input_selector_get_linked_pad (GstPad * pad,
|
||||
gboolean strict);
|
||||
static GstPad *gst_input_selector_get_linked_pad (GstInputSelector * sel,
|
||||
GstPad * pad, gboolean strict);
|
||||
|
||||
#define GST_TYPE_SELECTOR_PAD \
|
||||
(gst_selector_pad_get_type())
|
||||
|
@ -356,11 +356,15 @@ gst_selector_pad_reset (GstSelectorPad * pad)
|
|||
static GstIterator *
|
||||
gst_selector_pad_iterate_linked_pads (GstPad * pad)
|
||||
{
|
||||
GstInputSelector *sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
GstInputSelector *sel;
|
||||
GstPad *otherpad;
|
||||
GstIterator *it;
|
||||
|
||||
otherpad = gst_input_selector_get_linked_pad (pad, TRUE);
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (sel == NULL))
|
||||
return NULL;
|
||||
|
||||
otherpad = gst_input_selector_get_linked_pad (sel, pad, TRUE);
|
||||
it = gst_iterator_new_single (GST_TYPE_PAD, otherpad,
|
||||
(GstCopyFunction) gst_object_ref, (GFreeFunc) gst_object_unref);
|
||||
|
||||
|
@ -1145,13 +1149,11 @@ gst_input_selector_get_property (GObject * object, guint prop_id,
|
|||
}
|
||||
|
||||
static GstPad *
|
||||
gst_input_selector_get_linked_pad (GstPad * pad, gboolean strict)
|
||||
gst_input_selector_get_linked_pad (GstInputSelector * sel, GstPad * pad,
|
||||
gboolean strict)
|
||||
{
|
||||
GstInputSelector *sel;
|
||||
GstPad *otherpad = NULL;
|
||||
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
|
||||
GST_INPUT_SELECTOR_LOCK (sel);
|
||||
if (pad == sel->srcpad)
|
||||
otherpad = sel->active_sinkpad;
|
||||
|
@ -1161,25 +1163,31 @@ gst_input_selector_get_linked_pad (GstPad * pad, gboolean strict)
|
|||
gst_object_ref (otherpad);
|
||||
GST_INPUT_SELECTOR_UNLOCK (sel);
|
||||
|
||||
gst_object_unref (sel);
|
||||
|
||||
return otherpad;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_input_selector_event (GstPad * pad, GstEvent * event)
|
||||
{
|
||||
GstInputSelector *sel;
|
||||
gboolean res = FALSE;
|
||||
GstPad *otherpad;
|
||||
|
||||
otherpad = gst_input_selector_get_linked_pad (pad, TRUE);
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (sel == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
otherpad = gst_input_selector_get_linked_pad (sel, pad, TRUE);
|
||||
if (otherpad) {
|
||||
res = gst_pad_push_event (otherpad, event);
|
||||
|
||||
gst_object_unref (otherpad);
|
||||
} else
|
||||
gst_event_unref (event);
|
||||
|
||||
gst_object_unref (sel);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -1193,8 +1201,10 @@ gst_input_selector_query (GstPad * pad, GstQuery * query)
|
|||
GstPad *otherpad;
|
||||
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (sel == NULL))
|
||||
return FALSE;
|
||||
|
||||
otherpad = gst_input_selector_get_linked_pad (pad, TRUE);
|
||||
otherpad = gst_input_selector_get_linked_pad (sel, pad, TRUE);
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_LATENCY:
|
||||
|
@ -1270,12 +1280,14 @@ static GstCaps *
|
|||
gst_input_selector_getcaps (GstPad * pad)
|
||||
{
|
||||
GstPad *otherpad;
|
||||
GstObject *parent;
|
||||
GstInputSelector *sel;
|
||||
GstCaps *caps;
|
||||
|
||||
parent = gst_object_get_parent (GST_OBJECT (pad));
|
||||
sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (sel == NULL))
|
||||
return gst_caps_new_any ();
|
||||
|
||||
otherpad = gst_input_selector_get_linked_pad (pad, FALSE);
|
||||
otherpad = gst_input_selector_get_linked_pad (sel, pad, FALSE);
|
||||
|
||||
if (!otherpad) {
|
||||
GST_DEBUG_OBJECT (pad, "Pad not linked, returning ANY");
|
||||
|
@ -1290,7 +1302,7 @@ gst_input_selector_getcaps (GstPad * pad)
|
|||
gst_object_unref (otherpad);
|
||||
}
|
||||
|
||||
gst_object_unref (parent);
|
||||
gst_object_unref (sel);
|
||||
return caps;
|
||||
}
|
||||
|
||||
|
|
|
@ -1115,6 +1115,13 @@ gst_multi_queue_loop (GstPad * pad)
|
|||
|
||||
GST_MULTI_QUEUE_MUTEX_LOCK (mq);
|
||||
|
||||
/* Check again if we're flushing after the lock is taken,
|
||||
* the flush flag might have been changed in the meantime */
|
||||
if (sq->flushing) {
|
||||
GST_MULTI_QUEUE_MUTEX_UNLOCK (mq);
|
||||
goto out_flushing;
|
||||
}
|
||||
|
||||
/* Update the nextid so other threads know when to wake us up */
|
||||
sq->nextid = newid;
|
||||
|
||||
|
|
|
@ -487,13 +487,17 @@ gst_queue_getcaps (GstPad * pad)
|
|||
GstPad *otherpad;
|
||||
GstCaps *result;
|
||||
|
||||
queue = GST_QUEUE (GST_PAD_PARENT (pad));
|
||||
queue = GST_QUEUE (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (queue == NULL))
|
||||
return gst_caps_new_any ();
|
||||
|
||||
otherpad = (pad == queue->srcpad ? queue->sinkpad : queue->srcpad);
|
||||
result = gst_pad_peer_get_caps (otherpad);
|
||||
if (result == NULL)
|
||||
result = gst_caps_new_any ();
|
||||
|
||||
gst_object_unref (queue);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1280,8 +1284,12 @@ static gboolean
|
|||
gst_queue_handle_src_event (GstPad * pad, GstEvent * event)
|
||||
{
|
||||
gboolean res = TRUE;
|
||||
GstQueue *queue = GST_QUEUE (GST_PAD_PARENT (pad));
|
||||
GstQueue *queue = GST_QUEUE (gst_pad_get_parent (pad));
|
||||
|
||||
if (G_UNLIKELY (queue == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "got event %p (%d)",
|
||||
event, GST_EVENT_TYPE (event));
|
||||
|
@ -1289,23 +1297,31 @@ gst_queue_handle_src_event (GstPad * pad, GstEvent * event)
|
|||
|
||||
res = gst_pad_push_event (queue->sinkpad, event);
|
||||
|
||||
gst_object_unref (queue);
|
||||
return res;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_queue_handle_src_query (GstPad * pad, GstQuery * query)
|
||||
{
|
||||
GstQueue *queue = GST_QUEUE (GST_PAD_PARENT (pad));
|
||||
GstQueue *queue = GST_QUEUE (gst_pad_get_parent (pad));
|
||||
GstPad *peer;
|
||||
gboolean res;
|
||||
|
||||
if (!(peer = gst_pad_get_peer (queue->sinkpad)))
|
||||
if (G_UNLIKELY (queue == NULL))
|
||||
return FALSE;
|
||||
|
||||
if (!(peer = gst_pad_get_peer (queue->sinkpad))) {
|
||||
gst_object_unref (queue);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
res = gst_pad_query (peer, query);
|
||||
gst_object_unref (peer);
|
||||
if (!res)
|
||||
if (!res) {
|
||||
gst_object_unref (queue);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_POSITION:
|
||||
|
@ -1361,6 +1377,7 @@ gst_queue_handle_src_query (GstPad * pad, GstQuery * query)
|
|||
break;
|
||||
}
|
||||
|
||||
gst_object_unref (queue);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -648,13 +648,17 @@ gst_queue2_getcaps (GstPad * pad)
|
|||
GstPad *otherpad;
|
||||
GstCaps *result;
|
||||
|
||||
queue = GST_QUEUE2 (GST_PAD_PARENT (pad));
|
||||
queue = GST_QUEUE2 (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (queue == NULL))
|
||||
return gst_caps_new_any ();
|
||||
|
||||
otherpad = (pad == queue->srcpad ? queue->sinkpad : queue->srcpad);
|
||||
result = gst_pad_peer_get_caps (otherpad);
|
||||
if (result == NULL)
|
||||
result = gst_caps_new_any ();
|
||||
|
||||
gst_object_unref (queue);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1212,6 +1216,7 @@ gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length,
|
|||
} else {
|
||||
GST_DEBUG_OBJECT (queue,
|
||||
"EOS hit and we don't have any requested data");
|
||||
gst_buffer_unref (buf);
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
}
|
||||
}
|
||||
|
@ -1292,6 +1297,7 @@ gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length,
|
|||
out_flushing:
|
||||
{
|
||||
GST_DEBUG_OBJECT (queue, "we are flushing");
|
||||
gst_buffer_unref (buf);
|
||||
return GST_FLOW_WRONG_STATE;
|
||||
}
|
||||
read_error:
|
||||
|
@ -2368,8 +2374,12 @@ static gboolean
|
|||
gst_queue2_handle_src_event (GstPad * pad, GstEvent * event)
|
||||
{
|
||||
gboolean res = TRUE;
|
||||
GstQueue2 *queue = GST_QUEUE2 (GST_PAD_PARENT (pad));
|
||||
GstQueue2 *queue = GST_QUEUE2 (gst_pad_get_parent (pad));
|
||||
|
||||
if (G_UNLIKELY (queue == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "got event %p (%s)",
|
||||
event, GST_EVENT_TYPE_NAME (event));
|
||||
|
@ -2419,6 +2429,7 @@ gst_queue2_handle_src_event (GstPad * pad, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
|
||||
gst_object_unref (queue);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -2440,7 +2451,9 @@ gst_queue2_handle_src_query (GstPad * pad, GstQuery * query)
|
|||
{
|
||||
GstQueue2 *queue;
|
||||
|
||||
queue = GST_QUEUE2 (GST_PAD_PARENT (pad));
|
||||
queue = GST_QUEUE2 (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (queue == NULL))
|
||||
return FALSE;
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_POSITION:
|
||||
|
@ -2611,12 +2624,14 @@ gst_queue2_handle_src_query (GstPad * pad, GstQuery * query)
|
|||
break;
|
||||
}
|
||||
|
||||
gst_object_unref (queue);
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
peer_failed:
|
||||
{
|
||||
GST_DEBUG_OBJECT (queue, "failed peer query");
|
||||
gst_object_unref (queue);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
@ -2901,6 +2916,7 @@ gst_queue2_change_state (GstElement * element, GstStateChange transition)
|
|||
g_free (queue->ring_buffer);
|
||||
queue->ring_buffer = NULL;
|
||||
}
|
||||
clean_ranges (queue);
|
||||
}
|
||||
if (queue->starting_segment != NULL) {
|
||||
gst_event_unref (queue->starting_segment);
|
||||
|
|
|
@ -28,3 +28,15 @@ libgstcoreindexers_la_LIBTOOLFLAGS = --tag=disable-static
|
|||
$(GCOV) -b -f -o $^ > $@.out
|
||||
|
||||
gcov: $(libgstcoreindexers_la_SOURCES:=.gcov)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer -:SHARED libgstcoreindexers -:TAGS eng debug \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:SOURCES $(libgstcoreindexers_la_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(libgstcoreindexers_la_CFLAGS) \
|
||||
-:LDFLAGS $(libgstcoreindexers_la_LDFLAGS) \
|
||||
$(libgstcoreindexers_la_LIBADD) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
LOCAL_MODULE_PATH:=$$\(TARGET_OUT\)/lib/gstreamer-@GST_MAJORMINOR@ \
|
||||
> $@
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ REGISTRY_CHECKS = \
|
|||
elements/selector \
|
||||
elements/tee \
|
||||
elements/queue \
|
||||
elements/queue2 \
|
||||
elements/valve \
|
||||
libs/basesrc \
|
||||
libs/basesink \
|
||||
|
|
1
tests/check/elements/.gitignore
vendored
1
tests/check/elements/.gitignore
vendored
|
@ -9,6 +9,7 @@ funnel
|
|||
identity
|
||||
multiqueue
|
||||
queue
|
||||
queue2
|
||||
selector
|
||||
tee
|
||||
valve
|
||||
|
|
225
tests/check/elements/queue2.c
Normal file
225
tests/check/elements/queue2.c
Normal file
|
@ -0,0 +1,225 @@
|
|||
/* GStreamer unit tests for queue2
|
||||
*
|
||||
* Copyright (C) 2011 Tim-Philipp Müller <tim centricular net>
|
||||
*
|
||||
* 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., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gst/check/gstcheck.h>
|
||||
|
||||
static GstElement *
|
||||
setup_queue2 (GstElement * pipe, GstElement * input, GstElement * output)
|
||||
{
|
||||
GstElement *queue2;
|
||||
GstPad *sinkpad, *srcpad;
|
||||
|
||||
queue2 = gst_element_factory_make ("queue2", NULL);
|
||||
fail_unless (queue2 != NULL, "failed to create 'queue2' element");
|
||||
|
||||
gst_bin_add (GST_BIN (pipe), queue2);
|
||||
gst_bin_add (GST_BIN (pipe), input);
|
||||
gst_bin_add (GST_BIN (pipe), output);
|
||||
|
||||
sinkpad = gst_element_get_static_pad (queue2, "sink");
|
||||
fail_unless (sinkpad != NULL, "failed to get queue2 sink pad");
|
||||
|
||||
srcpad = gst_element_get_static_pad (input, "src");
|
||||
fail_unless (srcpad != NULL, "failed to find src pad for input element");
|
||||
|
||||
fail_unless_equals_int (GST_PAD_LINK_OK, gst_pad_link (srcpad, sinkpad));
|
||||
gst_object_unref (srcpad);
|
||||
gst_object_unref (sinkpad);
|
||||
|
||||
srcpad = gst_element_get_static_pad (queue2, "src");
|
||||
fail_unless (srcpad != NULL);
|
||||
|
||||
sinkpad = gst_element_get_static_pad (output, "sink");
|
||||
fail_unless (sinkpad != NULL, "failed to find sink pad of output element");
|
||||
|
||||
fail_unless_equals_int (GST_PAD_LINK_OK, gst_pad_link (srcpad, sinkpad));
|
||||
|
||||
gst_object_unref (srcpad);
|
||||
gst_object_unref (sinkpad);
|
||||
|
||||
return queue2;
|
||||
}
|
||||
|
||||
GST_START_TEST (test_simple_pipeline)
|
||||
{
|
||||
GstElement *pipe, *queue2, *input, *output;
|
||||
GstMessage *msg;
|
||||
|
||||
pipe = gst_pipeline_new ("pipeline");
|
||||
|
||||
input = gst_element_factory_make ("fakesrc", NULL);
|
||||
fail_unless (input != NULL, "failed to create 'fakesrc' element");
|
||||
g_object_set (input, "num-buffers", 256, "sizetype", 3, NULL);
|
||||
|
||||
output = gst_element_factory_make ("fakesink", NULL);
|
||||
fail_unless (output != NULL, "failed to create 'fakesink' element");
|
||||
|
||||
queue2 = setup_queue2 (pipe, input, output);
|
||||
|
||||
gst_element_set_state (pipe, GST_STATE_PLAYING);
|
||||
|
||||
msg = gst_bus_poll (GST_ELEMENT_BUS (pipe),
|
||||
GST_MESSAGE_EOS | GST_MESSAGE_ERROR, -1);
|
||||
|
||||
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR,
|
||||
"Expected EOS message, got ERROR message");
|
||||
gst_message_unref (msg);
|
||||
|
||||
GST_LOG ("Got EOS, cleaning up");
|
||||
|
||||
gst_element_set_state (pipe, GST_STATE_NULL);
|
||||
gst_object_unref (pipe);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
GST_START_TEST (test_simple_pipeline_ringbuffer)
|
||||
{
|
||||
GstElement *pipe, *queue2, *input, *output;
|
||||
GstMessage *msg;
|
||||
|
||||
pipe = gst_pipeline_new ("pipeline");
|
||||
|
||||
input = gst_element_factory_make ("fakesrc", NULL);
|
||||
fail_unless (input != NULL, "failed to create 'fakesrc' element");
|
||||
g_object_set (input, "num-buffers", 256, "sizetype", 3, NULL);
|
||||
|
||||
output = gst_element_factory_make ("fakesink", NULL);
|
||||
fail_unless (output != NULL, "failed to create 'fakesink' element");
|
||||
|
||||
queue2 = setup_queue2 (pipe, input, output);
|
||||
g_object_set (queue2, "ring-buffer-max-size", (guint64) 1024 * 50, NULL);
|
||||
|
||||
gst_element_set_state (pipe, GST_STATE_PLAYING);
|
||||
|
||||
msg = gst_bus_poll (GST_ELEMENT_BUS (pipe),
|
||||
GST_MESSAGE_EOS | GST_MESSAGE_ERROR, -1);
|
||||
|
||||
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR,
|
||||
"Expected EOS message, got ERROR message");
|
||||
gst_message_unref (msg);
|
||||
|
||||
GST_LOG ("Got EOS, cleaning up");
|
||||
|
||||
gst_element_set_state (pipe, GST_STATE_NULL);
|
||||
gst_object_unref (pipe);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
static void
|
||||
do_test_simple_shutdown_while_running (guint64 ring_buffer_max_size)
|
||||
{
|
||||
GstElement *pipe, *q2;
|
||||
GstElement *input;
|
||||
GstElement *output;
|
||||
GstMessage *msg;
|
||||
|
||||
pipe = gst_pipeline_new ("pipeline");
|
||||
|
||||
input = gst_element_factory_make ("fakesrc", NULL);
|
||||
fail_unless (input != NULL, "failed to create 'fakesrc' element");
|
||||
g_object_set (input, "format", GST_FORMAT_TIME, "sizetype", 2,
|
||||
"sizemax", 10, NULL);
|
||||
|
||||
output = gst_element_factory_make ("fakesink", NULL);
|
||||
fail_unless (output != NULL, "failed to create 'fakesink' element");
|
||||
|
||||
q2 = setup_queue2 (pipe, input, output);
|
||||
|
||||
if (ring_buffer_max_size > 0) {
|
||||
g_object_set (q2, "ring-buffer-max-size", ring_buffer_max_size,
|
||||
"temp-template", NULL, NULL);
|
||||
}
|
||||
|
||||
gst_element_set_state (pipe, GST_STATE_PAUSED);
|
||||
|
||||
/* wait until pipeline is up and running */
|
||||
msg = gst_bus_poll (GST_ELEMENT_BUS (pipe),
|
||||
GST_MESSAGE_ERROR | GST_MESSAGE_ASYNC_DONE, -1);
|
||||
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR, "Got ERROR message");
|
||||
gst_message_unref (msg);
|
||||
|
||||
GST_LOG ("pipeline is running now");
|
||||
gst_element_set_state (pipe, GST_STATE_PLAYING);
|
||||
g_usleep (G_USEC_PER_SEC / 20);
|
||||
|
||||
/* now shut down only the sink, so the queue gets a wrong-state flow return */
|
||||
gst_element_set_state (output, GST_STATE_NULL);
|
||||
GST_LOG ("Cleaning up");
|
||||
|
||||
gst_element_set_state (pipe, GST_STATE_NULL);
|
||||
gst_object_unref (pipe);
|
||||
}
|
||||
|
||||
GST_START_TEST (test_simple_shutdown_while_running)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* run a couple of iterations, gives higher chance of different code paths
|
||||
* being executed at time the flush is detected (esp. useful to make sure
|
||||
* things are cleaned up properly when running under valgrind) */
|
||||
for (i = 0; i < 10; ++i) {
|
||||
do_test_simple_shutdown_while_running (0);
|
||||
}
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
GST_START_TEST (test_simple_shutdown_while_running_ringbuffer)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* run a couple of iterations, gives higher chance of different code paths
|
||||
* being executed at time the flush is detected (esp. useful to make sure
|
||||
* things are cleaned up properly when running under valgrind) */
|
||||
for (i = 0; i < 10; ++i) {
|
||||
do_test_simple_shutdown_while_running (1024 * 1024);
|
||||
}
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
GST_START_TEST (test_simple_create_destroy)
|
||||
{
|
||||
GstElement *queue2;
|
||||
|
||||
queue2 = gst_element_factory_make ("queue2", NULL);
|
||||
gst_object_unref (queue2);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
static Suite *
|
||||
queue2_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("queue2");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_simple_create_destroy);
|
||||
tcase_add_test (tc_chain, test_simple_pipeline);
|
||||
tcase_add_test (tc_chain, test_simple_pipeline_ringbuffer);
|
||||
tcase_add_test (tc_chain, test_simple_shutdown_while_running);
|
||||
tcase_add_test (tc_chain, test_simple_shutdown_while_running_ringbuffer);
|
||||
return s;
|
||||
}
|
||||
|
||||
GST_CHECK_MAIN (queue2)
|
|
@ -880,6 +880,9 @@ _gmp_test_scale (gsl_rng * rng)
|
|||
bygst = gst_util_uint64_scale (val, a, b);
|
||||
func = "gst_util_uint64_scale";
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
fail_unless (bygst == bygmp,
|
||||
"error: %s(): %" G_GUINT64_FORMAT " * %" G_GUINT64_FORMAT " / %"
|
||||
|
@ -911,6 +914,9 @@ _gmp_test_scale_int (gsl_rng * rng)
|
|||
bygst = gst_util_uint64_scale_int (val, a, b);
|
||||
func = "gst_util_uint64_scale_int";
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
fail_unless (bygst == bygmp,
|
||||
"error: %s(): %" G_GUINT64_FORMAT " * %d / %d = %" G_GUINT64_FORMAT
|
||||
|
|
|
@ -82,6 +82,21 @@ LDADD = $(GLIB_ONLY_LIBS)
|
|||
# due to depcomp not using AM_CFLAGS for rh9/yd3, we also set AM_CPPFLAGS
|
||||
AM_CPPFLAGS = $(GLIB_ONLY_CFLAGS)
|
||||
|
||||
Android.mk: Makefile.am
|
||||
androgenizer -:PROJECT gstreamer \
|
||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||
-:EXECUTABLE gst-inspect -:TAGS eng debug \
|
||||
-:SOURCES $(gst_inspect_@GST_MAJORMINOR@_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(gst_inspect_@GST_MAJORMINOR@_CFLAGS) \
|
||||
-:LDFLAGS $(gst_inspect_@GST_MAJORMINOR@_LDADD) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
-:EXECUTABLE gst-launch -:TAGS eng debug \
|
||||
-:SOURCES $(gst_launch_@GST_MAJORMINOR@_SOURCES) \
|
||||
-:CFLAGS $(DEFS) $(gst_launch_@GST_MAJORMINOR@_CFLAGS) \
|
||||
-:LDFLAGS $(gst_launch_@GST_MAJORMINOR@_LDADD) \
|
||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||
> $@
|
||||
|
||||
### man pages we want to install
|
||||
if GST_DISABLE_LOADSAVE
|
||||
GST_LOADSAVE_MAN=
|
||||
|
|
|
@ -15,6 +15,18 @@ EXPORTS
|
|||
gst_adapter_take_buffer
|
||||
gst_adapter_take_list
|
||||
gst_adapter_unmap
|
||||
gst_base_parse_add_index_entry
|
||||
gst_base_parse_convert_default
|
||||
gst_base_parse_frame_init
|
||||
gst_base_parse_get_type
|
||||
gst_base_parse_push_frame
|
||||
gst_base_parse_set_average_bitrate
|
||||
gst_base_parse_set_duration
|
||||
gst_base_parse_set_frame_rate
|
||||
gst_base_parse_set_has_timing_info
|
||||
gst_base_parse_set_min_frame_size
|
||||
gst_base_parse_set_passthrough
|
||||
gst_base_parse_set_syncable
|
||||
gst_base_sink_do_preroll
|
||||
gst_base_sink_get_blocksize
|
||||
gst_base_sink_get_last_buffer
|
||||
|
|
Loading…
Reference in a new issue