diff --git a/LICENSE b/LICENSE index 8000a6f..246378b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,504 +1,21 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - 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 Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -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 and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -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 other code 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. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - 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, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser 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 combine 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) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) 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. - - d) 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. - - e) 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 materials to be 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 with -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 Lesser 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 - - 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. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - 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. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! +MIT License + +Copyright (c) 2025 go-gst authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/examples/audioinfo/main.go b/examples/audioinfo/main.go new file mode 100644 index 0000000..32ae905 --- /dev/null +++ b/examples/audioinfo/main.go @@ -0,0 +1,18 @@ +package main + +import ( + "github.com/go-gst/go-gst/pkg/gst" + "github.com/go-gst/go-gst/pkg/gstaudio" +) + +func main() { + // this example is mostly a test to check fixed size array conversions + gst.Init() + + audioInfo := gstaudio.NewAudioInfo() + + audioInfo.SetFormat(gstaudio.AudioFormatS16le, 44100, 2, [64]gstaudio.AudioChannelPosition{gstaudio.AudioChannelPositionFrontLeft, gstaudio.AudioChannelPositionFrontRight}) + + caps := audioInfo.ToCaps() + println(caps.String()) +} diff --git a/examples/plugins/registered_elements/internal/custombin/register.go b/examples/plugins/registered_elements/internal/custombin/register.go index f2e28af..65bb73a 100644 --- a/examples/plugins/registered_elements/internal/custombin/register.go +++ b/examples/plugins/registered_elements/internal/custombin/register.go @@ -1,7 +1,7 @@ package custombin import ( - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) diff --git a/examples/plugins/registered_elements/internal/customsrc/element.go b/examples/plugins/registered_elements/internal/customsrc/element.go index ab4cbc9..71216ca 100644 --- a/examples/plugins/registered_elements/internal/customsrc/element.go +++ b/examples/plugins/registered_elements/internal/customsrc/element.go @@ -6,7 +6,7 @@ import ( "math" "time" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) diff --git a/examples/plugins/registered_elements/internal/customsrc/register.go b/examples/plugins/registered_elements/internal/customsrc/register.go index 25bb67e..09d5e72 100644 --- a/examples/plugins/registered_elements/internal/customsrc/register.go +++ b/examples/plugins/registered_elements/internal/customsrc/register.go @@ -1,7 +1,7 @@ package customsrc import ( - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) diff --git a/flake.lock b/flake.lock index 0871659..c018c01 100644 --- a/flake.lock +++ b/flake.lock @@ -95,11 +95,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1750506804, - "narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=", + "lastModified": 1757745802, + "narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4206c4cb56751df534751b058295ea61357bbbaa", + "rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2a4612b..249d3a5 100644 --- a/flake.nix +++ b/flake.nix @@ -3,16 +3,11 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - gotk4-nix.url = "github:diamondburned/gotk4-nix"; - gotk4-nix.inputs = { - nixpkgs.follows = "nixpkgs"; - }; }; outputs = { self, nixpkgs, - gotk4-nix, ... }: let systems = ["x86_64-linux" "aarch64-darwin"]; @@ -25,24 +20,22 @@ }; in { default = pkgs.mkShell { - nativeBuildInputs = with pkgs; - [ - go - go-tools # staticcheck & co. - pkg-config + nativeBuildInputs = with pkgs; [ + go_latest + go-tools # staticcheck & co. + pkg-config - gst_all_1.gstreamer - gst_all_1.gst-editing-services - gst_all_1.gst-libav - gst_all_1.gst-plugins-bad - gst_all_1.gst-plugins-base - gst_all_1.gst-plugins-good - gst_all_1.gst-plugins-rs - gst_all_1.gst-plugins-ugly - gst_all_1.gst-rtsp-server - # gst_all_1.gst-vaapi not available in darwin - ] - ++ (gotk4-nix.lib.mkShell {inherit pkgs;}).baseDependencies; + gst_all_1.gstreamer + gst_all_1.gst-editing-services + gst_all_1.gst-libav + gst_all_1.gst-plugins-bad + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good + gst_all_1.gst-plugins-rs + gst_all_1.gst-plugins-ugly + gst_all_1.gst-rtsp-server + # gst_all_1.gst-vaapi not available in darwin + ]; GO111MODULE = "on"; CGO_ENABLED = "1"; @@ -54,7 +47,7 @@ # print the go version and gstreamer version on shell startup shellHook = '' - ${pkgs.go}/bin/go version + ${pkgs.go_latest}/bin/go version ${pkgs.gst_all_1.gstreamer}/bin/gst-launch-1.0 --version ''; }; diff --git a/generator.go b/generator.go index 22b1170..5a110a8 100644 --- a/generator.go +++ b/generator.go @@ -8,11 +8,11 @@ import ( "slices" "strings" - "github.com/diamondburned/gotk4/gir" - "github.com/diamondburned/gotk4/gir/cmd/gir-generate/gendata" - "github.com/diamondburned/gotk4/gir/cmd/gir-generate/genmain" - "github.com/diamondburned/gotk4/gir/girgen/strcases" - "github.com/diamondburned/gotk4/gir/girgen/typesystem" + "github.com/go-gst/go-glib/gir" + "github.com/go-gst/go-glib/gir/cmd/gir-generate/gendata" + "github.com/go-gst/go-glib/gir/cmd/gir-generate/genmain" + "github.com/go-gst/go-glib/gir/girgen/strcases" + "github.com/go-gst/go-glib/gir/girgen/typesystem" girfiles_gst "github.com/go-gst/go-gst/girs" ) diff --git a/girs/girs.go b/girs/girs.go index 5b02167..38ec686 100644 --- a/girs/girs.go +++ b/girs/girs.go @@ -3,10 +3,10 @@ package girfiles_gst import ( "embed" - girfiles_gotk4 "github.com/diamondburned/gotk4/girs" + girfiles "github.com/go-gst/go-glib/girs" ) //go:embed *.gir var girFiles embed.FS -var GirFiles = girfiles_gotk4.ReadGirFiles(girFiles) +var GirFiles = girfiles.ReadGirFiles(girFiles) diff --git a/go.mod b/go.mod index f2555cb..ad4a57d 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,7 @@ module github.com/go-gst/go-gst -go 1.24.0 +go 1.25.0 -require ( - github.com/diamondburned/gotk4 v0.3.1 - github.com/go-gst/go-glib v1.4.1-0.20241209142714-f53cebf18559 - github.com/go-gst/go-pointer v0.0.0-20241127163939-ba766f075b4c -) +require github.com/go-gst/go-glib v1.4.1-0.20250916203041-96c5e8f8aebe -require ( - golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect - golang.org/x/sync v0.15.0 // indirect -) - -replace github.com/diamondburned/gotk4 => github.com/rswilli/gotk4 v0.0.0-20250813123434-5660317ba8f5 +retract [v1.0.0, v1.4.0] // Handwritten bindings, not as stable as planned and not licensed open enough diff --git a/go.sum b/go.sum index a88a3e2..9b23633 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,2 @@ -github.com/go-gst/go-glib v1.4.1-0.20241209142714-f53cebf18559 h1:AK60n6W3FLZTp9H1KU5VOa8XefNO0w0R3pfszphwX14= -github.com/go-gst/go-glib v1.4.1-0.20241209142714-f53cebf18559/go.mod h1:ZWT4LXOO2PH8lSNu/dR5O2yoNQJKEgmijNa2d7nByK8= -github.com/go-gst/go-pointer v0.0.0-20241127163939-ba766f075b4c h1:x8kKRVDmz5BRlolmDZGcsuZ1l+js6TRL3QWBJjGVctM= -github.com/go-gst/go-pointer v0.0.0-20241127163939-ba766f075b4c/go.mod h1:qKw5ZZ0U58W6PU/7F/Lopv+14nKYmdXlOd7VnAZ17Mk= -github.com/rswilli/gotk4 v0.0.0-20250813123434-5660317ba8f5 h1:6ldPPGUGQ7kAVxKcs0cY+/qHxTh3BOAUxOXkceUj/Vs= -github.com/rswilli/gotk4 v0.0.0-20250813123434-5660317ba8f5/go.mod h1:alpfblIRIC6MejV4eBLjWx61VeJvfQ/6dHGQZUkzSYE= -golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw= -golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM= -golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8= -golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +github.com/go-gst/go-glib v1.4.1-0.20250916203041-96c5e8f8aebe h1:7X+m6MNrqr/rAQ11EpeWhZZu6ZTczYZ2uFJcFUhFvzo= +github.com/go-gst/go-glib v1.4.1-0.20250916203041-96c5e8f8aebe/go.mod h1:n9WnJ6bNPKRrc7aWKgrsRfNh3LPw5RSz6dfcB1bd0Qk= diff --git a/gst/_deprecation.go b/gst/_deprecation.go deleted file mode 100644 index 9945cef..0000000 --- a/gst/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gst instead -package gst diff --git a/gst/app/_deprecation.go b/gst/app/_deprecation.go deleted file mode 100644 index d6b221c..0000000 --- a/gst/app/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstapp instead -package app diff --git a/gst/app/cgo_exports.go b/gst/app/cgo_exports.go deleted file mode 100644 index ff460c0..0000000 --- a/gst/app/cgo_exports.go +++ /dev/null @@ -1,169 +0,0 @@ -package app - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" - gopointer "github.com/go-gst/go-pointer" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getSinkCbsFromPtr(userData C.gpointer) *SinkCallbacks { - ptr := gopointer.Restore(unsafe.Pointer(userData)) - cbs, ok := ptr.(*SinkCallbacks) - if !ok { - gopointer.Unref(unsafe.Pointer(userData)) - return nil - } - return cbs -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getSrcCbsFromPtr(userData C.gpointer) *SourceCallbacks { - ptr := gopointer.Restore(unsafe.Pointer(userData)) - cbs, ok := ptr.(*SourceCallbacks) - if !ok { - gopointer.Unref(unsafe.Pointer(userData)) - return nil - } - return cbs -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCSink(sink *C.GstAppSink) *Sink { - return wrapAppSink(&gst.Element{ - Object: &gst.Object{ - InitiallyUnowned: &glib.InitiallyUnowned{ - Object: &glib.Object{ - GObject: glib.ToGObject(unsafe.Pointer(sink)), - }, - }, - }, - }) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCSource(src *C.GstAppSrc) *Source { - return wrapAppSrc(&gst.Element{ - Object: &gst.Object{ - InitiallyUnowned: &glib.InitiallyUnowned{ - Object: &glib.Object{ - GObject: glib.ToGObject(unsafe.Pointer(src)), - }, - }, - }, - }) -} - -//export goNeedDataCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goNeedDataCb(src *C.GstAppSrc, length C.guint, userData C.gpointer) { - cbs := getSrcCbsFromPtr(userData) - if cbs == nil { - return - } - if cbs.NeedDataFunc == nil { - return - } - gosrc := wrapCSource(src) - - cbs.NeedDataFunc(gosrc, uint(length)) -} - -//export goEnoughDataDb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goEnoughDataDb(src *C.GstAppSrc, userData C.gpointer) { - cbs := getSrcCbsFromPtr(userData) - if cbs == nil { - return - } - if cbs.EnoughDataFunc == nil { - return - } - gosrc := wrapCSource(src) - cbs.EnoughDataFunc(gosrc) -} - -//export goSeekDataCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goSeekDataCb(src *C.GstAppSrc, offset C.guint64, userData C.gpointer) C.gboolean { - cbs := getSrcCbsFromPtr(userData) - if cbs == nil { - return gboolean(false) - } - if cbs.SeekDataFunc == nil { - return gboolean(true) - } - gosrc := wrapCSource(src) - - return gboolean(cbs.SeekDataFunc(gosrc, uint64(offset))) -} - -//export goSinkEOSCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goSinkEOSCb(sink *C.GstAppSink, userData C.gpointer) { - cbs := getSinkCbsFromPtr(userData) - if cbs == nil { - return - } - if cbs.EOSFunc == nil { - return - } - gosink := wrapCSink(sink) - - cbs.EOSFunc(gosink) -} - -//export goSinkNewPrerollCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goSinkNewPrerollCb(sink *C.GstAppSink, userData C.gpointer) C.GstFlowReturn { - cbs := getSinkCbsFromPtr(userData) - if cbs == nil { - return C.GstFlowReturn(gst.FlowError) - } - if cbs.NewPrerollFunc == nil { - return C.GstFlowReturn(gst.FlowOK) - } - gosink := wrapCSink(sink) - - ret := C.GstFlowReturn(cbs.NewPrerollFunc(gosink)) - - return ret -} - -//export goSinkNewSampleCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goSinkNewSampleCb(sink *C.GstAppSink, userData C.gpointer) C.GstFlowReturn { - cbs := getSinkCbsFromPtr(userData) - if cbs == nil { - return C.GstFlowReturn(gst.FlowError) - } - if cbs.NewSampleFunc == nil { - return C.GstFlowReturn(gst.FlowOK) - } - gosink := wrapCSink(sink) - - ret := C.GstFlowReturn(cbs.NewSampleFunc(gosink)) - - return ret -} - -//export goAppGDestroyNotifyFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goAppGDestroyNotifyFunc(ptr C.gpointer) { - gopointer.Unref(unsafe.Pointer(ptr)) -} diff --git a/gst/app/doc.go b/gst/app/doc.go deleted file mode 100644 index b3bccb3..0000000 --- a/gst/app/doc.go +++ /dev/null @@ -1,10 +0,0 @@ -/* -Package app contains bindings for the gstreamer-app C API. If you are trying -to build simple pipelines quickly (and optiionally readers/writers) see -the gstauto/app package. - -The location of this library may be different depending on your OS. It is usually -either with the gst-plugins-base development headers or a separate package called -gstreamer-app. -*/ -package app diff --git a/gst/app/gst.go.c b/gst/app/gst.go.c deleted file mode 100644 index f9c714e..0000000 --- a/gst/app/gst.go.c +++ /dev/null @@ -1,5 +0,0 @@ -#include "gst.go.h" - -GstAppSink * toGstAppSink (void *p) { return (GST_APP_SINK(p)); } -GstAppSrc * toGstAppSrc (void *p) { return (GST_APP_SRC(p)); } - diff --git a/gst/app/gst.go.h b/gst/app/gst.go.h deleted file mode 100644 index e5bb850..0000000 --- a/gst/app/gst.go.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef __GST_APP_GO_H__ -#define __GST_APP_GO_H__ - -#include -#include - -extern GstAppSink * toGstAppSink (void *p); -extern GstAppSrc * toGstAppSrc (void *p); - -#endif diff --git a/gst/app/gst_app_sink.go b/gst/app/gst_app_sink.go deleted file mode 100644 index 7ad27eb..0000000 --- a/gst/app/gst_app_sink.go +++ /dev/null @@ -1,274 +0,0 @@ -package app - -/* -#include "gst.go.h" - -extern void goAppGDestroyNotifyFunc (gpointer user_data); - -extern void goSinkEOSCb (GstAppSink * sink, gpointer user_data); -extern GstFlowReturn goSinkNewPrerollCb (GstAppSink * sink, gpointer user_data); -extern GstFlowReturn goSinkNewSampleCb (GstAppSink * sink, gpointer user_data); - -void cgoSinkGDestroyNotifyFunc (gpointer user_data) { goAppGDestroyNotifyFunc(user_data); } -void cgoSinkEOSCb (GstAppSink * sink, gpointer user_data) { return goSinkEOSCb(sink, user_data); } -GstFlowReturn cgoSinkNewPrerollCb (GstAppSink * sink, gpointer user_data) { return goSinkNewPrerollCb(sink, user_data); } -GstFlowReturn cgoSinkNewSampleCb (GstAppSink * sink, gpointer user_data) { return goSinkNewSampleCb(sink, user_data); } - -*/ -import "C" - -import ( - "errors" - "unsafe" - - gopointer "github.com/go-gst/go-pointer" - - "github.com/go-gst/go-gst/gst" - "github.com/go-gst/go-gst/gst/base" -) - -// SinkCallbacks represents callbacks that can be installed on an app sink when data is available. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type SinkCallbacks struct { - EOSFunc func(appSink *Sink) - NewPrerollFunc func(appSink *Sink) gst.FlowReturn - NewSampleFunc func(appSink *Sink) gst.FlowReturn -} - -// ErrEOS represents that the stream has ended. -var ErrEOS = errors.New("pipeline has reached end-of-stream") - -// Sink wraps an Element made with the appsink plugin with additional methods for pulling samples. -type Sink struct{ *base.GstBaseSink } - -// NewAppSink returns a new appsink element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAppSink() (*Sink, error) { - elem, err := gst.NewElement("appsink") - if err != nil { - return nil, err - } - return wrapAppSink(elem), nil -} - -// SinkFromElement checks if the given element is an appsink and if so returns -// a Sink interface. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SinkFromElement(elem *gst.Element) *Sink { - if appSink := C.toGstAppSink(elem.Unsafe()); appSink != nil { - return wrapAppSink(elem) - } - return nil -} - -// Instance returns the native GstAppSink instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) Instance() *C.GstAppSink { return C.toGstAppSink(a.Unsafe()) } - -// GetBufferListSupport checks if appsink supports buffer lists. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) GetBufferListSupport() bool { - return gobool(C.gst_app_sink_get_buffer_list_support(a.Instance())) -} - -// GetCaps gets the configured caps on appsink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) GetCaps() *gst.Caps { - caps := C.gst_app_sink_get_caps(a.Instance()) - if caps == nil { - return nil - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// GetDrop checks if appsink will drop old buffers when the maximum amount of queued buffers is reached. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) GetDrop() bool { - return gobool(C.gst_app_sink_get_drop(a.Instance())) -} - -// GetEmitSignals checks if appsink will emit the "new-preroll" and "new-sample" signals. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) GetEmitSignals() bool { - return gobool(C.gst_app_sink_get_emit_signals(a.Instance())) -} - -// GetMaxBuffers gets the maximum amount of buffers that can be queued in appsink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) GetMaxBuffers() uint { - return uint(C.gst_app_sink_get_max_buffers(a.Instance())) -} - -// GetWaitOnEOS checks if appsink will wait for all buffers to be consumed when an EOS is received. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) GetWaitOnEOS() bool { - return gobool(C.gst_app_sink_get_wait_on_eos(a.Instance())) -} - -// IsEOS returns true if this AppSink has reached the end-of-stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) IsEOS() bool { - return gobool(C.gst_app_sink_is_eos((*C.GstAppSink)(a.Instance()))) -} - -// PullPreroll gets the last preroll sample in appsink. This was the sample that caused the appsink to preroll in the PAUSED state. -// -// This function is typically used when dealing with a pipeline in the PAUSED state. Calling this function after doing a seek will -// give the sample right after the seek position. -// -// Calling this function will clear the internal reference to the preroll buffer. -// -// Note that the preroll sample will also be returned as the first sample when calling gst_app_sink_pull_sample. -// -// If an EOS event was received before any buffers, this function returns NULL. Use gst_app_sink_is_eos () to check for the EOS condition. -// -// This function blocks until a preroll sample or EOS is received or the appsink element is set to the READY/NULL state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) PullPreroll() *gst.Sample { - smpl := C.gst_app_sink_pull_preroll(a.Instance()) - if smpl == nil { - return nil - } - return gst.FromGstSampleUnsafeFull(unsafe.Pointer(smpl)) -} - -// PullSample blocks until a sample or EOS becomes available or the appsink element is set to the READY/NULL state. -// -// This function will only return samples when the appsink is in the PLAYING state. All rendered buffers will be put in a queue -// so that the application can pull samples at its own rate. Note that when the application does not pull samples fast enough, the queued -// buffers could consume a lot of memory, especially when dealing with raw video frames. -// -// If an EOS event was received before any buffers, this function returns NULL. Use IsEOS() to check for the EOS condition. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) PullSample() *gst.Sample { - smpl := C.gst_app_sink_pull_sample(a.Instance()) - if smpl == nil { - return nil - } - return gst.FromGstSampleUnsafeFull(unsafe.Pointer(smpl)) -} - -// SetBufferListSupport instructs appsink to enable or disable buffer list support. -// -// For backwards-compatibility reasons applications need to opt in to indicate that they will be able to handle buffer lists. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetBufferListSupport(enabled bool) { - C.gst_app_sink_set_buffer_list_support(a.Instance(), gboolean(enabled)) -} - -// SetCallbacks sets callbacks which will be executed for each new preroll, new sample and eos. This is an alternative to using the signals, -// it has lower overhead and is thus less expensive, but also less flexible. -// -// If callbacks are installed, no signals will be emitted for performance reasons. -// -// Before 1.16.3 it was not possible to change the callbacks in a thread-safe way. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetCallbacks(cbs *SinkCallbacks) { - ptr := gopointer.Save(cbs) - appSinkCallbacks := &C.GstAppSinkCallbacks{ - eos: (*[0]byte)(unsafe.Pointer(C.cgoSinkEOSCb)), - new_preroll: (*[0]byte)(unsafe.Pointer(C.cgoSinkNewPrerollCb)), - new_sample: (*[0]byte)(unsafe.Pointer(C.cgoSinkNewSampleCb)), - } - C.gst_app_sink_set_callbacks( - a.Instance(), - appSinkCallbacks, - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.cgoSinkGDestroyNotifyFunc), - ) -} - -// SetCaps sets the capabilities on the appsink element. This function takes a copy of the caps structure. After calling this method, -// the sink will only accept caps that match caps. If caps is non-fixed, or incomplete, you must check the caps on the samples to get -// the actual used caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetCaps(caps *gst.Caps) { - C.gst_app_sink_set_caps(a.Instance(), (*C.GstCaps)(unsafe.Pointer(caps.Instance()))) -} - -// SetDrop instructs appsink to drop old buffers when the maximum amount of queued buffers is reached. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetDrop(drop bool) { - C.gst_app_sink_set_drop(a.Instance(), gboolean(drop)) -} - -// SetEmitSignals makes appsink emit the "new-preroll" and "new-sample" signals. This option is by default disabled because signal emission -// is expensive and unneeded when the application prefers to operate in pull mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetEmitSignals(emit bool) { - C.gst_app_sink_set_emit_signals(a.Instance(), gboolean(emit)) -} - -// SetMaxBuffers sets the maximum amount of buffers that can be queued in appsink. After this amount of buffers are queued in appsink, -// any more buffers will block upstream elements until a sample is pulled from appsink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetMaxBuffers(max uint) { - C.gst_app_sink_set_max_buffers(a.Instance(), C.guint(max)) -} - -// SetWaitOnEOS instructs appsink to wait for all buffers to be consumed when an EOS is received. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) SetWaitOnEOS(wait bool) { - C.gst_app_sink_set_wait_on_eos(a.Instance(), gboolean(wait)) -} - -// TryPullPreroll gets the last preroll sample in appsink. This was the sample that caused the appsink to preroll in the PAUSED state. -// -// This function is typically used when dealing with a pipeline in the PAUSED state. Calling this function after doing a seek will give -// the sample right after the seek position. -// -// Calling this function will clear the internal reference to the preroll buffer. -// -// Note that the preroll sample will also be returned as the first sample when calling PullSample. -// -// If an EOS event was received before any buffers or the timeout expires, this function returns NULL. Use IsEOS () to check for the EOS condition. -// -// This function blocks until a preroll sample or EOS is received, the appsink element is set to the READY/NULL state, or the timeout expires. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) TryPullPreroll(timeout gst.ClockTime) *gst.Sample { - tm := C.GstClockTime(timeout) - smpl := C.gst_app_sink_try_pull_preroll(a.Instance(), tm) - if smpl == nil { - return nil - } - return gst.FromGstSampleUnsafeFull(unsafe.Pointer(smpl)) -} - -// TryPullSample blocks until a sample or EOS becomes available or the appsink element is set to the READY/NULL state or the timeout expires. -// -// This function will only return samples when the appsink is in the PLAYING state. All rendered buffers will be put in a queue so that the -// application can pull samples at its own rate. Note that when the application does not pull samples fast enough, the queued buffers could -// consume a lot of memory, especially when dealing with raw video frames. -// -// If an EOS event was received before any buffers or the timeout expires, this function returns NULL. Use IsEOS () to check for the EOS condition. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Sink) TryPullSample(timeout gst.ClockTime) *gst.Sample { - tm := C.GstClockTime(timeout) - smpl := C.gst_app_sink_try_pull_sample(a.Instance(), tm) - if smpl == nil { - return nil - } - return gst.FromGstSampleUnsafeFull(unsafe.Pointer(smpl)) -} diff --git a/gst/app/gst_app_src.go b/gst/app/gst_app_src.go deleted file mode 100644 index f4139e0..0000000 --- a/gst/app/gst_app_src.go +++ /dev/null @@ -1,264 +0,0 @@ -package app - -/* -#include "gst.go.h" - -extern void goAppGDestroyNotifyFunc (gpointer user_data); - -extern void goNeedDataCb (GstAppSrc *src, guint length, gpointer user_data); -extern void goEnoughDataDb (GstAppSrc *src, gpointer user_data); -extern gboolean goSeekDataCb (GstAppSrc *src, guint64 offset, gpointer user_data); - -void cgoSrcGDestroyNotifyFunc (gpointer user_data) { goAppGDestroyNotifyFunc(user_data); } - -void cgoNeedDataCb (GstAppSrc *src, guint length, gpointer user_data) { goNeedDataCb(src, length, user_data); } -void cgoEnoughDataCb (GstAppSrc *src, gpointer user_data) { goEnoughDataDb(src, user_data); } -gboolean cgoSeekDataCb (GstAppSrc *src, guint64 offset, gpointer user_data) { return goSeekDataCb(src, offset, user_data); } - -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" - "github.com/go-gst/go-gst/gst/base" - gopointer "github.com/go-gst/go-pointer" -) - -// SourceCallbacks represents callbacks to configure on an AppSource. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type SourceCallbacks struct { - NeedDataFunc func(src *Source, length uint) - EnoughDataFunc func(src *Source) - SeekDataFunc func(src *Source, offset uint64) bool -} - -// StreamType casts GstAppStreamType -type StreamType int - -// Type castings -const ( - AppStreamTypeStream StreamType = C.GST_APP_STREAM_TYPE_STREAM // (0) – No seeking is supported in the stream, such as a live stream. - AppStreamTypeSeekable StreamType = C.GST_APP_STREAM_TYPE_SEEKABLE // (1) – The stream is seekable but seeking might not be very fast, such as data from a webserver. - AppStreamTypeRandomAccess StreamType = C.GST_APP_STREAM_TYPE_RANDOM_ACCESS // (2) – The stream is seekable and seeking is fast, such as in a local file. -) - -// Source wraps an Element made with the appsrc plugin with additional methods for pushing samples. -type Source struct{ *base.GstBaseSrc } - -// NewAppSrc returns a new AppSrc element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAppSrc() (*Source, error) { - elem, err := gst.NewElement("appsrc") - if err != nil { - return nil, err - } - return wrapAppSrc(elem), nil -} - -// SrcFromElement checks if the given element is an appsrc and if so returns -// a Source interface. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SrcFromElement(elem *gst.Element) *Source { - if appSrc := C.toGstAppSrc(elem.Unsafe()); appSrc != nil { - return wrapAppSrc(elem) - } - return nil -} - -// Instance returns the native GstAppSink instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) Instance() *C.GstAppSrc { return C.toGstAppSrc(a.Unsafe()) } - -// EndStream signals to the app source that the stream has ended after the last queued -// buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) EndStream() gst.FlowReturn { - ret := C.gst_app_src_end_of_stream((*C.GstAppSrc)(a.Instance())) - return gst.FlowReturn(ret) -} - -// GetCaps gets the configures caps on the app src. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetCaps() *gst.Caps { - caps := C.gst_app_src_get_caps(a.Instance()) - if caps == nil { - return nil - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// GetCurrentLevelBytes gets the number of currently queued bytes inside appsrc. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetCurrentLevelBytes() uint64 { - return uint64(C.gst_app_src_get_current_level_bytes(a.Instance())) -} - -// GetDuration gets the duration of the stream in nanoseconds. A negative value means that the duration is not known. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetDuration() gst.ClockTime { - dur := C.gst_app_src_get_duration(a.Instance()) - - return gst.ClockTime(dur) -} - -// GetEmitSignals checks if appsrc will emit the "new-preroll" and "new-buffer" signals. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetEmitSignals() bool { - return gobool(C.gst_app_src_get_emit_signals(a.Instance())) -} - -// GetLatency retrieves the min and max latencies in min and max respectively. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetLatency() (min, max uint64) { - var gmin, gmax C.guint64 - C.gst_app_src_get_latency(a.Instance(), &gmin, &gmax) - return uint64(gmin), uint64(gmax) -} - -// GetMaxBytes gets the maximum amount of bytes that can be queued in appsrc. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetMaxBytes() uint64 { - return uint64(C.gst_app_src_get_max_bytes(a.Instance())) -} - -// GetSize gets the size of the stream in bytes. A value of -1 means that the size is not known. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetSize() int64 { - return int64(C.gst_app_src_get_size(a.Instance())) -} - -// GetStreamType gets the stream type. Control the stream type of appsrc with SetStreamType. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) GetStreamType() StreamType { - return StreamType(C.gst_app_src_get_stream_type(a.Instance())) -} - -// PushBuffer pushes a buffer to the appsrc. Currently by default this will block -// until the source is ready to accept the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) PushBuffer(buf *gst.Buffer) gst.FlowReturn { - ret := C.gst_app_src_push_buffer( - (*C.GstAppSrc)(a.Instance()), - (*C.GstBuffer)(unsafe.Pointer(buf.Ref().Instance())), - ) - return gst.FlowReturn(ret) -} - -// PushBufferList adds a buffer list to the queue of buffers and buffer lists that the appsrc element will push -// to its source pad. This function takes ownership of buffer_list. -// -// When the block property is TRUE, this function can block until free space becomes available in the queue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) PushBufferList(bufList *gst.BufferList) gst.FlowReturn { - return gst.FlowReturn(C.gst_app_src_push_buffer_list( - a.Instance(), (*C.GstBufferList)(unsafe.Pointer(bufList.Ref().Instance())), - )) -} - -// PushSample Extract a buffer from the provided sample and adds it to the queue of buffers that the appsrc element will -// push to its source pad. Any previous caps that were set on appsrc will be replaced by the caps associated with the -// sample if not equal. -// -// When the block property is TRUE, this function can block until free space becomes available in the queue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) PushSample(sample *gst.Sample) gst.FlowReturn { - return gst.FlowReturn(C.gst_app_src_push_sample( - a.Instance(), (*C.GstSample)(unsafe.Pointer(sample.Instance())), - )) -} - -// SetCallbacks sets callbacks which will be executed when data is needed, enough data has been collected or when a seek -// should be performed. This is an alternative to using the signals, it has lower overhead and is thus less expensive, -// but also less flexible. -// -// If callbacks are installed, no signals will be emitted for performance reasons. -// -// Before 1.16.3 it was not possible to change the callbacks in a thread-safe way. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetCallbacks(cbs *SourceCallbacks) { - ptr := gopointer.Save(cbs) - appSrcCallbacks := &C.GstAppSrcCallbacks{ - need_data: (*[0]byte)(unsafe.Pointer(C.cgoNeedDataCb)), - enough_data: (*[0]byte)(unsafe.Pointer(C.cgoEnoughDataCb)), - seek_data: (*[0]byte)(unsafe.Pointer(C.cgoSeekDataCb)), - } - C.gst_app_src_set_callbacks( - a.Instance(), - appSrcCallbacks, - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.cgoSrcGDestroyNotifyFunc), - ) -} - -// SetCaps sets the capabilities on the appsrc element. This function takes a copy of the caps structure. After calling this method, -// the source will only produce caps that match caps. caps must be fixed and the caps on the buffers must match the caps or left NULL. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetCaps(caps *gst.Caps) { - C.gst_app_src_set_caps(a.Instance(), (*C.GstCaps)(unsafe.Pointer(caps.Instance()))) -} - -// SetDuration sets the duration of the source stream. You should call -// this if the value is known. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetDuration(dur gst.ClockTime) { - C.gst_app_src_set_duration((*C.GstAppSrc)(a.Instance()), C.GstClockTime(dur)) -} - -// SetEmitSignals makes appsrc emit the "new-preroll" and "new-buffer" signals. This option is by default disabled because signal emission -// is expensive and unneeded when the application prefers to operate in pull mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetEmitSignals(emit bool) { - C.gst_app_src_set_emit_signals(a.Instance(), gboolean(emit)) -} - -// SetLatency configures the min and max latency in src. If min is set to -1, the default latency calculations for pseudo-live sources -// will be used. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetLatency(min, max uint64) { - C.gst_app_src_set_latency(a.Instance(), C.guint64(min), C.guint64(max)) -} - -// SetMaxBytes sets the maximum amount of bytes that can be queued in appsrc. After the maximum amount of bytes are queued, appsrc will -// emit the "enough-data" signal. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetMaxBytes(max uint64) { - C.gst_app_src_set_max_bytes(a.Instance(), C.guint64(max)) -} - -// SetSize sets the size of the source stream in bytes. You should call this for -// streams of fixed length. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetSize(size int64) { - C.gst_app_src_set_size((*C.GstAppSrc)(a.Instance()), (C.gint64)(size)) -} - -// SetStreamType sets the stream type on appsrc. For seekable streams, the "seek" signal must be connected to. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Source) SetStreamType(streamType StreamType) { - C.gst_app_src_set_stream_type(a.Instance(), C.GstAppStreamType(streamType)) -} diff --git a/gst/app/pkg_config.go b/gst/app/pkg_config.go deleted file mode 100644 index 8196118..0000000 --- a/gst/app/pkg_config.go +++ /dev/null @@ -1,7 +0,0 @@ -package app - -/* -#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall -*/ -import "C" diff --git a/gst/app/wrappers.go b/gst/app/wrappers.go deleted file mode 100644 index 8dbe3db..0000000 --- a/gst/app/wrappers.go +++ /dev/null @@ -1,35 +0,0 @@ -package app - -// #include -import "C" - -import ( - "github.com/go-gst/go-gst/gst" - "github.com/go-gst/go-gst/gst/base" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapAppSink(elem *gst.Element) *Sink { - return &Sink{GstBaseSink: &base.GstBaseSink{Element: elem}} -} -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapAppSrc(elem *gst.Element) *Source { - return &Source{GstBaseSrc: &base.GstBaseSrc{Element: elem}} -} - -// gobool provides an easy type conversion between C.gboolean and a go bool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { return int(b) > 0 } - -// gboolean converts a go bool to a C.gboolean. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gboolean(b bool) C.gboolean { - if b { - return C.gboolean(1) - } - return C.gboolean(0) -} diff --git a/gst/audio/_deprecation.go b/gst/audio/_deprecation.go deleted file mode 100644 index 338a465..0000000 --- a/gst/audio/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstaudio instead -package audio diff --git a/gst/audio/c_util.go b/gst/audio/c_util.go deleted file mode 100644 index 95fab80..0000000 --- a/gst/audio/c_util.go +++ /dev/null @@ -1,56 +0,0 @@ -package audio - -/* -#include "gst.go.h" - -GstClockTime -framesToClockTime (gint frames, gint rate) { return GST_FRAMES_TO_CLOCK_TIME(frames, rate); } - -gint -clockTimeToFrames(GstClockTime ct, gint rate) { return GST_CLOCK_TIME_TO_FRAMES(ct, rate); } -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// FramesToClockTime calculates the Clocktime -// from the given frames and rate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FramesToClockTime(frames, rate int) gst.ClockTime { - ct := C.framesToClockTime(C.gint(frames), C.gint(rate)) - return gst.ClockTime(ct) -} - -// DurationToFrames calculates the number of frames from the given duration and sample rate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func DurationToFrames(dur gst.ClockTime, rate int) int { - return int(C.clockTimeToFrames(C.GstClockTime(dur), C.gint(rate))) -} - -// gboolean converts a go bool to a C.gboolean. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gboolean(b bool) C.gboolean { - if b { - return C.gboolean(1) - } - return C.gboolean(0) -} - -// gobool provides an easy type conversion between C.gboolean and a go bool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { - return int(b) > 0 -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ptrToGVal(p unsafe.Pointer) *C.GValue { - return (*C.GValue)(p) -} diff --git a/gst/audio/doc.go b/gst/audio/doc.go deleted file mode 100644 index 83ec49c..0000000 --- a/gst/audio/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package audio contains bindings for the gstaudio C API. -package audio diff --git a/gst/audio/gst.go.h b/gst/audio/gst.go.h deleted file mode 100644 index 105951b..0000000 --- a/gst/audio/gst.go.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __GST_AUDIO_GO_H__ -#define __GST_AUDIO_GO_H__ - -#include - -#endif \ No newline at end of file diff --git a/gst/audio/gst_audio_buffer.go b/gst/audio/gst_audio_buffer.go deleted file mode 100644 index 731bae5..0000000 --- a/gst/audio/gst_audio_buffer.go +++ /dev/null @@ -1,152 +0,0 @@ -package audio - -/* -#include "gst.go.h" - -gpointer audioBufferPlaneData(GstAudioBuffer * buffer, gint plane) -{ - return GST_AUDIO_BUFFER_PLANE_DATA(buffer, plane); -} - -gint audioBufferPlaneSize(GstAudioBuffer * buffer) -{ - return GST_AUDIO_BUFFER_PLANE_SIZE(buffer); -} - -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// ClipBuffer will return a new buffer clipped to the given segment. The given buffer is no longer valid. -// The returned buffer may be nil if it is completely outside the configured segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ClipBuffer(buffer *gst.Buffer, segment *gst.Segment, rate, bytesPerFrame int) *gst.Buffer { - buf := C.gst_audio_buffer_clip( - (*C.GstBuffer)(unsafe.Pointer(buffer.Ref().Instance())), - (*C.GstSegment)(unsafe.Pointer(segment.Instance())), - C.gint(rate), - C.gint(bytesPerFrame), - ) - if buf == nil { - return nil - } - return gst.FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// ReorderChannels reorders the buffer against the given positions. The number of channels in each slice -// must be identical. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ReorderChannels(buffer *gst.Buffer, format Format, from []ChannelPosition, to []ChannelPosition) bool { - return gobool(C.gst_audio_buffer_reorder_channels( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - C.GstAudioFormat(format), - C.gint(len(from)), - (*C.GstAudioChannelPosition)(unsafe.Pointer(&from[0])), - (*C.GstAudioChannelPosition)(unsafe.Pointer(&to[0])), - )) -} - -// TruncateBuffer truncates the buffer to finally have the given number of samples, removing the necessary -// amount of samples from the end and trim number of samples from the beginning. The original buffer is no -// longer valid. The returned buffer may be nil if the arguments were invalid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TruncateBuffer(buffer *gst.Buffer, bytesPerFrame int, trim, samples int64) *gst.Buffer { - buf := C.gst_audio_buffer_truncate( - (*C.GstBuffer)(unsafe.Pointer(buffer.Ref().Instance())), - C.gint(bytesPerFrame), - C.gsize(trim), - C.gsize(samples), - ) - if buf == nil { - return nil - } - return gst.FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// MapBuffer maps an audio gst.Buffer so that it can be read or written. -// -// This is especially useful when the gstbuffer is in non-interleaved (planar) layout, in which case this -// function will use the information in the gstbuffer's attached GstAudioMeta in order to map each channel -// in a separate "plane" in GstAudioBuffer. If a GstAudioMeta is not attached on the gstbuffer, then it must -// be in interleaved layout. -// -// If a GstAudioMeta is attached, then the GstAudioInfo on the meta is checked against info. Normally, they -// should be equal, but in case they are not, a g_critical will be printed and the GstAudioInfo from the meta -// will be used. -// -// In non-interleaved buffers, it is possible to have each channel on a separate GstMemory. In this case, each -// memory will be mapped separately to avoid copying their contents in a larger memory area. Do note though -// that it is not supported to have a single channel spanning over two or more different GstMemory objects. -// Although the map operation will likely succeed in this case, it will be highly sub-optimal and it is -// recommended to merge all the memories in the buffer before calling this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func MapBuffer(info *Info, buffer *gst.Buffer, flags gst.MapFlags) (*Buffer, bool) { - var audioBuffer C.GstAudioBuffer - ret := gobool(C.gst_audio_buffer_map( - &audioBuffer, - info.ptr, - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - C.GstMapFlags(flags)), - ) - if !ret { - return nil, ret - } - return &Buffer{ptr: &audioBuffer}, ret -} - -// Buffer is a structure containing the result of a MapBuffer operation. For non-interleaved (planar) buffers, -// the beginning of each channel in the buffer has its own pointer in the planes array. For interleaved -// buffers, the Planes slice only contains one item, which is the pointer to the beginning of the buffer, -// and NumPlanes equals 1. -// -// The different channels in planes are always in the GStreamer channel order. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Buffer struct { - ptr *C.GstAudioBuffer -} - -// NumSamples returns the size of the buffer in samples. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) NumSamples() int64 { return int64(b.ptr.n_samples) } - -// NumPlanes returns the number of available planes. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) NumPlanes() int { return int(b.ptr.n_planes) } - -// Planes returns the planes inside the mapped buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Planes() [][]byte { - out := make([][]byte, b.NumPlanes()) - for i := 0; i < b.NumPlanes(); i++ { - out[i] = C.GoBytes( - unsafe.Pointer(C.audioBufferPlaneData(b.ptr, C.gint(i))), - C.audioBufferPlaneSize(b.ptr), - ) - } - return out -} - -// WritePlane writes data to the plane at the given index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) WritePlane(idx int, data []byte) { - bufdata := C.audioBufferPlaneData(b.ptr, C.gint(idx)) - C.memcpy(unsafe.Pointer(bufdata), unsafe.Pointer(&data[0]), C.gsize(len(data))) -} - -// Unmap will unmap the mapped buffer. Use this after calling MapBuffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Unmap() { C.gst_audio_buffer_unmap(b.ptr) } diff --git a/gst/audio/gst_audio_channel_mixer.go b/gst/audio/gst_audio_channel_mixer.go deleted file mode 100644 index 9f021d1..0000000 --- a/gst/audio/gst_audio_channel_mixer.go +++ /dev/null @@ -1,55 +0,0 @@ -package audio - -// /* -// #include "gst.go.h" -// */ -// import "C" -// import ( -// "runtime" -// "unsafe" -// ) - -// // ChannelMixer is a structure for mixing audio channels. -// type ChannelMixer struct { -// ptr *C.GstAudioChannelMixer -// } - -// // NewChannelMixer creates a new channel mixer with the given parameters. -// // It returns nil if the format is not supported. -// func NewChannelMixer(flags ChannelMixerFlags, format Format, inPositions, outPositions []ChannelPosition) *ChannelMixer { -// mixer := C.gst_audio_channel_mixer_new( -// C.GstAudioChannelMixerFlags(flags), -// C.GstAudioFormat(format), -// C.gint(len(inPositions)), -// (*C.GstAudioChannelPosition)(unsafe.Pointer(&inPositions[0])), -// C.gint(len(outPositions)), -// (*C.GstAudioChannelPosition)(unsafe.Pointer(&outPositions[0])), -// ) -// if mixer == nil { -// return nil -// } -// wrapped := &ChannelMixer{mixer} -// runtime.SetFinalizer(wrapped, (*ChannelMixer).Free) -// return wrapped -// } - -// // MixSamples will mix the given samples. -// // -// // In case the samples are interleaved, in must be a slice with a single element of interleaved samples. -// // -// // If non-interleaved samples are used, in must be a slice of data with an element for each channel - -// // Free frees the channel mixer. The bindings will usually take care of this for you. -// func (c *ChannelMixer) Free() { C.gst_audio_channel_mixer_free(c.ptr) } - -// // ChannelMixerFlags are flags used to configure a ChannelMixer -// type ChannelMixerFlags int - -// // Castings for ChannelMixerFlags -// const ( -// ChannelMixerFlagsNone ChannelMixerFlags = C.GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE // (0) – no flag -// ChannelMixerFlagsNonInterleavedIn ChannelMixerFlags = C.GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN // (1) – input channels are not interleaved -// ChannelMixerFlagsNonInterleavedOut ChannelMixerFlags = C.GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT // (2) – output channels are not interleaved -// ChannelMixerFlagsUnpositionedIn ChannelMixerFlags = C.GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN // (4) – input channels are explicitly unpositioned -// ChannelMixerFlagsUnpositionedOut ChannelMixerFlags = C.GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT // (8) – output channels are explicitly unpositioned -// ) diff --git a/gst/audio/gst_audio_channels.go b/gst/audio/gst_audio_channels.go deleted file mode 100644 index 2e14c94..0000000 --- a/gst/audio/gst_audio_channels.go +++ /dev/null @@ -1,155 +0,0 @@ -package audio - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "math" - "strings" - "unsafe" -) - -// GetFallbackChannelMask gets the fallback channel-mask for the given number of channels. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetFallbackChannelMask(channels int) uint64 { - return uint64(C.gst_audio_channel_get_fallback_mask(C.gint(channels))) -} - -// ChannelPositionsFromMask converts the channels present in mask to a position array (which -// should have at least channels entries ensured by caller). If mask is set to 0, it is considered -// as 'not present' for purpose of conversion. A partially valid mask with less bits set than the -// number of channels is considered valid. This function returns nil if the arguments are invalid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ChannelPositionsFromMask(channels int, mask uint64) []ChannelPosition { - var out C.GstAudioChannelPosition - ret := C.gst_audio_channel_positions_from_mask(C.gint(channels), C.guint64(mask), &out) - if !gobool(ret) { - return nil - } - outsl := make([]ChannelPosition, channels) - tmp := (*[(math.MaxInt32 - 1) / unsafe.Sizeof(C.GST_AUDIO_CHANNEL_POSITION_NONE)]C.GstAudioChannelPosition)(unsafe.Pointer(&out))[:channels:channels] - for i, s := range tmp { - outsl[i] = ChannelPosition(s) - } - return outsl -} - -// ChannelPositionsToMask converts the given channel positions to a bitmask. If forceOrder is true -// it additionally checks the channels in the order required by GStreamer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ChannelPositionsToMask(positions []ChannelPosition, forceOrder bool) (mask uint64, ok bool) { - var out C.guint64 - ok = gobool(C.gst_audio_channel_positions_to_mask( - (*C.GstAudioChannelPosition)(unsafe.Pointer(&positions[0])), - C.gint(len(positions)), - gboolean(forceOrder), - &out, - )) - if ok { - mask = uint64(out) - } - return -} - -// ChannelPositionsToString converts the given positions into a human-readable string. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ChannelPositionsToString(positions []ChannelPosition) string { - ret := C.gst_audio_channel_positions_to_string( - (*C.GstAudioChannelPosition)(unsafe.Pointer(&positions[0])), - C.gint(len(positions)), - ) - defer C.g_free((C.gpointer)(unsafe.Pointer(ret))) - return C.GoString(ret) -} - -// ChannelPositionsToValidOrder reorders the given positions from any order to the GStreamer order. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ChannelPositionsToValidOrder(positions []ChannelPosition) (ok bool) { - ok = gobool(C.gst_audio_channel_positions_to_valid_order( - (*C.GstAudioChannelPosition)(unsafe.Pointer(&positions[0])), - C.gint(len(positions)), - )) - return -} - -// AreValidChannelPositions checks if the positions are all valid. If forceOrder is true, it also checks -// if they are in the order required by GStreamer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func AreValidChannelPositions(positions []ChannelPosition, forceOrder bool) bool { - return gobool(C.gst_audio_check_valid_channel_positions( - (*C.GstAudioChannelPosition)(unsafe.Pointer(&positions[0])), - C.gint(len(positions)), - gboolean(forceOrder), - )) -} - -// ChannelPosition represents audio channel positions. -// -// These are the channels defined in SMPTE 2036-2-2008 Table 1 for 22.2 audio systems with the -// Surround and Wide channels from DTS Coherent Acoustics (v.1.3.1) and 10.2 and 7.1 layouts. -// In the caps the actual channel layout is expressed with a channel count and a channel mask, -// which describes the existing channels. The positions in the bit mask correspond to the enum -// values. For negotiation it is allowed to have more bits set in the channel mask than the -// number of channels to specify the allowed channel positions but this is not allowed in negotiated -// caps. It is not allowed in any situation other than the one mentioned below to have less -// bits set in the channel mask than the number of channels. -// -// ChannelPositionMono can only be used with a single mono channel that has no direction information -// and would be mixed into all directional channels. This is expressed in caps by having a single -// channel and no channel mask. -// -// ChannelPositionNone can only be used if all channels have this position. This is expressed in caps -// by having a channel mask with no bits set. -// -// As another special case it is allowed to have two channels without a channel mask. This implicitly -// means that this is a stereo stream with a front left and front right channel. -type ChannelPosition int - -// ChannelPosition castings -const ( - ChannelPositionNone ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_NONE // (-3) – used for position-less channels, e.g. from a sound card that records 1024 channels; mutually exclusive with any other channel position - ChannelPositionMono ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_MONO // (-2) – Mono without direction; can only be used with 1 channel - ChannelPositionInvalid ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_INVALID // (-1) – invalid position - ChannelPositionFrontLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT // (0) – Front left - ChannelPositionFrontRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT // (1) – Front right - ChannelPositionFrontCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER // (2) – Front center - ChannelPositionLFE1 ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_LFE1 // (3) – Low-frequency effects 1 (subwoofer) - ChannelPositionRearLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_REAR_LEFT // (4) – Rear left - ChannelPositionRearRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT // (5) – Rear right - ChannelPositionFrontLeftOfCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER // (6) – Front left of center - ChannelPositionFrontRightOfCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER // (7) – Front right of center - ChannelPositionRearCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_REAR_CENTER // (8) – Rear center - ChannelPositionLFE2 ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_LFE2 // (9) – Low-frequency effects 2 (subwoofer) - ChannelPositionSideLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT // (10) – Side left - ChannelPositionSideRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT // (11) – Side right - ChannelPositionTopFrontLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT // (12) – Top front left - ChannelPositionTopFrontRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT // (13) – Top front right - ChannelPositionTopFrontCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER // (14) – Top front center - ChannelPositionTopCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_CENTER // (15) – Top center - ChannelPositionTopRearLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT // (16) – Top rear left - ChannelPositionTopRearRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT // (17) – Top rear right - ChannelPositionTopSideLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT // (18) – Top side right - ChannelPositionTopSideRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT // (19) – Top rear right - ChannelPositionTopRearCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER // (20) – Top rear center - ChannelPositionBottomFrontCenter ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER // (21) – Bottom front center - ChannelPositionBottomFrontLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT // (22) – Bottom front left - ChannelPositionBottomFrontRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT // (23) – Bottom front right - ChannelPositionWideLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT // (24) – Wide left (between front left and side left) - ChannelPositionWideRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT // (25) – Wide right (between front right and side right) - ChannelPositionSurroundLeft ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT // (26) – Surround left (between rear left and side left) - ChannelPositionSurroundRight ChannelPosition = C.GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT // (27) – Surround right (between rear right and side right) -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c ChannelPosition) String() string { - // ugly hack - return strings.TrimSuffix(strings.TrimPrefix(ChannelPositionsToString([]ChannelPosition{c}), "[ "), " ]") -} diff --git a/gst/audio/gst_audio_format.go b/gst/audio/gst_audio_format.go deleted file mode 100644 index c75537c..0000000 --- a/gst/audio/gst_audio_format.go +++ /dev/null @@ -1,261 +0,0 @@ -package audio - -/* -#include -#include "gst.go.h" -*/ -import "C" -import ( - "math" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - glib.RegisterGValueMarshalers([]glib.TypeMarshaler{ - { - T: glib.Type(C.gst_audio_format_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(ptrToGVal(p)) - return Format(c), nil - }, - }, - }) -} - -// FormatInfo is a structure containing information about an audio format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type FormatInfo struct { - ptr *C.GstAudioFormatInfo -} - -// Format returns the format for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Format() Format { return Format(f.ptr.format) } - -// Name returns the name for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Name() string { return C.GoString(f.ptr.name) } - -// Description returns a user readable description for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Description() string { return C.GoString(f.ptr.description) } - -// Flags returns the flags on this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Flags() FormatFlags { return FormatFlags(f.ptr.flags) } - -// Endianness returns the endianness for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Endianness() int { return int(f.ptr.endianness) } - -// Width returns the amount of bits used for one sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Width() int { return int(f.ptr.width) } - -// Depth returns the amount of valid bits in width. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Depth() int { return int(f.ptr.depth) } - -// Silence returns the data for a single silent sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Silence() []byte { - return C.GoBytes(unsafe.Pointer(&f.ptr.silence), C.gint(f.Width()/8)) -} - -// UnpackFormat is the format of unpacked samples. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) UnpackFormat() Format { return Format(f.ptr.unpack_format) } - -// Layout represents the layout of audio samples for different channels. -type Layout int - -// Castings for Layouts -const ( - LayoutInterleaved Layout = C.GST_AUDIO_LAYOUT_INTERLEAVED // (0) – interleaved audio - LayoutNonInterleaved Layout = C.GST_AUDIO_LAYOUT_NON_INTERLEAVED // (1) – non-interleaved audio -) - -// FormatFlags are the different audio flags that a format can have. -type FormatFlags int - -// Castings for FormatFlags -const ( - FormatFlagInteger FormatFlags = C.GST_AUDIO_FORMAT_FLAG_INTEGER // (1) – integer samples - FormatFlagFloat FormatFlags = C.GST_AUDIO_FORMAT_FLAG_FLOAT // (2) – float samples - FormatFlagSigned FormatFlags = C.GST_AUDIO_FORMAT_FLAG_SIGNED // (4) – signed samples - FormatFlagComplex FormatFlags = C.GST_AUDIO_FORMAT_FLAG_COMPLEX // (16) – complex layout - FormatFlagUnpack FormatFlags = C.GST_AUDIO_FORMAT_FLAG_UNPACK // (32) – the format can be used in GstAudioFormatUnpack and GstAudioFormatPack functions -) - -// PackFlags are the different flags that can be used when packing and unpacking. -type PackFlags int - -// Castings for PackFlags -const ( - PackFlagNone PackFlags = C.GST_AUDIO_PACK_FLAG_NONE // (0) – No flag - PackFlagTruncateRange PackFlags = C.GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE // (1) – When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely slightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination. -) - -// Format is an enum describing the most common audio formats -type Format int - -// TypeFormat is the GType for a GstAudioFormat. -var TypeFormat = glib.Type(C.gst_audio_format_get_type()) - -// ToGValue implements a glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeFormat) - if err != nil { - return nil, err - } - val.SetEnum(int(f)) - return val, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) String() string { - return C.GoString(C.gst_audio_format_to_string(C.GstAudioFormat(f))) -} - -// Info returns the info for this Format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) Info() *FormatInfo { - return &FormatInfo{ - ptr: C.gst_audio_format_get_info(C.GstAudioFormat(f)), - } -} - -// FormatFromString returns the format for the given string representation. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FormatFromString(format string) Format { - f := C.CString(format) - defer C.free(unsafe.Pointer(f)) - return Format(C.gst_audio_format_from_string((*C.gchar)(unsafe.Pointer(f)))) -} - -// LittleEndian represents little-endian format -const LittleEndian int = C.G_LITTLE_ENDIAN - -// BigEndian represents big-endian format -const BigEndian int = C.G_BIG_ENDIAN - -// FormatFromInteger returns a Format with the given parameters. Signed is whether signed or unsigned format. -// Endianness can be either LittleEndian or BigEndian. Width is the amount of bits used per sample, and depth -// is the amount of used bits in width. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FormatFromInteger(signed bool, endianness, width, depth int) Format { - return Format(C.gst_audio_format_build_integer( - gboolean(signed), - C.gint(endianness), - C.gint(width), - C.gint(depth), - )) -} - -// RawFormats returns all the raw formats supported by GStreamer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func RawFormats() []Format { - var l C.guint - formats := C.gst_audio_formats_raw(&l) - out := make([]Format, int(l)) - tmpslice := (*[(math.MaxInt32 - 1) / unsafe.Sizeof(C.GST_AUDIO_FORMAT_UNKNOWN)]C.GstAudioFormat)(unsafe.Pointer(formats))[:l:l] - for i, s := range tmpslice { - out[i] = Format(s) - } - return out -} - -// MakeRawCaps returns a generic raw audio caps for the formats defined. If formats is nil, all supported -// formats are used. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func MakeRawCaps(formats []Format, layout Layout) *gst.Caps { - var caps *C.GstCaps - if formats == nil { - caps = C.gst_audio_make_raw_caps(nil, C.guint(0), C.GstAudioLayout(layout)) - } else { - caps = C.gst_audio_make_raw_caps((*C.GstAudioFormat)(unsafe.Pointer(&formats[0])), C.guint(len(formats)), C.GstAudioLayout(layout)) - } - if caps == nil { - return nil - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// DefaultRate is the default sampling rate used in consumer audio -const DefaultRate = 44100 - -// Castings for Formats -const ( - // DefaultFormat is the default format used in consumer audio - DefaultFormat Format = FormatS16LE - - FormatUnknown Format = C.GST_AUDIO_FORMAT_UNKNOWN // (0) – unknown or unset audio format - FormatEncoded Format = C.GST_AUDIO_FORMAT_ENCODED // (1) – encoded audio format - FormatS8 Format = C.GST_AUDIO_FORMAT_S8 // (2) – 8 bits in 8 bits, signed - FormatU8 Format = C.GST_AUDIO_FORMAT_U8 // (3) – 8 bits in 8 bits, unsigned - FormatS16LE Format = C.GST_AUDIO_FORMAT_S16LE // (4) – 16 bits in 16 bits, signed, little endian - FormatS16BE Format = C.GST_AUDIO_FORMAT_S16BE // (5) – 16 bits in 16 bits, signed, big endian - FormatU16LE Format = C.GST_AUDIO_FORMAT_U16LE // (6) – 16 bits in 16 bits, unsigned, little endian - FormatU16BE Format = C.GST_AUDIO_FORMAT_U16BE // (7) – 16 bits in 16 bits, unsigned, big endian - FormatS2432LE Format = C.GST_AUDIO_FORMAT_S24_32LE // (8) – 24 bits in 32 bits, signed, little endian - FormatS2332BE Format = C.GST_AUDIO_FORMAT_S24_32BE // (9) – 24 bits in 32 bits, signed, big endian - FormatU2432LE Format = C.GST_AUDIO_FORMAT_U24_32LE // (10) – 24 bits in 32 bits, unsigned, little endian - FormatU2432BE Format = C.GST_AUDIO_FORMAT_U24_32BE // (11) – 24 bits in 32 bits, unsigned, big endian - FormatS32LE Format = C.GST_AUDIO_FORMAT_S32LE // (12) – 32 bits in 32 bits, signed, little endian - FormatS32BE Format = C.GST_AUDIO_FORMAT_S32BE // (13) – 32 bits in 32 bits, signed, big endian - FormatU32LE Format = C.GST_AUDIO_FORMAT_U32LE // (14) – 32 bits in 32 bits, unsigned, little endian - FormatU32BE Format = C.GST_AUDIO_FORMAT_U32BE // (15) – 32 bits in 32 bits, unsigned, big endian - FormatS24LE Format = C.GST_AUDIO_FORMAT_S24LE // (16) – 24 bits in 24 bits, signed, little endian - FormatS24BE Format = C.GST_AUDIO_FORMAT_S24BE // (17) – 24 bits in 24 bits, signed, big endian - FormatU24LE Format = C.GST_AUDIO_FORMAT_U24LE // (18) – 24 bits in 24 bits, unsigned, little endian - FormatU24BE Format = C.GST_AUDIO_FORMAT_U24BE // (19) – 24 bits in 24 bits, unsigned, big endian - FormatS20LE Format = C.GST_AUDIO_FORMAT_S20LE // (20) – 20 bits in 24 bits, signed, little endian - FormatS20BE Format = C.GST_AUDIO_FORMAT_S20BE // (21) – 20 bits in 24 bits, signed, big endian - FormatU20LE Format = C.GST_AUDIO_FORMAT_U20LE // (22) – 20 bits in 24 bits, unsigned, little endian - FormatU20BE Format = C.GST_AUDIO_FORMAT_U20BE // (23) – 20 bits in 24 bits, unsigned, big endian - FormatS18LE Format = C.GST_AUDIO_FORMAT_S18LE // (24) – 18 bits in 24 bits, signed, little endian - FormatS18BE Format = C.GST_AUDIO_FORMAT_S18BE // (25) – 18 bits in 24 bits, signed, big endian - FormatU18LE Format = C.GST_AUDIO_FORMAT_U18LE // (26) – 18 bits in 24 bits, unsigned, little endian - FormatU18BE Format = C.GST_AUDIO_FORMAT_U18BE // (27) – 18 bits in 24 bits, unsigned, big endian - FormatF32LE Format = C.GST_AUDIO_FORMAT_F32LE // (28) – 32-bit floating point samples, little endian - FormatF32BE Format = C.GST_AUDIO_FORMAT_F32BE // (29) – 32-bit floating point samples, big endian - FormatF64LE Format = C.GST_AUDIO_FORMAT_F64LE // (30) – 64-bit floating point samples, little endian - FormatF64BE Format = C.GST_AUDIO_FORMAT_F64BE // (31) – 64-bit floating point samples, big endian - FormatS16 Format = C.GST_AUDIO_FORMAT_S16 // (4) – 16 bits in 16 bits, signed, native endianness - FormatU16 Format = C.GST_AUDIO_FORMAT_U16 // (6) – 16 bits in 16 bits, unsigned, native endianness - FormatS2432 Format = C.GST_AUDIO_FORMAT_S24_32 // (8) – 24 bits in 32 bits, signed, native endianness - FormatU2432 Format = C.GST_AUDIO_FORMAT_U24_32 // (10) – 24 bits in 32 bits, unsigned, native endianness - FormatS32 Format = C.GST_AUDIO_FORMAT_S32 // (12) – 32 bits in 32 bits, signed, native endianness - FormatU32 Format = C.GST_AUDIO_FORMAT_U32 // (14) – 32 bits in 32 bits, unsigned, native endianness - FormatS24 Format = C.GST_AUDIO_FORMAT_S24 // (16) – 24 bits in 24 bits, signed, native endianness - FormatU24 Format = C.GST_AUDIO_FORMAT_U24 // (18) – 24 bits in 24 bits, unsigned, native endianness - FormatS20 Format = C.GST_AUDIO_FORMAT_S20 // (20) – 20 bits in 24 bits, signed, native endianness - FormatU20 Format = C.GST_AUDIO_FORMAT_U20 // (22) – 20 bits in 24 bits, unsigned, native endianness - FormatS18 Format = C.GST_AUDIO_FORMAT_S18 // (24) – 18 bits in 24 bits, signed, native endianness - FormatU18 Format = C.GST_AUDIO_FORMAT_U18 // (26) – 18 bits in 24 bits, unsigned, native endianness - FormatF32 Format = C.GST_AUDIO_FORMAT_F32 // (28) – 32-bit floating point samples, native endianness - FormatF64 Format = C.GST_AUDIO_FORMAT_F64 // (30) – 64-bit floating point samples, native endianness -) diff --git a/gst/audio/gst_audio_info.go b/gst/audio/gst_audio_info.go deleted file mode 100644 index b254e87..0000000 --- a/gst/audio/gst_audio_info.go +++ /dev/null @@ -1,160 +0,0 @@ -package audio - -/* -#include "gst.go.h" - -gint channels(GstAudioInfo * info) -{ - return GST_AUDIO_INFO_CHANNELS(info); -} -*/ -import "C" -import ( - "math" - "runtime" - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// Flags contains extra audio flags -type Flags int - -// Flags castings -const ( - FlagNone Flags = C.GST_AUDIO_FLAG_NONE // (0) - no valid flag - FlagUnpositioned Flags = C.GST_AUDIO_FLAG_UNPOSITIONED // (1) – the position array explicitly contains unpositioned channels. -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapInfoFull(ptr *C.GstAudioInfo) *Info { - info := &Info{ptr} - runtime.SetFinalizer(info, (*Info).Free) - return info -} - -// Info is a structure used for describing audio properties. This can be filled in from caps -// or converted back to caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Info struct { - ptr *C.GstAudioInfo -} - -// NewInfo returns a new Info that is also initialized. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewInfo() *Info { return wrapInfoFull(C.gst_audio_info_new()) } - -// InfoFromCaps parses the provided caps and creates an info. It returns true if the caps could be parsed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func InfoFromCaps(caps *gst.Caps) (*Info, bool) { - info := NewInfo() - return info, gobool(C.gst_audio_info_from_caps(info.ptr, (*C.GstCaps)(unsafe.Pointer(caps.Instance())))) -} - -// FormatInfo returns the format info for the audio. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FormatInfo() *FormatInfo { return &FormatInfo{i.ptr.finfo} } - -// Flags returns additional flags for the audio. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Flags() Flags { return Flags(i.ptr.flags) } - -// Layout returns the audio layout. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Layout() Layout { return Layout(i.ptr.layout) } - -// Rate returns the audio sample rate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Rate() int { return int(i.ptr.rate) } - -// Channels returns the number of channels. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Channels() int { return int(C.channels(i.ptr)) } - -// BPF returns the number of bytes for one frame. This is the size of one sample * Channels. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) BPF() int { return int(i.ptr.bpf) } - -// Positions returns the positions for each channel. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Positions() []ChannelPosition { - l := i.Channels() - out := make([]ChannelPosition, int(l)) - tmpslice := (*[(math.MaxInt32 - 1) / unsafe.Sizeof(C.GST_AUDIO_CHANNEL_POSITION_NONE)]C.GstAudioChannelPosition)(unsafe.Pointer(&i.ptr.position))[:l:l] - for i, s := range tmpslice { - out[i] = ChannelPosition(s) - } - return out -} - -// Init initializes the info with the default values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Init() { C.gst_audio_info_init(i.ptr) } - -// Free frees the AudioInfo structure. This is usually handled for you by the bindings. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Free() { C.gst_audio_info_free(i.ptr) } - -// Convert converts among various gst.Format types. This function handles gst.FormatBytes, gst.FormatTime, -// and gst.FormatDefault. For raw audio, gst.FormatDefault corresponds to audio frames. This function can -// be used to handle pad queries of the type gst.QueryConvert. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Convert(srcFmt gst.Format, srcVal int64, destFmt gst.Format) (int64, bool) { - var out C.gint64 - ret := C.gst_audio_info_convert( - i.ptr, - C.GstFormat(srcFmt), - C.gint64(srcVal), - C.GstFormat(destFmt), - &out, - ) - return int64(out), gobool(ret) -} - -// Copy creates a copy of this Info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Copy() *Info { - return wrapInfoFull(C.gst_audio_info_copy(i.ptr)) -} - -// IsEqual checks if the two infos are equal. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) IsEqual(info *Info) bool { - return gobool(C.gst_audio_info_is_equal(i.ptr, info.ptr)) -} - -// SetFormat sets the format for this info. This initializes info first and no values are preserved. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) SetFormat(format Format, rate int, positions []ChannelPosition) { - C.gst_audio_info_set_format( - i.ptr, - C.GstAudioFormat(format), - C.gint(rate), - C.gint(len(positions)), - (*C.GstAudioChannelPosition)(unsafe.Pointer(&positions[0])), - ) -} - -// ToCaps returns the caps representation of this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) ToCaps() *gst.Caps { - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_audio_info_to_caps(i.ptr))) -} diff --git a/gst/audio/gst_audio_meta.go b/gst/audio/gst_audio_meta.go deleted file mode 100644 index 184cb7c..0000000 --- a/gst/audio/gst_audio_meta.go +++ /dev/null @@ -1,43 +0,0 @@ -package audio - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// AudioMeta is a Go representation of a GstAudioMeta. -type AudioMeta struct{ *glib.Object } - -// FromGstAudioMetaUnsafeNone wraps the given audioMeta with a ref and finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstAudioMetaUnsafeNone(audioMeta unsafe.Pointer) *AudioMeta { - return &AudioMeta{glib.TransferNone(audioMeta)} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func BufferAddAudioMeta(buffer *gst.Buffer, info *Info, samples int, offsets []int) *AudioMeta { - // offsets is not yet implemented, always pass `nil` or this will panic - if offsets != nil { - panic("offsets is not implemented") - } - - // gSizeOffsets := C.gsize(unsafe.Sizeof(unsafe.Pointer(offsets))) - // if you pass in NULL as the last param then gstreamer assumes things are tightly packed... - // so that's what we currently assume until we inplement offsets - - return FromGstAudioMetaUnsafeNone(unsafe.Pointer(C.gst_buffer_add_audio_meta( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - info.ptr, - C.gsize(samples), - nil, - ))) -} diff --git a/gst/audio/pkg_config.go b/gst/audio/pkg_config.go deleted file mode 100644 index 8b10d57..0000000 --- a/gst/audio/pkg_config.go +++ /dev/null @@ -1,8 +0,0 @@ -package audio - -/* -#cgo pkg-config: gstreamer-plugins-base-1.0 gstreamer-audio-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -#cgo LDFLAGS: -lgstaudio-1.0 -*/ -import "C" diff --git a/gst/base/_deprecation.go b/gst/base/_deprecation.go deleted file mode 100644 index 3cf6960..0000000 --- a/gst/base/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstbase instead -package base diff --git a/gst/base/doc.go b/gst/base/doc.go deleted file mode 100644 index 7ba4b28..0000000 --- a/gst/base/doc.go +++ /dev/null @@ -1,5 +0,0 @@ -// Package base contains bindings for extendable GStreamer base objects. -// -// The objects and methods provided by this package are mostly for use in building -// plugins using the go-gst bindings. -package base diff --git a/gst/base/gst.go.c b/gst/base/gst.go.c deleted file mode 100644 index 5ac1b4d..0000000 --- a/gst/base/gst.go.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "gst.go.h" - -GstBaseSink * toGstBaseSink (void *p) { return GST_BASE_SINK_CAST(p); } -GstBaseSrc * toGstBaseSrc (void *p) { return GST_BASE_SRC_CAST(p); } -GstBaseTransform * toGstBaseTransform (void *p) { return GST_BASE_TRANSFORM(p); } -GstCollectPads * toGstCollectPads (void *p) { return GST_COLLECT_PADS(p); } -GstPushSrc * toGstPushSrc (void *p) { return GST_PUSH_SRC(p); } - -GstBaseSinkClass * toGstBaseSinkClass (void *p) { return (GstBaseSinkClass *)p; } -GstBaseSrcClass * toGstBaseSrcClass (void *p) { return (GstBaseSrcClass *)p; } -GstBaseTransformClass * toGstBaseTransformClass (void *p) { return (GstBaseTransformClass *)p; } -GstPushSrcClass * toGstPushSrcClass (void *p) { return (GstPushSrcClass *)p; } - -gint64 gstCollectDataDTS (GstCollectData * gcd) { return GST_COLLECT_PADS_DTS(gcd); } - diff --git a/gst/base/gst.go.h b/gst/base/gst.go.h deleted file mode 100644 index 455f7a7..0000000 --- a/gst/base/gst.go.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __GST_BASE_GO_H__ -#define __GST_BASE_GO_H__ - -#include -#include - -extern GstBaseSink * toGstBaseSink (void *p); -extern GstBaseSrc * toGstBaseSrc (void *p); -extern GstBaseTransform * toGstBaseTransform (void *p); -extern GstCollectPads * toGstCollectPads (void *p); -extern GstPushSrc * toGstPushSrc (void *p); - -extern GstBaseSinkClass * toGstBaseSinkClass (void *p); -extern GstBaseSrcClass * toGstBaseSrcClass (void *p); -extern GstBaseTransformClass * toGstBaseTransformClass (void *p); -extern GstPushSrcClass * toGstPushSrcClass (void *p); - -extern gint64 gstCollectDataDTS (GstCollectData * gcd); - -#endif diff --git a/gst/base/gst_base_sink.go b/gst/base/gst_base_sink.go deleted file mode 100644 index ba2e467..0000000 --- a/gst/base/gst_base_sink.go +++ /dev/null @@ -1,394 +0,0 @@ -package base - -/* -#include "gst.go.h" - -gboolean baseSinkParentEvent (GstBaseSink * sink, GstEvent * event) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(sink)); - GstBaseSinkClass * parent = toGstBaseSinkClass(g_type_class_peek_parent(this_class)); - return parent->event(sink, event); -} -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// GstBaseSink represents a GstBaseSink. -type GstBaseSink struct{ *gst.Element } - -// ToGstBaseSink returns a GstBaseSink object for the given object. It will work on either gst.Object -// or glib.Object interfaces. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstBaseSink(obj interface{}) *GstBaseSink { - switch obj := obj.(type) { - case *gst.Object: - return &GstBaseSink{&gst.Element{Object: obj}} - case *glib.Object: - return &GstBaseSink{&gst.Element{Object: &gst.Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}}}} - } - return nil -} - -// Instance returns the underlying C GstBaseSrc instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) Instance() *C.GstBaseSink { - return C.toGstBaseSink(g.Unsafe()) -} - -// DoPreroll is for if the sink spawns its own thread for pulling buffers from upstream. -// It should call this method after it has pulled a buffer. If the element needed to preroll, -// this function will perform the preroll and will then block until the element state is changed. -// -// This function should be called with the PREROLL_LOCK held and the object that caused the preroll. -// -// Since the object will always be a gst.MiniObject (which is not implemented properly), this method will check -// against the provided types for structs known to be used in this context. The currently known options -// are events, messages, queries, structures, and buffers. If you come across a need to use this function with -// an unsupported type, feel free to raise an Issue or open a PR. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) DoPreroll(obj interface{}) gst.FlowReturn { - miniobj := getPrerollObj(obj) - if miniobj == nil { - return gst.FlowError - } - return gst.FlowReturn(C.gst_base_sink_do_preroll(g.Instance(), miniobj)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getPrerollObj(obj interface{}) *C.GstMiniObject { - switch obj := obj.(type) { - case *gst.Event: - return (*C.GstMiniObject)(unsafe.Pointer(obj.Instance())) - case *gst.Buffer: - return (*C.GstMiniObject)(unsafe.Pointer(obj.Instance())) - case *gst.Message: - return (*C.GstMiniObject)(unsafe.Pointer(obj.Instance())) - case *gst.Query: - return (*C.GstMiniObject)(unsafe.Pointer(obj.Instance())) - case *gst.Structure: - return (*C.GstMiniObject)(unsafe.Pointer(obj.Instance())) - default: - return nil - } -} - -// GetBlocksize gets the number of bytes that the sink will pull when it is operating in pull mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetBlocksize() uint { return uint(C.gst_base_sink_get_blocksize(g.Instance())) } - -// GetDropOutOfSegment checks if sink is currently configured to drop buffers which are outside the current segment -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetDropOutOfSegment() bool { - return gobool(C.gst_base_sink_get_drop_out_of_segment(g.Instance())) -} - -// GetLastSample gets the last sample that arrived in the sink and was used for preroll or for rendering. -// This property can be used to generate thumbnails. -// -// The GstCaps on the sample can be used to determine the type of the buffer. Sample will -// be nil if no buffer has arrived yet. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetLastSample() *gst.Sample { - sample := C.gst_base_sink_get_last_sample(g.Instance()) - if sample == nil { - return nil - } - return gst.FromGstSampleUnsafeFull(unsafe.Pointer(sample)) -} - -// GetLatency gets the currently configured latency. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetLatency() gst.ClockTime { - return gst.ClockTime(C.gst_base_sink_get_latency(g.Instance())) -} - -// GetMaxBitrate gets the maximum amount of bits per second the sink will render. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetMaxBitrate() uint64 { - return uint64(C.gst_base_sink_get_max_bitrate(g.Instance())) -} - -// GetMaxLateness gets the max lateness value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetMaxLateness() int64 { - return int64(C.gst_base_sink_get_max_lateness(g.Instance())) -} - -// GetProcessingDeadline gets the processing deadline of the sink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetProcessingDeadline() gst.ClockTime { - return gst.ClockTime(C.gst_base_sink_get_processing_deadline(g.Instance())) -} - -// GetRenderDelay gets the render delay for the sink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetRenderDelay() gst.ClockTime { - return gst.ClockTime(C.gst_base_sink_get_render_delay(g.Instance())) -} - -// SINCE 1.18 -// // SinkStats represents the current statistics on a GstBaseSink. -// type SinkStats struct { -// AverageRate float64 -// Dropped uint64 -// Rendered uint64 -// } - -// // GetSinkStats returns various GstBaseSink statistics. -// func (g *GstBaseSink) GetSinkStats() *SinkStats { -// st := gst.FromGstStructureUnsafe(unsafe.Pointer(C.gst_base_sink_get_stats(g.Instance()))) -// stats := &SinkStats{} -// if avgRate, err := st.GetValue("average-rate"); err == nil { -// stats.AverageRate = avgRate.(float64) -// } -// if dropped, err := st.GetValue("dropped"); err == nil { -// stats.Dropped = dropped.(uint64) -// } -// if rendered, err := st.GetValue("rendered"); err == nil { -// stats.Rendered = rendered.(uint64) -// } -// return stats -// } - -// GetSync checks if the sink is currently configured to synchronize on the clock. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetSync() bool { return gobool(C.gst_base_sink_get_sync(g.Instance())) } - -// GetThrottleTime gets the time that will be inserted between frames to control maximum buffers -// per second. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetThrottleTime() uint64 { - return uint64(C.gst_base_sink_get_throttle_time(g.Instance())) -} - -// GetTsOffset gets the synchronization offset of sink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) GetTsOffset() gst.ClockTime { - return gst.ClockTime(C.gst_base_sink_get_ts_offset(g.Instance())) -} - -// IsAsyncEnabled checks if the sink is currently configured to perform asynchronous state changes to PAUSED. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) IsAsyncEnabled() bool { - return gobool(C.gst_base_sink_is_async_enabled(g.Instance())) -} - -// IsLastSampleEnabled checks if the sink is currently configured to store the last received sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) IsLastSampleEnabled() bool { - return gobool(C.gst_base_sink_is_last_sample_enabled(g.Instance())) -} - -// IsQoSEnabled checks if sink is currently configured to send QoS events upstream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) IsQoSEnabled() bool { - return gobool(C.gst_base_sink_is_qos_enabled(g.Instance())) -} - -// ParentEvent calls the parent class's event handler for the given event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) ParentEvent(ev *gst.Event) bool { - return gobool(C.baseSinkParentEvent( - g.Instance(), - (*C.GstEvent)(unsafe.Pointer(ev.Instance())), - )) -} - -// QueryLatency queries the sink for the latency parameters. The latency will be queried from the -// upstream elements. live will be TRUE if sink is configured to synchronize against the clock. -// upstreamLive will be TRUE if an upstream element is live. -// -// If both live and upstreamLive are TRUE, the sink will want to compensate for the latency introduced -// by the upstream elements by setting the minLatency to a strictly positive value. -// -// This function is mostly used by subclasses. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) QueryLatency() (ok, live, upstreamLive bool, minLatency, maxLatency gst.ClockTime) { - var glive, gupLive C.gboolean - var gmin, gmax C.GstClockTime - ret := C.gst_base_sink_query_latency(g.Instance(), &glive, &gupLive, &gmin, &gmax) - return gobool(ret), gobool(glive), gobool(gupLive), gst.ClockTime(gmin), gst.ClockTime(gmax) -} - -// SetAsyncEnabled configures sink to perform all state changes asynchronously. When async is disabled, -// the sink will immediately go to PAUSED instead of waiting for a preroll buffer. This feature is useful -// if the sink does not synchronize against the clock or when it is dealing with sparse streams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetAsyncEnabled(enabled bool) { - C.gst_base_sink_set_async_enabled(g.Instance(), gboolean(enabled)) -} - -// SetBlocksize sets the number of bytes this sink will pull when operating in pull mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetBlocksize(blocksize uint) { - C.gst_base_sink_set_blocksize(g.Instance(), C.guint(blocksize)) -} - -// SetDropOutOfSegment configures sink to drop buffers which are outside the current segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetDropOutOfSegment(drop bool) { - C.gst_base_sink_set_drop_out_of_segment(g.Instance(), gboolean(drop)) -} - -// SetLastSampleEnabled configures the sink to store the last received sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetLastSampleEnabled(enabled bool) { - C.gst_base_sink_set_last_sample_enabled(g.Instance(), gboolean(enabled)) -} - -// SetMaxBitrate sets the maximum amount of bits per second the sink will render. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetMaxBitrate(bitrate uint64) { - C.gst_base_sink_set_max_bitrate(g.Instance(), C.guint64(bitrate)) -} - -// SetMaxLateness sets the new max lateness value to max_lateness. This value is used to decide if -// a buffer should be dropped or not based on the buffer timestamp and the current clock time. A -// value of -1 means an unlimited time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetMaxLateness(maxLateness int64) { - C.gst_base_sink_set_max_lateness(g.Instance(), C.gint64(maxLateness)) -} - -// SetProcessingDeadline sets the maximum amount of time (in nanoseconds) that the pipeline can take -// for processing the buffer. This is added to the latency of live pipelines. -// -// This function is usually called by subclasses. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetProcessingDeadline(deadline gst.ClockTime) { - C.gst_base_sink_set_processing_deadline(g.Instance(), C.GstClockTime(deadline)) -} - -// SetQoSEnabled configures sink to send Quality-of-Service events upstream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetQoSEnabled(enabled bool) { - C.gst_base_sink_set_qos_enabled(g.Instance(), gboolean(enabled)) -} - -// SetRenderDelay sets the render delay in sink to delay. The render delay is the time between actual -// rendering of a buffer and its synchronization time. Some devices might delay media rendering which -// can be compensated for with this function. -// -// After calling this function, this sink will report additional latency and other sinks will adjust -// their latency to delay the rendering of their media. -// -// This function is usually called by subclasses. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetRenderDelay(delay gst.ClockTime) { - C.gst_base_sink_set_render_delay(g.Instance(), C.GstClockTime(delay)) -} - -// SetSync configures sink to synchronize on the clock or not. When sync is FALSE, incoming samples will -// be played as fast as possible. If sync is TRUE, the timestamps of the incoming buffers will be used to -// schedule the exact render time of its contents. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetSync(sync bool) { C.gst_base_sink_set_sync(g.Instance(), gboolean(sync)) } - -// SetThrottleTime sets the time that will be inserted between rendered buffers. This can be used to control -// the maximum buffers per second that the sink will render. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetThrottleTime(throttle uint64) { - C.gst_base_sink_set_throttle_time(g.Instance(), C.guint64(throttle)) -} - -// SetTsOffset adjusts the synchronization of sink with offset. A negative value will render buffers earlier -// than their timestamp. A positive value will delay rendering. This function can be used to fix playback of -// badly timestamped buffers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) SetTsOffset(offset gst.ClockTimeDiff) { - C.gst_base_sink_set_ts_offset(g.Instance(), C.GstClockTimeDiff(offset)) -} - -// Wait will wait for preroll to complete and will then block until timeout is reached. It is usually called by -// subclasses that use their own internal synchronization but want to let some synchronization (like EOS) be -// handled by the base class. -// -// This function should only be called with the PREROLL_LOCK held (like when receiving an EOS event in the -// ::event vmethod or when handling buffers in ::render). -// -// The timeout argument should be the running_time of when the timeout should happen and will be adjusted with any -// latency and offset configured in the sink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) Wait(timeout gst.ClockTime) (ret gst.FlowReturn, jitter gst.ClockTimeDiff) { - var jit C.GstClockTimeDiff - gret := C.gst_base_sink_wait(g.Instance(), C.GstClockTime(timeout), &jit) - return gst.FlowReturn(gret), gst.ClockTimeDiff(jit) -} - -// WaitClock will block until timeout is reached. It is usually called by subclasses that use their own -// internal synchronization. -// -// If time is not valid, no synchronization is done and GST_CLOCK_BADTIME is returned. Likewise, if synchronization -// is disabled in the element or there is no clock, no synchronization is done and GST_CLOCK_BADTIME is returned. -// -// This function should only be called with the PREROLL_LOCK held, like when receiving an EOS event in the event() -// vmethod or when receiving a buffer in the render() vmethod. -// -// The timeout argument should be the running_time of when this method should return and is not adjusted with any -// latency or offset configured in the sink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) WaitClock(timeout gst.ClockTime) (ret gst.ClockReturn, jitter gst.ClockTimeDiff) { - var jit C.GstClockTimeDiff - gret := C.gst_base_sink_wait_clock(g.Instance(), C.GstClockTime(timeout), &jit) - return gst.ClockReturn(gret), gst.ClockTimeDiff(jit) -} - -// WaitPreroll will block until the preroll is complete. -// -// If the render() method performs its own synchronization against the clock it must unblock when going from -// PLAYING to the PAUSED state and call this method before continuing to render the remaining data. -// -// If the render() method can block on something else than the clock, it must also be ready to unblock immediately -// on the unlock() method and cause the render() method to immediately call this function. In this case, the -// subclass must be prepared to continue rendering where it left off if this function returns GST_FLOW_OK. -// -// This function will block until a state change to PLAYING happens (in which case this function returns -// GST_FLOW_OK) or the processing must be stopped due to a state change to READY or a FLUSH event (in which case -// this function returns GST_FLOW_FLUSHING). -// -// This function should only be called with the PREROLL_LOCK held, like in the render function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSink) WaitPreroll() gst.FlowReturn { - return gst.FlowReturn(C.gst_base_sink_wait_preroll(g.Instance())) -} diff --git a/gst/base/gst_base_sink_exports.go b/gst/base/gst_base_sink_exports.go deleted file mode 100644 index 53fbfec..0000000 --- a/gst/base/gst_base_sink_exports.go +++ /dev/null @@ -1,309 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -//export goGstBaseSinkActivatePull -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkActivatePull(sink *C.GstBaseSink, active C.gboolean) C.gboolean { - var ret C.gboolean - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - ActivatePull(self *GstBaseSink, active bool) bool - }) - ret = gboolean(iface.ActivatePull(goBaseSink, gobool(active))) - - return ret -} - -//export goGstBaseSinkEvent -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkEvent(sink *C.GstBaseSink, event *C.GstEvent) C.gboolean { - var ret C.gboolean - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Event(self *GstBaseSink, event *gst.Event) bool - }) - ret = gboolean(iface.Event(goBaseSink, gst.ToGstEvent(unsafe.Pointer(event)))) - - return ret -} - -//export goGstBaseSinkFixate -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkFixate(sink *C.GstBaseSink, caps *C.GstCaps) *C.GstCaps { - var fixated *gst.Caps - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Fixate(self *GstBaseSink, caps *gst.Caps) *gst.Caps - }) - fixated = iface.Fixate(goBaseSink, gst.ToGstCaps(unsafe.Pointer(caps))) - - if fixated == nil { - return nil - } - return (*C.GstCaps)(unsafe.Pointer(fixated.Instance())) -} - -//export goGstBaseSinkGetCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkGetCaps(sink *C.GstBaseSink, filter *C.GstCaps) *C.GstCaps { - var filtered *gst.Caps - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - GetCaps(self *GstBaseSink, filter *gst.Caps) *gst.Caps - }) - filtered = iface.GetCaps(goBaseSink, gst.ToGstCaps(unsafe.Pointer(filter))) - - if filtered == nil { - return nil - } - return (*C.GstCaps)(unsafe.Pointer(filtered.Instance())) -} - -//export goGstBaseSinkGetTimes -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkGetTimes(sink *C.GstBaseSink, buf *C.GstBuffer, start, end *C.GstClockTime) { - var retStart, retEnd time.Duration - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - GetTimes(self *GstBaseSink, buffer *gst.Buffer) (start, end time.Duration) // should this be a ClockTime? - }) - retStart, retEnd = iface.GetTimes(goBaseSink, gst.ToGstBuffer(unsafe.Pointer(buf))) - - *start = C.GstClockTime(retStart.Nanoseconds()) - *end = C.GstClockTime(retEnd.Nanoseconds()) -} - -//export goGstBaseSinkPrepare -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkPrepare(sink *C.GstBaseSink, buf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Prepare(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - }) - ret = iface.Prepare(goBaseSink, gst.ToGstBuffer(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseSinkPrepareList -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkPrepareList(sink *C.GstBaseSink, list *C.GstBufferList) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - PrepareList(self *GstBaseSink, bufferList *gst.BufferList) gst.FlowReturn - }) - ret = iface.PrepareList(goBaseSink, gst.ToGstBufferList(unsafe.Pointer(list))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseSinkPreroll -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkPreroll(sink *C.GstBaseSink, buf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Preroll(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - }) - ret = iface.Preroll(goBaseSink, gst.ToGstBuffer(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseSinkProposeAllocation -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkProposeAllocation(sink *C.GstBaseSink, query *C.GstQuery) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - ProposeAllocation(self *GstBaseSink, query *gst.Query) bool - }) - ret = iface.ProposeAllocation(goBaseSink, gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ret) -} - -//export goGstBaseSinkQuery -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkQuery(sink *C.GstBaseSink, query *C.GstQuery) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Query(self *GstBaseSink, query *gst.Query) bool - }) - ret = iface.Query(goBaseSink, gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ret) -} - -//export goGstBaseSinkRender -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkRender(sink *C.GstBaseSink, buf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Render(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - }) - ret = iface.Render(goBaseSink, gst.ToGstBuffer(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseSinkRenderList -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkRenderList(sink *C.GstBaseSink, buf *C.GstBufferList) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - RenderList(self *GstBaseSink, bufferList *gst.BufferList) gst.FlowReturn - }) - ret = iface.RenderList(goBaseSink, gst.ToGstBufferList(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseSinkSetCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkSetCaps(sink *C.GstBaseSink, caps *C.GstCaps) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - SetCaps(self *GstBaseSink, caps *gst.Caps) bool - }) - ret = iface.SetCaps(goBaseSink, gst.ToGstCaps(unsafe.Pointer(caps))) - - return gboolean(ret) -} - -//export goGstBaseSinkStart -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkStart(sink *C.GstBaseSink) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Start(self *GstBaseSink) bool - }) - ret = iface.Start(goBaseSink) - - return gboolean(ret) -} - -//export goGstBaseSinkStop -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkStop(sink *C.GstBaseSink) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Stop(self *GstBaseSink) bool - }) - ret = iface.Stop(goBaseSink) - - return gboolean(ret) -} - -//export goGstBaseSinkUnlock -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkUnlock(sink *C.GstBaseSink) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - Unlock(self *GstBaseSink) bool - }) - ret = iface.Unlock(goBaseSink) - - return gboolean(ret) -} - -//export goGstBaseSinkUnlockStop -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkUnlockStop(sink *C.GstBaseSink) C.gboolean { - var ret bool - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - UnlockStop(self *GstBaseSink) bool - }) - ret = iface.UnlockStop(goBaseSink) - - return gboolean(ret) -} - -//export goGstBaseSinkWaitEvent -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSinkWaitEvent(sink *C.GstBaseSink, event *C.GstEvent) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSink := ToGstBaseSink(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(sink))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(sink)) - - iface := subclass.(interface { - WaitEvent(self *GstBaseSink, event *gst.Event) gst.FlowReturn - }) - ret = iface.WaitEvent(goBaseSink, gst.ToGstEvent(unsafe.Pointer(event))) - - return C.GstFlowReturn(ret) -} diff --git a/gst/base/gst_base_sink_impl.go b/gst/base/gst_base_sink_impl.go deleted file mode 100644 index 96df9dc..0000000 --- a/gst/base/gst_base_sink_impl.go +++ /dev/null @@ -1,251 +0,0 @@ -package base - -/* -#include "gst.go.h" - -extern gboolean goGstBaseSinkActivatePull (GstBaseSink * sink, gboolean active); -extern gboolean goGstBaseSinkEvent (GstBaseSink * sink, GstEvent * event); -extern GstCaps * goGstBaseSinkFixate (GstBaseSink * sink, GstCaps * caps); -extern GstCaps * goGstBaseSinkGetCaps (GstBaseSink * sink, GstCaps * filter); -extern void goGstBaseSinkGetTimes (GstBaseSink * sink, GstBuffer * buffer, GstClockTime * start, GstClockTime * end); -extern GstFlowReturn goGstBaseSinkPrepare (GstBaseSink * sink, GstBuffer * buffer); -extern GstFlowReturn goGstBaseSinkPrepareList (GstBaseSink * sink, GstBufferList * buffer_list); -extern GstFlowReturn goGstBaseSinkPreroll (GstBaseSink * sink, GstBuffer * buffer); -extern gboolean goGstBaseSinkProposeAllocation (GstBaseSink * sink, GstQuery * query); -extern gboolean goGstBaseSinkQuery (GstBaseSink * sink, GstQuery * query); -extern GstFlowReturn goGstBaseSinkRender (GstBaseSink * sink, GstBuffer * buffer); -extern GstFlowReturn goGstBaseSinkRenderList (GstBaseSink * sink, GstBufferList * buffer_list); -extern gboolean goGstBaseSinkSetCaps (GstBaseSink * sink, GstCaps * caps); -extern gboolean goGstBaseSinkStart (GstBaseSink * sink); -extern gboolean goGstBaseSinkStop (GstBaseSink * sink); -extern gboolean goGstBaseSinkUnlock (GstBaseSink * sink); -extern gboolean goGstBaseSinkUnlockStop (GstBaseSink * sink); -extern GstFlowReturn goGstBaseSinkWaitEvent (GstBaseSink * sink, GstEvent * event); - -GstFlowReturn do_wait_event (GstBaseSink * sink, GstEvent * event) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(sink)); - GstBaseSinkClass * parent = toGstBaseSinkClass(g_type_class_peek_parent(this_class)); - GstFlowReturn ret = parent->wait_event(sink, event); - if (ret == GST_FLOW_ERROR) - return ret; - return goGstBaseSinkWaitEvent(sink, event); -} - -void setGstBaseSinkActivatePull (GstBaseSinkClass * klass) { klass->activate_pull = goGstBaseSinkActivatePull; } -void setGstBaseSinkEvent (GstBaseSinkClass * klass) { klass->event = goGstBaseSinkEvent; } -void setGstBaseSinkFixate (GstBaseSinkClass * klass) { klass->fixate = goGstBaseSinkFixate; } -void setGstBaseSinkGetCaps (GstBaseSinkClass * klass) { klass->get_caps = goGstBaseSinkGetCaps; } -void setGstBaseSinkGetTimes (GstBaseSinkClass * klass) { klass->get_times = goGstBaseSinkGetTimes; } -void setGstBaseSinkPrepare (GstBaseSinkClass * klass) { klass->prepare = goGstBaseSinkPrepare; } -void setGstBaseSinkPrepareList (GstBaseSinkClass * klass) { klass->prepare_list = goGstBaseSinkPrepareList; } -void setGstBaseSinkPreroll (GstBaseSinkClass * klass) { klass->preroll = goGstBaseSinkPreroll; } -void setGstBaseSinkProposeAllocation (GstBaseSinkClass * klass) { klass->propose_allocation = goGstBaseSinkProposeAllocation; } -void setGstBaseSinkQuery (GstBaseSinkClass * klass) { klass->query = goGstBaseSinkQuery; } -void setGstBaseSinkRender (GstBaseSinkClass * klass) { klass->render = goGstBaseSinkRender; } -void setGstBaseSinkRenderList (GstBaseSinkClass * klass) { klass->render_list = goGstBaseSinkRenderList; } -void setGstBaseSinkSetCaps (GstBaseSinkClass * klass) { klass->set_caps = goGstBaseSinkSetCaps; } -void setGstBaseSinkStart (GstBaseSinkClass * klass) { klass->start = goGstBaseSinkStart; } -void setGstBaseSinkStop (GstBaseSinkClass * klass) { klass->stop = goGstBaseSinkStop; } -void setGstBaseSinkUnlock (GstBaseSinkClass * klass) { klass->unlock = goGstBaseSinkUnlock; } -void setGstBaseSinkUnlockStop (GstBaseSinkClass * klass) { klass->unlock_stop = goGstBaseSinkUnlockStop; } -void setGstBaseSinkWaitEvent (GstBaseSinkClass * klass) { klass->wait_event = do_wait_event; } - -*/ -import "C" - -import ( - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -var ( - // ExtendsBaseSink is an Extendable for extending a GstBaseSink - ExtendsBaseSink glib.Extendable = &extendsBaseSink{parent: gst.ExtendsElement} -) - -// GstBaseSinkImpl is the documented interface for extending a GstBaseSink. It does not have to -// be implemented in it's entirety. Each of the methods it declares will be checked for their presence -// in the initializing object, and if the object declares an override it will replace the default -// implementation in the virtual methods. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type GstBaseSinkImpl interface { - // Subclasses should override this when they can provide an alternate method of spawning a thread to - // drive the pipeline in pull mode. Should start or stop the pulling thread, depending on the value - // of the "active" argument. Called after actually activating the sink pad in pull mode. The default - // implementation starts a task on the sink pad. - ActivatePull(self *GstBaseSink, active bool) bool - // Override this to handle events arriving on the sink pad - Event(self *GstBaseSink, event *gst.Event) bool - // Only useful in pull mode. Implement if you have ideas about what should be the default values for - // the caps you support. - Fixate(self *GstBaseSink, caps *gst.Caps) *gst.Caps - // Called to get sink pad caps from the subclass - GetCaps(self *GstBaseSink, filter *gst.Caps) *gst.Caps - // Called to get the start and end times for synchronizing the passed buffer to the clock - GetTimes(self *GstBaseSink, buffer *gst.Buffer) (start, end time.Duration) // should this be a ClockTime? - // Called to prepare the buffer for render and preroll. This function is called before synchronization - // is performed. - Prepare(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - // Called to prepare the buffer list for render_list. This function is called before synchronization is - // performed. - PrepareList(self *GstBaseSink, bufferList *gst.BufferList) gst.FlowReturn - // Called to present the preroll buffer if desired. - Preroll(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - // Used to configure the allocation query - ProposeAllocation(self *GstBaseSink, query *gst.Query) bool - // Handle queries on the element - Query(self *GstBaseSink, query *gst.Query) bool - // Called when a buffer should be presented or output, at the correct moment if the GstBaseSink has been - // set to sync to the clock. - Render(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - // Same as render but used with buffer lists instead of buffers. - RenderList(self *GstBaseSink, bufferList *gst.BufferList) gst.FlowReturn - // Notify subclass of changed caps - SetCaps(self *GstBaseSink, caps *gst.Caps) bool - // Start processing. Ideal for opening resources in the subclass - Start(self *GstBaseSink) bool - // Stop processing. Subclasses should use this to close resources. - Stop(self *GstBaseSink) bool - // Unlock any pending access to the resource. Subclasses should unblock any blocked function ASAP and call - // WaitPreroll - Unlock(self *GstBaseSink) bool - // Clear the previous unlock request. Subclasses should clear any state they set during Unlock(), and be ready - // to continue where they left off after WaitPreroll, Wait or WaitClock return or Render() is called again. - UnlockStop(self *GstBaseSink) bool - // Override this to implement custom logic to wait for the event time (for events like EOS and GAP). The bindings - // take care of first chaining up to the parent class. - WaitEvent(self *GstBaseSink, event *gst.Event) gst.FlowReturn -} - -type extendsBaseSink struct{ parent glib.Extendable } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSink) Type() glib.Type { return glib.Type(C.gst_base_sink_get_type()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSink) ClassSize() int64 { return int64(C.sizeof_GstBaseSinkClass) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSink) InstanceSize() int64 { return int64(C.sizeof_GstBaseSink) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSink) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) { - e.parent.InitClass(klass, elem) - - sinkClass := C.toGstBaseSinkClass(klass) - - if _, ok := elem.(interface { - ActivatePull(self *GstBaseSink, active bool) bool - }); ok { - C.setGstBaseSinkActivatePull(sinkClass) - } - if _, ok := elem.(interface { - Event(self *GstBaseSink, event *gst.Event) bool - }); ok { - C.setGstBaseSinkEvent(sinkClass) - } - - if _, ok := elem.(interface { - Fixate(self *GstBaseSink, caps *gst.Caps) *gst.Caps - }); ok { - C.setGstBaseSinkFixate(sinkClass) - } - - if _, ok := elem.(interface { - GetCaps(self *GstBaseSink, filter *gst.Caps) *gst.Caps - }); ok { - C.setGstBaseSinkGetCaps(sinkClass) - } - - if _, ok := elem.(interface { - GetTimes(self *GstBaseSink, buffer *gst.Buffer) (start, end time.Duration) // should this be a ClockTime? - }); ok { - C.setGstBaseSinkGetTimes(sinkClass) - } - - if _, ok := elem.(interface { - Prepare(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseSinkPrepare(sinkClass) - } - - if _, ok := elem.(interface { - PrepareList(self *GstBaseSink, bufferList *gst.BufferList) gst.FlowReturn - }); ok { - C.setGstBaseSinkPrepareList(sinkClass) - } - - if _, ok := elem.(interface { - Preroll(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseSinkPreroll(sinkClass) - } - - if _, ok := elem.(interface { - ProposeAllocation(self *GstBaseSink, query *gst.Query) bool - }); ok { - C.setGstBaseSinkProposeAllocation(sinkClass) - } - - if _, ok := elem.(interface { - Query(self *GstBaseSink, query *gst.Query) bool - }); ok { - C.setGstBaseSinkQuery(sinkClass) - } - - if _, ok := elem.(interface { - Render(self *GstBaseSink, buffer *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseSinkRender(sinkClass) - } - - if _, ok := elem.(interface { - RenderList(self *GstBaseSink, bufferList *gst.BufferList) gst.FlowReturn - }); ok { - C.setGstBaseSinkRenderList(sinkClass) - } - - if _, ok := elem.(interface { - SetCaps(self *GstBaseSink, caps *gst.Caps) bool - }); ok { - C.setGstBaseSinkSetCaps(sinkClass) - } - - if _, ok := elem.(interface { - Start(self *GstBaseSink) bool - }); ok { - C.setGstBaseSinkStart(sinkClass) - } - - if _, ok := elem.(interface { - Stop(self *GstBaseSink) bool - }); ok { - C.setGstBaseSinkStop(sinkClass) - } - - if _, ok := elem.(interface { - Unlock(self *GstBaseSink) bool - }); ok { - C.setGstBaseSinkUnlock(sinkClass) - } - - if _, ok := elem.(interface { - UnlockStop(self *GstBaseSink) bool - }); ok { - C.setGstBaseSinkUnlockStop(sinkClass) - } - - if _, ok := elem.(interface { - WaitEvent(self *GstBaseSink, event *gst.Event) gst.FlowReturn - }); ok { - C.setGstBaseSinkWaitEvent(sinkClass) - } - -} diff --git a/gst/base/gst_base_src.go b/gst/base/gst_base_src.go deleted file mode 100644 index 28a5cf1..0000000 --- a/gst/base/gst_base_src.go +++ /dev/null @@ -1,242 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// GstBaseSrc represents a GstBaseSrc. -type GstBaseSrc struct{ *gst.Element } - -// ToGstBaseSrc returns a GstBaseSrc object for the given object. It will work on either gst.Object -// or glib.Object interfaces. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstBaseSrc(obj interface{}) *GstBaseSrc { - switch obj := obj.(type) { - case *gst.Object: - return &GstBaseSrc{&gst.Element{Object: obj}} - case *glib.Object: - return &GstBaseSrc{&gst.Element{Object: &gst.Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}}}} - } - return nil -} - -// Instance returns the underlying C GstBaseSrc instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) Instance() *C.GstBaseSrc { - return C.toGstBaseSrc(g.Unsafe()) -} - -// GetAllocator retrieves the memory allocator used by this base src. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) GetAllocator() (*gst.Allocator, *gst.AllocationParams) { - var allocParams C.GstAllocationParams - var allocator *C.GstAllocator - C.gst_base_src_get_allocator(g.Instance(), &allocator, &allocParams) - if allocator == nil { - return nil, nil - } - return gst.FromGstAllocatorUnsafeFull(unsafe.Pointer(allocator)), gst.FromGstAllocationParamsUnsafe(unsafe.Pointer(&allocParams)) -} - -// GetBlocksize returns the number of bytes that the source will push out with each buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) GetBlocksize() uint { return uint(C.gst_base_src_get_blocksize(g.Instance())) } - -// GetBufferPool returns the BufferPool used by this source. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) GetBufferPool() *gst.BufferPool { - pool := C.gst_base_src_get_buffer_pool(g.Instance()) - if pool == nil { - return nil - } - return gst.FromGstBufferPoolUnsafeFull(unsafe.Pointer(pool)) -} - -// DoTimestamp will query if the timestamps outgoing on this source's buffers are based on the current -// running time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) DoTimestamp() bool { - return gobool(C.gst_base_src_get_do_timestamp(g.Instance())) -} - -// IsAsync retrieves the current async behavior of the source. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) IsAsync() bool { return gobool(C.gst_base_src_is_async(g.Instance())) } - -// IsLive checks if this source is in live mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) IsLive() bool { return gobool(C.gst_base_src_is_live(g.Instance())) } - -// SINCE 1.18 -// // Negotiate negotiates this source's pad caps with downstream elements. Do not call this in the Fill() -// // vmethod. Call this in Create() or in Alloc(), before any buffer is allocated. -// func (g *GstBaseSrc) Negotiate() bool { return gobool(C.gst_base_src_negotiate(g.Instance())) } - -// // NewSegment prepares a new segment for emission downstream. This function must only be called by derived -// // sub-classes, and only from the create function, as the stream-lock needs to be held. -// // -// // The format for the segment must be identical with the current format of the source, as configured with -// // SetFormat. -// // -// // The format of src must not be gst.FormatUndefined and the format should be configured via SetFormat before -// // calling this method. -// func (g *GstBaseSrc) NewSegment(segment *gst.Segment) bool { -// return gobool(C.gst_base_src_new_segment(g.Instance(), (*C.GstSegment)(unsafe.Pointer(segment.Instance())))) -// } - -// QueryLatency queries the source for the latency parameters. live will be TRUE when src is configured as a -// live source. minLatency and maxLatency will be set to the difference between the running time and the timestamp -// of the first buffer. -// -// This function is mostly used by subclasses. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) QueryLatency() (ok, live bool, minLatency, maxLatency gst.ClockTime) { - var glive C.gboolean - var gmin C.GstClockTime - var gmax C.GstClockTime - gok := C.gst_base_src_query_latency(g.Instance(), &glive, &gmin, &gmax) - return gobool(gok), gobool(glive), gst.ClockTime(gmin), gst.ClockTime(gmax) -} - -// SetAsync configures async behavior in src, no state change will block. The open, close, start, stop, play and -// pause virtual methods will be executed in a different thread and are thus allowed to perform blocking operations. -// Any blocking operation should be unblocked with the unlock vmethod. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetAsync(async bool) { C.gst_base_src_set_async(g.Instance(), gboolean(async)) } - -// SetAutomaticEOS sets whether EOS should be automatically emitted. -// -// If automaticEOS is TRUE, src will automatically go EOS if a buffer after the total size is returned. By default -// this is TRUE but sources that can't return an authoritative size and only know that they're EOS when trying to -// read more should set this to FALSE. -// -// When src operates in gst.FormatTime, GstBaseSrc will send an EOS when a buffer outside of the currently configured -// segment is pushed if automaticEOS is TRUE. Since 1.16, if automatic_eos is FALSE an EOS will be pushed only when -// the Create() implementation returns gst.FlowEOS. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetAutomaticEOS(automaticEOS bool) { - C.gst_base_src_set_automatic_eos(g.Instance(), gboolean(automaticEOS)) -} - -// SetBlocksize sets the number of bytes that src will push out with each buffer. When blocksize is set to -1, a -// default length will be used. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetBlocksize(size uint) { - C.gst_base_src_set_blocksize(g.Instance(), C.guint(size)) -} - -// SetCaps sets new caps on the source pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetCaps(caps *gst.Caps) bool { - return gobool(C.gst_base_src_set_caps(g.Instance(), (*C.GstCaps)(unsafe.Pointer(caps.Instance())))) -} - -// SetDoTimestamp configures src to automatically timestamp outgoing buffers based on the current running_time of the pipeline. -// This property is mostly useful for live sources. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetDoTimestamp(doTimestamp bool) { - C.gst_base_src_set_do_timestamp(g.Instance(), gboolean(doTimestamp)) -} - -// SetDynamicSize sets if the size is dynamic for this source. -// -// If not dynamic, size is only updated when needed, such as when trying to read past current tracked size. Otherwise, size is -// checked for upon each read. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetDynamicSize(dynamic bool) { - C.gst_base_src_set_dynamic_size(g.Instance(), gboolean(dynamic)) -} - -// SetFormat sets the default format of the source. This will be the format used for sending -// SEGMENT events and for performing seeks. -// -// If a format of gst.FormatBytes is set, the element will be able to operate in pull mode if the -// IsSeekable returns TRUE. -// -// This function must only be called in when the element is paused. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetFormat(format gst.Format) { - C.gst_base_src_set_format(g.Instance(), C.GstFormat(format)) -} - -// SetLive sets if the element listens to a live source. -// -// A live source will not produce data in the PAUSED state and will therefore not be able to participate in the -// PREROLL phase of a pipeline. To signal this fact to the application and the pipeline, the state change return -// value of the live source will be gst.StateChangeNoPreroll. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SetLive(live bool) { C.gst_base_src_set_live(g.Instance(), gboolean(live)) } - -// StartComplete completes an asynchronous start operation. When the subclass overrides the start method, -// it should call StartComplete when the start operation completes either from the same thread or from an -// asynchronous helper thread. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) StartComplete(ret gst.FlowReturn) { - C.gst_base_src_start_complete(g.Instance(), C.GstFlowReturn(ret)) -} - -// StartWait waits until the start operation is complete. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) StartWait() gst.FlowReturn { - return gst.FlowReturn(C.gst_base_src_start_wait(g.Instance())) -} - -// SubmitBufferList submits a list of buffers to the source. -// -// Subclasses can call this from their create virtual method implementation to submit a buffer list to be pushed out -// later. This is useful in cases where the create function wants to produce multiple buffers to be pushed out in one -// go in form of a GstBufferList, which can reduce overhead drastically, especially for packetised inputs (for data -// streams where the packetisation/chunking is not important it is usually more efficient to return larger buffers instead). -// -// Subclasses that use this function from their create function must return GST_FLOW_OK and no buffer from their create -// virtual method implementation. If a buffer is returned after a buffer list has also been submitted via this function the -// behavior is undefined. -// -// Subclasses must only call this function once per create function call and subclasses must only call this function when -// the source operates in push mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) SubmitBufferList(bufferList *gst.BufferList) { - C.gst_base_src_submit_buffer_list(g.Instance(), (*C.GstBufferList)(unsafe.Pointer(bufferList.Instance()))) -} - -// WaitPlaying will block until a state change to PLAYING happens (in which case this function returns gst.FlowOK) or the -// processing must be stopped due to a state change to READY or a FLUSH event (in which case this function returns GST_FLOW_FLUSHING). -// -// If the Create() method performs its own synchronization against the clock it must unblock when going from PLAYING to the PAUSED -// state and call this method before continuing to produce the remaining data. -// -// gst.FlowOK will be returned if the source is PLAYING and processing can continue. Any other return value should be -// returned from the Create() vmethod. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseSrc) WaitPlaying() gst.FlowReturn { - return gst.FlowReturn(C.gst_base_src_wait_playing(g.Instance())) -} diff --git a/gst/base/gst_base_src_exports.go b/gst/base/gst_base_src_exports.go deleted file mode 100644 index f23d92c..0000000 --- a/gst/base/gst_base_src_exports.go +++ /dev/null @@ -1,336 +0,0 @@ -package base - -//#include "gst.go.h" -import "C" - -import ( - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -//export goGstBaseSrcGetCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcGetCaps(src *C.GstBaseSrc, filter *C.GstCaps) *C.GstCaps { - var caps *gst.Caps - - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - GetCaps(*GstBaseSrc, *gst.Caps) *gst.Caps - }) - caps = iface.GetCaps(goBaseSrc, gst.ToGstCaps(unsafe.Pointer(filter))) - - if caps == nil { - return nil - } - return (*C.GstCaps)(unsafe.Pointer(caps.Instance())) -} - -//export goGstBaseSrcNegotiate -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcNegotiate(src *C.GstBaseSrc) C.gboolean { - var ret bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Negotiate(*GstBaseSrc) bool - }) - ret = iface.Negotiate(goBaseSrc) - - return gboolean(ret) -} - -//export goGstBaseSrcFixate -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcFixate(src *C.GstBaseSrc, filter *C.GstCaps) *C.GstCaps { - var caps *gst.Caps - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Fixate(*GstBaseSrc, *gst.Caps) *gst.Caps - }) - caps = iface.Fixate(goBaseSrc, gst.ToGstCaps(unsafe.Pointer(filter))) - - if caps == nil { - return nil - } - return (*C.GstCaps)(unsafe.Pointer(caps.Instance())) -} - -//export goGstBaseSrcSetCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcSetCaps(src *C.GstBaseSrc, caps *C.GstCaps) C.gboolean { - var ret bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - SetCaps(*GstBaseSrc, *gst.Caps) bool - }) - ret = iface.SetCaps(goBaseSrc, gst.ToGstCaps(unsafe.Pointer(caps))) - - return gboolean(ret) -} - -//export goGstBaseSrcDecideAllocation -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcDecideAllocation(src *C.GstBaseSrc, query *C.GstQuery) C.gboolean { - var ret bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - DecideAllocation(*GstBaseSrc, *gst.Query) bool - }) - ret = iface.DecideAllocation(goBaseSrc, gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ret) -} - -//export goGstBaseSrcStart -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcStart(src *C.GstBaseSrc) C.gboolean { - var ret bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Start(*GstBaseSrc) bool - }) - ret = iface.Start(goBaseSrc) - - return gboolean(ret) -} - -//export goGstBaseSrcStop -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcStop(src *C.GstBaseSrc) C.gboolean { - var ret bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Stop(*GstBaseSrc) bool - }) - ret = iface.Stop(goBaseSrc) - - return gboolean(ret) -} - -//export goGstBaseSrcGetTimes -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcGetTimes(src *C.GstBaseSrc, buf *C.GstBuffer, start *C.GstClockTime, end *C.GstClockTime) { - var gostart, goend time.Duration - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - GetTimes(*GstBaseSrc, *gst.Buffer) (start, end time.Duration) // should this be a ClockTime? - }) - gostart, goend = iface.GetTimes(goBaseSrc, gst.ToGstBuffer(unsafe.Pointer(buf))) - - *start = C.GstClockTime(gostart.Nanoseconds()) - *end = C.GstClockTime(goend.Nanoseconds()) -} - -//export goGstBaseSrcGetSize -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcGetSize(src *C.GstBaseSrc, size *C.guint64) C.gboolean { - var gosize int64 - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - GetSize(*GstBaseSrc) (bool, int64) - }) - ok, gosize = iface.GetSize(goBaseSrc) - - if ok { - *size = C.guint64(gosize) - } - return gboolean(ok) -} - -//export goGstBaseSrcIsSeekable -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcIsSeekable(src *C.GstBaseSrc) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - IsSeekable(*GstBaseSrc) bool - }) - ok = iface.IsSeekable(goBaseSrc) - - return gboolean(ok) -} - -//export goGstBaseSrcPrepareSeekSegment -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcPrepareSeekSegment(src *C.GstBaseSrc, seek *C.GstEvent, segment *C.GstSegment) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - PrepareSeekSegment(*GstBaseSrc, *gst.Event, *gst.Segment) bool - }) - ok = iface.PrepareSeekSegment(goBaseSrc, gst.ToGstEvent(unsafe.Pointer(seek)), gst.FromGstSegmentUnsafe(unsafe.Pointer(segment))) - - return gboolean(ok) -} - -//export goGstBaseSrcDoSeek -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcDoSeek(src *C.GstBaseSrc, segment *C.GstSegment) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - DoSeek(*GstBaseSrc, *gst.Segment) bool - }) - ok = iface.DoSeek(goBaseSrc, gst.ToGstSegment(unsafe.Pointer(segment))) - - return gboolean(ok) -} - -//export goGstBaseSrcUnlock -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcUnlock(src *C.GstBaseSrc) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Unlock(*GstBaseSrc) bool - }) - ok = iface.Unlock(goBaseSrc) - - return gboolean(ok) -} - -//export goGstBaseSrcUnlockStop -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcUnlockStop(src *C.GstBaseSrc) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - UnlockStop(*GstBaseSrc) bool - }) - ok = iface.UnlockStop(goBaseSrc) - - return gboolean(ok) -} - -//export goGstBaseSrcQuery -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcQuery(src *C.GstBaseSrc, query *C.GstQuery) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Query(*GstBaseSrc, *gst.Query) bool - }) - ok = iface.Query(goBaseSrc, gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ok) -} - -//export goGstBaseSrcEvent -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcEvent(src *C.GstBaseSrc, event *C.GstEvent) C.gboolean { - var ok bool - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Event(*GstBaseSrc, *gst.Event) bool - }) - ok = iface.Event(goBaseSrc, gst.ToGstEvent(unsafe.Pointer(event))) - - return gboolean(ok) -} - -//export goGstBaseSrcCreate -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcCreate(src *C.GstBaseSrc, offset C.guint64, size C.guint, buf **C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - var gobuf *gst.Buffer - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Create(*GstBaseSrc, uint64, uint) (gst.FlowReturn, *gst.Buffer) - }) - ret, gobuf = iface.Create(goBaseSrc, uint64(offset), uint(size)) - - if ret == gst.FlowOK { - C.memcpy(unsafe.Pointer(*buf), unsafe.Pointer(gobuf.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstBaseSrcAlloc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcAlloc(src *C.GstBaseSrc, offset C.guint64, size C.guint, buf **C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - var gobuf *gst.Buffer - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Alloc(*GstBaseSrc, uint64, uint) (gst.FlowReturn, *gst.Buffer) - }) - ret, gobuf = iface.Alloc(goBaseSrc, uint64(offset), uint(size)) - - if ret == gst.FlowOK { - C.memcpy(unsafe.Pointer(*buf), unsafe.Pointer(gobuf.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstBaseSrcFill -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseSrcFill(src *C.GstBaseSrc, offset C.guint64, size C.guint, buf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseSrc := ToGstBaseSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Fill(*GstBaseSrc, uint64, uint, *gst.Buffer) gst.FlowReturn - }) - ret = iface.Fill(goBaseSrc, uint64(offset), uint(size), gst.ToGstBuffer(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} diff --git a/gst/base/gst_base_src_impl.go b/gst/base/gst_base_src_impl.go deleted file mode 100644 index 75d82b1..0000000 --- a/gst/base/gst_base_src_impl.go +++ /dev/null @@ -1,249 +0,0 @@ -package base - -/* -#include "gst.go.h" - -extern GstCaps * goGstBaseSrcGetCaps (GstBaseSrc * src, GstCaps * caps); -extern gboolean goGstBaseSrcNegotiate (GstBaseSrc * src); -extern GstCaps * goGstBaseSrcFixate (GstBaseSrc * src, GstCaps * caps); -extern gboolean goGstBaseSrcSetCaps (GstBaseSrc * src, GstCaps * filter); -extern gboolean goGstBaseSrcDecideAllocation (GstBaseSrc * src, GstQuery * query); -extern gboolean goGstBaseSrcStart (GstBaseSrc * src); -extern gboolean goGstBaseSrcStop (GstBaseSrc * src); -extern void goGstBaseSrcGetTimes (GstBaseSrc * src, GstBuffer * buffer, GstClockTime * start, GstClockTime * end); -extern gboolean goGstBaseSrcGetSize (GstBaseSrc * src, guint64 * size); -extern gboolean goGstBaseSrcIsSeekable (GstBaseSrc * src); -extern gboolean goGstBaseSrcPrepareSeekSegment (GstBaseSrc * src, GstEvent * seek, GstSegment * segment); -extern gboolean goGstBaseSrcDoSeek (GstBaseSrc * src, GstSegment * segment); -extern gboolean goGstBaseSrcUnlock (GstBaseSrc * src); -extern gboolean goGstBaseSrcUnlockStop (GstBaseSrc * src); -extern gboolean goGstBaseSrcQuery (GstBaseSrc * src, GstQuery * query); -extern gboolean goGstBaseSrcEvent (GstBaseSrc * src, GstEvent * event); -extern GstFlowReturn goGstBaseSrcCreate (GstBaseSrc * src, guint64 offset, guint size, GstBuffer ** buffer); -extern GstFlowReturn goGstBaseSrcAlloc (GstBaseSrc * src, guint64 offset, guint size, GstBuffer ** buffer); -extern GstFlowReturn goGstBaseSrcFill (GstBaseSrc * src, guint64 offset, guint size, GstBuffer * buffer); - - -void setGstBaseSrcGetCaps (GstBaseSrcClass * klass) { klass->get_caps = goGstBaseSrcGetCaps; } -void setGstBaseSrcNegotiate (GstBaseSrcClass * klass) { klass->negotiate = goGstBaseSrcNegotiate; } -void setGstBaseSrcFixate (GstBaseSrcClass * klass) { klass->fixate = goGstBaseSrcFixate; } -void setGstBaseSrcSetCaps (GstBaseSrcClass * klass) { klass->set_caps = goGstBaseSrcSetCaps; } -void setGstBaseSrcDecideAllocation (GstBaseSrcClass * klass) { klass->decide_allocation = goGstBaseSrcDecideAllocation; } -void setGstBaseSrcStart (GstBaseSrcClass * klass) { klass->start = goGstBaseSrcStart; } -void setGstBaseSrcStop (GstBaseSrcClass * klass) { klass->stop = goGstBaseSrcStop; } -void setGstBaseSrcGetTimes (GstBaseSrcClass * klass) { klass->get_times = goGstBaseSrcGetTimes; } -void setGstBaseSrcGetSize (GstBaseSrcClass * klass) { klass->get_size = goGstBaseSrcGetSize; } -void setGstBaseSrcIsSeekable (GstBaseSrcClass * klass) { klass->is_seekable = goGstBaseSrcIsSeekable; } -void setGstBaseSrcPrepareSeekSegment (GstBaseSrcClass * klass) { klass->prepare_seek_segment = goGstBaseSrcPrepareSeekSegment; } -void setGstBaseSrcDoSeek (GstBaseSrcClass * klass) { klass->do_seek = goGstBaseSrcDoSeek; } -void setGstBaseSrcUnlock (GstBaseSrcClass * klass) { klass->unlock = goGstBaseSrcUnlock; } -void setGstBaseSrcUnlockStop (GstBaseSrcClass * klass) { klass->unlock_stop = goGstBaseSrcUnlockStop; } -void setGstBaseSrcQuery (GstBaseSrcClass * klass) { klass->query = goGstBaseSrcQuery; } -void setGstBaseSrcEvent (GstBaseSrcClass * klass) { klass->event = goGstBaseSrcEvent; } -void setGstBaseSrcCreate (GstBaseSrcClass * klass) { klass->create = goGstBaseSrcCreate; } -void setGstBaseSrcAlloc (GstBaseSrcClass * klass) { klass->alloc = goGstBaseSrcAlloc; } -void setGstBaseSrcFill (GstBaseSrcClass * klass) { klass->fill = goGstBaseSrcFill; } - -*/ -import "C" - -import ( - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -var ( - // ExtendsBaseSrc is an Extendable for extending a GstBaseSrc - ExtendsBaseSrc glib.Extendable = &extendsBaseSrc{parent: gst.ExtendsElement} -) - -// GstBaseSrcImpl is the documented interface for an element extending a GstBaseSrc. It does not have to -// be implemented in it's entirety. Each of the methods it declares will be checked for their presence -// in the initializing object, and if the object declares an override it will replace the default -// implementation in the virtual methods. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type GstBaseSrcImpl interface { - // GetCaps retrieves the caps for this class. - GetCaps(*GstBaseSrc, *gst.Caps) *gst.Caps - // Negotiate decides on the caps for this source. - Negotiate(*GstBaseSrc) bool - // Fixate is called if, during negotiation, caps need fixating. - Fixate(*GstBaseSrc, *gst.Caps) *gst.Caps - // SetCaps is used to notify this class of new caps. - SetCaps(*GstBaseSrc, *gst.Caps) bool - // DecideAllocation sets up an allocation query. - DecideAllocation(*GstBaseSrc, *gst.Query) bool - // Start the source, ideal for opening resources. - Start(*GstBaseSrc) bool - // Stop the source, ideal for closing resources. - Stop(*GstBaseSrc) bool - // GetTimes should, given a buffer, return start and stop time when it should be pushed. - // The base class will sync on the clock using these times. - GetTimes(*GstBaseSrc, *gst.Buffer) (start, end time.Duration) // should this be a ClockTime? - // GetSize should get the total size of the resource in bytes. - GetSize(*GstBaseSrc) (bool, int64) - // IsSeekable should check if the resource is seekable. - IsSeekable(*GstBaseSrc) bool - // PrepareSeekSegment prepares the segment on which to perform DoSeek, converting to the - // current basesrc format. - PrepareSeekSegment(*GstBaseSrc, *gst.Event, *gst.Segment) bool - // DoSeek is used to notify subclasses of a seek. - DoSeek(*GstBaseSrc, *gst.Segment) bool - // Unlock should unlock any pending access to the resource. Subclasses should perform the unlock - // ASAP. - Unlock(*GstBaseSrc) bool - // UnlockStop should clear any pending unlock request, as we succeeded in unlocking. - UnlockStop(*GstBaseSrc) bool - // Query is used to notify subclasses of a query. - Query(*GstBaseSrc, *gst.Query) bool - // Event is used to notify subclasses of an event. - Event(*GstBaseSrc, *gst.Event) bool - // Create asks the subclass to create a buffer with offset and size. The default implementation - // will call alloc and fill. - Create(self *GstBaseSrc, offset uint64, size uint) (gst.FlowReturn, *gst.Buffer) - // Alloc asks the subclass to allocate an output buffer. The default implementation will use the negotiated - // allocator. - Alloc(self *GstBaseSrc, offset uint64, size uint) (gst.FlowReturn, *gst.Buffer) - // Fill asks the subclass to fill the buffer with data from offset and size. - Fill(self *GstBaseSrc, offset uint64, size uint, buffer *gst.Buffer) gst.FlowReturn -} - -type extendsBaseSrc struct{ parent glib.Extendable } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSrc) Type() glib.Type { return glib.Type(C.gst_base_src_get_type()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSrc) ClassSize() int64 { return int64(C.sizeof_GstBaseSrcClass) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSrc) InstanceSize() int64 { return int64(C.sizeof_GstBaseSrc) } - -// InitClass iterates the methods provided by the element and overrides any provided -// in the virtual methods. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseSrc) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) { - e.parent.InitClass(klass, elem) - - class := C.toGstBaseSrcClass(klass) - - if _, ok := elem.(interface { - GetCaps(*GstBaseSrc, *gst.Caps) *gst.Caps - }); ok { - C.setGstBaseSrcGetCaps(class) - } - - if _, ok := elem.(interface { - Negotiate(*GstBaseSrc) bool - }); ok { - C.setGstBaseSrcNegotiate(class) - } - - if _, ok := elem.(interface { - Fixate(*GstBaseSrc, *gst.Caps) *gst.Caps - }); ok { - C.setGstBaseSrcFixate(class) - } - - if _, ok := elem.(interface { - SetCaps(*GstBaseSrc, *gst.Caps) bool - }); ok { - C.setGstBaseSrcSetCaps(class) - } - - if _, ok := elem.(interface { - DecideAllocation(*GstBaseSrc, *gst.Query) bool - }); ok { - C.setGstBaseSrcDecideAllocation(class) - } - - if _, ok := elem.(interface { - Start(*GstBaseSrc) bool - }); ok { - C.setGstBaseSrcStart(class) - } - - if _, ok := elem.(interface { - Stop(*GstBaseSrc) bool - }); ok { - C.setGstBaseSrcStop(class) - } - - if _, ok := elem.(interface { - GetTimes(*GstBaseSrc, *gst.Buffer) (start, end time.Duration) // should this be a ClockTime? - }); ok { - C.setGstBaseSrcGetTimes(class) - } - - if _, ok := elem.(interface { - GetSize(*GstBaseSrc) (bool, int64) - }); ok { - C.setGstBaseSrcGetSize(class) - } - - if _, ok := elem.(interface { - IsSeekable(*GstBaseSrc) bool - }); ok { - C.setGstBaseSrcIsSeekable(class) - } - - if _, ok := elem.(interface { - PrepareSeekSegment(*GstBaseSrc, *gst.Event, *gst.Segment) bool - }); ok { - C.setGstBaseSrcPrepareSeekSegment(class) - } - - if _, ok := elem.(interface { - DoSeek(*GstBaseSrc, *gst.Segment) bool - }); ok { - C.setGstBaseSrcDoSeek(class) - } - - if _, ok := elem.(interface { - Unlock(*GstBaseSrc) bool - }); ok { - C.setGstBaseSrcUnlock(class) - } - - if _, ok := elem.(interface { - UnlockStop(*GstBaseSrc) bool - }); ok { - C.setGstBaseSrcUnlockStop(class) - } - - if _, ok := elem.(interface { - Query(*GstBaseSrc, *gst.Query) bool - }); ok { - C.setGstBaseSrcQuery(class) - } - - if _, ok := elem.(interface { - Event(*GstBaseSrc, *gst.Event) bool - }); ok { - C.setGstBaseSrcEvent(class) - } - - if _, ok := elem.(interface { - Create(self *GstBaseSrc, offset uint64, size uint) (gst.FlowReturn, *gst.Buffer) - }); ok { - C.setGstBaseSrcCreate(class) - } - - if _, ok := elem.(interface { - Alloc(self *GstBaseSrc, offset uint64, size uint) (gst.FlowReturn, *gst.Buffer) - }); ok { - C.setGstBaseSrcAlloc(class) - } - - if _, ok := elem.(interface { - Fill(self *GstBaseSrc, offset uint64, size uint, buffer *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseSrcFill(class) - } -} diff --git a/gst/base/gst_base_transform.go b/gst/base/gst_base_transform.go deleted file mode 100644 index c488bf6..0000000 --- a/gst/base/gst_base_transform.go +++ /dev/null @@ -1,390 +0,0 @@ -package base - -/* -#include "gst.go.h" - -void -setGstBaseTransformPassthroughOnSameCaps (GstBaseTransform * obj, gboolean enabled) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(obj)); - GstBaseTransformClass * klass = toGstBaseTransformClass(g_type_class_peek_parent(this_class)); - klass->passthrough_on_same_caps = enabled; -} - -void -setGstBaseTransformTransformIPOnPassthrough (GstBaseTransform * obj, gboolean enabled) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(obj)); - GstBaseTransformClass * klass = toGstBaseTransformClass(g_type_class_peek_parent(this_class)); - klass->transform_ip_on_passthrough = enabled; -} - -gboolean -gstBaseTransformParentSrcEvent (GstBaseTransform * obj, GstEvent * event) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(obj)); - GstBaseTransformClass * parent = toGstBaseTransformClass(g_type_class_peek_parent(this_class)); - return parent->src_event(obj, event); -} - -gboolean -gstBaseTransformParentSinkEvent (GstBaseTransform * obj, GstEvent * event) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(obj)); - GstBaseTransformClass * parent = toGstBaseTransformClass(g_type_class_peek_parent(this_class)); - return parent->sink_event(obj, event); -} -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// GstBaseTransformFlowDropped is a GstFlowReturn that can be returned from Transform() and TransformIP() -// to indicate that no output buffer was generated. -const GstBaseTransformFlowDropped gst.FlowReturn = C.GST_BASE_TRANSFORM_FLOW_DROPPED - -// GstBaseTransform represents a GstBaseTransform. -type GstBaseTransform struct{ *gst.Element } - -// ToGstBaseTransform returns a GstBaseTransform object for the given object. It will work on either gst.Object -// or glib.Object interfaces. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstBaseTransform(obj interface{}) *GstBaseTransform { - switch obj := obj.(type) { - case *gst.Object: - return &GstBaseTransform{&gst.Element{Object: obj}} - case *glib.Object: - return &GstBaseTransform{&gst.Element{Object: &gst.Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}}}} - } - return nil -} - -// Instance returns the underlying C GstBaseTransform instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) Instance() *C.GstBaseTransform { - return C.toGstBaseTransform(g.Unsafe()) -} - -// GetAllocator retrieves the memory allocator used by this base transform. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) GetAllocator() (*gst.Allocator, *gst.AllocationParams) { - var allocParams C.GstAllocationParams - var allocator *C.GstAllocator - C.gst_base_transform_get_allocator(g.Instance(), &allocator, &allocParams) - if allocator == nil { - return nil, nil - } - return gst.FromGstAllocatorUnsafeFull(unsafe.Pointer(allocator)), gst.FromGstAllocationParamsUnsafe(unsafe.Pointer(&allocParams)) -} - -// GetBufferPool returns the BufferPool used by this transform. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) GetBufferPool() *gst.BufferPool { - pool := C.gst_base_transform_get_buffer_pool(g.Instance()) - if pool == nil { - return nil - } - return gst.FromGstBufferPoolUnsafeFull(unsafe.Pointer(pool)) -} - -// IsInPlace returns if the transform is configured to do in-place transform. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) IsInPlace() bool { - return gobool(C.gst_base_transform_is_in_place(g.Instance())) -} - -// IsPassthrough returns if the transform is configured for passthrough. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) IsPassthrough() bool { - return gobool(C.gst_base_transform_is_passthrough(g.Instance())) -} - -// IsQoSEnabled queries if the transform will handle QoS. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) IsQoSEnabled() bool { - return gobool(C.gst_base_transform_is_qos_enabled(g.Instance())) -} - -// QueuedBuffer returns the currentl queued buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) QueuedBuffer() *gst.Buffer { - return gst.FromGstBufferUnsafeNone(unsafe.Pointer(g.Instance().queued_buf)) -} - -// SINCE 1.18 -// // Reconfigure negotiates src pad caps with downstream elements if the source pad is marked as needing -// // reconfiguring. Unmarks GST_PAD_FLAG_NEED_RECONFIGURE in any case. But marks it again if negotiation fails. -// // -// // Do not call this in the Transform() or TransformIP() vmethod. Call this in SubmitInputBuffer(), -// // PrepareOutputBuffer() or in GenerateOutput() before any output buffer is allocated. -// // -// // It will by default be called when handling an ALLOCATION query or at the very beginning of the default -// // SubmitInputBuffer() implementation. -// func (g *GstBaseTransform) Reconfigure() bool { -// return gobool(C.gst_base_transform_reconfigure(g.Instance())) -// } - -// ReconfigureSink instructs transform to request renegotiation upstream. This function is typically called -// after properties on the transform were set that influence the input format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ReconfigureSink() { C.gst_base_transform_reconfigure_sink(g.Instance()) } - -// ReconfigureSrc instructs trans to renegotiate a new downstream transform on the next buffer. This function -// is typically called after properties on the transform were set that influence the output format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ReconfigureSrc() { C.gst_base_transform_reconfigure_src(g.Instance()) } - -// SetGapAware configures how buffers are handled. If gapAware is FALSE (the default), output buffers will -// have the GST_BUFFER_FLAG_GAP flag unset. -// -// If set to TRUE, the element must handle output buffers with this flag set correctly, i.e. it can assume that -// the buffer contains neutral data but must unset the flag if the output is no neutral data. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetGapAware(gapAware bool) { - C.gst_base_transform_set_gap_aware(g.Instance(), gboolean(gapAware)) -} - -// SetInPlace determines whether a non-writable buffer will be copied before passing to the TransformIP function. -// This is always true if no Transform() function is implemented, and always false if ONLY a Transform() function -// is implemented. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetInPlace(inPlace bool) { - C.gst_base_transform_set_in_place(g.Instance(), gboolean(inPlace)) -} - -// SetPassthrough sets the default passthrough mode for this filter. The is mostly useful for filters that do not -// care about negotiation. This is always true for filters which don't implement either a Transform(), TransformIP(), -// or GenerateOutput() method. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetPassthrough(passthrough bool) { - C.gst_base_transform_set_passthrough(g.Instance(), gboolean(passthrough)) -} - -// SetPassthroughOnSameCaps when set to true will automatically enable passthrough if caps are the same. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetPassthroughOnSameCaps(passthrough bool) { - C.setGstBaseTransformPassthroughOnSameCaps(g.Instance(), gboolean(passthrough)) -} - -// SetPreferPassthrough sets whether passthrough is preferred. If preferPassthrough is TRUE (the default), trans -// will check and prefer passthrough caps from the list of caps returned by the TransformCaps() vmethod. -// -// If set to FALSE, the element must order the caps returned from the TransformCaps() function in such a way that -// the preferred format is first in the list. This can be interesting for transforms that can do passthrough -// transforms but prefer to do something else, like a capsfilter. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetPreferPassthrough(preferPassthrough bool) { - C.gst_base_transform_set_prefer_passthrough(g.Instance(), gboolean(preferPassthrough)) -} - -// SetQoSEnabled enables or disables QoS handling in the filter. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetQoSEnabled(enabled bool) { - C.gst_base_transform_set_qos_enabled(g.Instance(), gboolean(enabled)) -} - -// SetTransformIPOnPassthrough If set to TRUE, TransformIP() will be called in passthrough mode. The passed -// buffer might not be writable. When FALSE, neither Transform() nor TransformIP() will be called in passthrough -// mode. Set to TRUE by default. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SetTransformIPOnPassthrough(enabled bool) { - C.setGstBaseTransformTransformIPOnPassthrough(g.Instance(), gboolean(enabled)) -} - -// SinkPad returns the sink pad object for this element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SinkPad() *gst.Pad { - return gst.FromGstPadUnsafeNone(unsafe.Pointer(g.Instance().sinkpad)) -} - -// SrcPad returns the src pad object for this element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) SrcPad() *gst.Pad { - return gst.FromGstPadUnsafeNone(unsafe.Pointer(g.Instance().srcpad)) -} - -// UpdateQoS sets the QoS parameters in the transform. This function is called internally when a QOS event is received -// but subclasses can provide custom information when needed. -// -// proportion is the proportion, diff is the diff against the clock, and timestamp is the timestamp of the buffer -// generating the QoS expressed in running_time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) UpdateQoS(proportion float64, diff, timestamp gst.ClockTime) { - C.gst_base_transform_update_qos( - g.Instance(), - C.gdouble(proportion), - C.GstClockTimeDiff(diff), - C.GstClockTime(timestamp), - ) -} - -// UpdateSrcCaps updates the srcpad caps and sends the caps downstream. This function can be used by subclasses -// when they have already negotiated their caps but found a change in them (or computed new information). This -// way, they can notify downstream about that change without losing any buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) UpdateSrcCaps(caps *gst.Caps) { - C.gst_base_transform_update_src_caps( - g.Instance(), - (*C.GstCaps)(unsafe.Pointer(caps.Instance())), - ) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentAcceptCaps(direction gst.PadDirection, caps *gst.Caps) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentBeforeTransform(buffer *gst.Buffer) { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentCopyMetadata(input, output *gst.Buffer) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentDecideAllocation(query *gst.Query) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentFilterMeta(query *gst.Query, api glib.Type, params *gst.Structure) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentFixateCaps(directon gst.PadDirection, caps *gst.Caps, othercaps *gst.Caps) *gst.Caps { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentGenerateOutput(gst.FlowReturn, *gst.Buffer) { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentGetUnitSize(caps *gst.Caps) (ok bool, size int64) { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentPrepareOutputBuffer(input *gst.Buffer) (gst.FlowReturn, *gst.Buffer) { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentProposeAllocation(decideQuery, query *gst.Query) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentQuery(direction gst.PadDirection, query *gst.Query) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentSetCaps(incaps, outcaps *gst.Caps) bool { - panic("not implemented") -} - -// ParentSrcEvent chains the event up to the parent class -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentSrcEvent(event *gst.Event) bool { - return gobool(C.gstBaseTransformParentSrcEvent(g.Instance(), (*C.GstEvent)(unsafe.Pointer(event.Instance())))) -} - -// ParentSinkEvent chains the event up to the parent class -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentSinkEvent(event *gst.Event) bool { - return gobool(C.gstBaseTransformParentSinkEvent(g.Instance(), (*C.GstEvent)(unsafe.Pointer(event.Instance())))) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentStart(bool) { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentStop(bool) { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentSubmitInputBuffer(isDiscont bool, input *gst.Buffer) gst.FlowReturn { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentTransform(inbuf, outbuf *gst.Buffer) gst.FlowReturn { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentTransformCaps(direction gst.PadDirection, caps, filter *gst.Caps) *gst.Caps { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentTransformIP(buf *gst.Buffer) gst.FlowReturn { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentTransformMeta(outbuf *gst.Buffer, meta *gst.Meta, inbuf *gst.Buffer) bool { - panic("not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstBaseTransform) ParentTransformSize(direction gst.PadDirection, caps *gst.Caps, size int64, othercaps *gst.Caps) (ok bool, othersize int64) { - panic("not implemented") -} diff --git a/gst/base/gst_base_transform_exports.go b/gst/base/gst_base_transform_exports.go deleted file mode 100644 index c933075..0000000 --- a/gst/base/gst_base_transform_exports.go +++ /dev/null @@ -1,386 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -//export goGstBaseTransformAcceptCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformAcceptCaps(self *C.GstBaseTransform, direction C.GstPadDirection, caps *C.GstCaps) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - AcceptCaps(*GstBaseTransform, gst.PadDirection, *gst.Caps) bool - }) - ret = iface.AcceptCaps(goBaseT, gst.PadDirection(direction), gst.ToGstCaps(unsafe.Pointer(caps))) - - return gboolean(ret) -} - -//export goGstBaseTransformBeforeTransform -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformBeforeTransform(self *C.GstBaseTransform, buffer *C.GstBuffer) { - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - BeforeTransform(*GstBaseTransform, *gst.Buffer) - }) - iface.BeforeTransform(goBaseT, gst.ToGstBuffer(unsafe.Pointer(buffer))) -} - -//export goGstBaseTransformCopyMetadata -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformCopyMetadata(self *C.GstBaseTransform, input, output *C.GstBuffer) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - CopyMetadata(self *GstBaseTransform, input, output *gst.Buffer) bool - }) - ret = iface.CopyMetadata(goBaseT, gst.ToGstBuffer(unsafe.Pointer(input)), gst.ToGstBuffer(unsafe.Pointer(output))) - return gboolean(ret) -} - -//export goGstBaseTransformDecideAllocation -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformDecideAllocation(self *C.GstBaseTransform, query *C.GstQuery) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - DecideAllocation(self *GstBaseTransform, query *gst.Query) bool - }) - ret = iface.DecideAllocation(goBaseT, gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ret) -} - -//export goGstBaseTransformFilterMeta -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformFilterMeta(self *C.GstBaseTransform, query *C.GstQuery, api C.GType, params *C.GstStructure) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - FilterMeta(self *GstBaseTransform, query *gst.Query, api glib.Type, params *gst.Structure) bool - }) - ret = iface.FilterMeta(goBaseT, gst.ToGstQuery(unsafe.Pointer(query)), glib.Type(api), gst.FromGstStructureUnsafe(unsafe.Pointer(params))) - - return gboolean(ret) -} - -//export goGstBaseTransformFixateCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformFixateCaps(self *C.GstBaseTransform, direction C.GstPadDirection, caps, othercaps *C.GstCaps) *C.GstCaps { - var ret *gst.Caps - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - FixateCaps(self *GstBaseTransform, directon gst.PadDirection, caps *gst.Caps, othercaps *gst.Caps) *gst.Caps - }) - ret = iface.FixateCaps(goBaseT, gst.PadDirection(direction), gst.ToGstCaps(unsafe.Pointer(caps)), gst.ToGstCaps(unsafe.Pointer(othercaps))) - - if ret == nil { - return nil - } - return (*C.GstCaps)(unsafe.Pointer(ret.Instance())) -} - -//export goGstBaseTransformGenerateOutput -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformGenerateOutput(self *C.GstBaseTransform, buf **C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - var out *gst.Buffer - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - GenerateOutput(self *GstBaseTransform) (gst.FlowReturn, *gst.Buffer) - }) - ret, out = iface.GenerateOutput(goBaseT) - - if out != nil { - C.memcpy(unsafe.Pointer(*buf), unsafe.Pointer(out.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstBaseTransformGetUnitSize -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformGetUnitSize(self *C.GstBaseTransform, caps *C.GstCaps, size *C.gsize) C.gboolean { - var ret bool - var out int64 - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - GetUnitSize(self *GstBaseTransform, caps *gst.Caps) (ok bool, size int64) - }) - ret, out = iface.GetUnitSize(goBaseT, gst.ToGstCaps(unsafe.Pointer(caps))) - - if ret { - *size = C.gsize(out) - } - return gboolean(ret) -} - -//export goGstBaseTransformPrepareOutputBuffer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformPrepareOutputBuffer(self *C.GstBaseTransform, input *C.GstBuffer, outbuf **C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - var out *gst.Buffer - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - PrepareOutputBuffer(self *GstBaseTransform, input *gst.Buffer) (gst.FlowReturn, *gst.Buffer) - }) - ret, out = iface.PrepareOutputBuffer(goBaseT, gst.ToGstBuffer(unsafe.Pointer(input))) - - if out != nil { - C.memcpy(unsafe.Pointer(*outbuf), unsafe.Pointer(out.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstBaseTransformProposeAllocation -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformProposeAllocation(self *C.GstBaseTransform, decide, query *C.GstQuery) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - ProposeAllocation(self *GstBaseTransform, decideQuery, query *gst.Query) bool - }) - ret = iface.ProposeAllocation(goBaseT, gst.ToGstQuery(unsafe.Pointer(decide)), gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ret) -} - -//export goGstBaseTransformQuery -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformQuery(self *C.GstBaseTransform, direction C.GstPadDirection, query *C.GstQuery) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - Query(self *GstBaseTransform, direction gst.PadDirection, query *gst.Query) bool - }) - ret = iface.Query(goBaseT, gst.PadDirection(direction), gst.ToGstQuery(unsafe.Pointer(query))) - - return gboolean(ret) -} - -//export goGstBaseTransformSetCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformSetCaps(self *C.GstBaseTransform, incaps, outcaps *C.GstCaps) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - SetCaps(self *GstBaseTransform, incaps, outcaps *gst.Caps) bool - }) - ret = iface.SetCaps(goBaseT, gst.ToGstCaps(unsafe.Pointer(incaps)), gst.ToGstCaps(unsafe.Pointer(outcaps))) - - return gboolean(ret) -} - -//export goGstBaseTransformSinkEvent -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformSinkEvent(self *C.GstBaseTransform, event *C.GstEvent) C.gboolean { - var ret bool - - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - SinkEvent(self *GstBaseTransform, event *gst.Event) bool - }) - - ret = iface.SinkEvent(goBaseT, gst.ToGstEvent(unsafe.Pointer(event))) - - return gboolean(ret) -} - -//export goGstBaseTransformSrcEvent -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformSrcEvent(self *C.GstBaseTransform, event *C.GstEvent) C.gboolean { - var ret bool - - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - SrcEvent(self *GstBaseTransform, event *gst.Event) bool - }) - ret = iface.SrcEvent(goBaseT, gst.ToGstEvent(unsafe.Pointer(event))) - - return gboolean(ret) -} - -//export goGstBaseTransformStart -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformStart(self *C.GstBaseTransform) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - Start(self *GstBaseTransform) bool - }) - ret = iface.Start(goBaseT) - - return gboolean(ret) -} - -//export goGstBaseTransformStop -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformStop(self *C.GstBaseTransform) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - Stop(self *GstBaseTransform) bool - }) - ret = iface.Stop(goBaseT) - - return gboolean(ret) -} - -//export goGstBaseTransformSubmitInputBuffer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformSubmitInputBuffer(self *C.GstBaseTransform, isDiscont C.gboolean, input *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - SubmitInputBuffer(self *GstBaseTransform, isDiscont bool, input *gst.Buffer) gst.FlowReturn - }) - ret = iface.SubmitInputBuffer(goBaseT, gobool(isDiscont), gst.ToGstBuffer(unsafe.Pointer(input))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseTransformTransform -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformTransform(self *C.GstBaseTransform, inbuf, outbuf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - Transform(self *GstBaseTransform, inbuf, outbuf *gst.Buffer) gst.FlowReturn - }) - ret = iface.Transform(goBaseT, gst.ToGstBuffer(unsafe.Pointer(inbuf)), gst.ToGstBuffer(unsafe.Pointer(outbuf))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseTransformTransformCaps -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformTransformCaps(self *C.GstBaseTransform, direction C.GstPadDirection, caps, filter *C.GstCaps) *C.GstCaps { - var ret *gst.Caps - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - TransformCaps(self *GstBaseTransform, direction gst.PadDirection, caps, filter *gst.Caps) *gst.Caps - }) - ret = iface.TransformCaps(goBaseT, gst.PadDirection(direction), gst.ToGstCaps(unsafe.Pointer(caps)), gst.ToGstCaps(unsafe.Pointer(filter))) - - if ret == nil { - return nil - } - return (*C.GstCaps)(unsafe.Pointer(ret.Instance())) -} - -//export goGstBaseTransformTransformIP -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformTransformIP(self *C.GstBaseTransform, buf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - TransformIP(self *GstBaseTransform, buf *gst.Buffer) gst.FlowReturn - }) - ret = iface.TransformIP(goBaseT, gst.ToGstBuffer(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} - -//export goGstBaseTransformTransformMeta -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformTransformMeta(self *C.GstBaseTransform, outbuf *C.GstBuffer, meta *C.GstMeta, inbuf *C.GstBuffer) C.gboolean { - var ret bool - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - TransformMeta(self *GstBaseTransform, outbuf *gst.Buffer, meta *gst.Meta, inbuf *gst.Buffer) bool - }) - ret = iface.TransformMeta(goBaseT, gst.ToGstBuffer(unsafe.Pointer(outbuf)), gst.FromGstMetaUnsafe(unsafe.Pointer(meta)), gst.ToGstBuffer(unsafe.Pointer(inbuf))) - - return gboolean(ret) -} - -//export goGstBaseTransformTransformSize -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBaseTransformTransformSize(self *C.GstBaseTransform, direction C.GstPadDirection, caps *C.GstCaps, size C.gsize, othercaps *C.GstCaps, outsize *C.gsize) C.gboolean { - var ret bool - var othersize int64 - goBaseT := ToGstBaseTransform(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(self))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(self)) - - iface := subclass.(interface { - TransformSize(self *GstBaseTransform, direction gst.PadDirection, caps *gst.Caps, size int64, othercaps *gst.Caps) (ok bool, othersize int64) - }) - ret, othersize = iface.TransformSize(goBaseT, gst.PadDirection(direction), gst.ToGstCaps(unsafe.Pointer(caps)), int64(size), gst.ToGstCaps(unsafe.Pointer(othercaps))) - - if ret { - *outsize = C.gsize(othersize) - } - return gboolean(ret) -} diff --git a/gst/base/gst_base_transform_impl.go b/gst/base/gst_base_transform_impl.go deleted file mode 100644 index 3e6ff6f..0000000 --- a/gst/base/gst_base_transform_impl.go +++ /dev/null @@ -1,307 +0,0 @@ -package base - -/* -#include "gst.go.h" - -extern gboolean goGstBaseTransformAcceptCaps (GstBaseTransform * self, GstPadDirection direction, GstCaps * caps); -extern void goGstBaseTransformBeforeTransform (GstBaseTransform * self, GstBuffer * buffer); -extern gboolean goGstBaseTransformCopyMetadata (GstBaseTransform * self, GstBuffer * input, GstBuffer * output); -extern gboolean goGstBaseTransformDecideAllocation (GstBaseTransform * self, GstQuery * query); -extern gboolean goGstBaseTransformFilterMeta (GstBaseTransform * self, GstQuery * query, GType api, const GstStructure * params); -extern GstCaps * goGstBaseTransformFixateCaps (GstBaseTransform * self, GstPadDirection direction, GstCaps * caps, GstCaps * othercaps); -extern GstFlowReturn goGstBaseTransformGenerateOutput (GstBaseTransform * self, GstBuffer ** buf); -extern gboolean goGstBaseTransformGetUnitSize (GstBaseTransform * self, GstCaps * caps, gsize * size); -extern GstFlowReturn goGstBaseTransformPrepareOutputBuffer (GstBaseTransform * self, GstBuffer * input, GstBuffer ** output); -extern gboolean goGstBaseTransformProposeAllocation (GstBaseTransform * self, GstQuery * decide, GstQuery * query); -extern gboolean goGstBaseTransformQuery (GstBaseTransform * self, GstPadDirection direction, GstQuery * query); -extern gboolean goGstBaseTransformSetCaps (GstBaseTransform * self, GstCaps * incaps, GstCaps * outcaps); -extern gboolean goGstBaseTransformSinkEvent (GstBaseTransform * self, GstEvent * event); -extern gboolean goGstBaseTransformSrcEvent (GstBaseTransform * self, GstEvent * event); -extern gboolean goGstBaseTransformStart (GstBaseTransform * self); -extern gboolean goGstBaseTransformStop (GstBaseTransform * self); -extern GstFlowReturn goGstBaseTransformSubmitInputBuffer (GstBaseTransform * self, gboolean discont, GstBuffer * input); -extern GstFlowReturn goGstBaseTransformTransform (GstBaseTransform * self, GstBuffer * inbuf, GstBuffer * outbuf); -extern GstCaps * goGstBaseTransformTransformCaps (GstBaseTransform * self, GstPadDirection direction, GstCaps * caps, GstCaps * filter); -extern GstFlowReturn goGstBaseTransformTransformIP (GstBaseTransform * self, GstBuffer * buffer); -extern gboolean goGstBaseTransformTransformMeta (GstBaseTransform * self, GstBuffer * outbuf, GstMeta * meta, GstBuffer * inbuf); -extern gboolean goGstBaseTransformTransformSize (GstBaseTransform * self, GstPadDirection direction, GstCaps * caps, gsize size, GstCaps * othercaps, gsize * othersize); - -void setGstBaseTransformAcceptCaps (GstBaseTransformClass * klass) { klass->accept_caps = goGstBaseTransformAcceptCaps; } -void setGstBaseTransformBeforeTransform (GstBaseTransformClass * klass) { klass->before_transform = goGstBaseTransformBeforeTransform; } -void setGstBaseTransformCopyMetadata (GstBaseTransformClass * klass) { klass->copy_metadata = goGstBaseTransformCopyMetadata; } -void setGstBaseTransformDecideAllocation (GstBaseTransformClass * klass) { klass->decide_allocation = goGstBaseTransformDecideAllocation; } -void setGstBaseTransformFilterMeta (GstBaseTransformClass * klass) { klass->filter_meta = goGstBaseTransformFilterMeta; } -void setGstBaseTransformFixateCaps (GstBaseTransformClass * klass) { klass->fixate_caps = goGstBaseTransformFixateCaps; } -void setGstBaseTransformGenerateOutput (GstBaseTransformClass * klass) { klass->generate_output = goGstBaseTransformGenerateOutput; } -void setGstBaseTransformGetUnitSize (GstBaseTransformClass * klass) { klass->get_unit_size = goGstBaseTransformGetUnitSize; } -void setGstBaseTransformPrepareOutputBuffer (GstBaseTransformClass * klass) { klass->prepare_output_buffer = goGstBaseTransformPrepareOutputBuffer; } -void setGstBaseTransformProposeAllocation (GstBaseTransformClass * klass) { klass->propose_allocation = goGstBaseTransformProposeAllocation; } -void setGstBaseTransformQuery (GstBaseTransformClass * klass) { klass->query = goGstBaseTransformQuery; } -void setGstBaseTransformSetCaps (GstBaseTransformClass * klass) { klass->set_caps = goGstBaseTransformSetCaps; } -void setGstBaseTransformSinkEvent (GstBaseTransformClass * klass) { klass->sink_event = goGstBaseTransformSinkEvent; } -void setGstBaseTransformSrcEvent (GstBaseTransformClass * klass) { klass->src_event = goGstBaseTransformSrcEvent; } -void setGstBaseTransformStart (GstBaseTransformClass * klass) { klass->start = goGstBaseTransformStart; } -void setGstBaseTransformStop (GstBaseTransformClass * klass) { klass->stop = goGstBaseTransformStop; } -void setGstBaseTransformSubmitInputBuffer (GstBaseTransformClass * klass) { klass->submit_input_buffer = goGstBaseTransformSubmitInputBuffer; } -void setGstBaseTransformTransform (GstBaseTransformClass * klass) { klass->transform = goGstBaseTransformTransform; } -void setGstBaseTransformTransformCaps (GstBaseTransformClass * klass) { klass->transform_caps = goGstBaseTransformTransformCaps; } -void setGstBaseTransformTransformIP (GstBaseTransformClass * klass) { klass->transform_ip = goGstBaseTransformTransformIP; } -void setGstBaseTransformTransformMeta (GstBaseTransformClass * klass) { klass->transform_meta = goGstBaseTransformTransformMeta; } -void setGstBaseTransformTransformSize (GstBaseTransformClass * klass) { klass->transform_size = goGstBaseTransformTransformSize; } - -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -var ( - // ExtendsBaseTransform is an Extendable for extending a GstBaseTransform - ExtendsBaseTransform glib.Extendable = &extendsBaseTransform{parent: gst.ExtendsElement} -) - -// GstBaseTransformImpl is the interface for an element extending a GstBaseTransform. -// Subclasses can override any of the available virtual methods or not, as needed. At minimum either -// Transform or TransformIP need to be overridden. If the element can overwrite the input data with -// the results (data is of the same type and quantity) it should provide TransformIP. -// -// For more information: -// https://gstreamer.freedesktop.org/documentation/base/gstbasetransform.html?gi-language=c -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type GstBaseTransformImpl interface { - // Optional. Subclasses can override this method to check if caps can be handled by the element. - // The default implementation might not be the most optimal way to check this in all cases. - AcceptCaps(self *GstBaseTransform, direction gst.PadDirection, caps *gst.Caps) bool - // Optional. This method is called right before the base class will start processing. Dynamic - // properties or other delayed configuration could be performed in this method. - BeforeTransform(self *GstBaseTransform, buffer *gst.Buffer) - // Optional. Copy the metadata from the input buffer to the output buffer. The default implementation - // will copy the flags, timestamps and offsets of the buffer. - CopyMetadata(self *GstBaseTransform, input, output *gst.Buffer) bool - // Setup the allocation parameters for allocating output buffers. The passed in query contains the - // result of the downstream allocation query. This function is only called when not operating in - // passthrough mode. The default implementation will remove all memory dependent metadata. If there is - // a FilterMeta method implementation, it will be called for all metadata API in the downstream query, - // otherwise the metadata API is removed. - DecideAllocation(self *GstBaseTransform, query *gst.Query) bool - // Return TRUE if the metadata API should be proposed in the upstream allocation query. The default - // implementation is NULL and will cause all metadata to be removed. - FilterMeta(self *GstBaseTransform, query *gst.Query, api glib.Type, params *gst.Structure) bool - // Optional. Given the pad in this direction and the given caps, fixate the caps on the other pad. - // The function returns a fixated version of othercaps. othercaps itself is not guaranteed to be writable - // and the bindings will Unref them after the callback is complete. So if you want to return othercaps - // with small modifications, take a copy first with Caps.Copy(), otherwise return a Ref(). - FixateCaps(self *GstBaseTransform, directon gst.PadDirection, caps *gst.Caps, othercaps *gst.Caps) *gst.Caps - // Called after each new input buffer is submitted repeatedly until it either generates an error or fails to - // generate an output buffer. The default implementation takes the contents of the queued_buf variable, - // generates an output buffer if needed by calling the class PrepareOutputBuffer, and then calls either - // Transform() or TransformIP(). Elements that don't do 1-to-1 transformations of input to output buffers can - // either return GstBaseTransformFlowDropped or simply not generate an output buffer until they are ready to do - // so. (Since: 1.6) - GenerateOutput(self *GstBaseTransform) (gst.FlowReturn, *gst.Buffer) - // Required if the transform is not in-place. Get the size in bytes of one unit for the given caps. - GetUnitSize(self *GstBaseTransform, caps *gst.Caps) (ok bool, size int64) - // Optional. Subclasses can override this to do their own allocation of output buffers. Elements that only - // do analysis can return a subbuffer or even just return a reference to the input buffer (if in passthrough - // mode). The default implementation will use the negotiated allocator or bufferpool and TransformSize to - // allocate an output buffer or it will return the input buffer in passthrough mode. - PrepareOutputBuffer(self *GstBaseTransform, input *gst.Buffer) (gst.FlowReturn, *gst.Buffer) - // Propose buffer allocation parameters for upstream elements. This function must be implemented if the element - // reads or writes the buffer content. The query that was passed to the DecideAllocation is passed in this - // method (or nil when the element is in passthrough mode). The default implementation will pass the query - // downstream when in passthrough mode and will copy all the filtered metadata API in non-passthrough mode. - ProposeAllocation(self *GstBaseTransform, decideQuery, query *gst.Query) bool - // Optional. Handle a requested query. Subclasses that implement this must chain up to the parent if they - // didn't handle the query - Query(self *GstBaseTransform, direction gst.PadDirection, query *gst.Query) bool - // Allows the subclass to be notified of the actual caps set. - SetCaps(self *GstBaseTransform, incaps, outcaps *gst.Caps) bool - // Optional. Event handler on the sink pad. The default implementation handles the event and forwards it - // downstream. - SinkEvent(self *GstBaseTransform, event *gst.Event) bool - // Optional. Event handler on the source pad. The default implementation handles the event and forwards it - // upstream. - SrcEvent(self *GstBaseTransform, event *gst.Event) bool - // Optional. Called when the element starts processing. Allows opening external resources. - Start(self *GstBaseTransform) bool - // Optional. Called when the element stops processing. Allows closing external resources. - Stop(self *GstBaseTransform) bool - // Function which accepts a new input buffer and pre-processes it. The default implementation performs caps - // (re)negotiation, then QoS if needed, and places the input buffer into the queued_buf member variable. If - // the buffer is dropped due to QoS, it returns GstBaseTransformFlowDropped. If this input buffer is not - // contiguous with any previous input buffer, then isDiscont is set to TRUE. (Since: 1.6) - SubmitInputBuffer(self *GstBaseTransform, isDiscont bool, input *gst.Buffer) gst.FlowReturn - // Required if the element does not operate in-place. Transforms one incoming buffer to one outgoing buffer. - // The function is allowed to change size/timestamp/duration of the outgoing buffer. - Transform(self *GstBaseTransform, inbuf, outbuf *gst.Buffer) gst.FlowReturn - // Optional. Given the pad in this direction and the given caps, what caps are allowed on the other pad in - // this element ? - TransformCaps(self *GstBaseTransform, direction gst.PadDirection, caps, filter *gst.Caps) *gst.Caps - // Required if the element operates in-place. Transform the incoming buffer in-place. - TransformIP(self *GstBaseTransform, buf *gst.Buffer) gst.FlowReturn - // Optional. Transform the metadata on the input buffer to the output buffer. By default this method copies - // all meta without tags. Subclasses can implement this method and return TRUE if the metadata is to be copied. - TransformMeta(self *GstBaseTransform, outbuf *gst.Buffer, meta *gst.Meta, inbuf *gst.Buffer) bool - // Optional. Given the size of a buffer in the given direction with the given caps, calculate the size in - // bytes of a buffer on the other pad with the given other caps. The default implementation uses GetUnitSize - // and keeps the number of units the same. - TransformSize(self *GstBaseTransform, direction gst.PadDirection, caps *gst.Caps, size int64, othercaps *gst.Caps) (ok bool, othersize int64) -} - -type extendsBaseTransform struct{ parent glib.Extendable } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseTransform) Type() glib.Type { return glib.Type(C.gst_base_transform_get_type()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseTransform) ClassSize() int64 { return int64(C.sizeof_GstBaseTransformClass) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseTransform) InstanceSize() int64 { return int64(C.sizeof_GstBaseTransform) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBaseTransform) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) { - e.parent.InitClass(klass, elem) - - class := C.toGstBaseTransformClass(klass) - - if _, ok := elem.(interface { - AcceptCaps(self *GstBaseTransform, direction gst.PadDirection, caps *gst.Caps) bool - }); ok { - C.setGstBaseTransformAcceptCaps(class) - } - - if _, ok := elem.(interface { - BeforeTransform(self *GstBaseTransform, buffer *gst.Buffer) - }); ok { - C.setGstBaseTransformBeforeTransform(class) - } - - if _, ok := elem.(interface { - CopyMetadata(self *GstBaseTransform, input, output *gst.Buffer) bool - }); ok { - C.setGstBaseTransformCopyMetadata(class) - } - - if _, ok := elem.(interface { - DecideAllocation(self *GstBaseTransform, query *gst.Query) bool - }); ok { - C.setGstBaseTransformDecideAllocation(class) - } - - if _, ok := elem.(interface { - FilterMeta(self *GstBaseTransform, query *gst.Query, api glib.Type, params *gst.Structure) bool - }); ok { - C.setGstBaseTransformFilterMeta(class) - } - - if _, ok := elem.(interface { - FixateCaps(self *GstBaseTransform, directon gst.PadDirection, caps *gst.Caps, othercaps *gst.Caps) *gst.Caps - }); ok { - C.setGstBaseTransformFixateCaps(class) - } - - if _, ok := elem.(interface { - GenerateOutput(self *GstBaseTransform) (gst.FlowReturn, *gst.Buffer) - }); ok { - C.setGstBaseTransformGenerateOutput(class) - } - - if _, ok := elem.(interface { - GetUnitSize(self *GstBaseTransform, caps *gst.Caps) (ok bool, size int64) - }); ok { - C.setGstBaseTransformGetUnitSize(class) - } - - if _, ok := elem.(interface { - PrepareOutputBuffer(self *GstBaseTransform, input *gst.Buffer) (gst.FlowReturn, *gst.Buffer) - }); ok { - C.setGstBaseTransformPrepareOutputBuffer(class) - } - - if _, ok := elem.(interface { - ProposeAllocation(self *GstBaseTransform, decideQuery, query *gst.Query) bool - }); ok { - C.setGstBaseTransformProposeAllocation(class) - } - - if _, ok := elem.(interface { - Query(self *GstBaseTransform, direction gst.PadDirection, query *gst.Query) bool - }); ok { - C.setGstBaseTransformQuery(class) - } - - if _, ok := elem.(interface { - SetCaps(self *GstBaseTransform, incaps, outcaps *gst.Caps) bool - }); ok { - C.setGstBaseTransformSetCaps(class) - } - - if _, ok := elem.(interface { - SinkEvent(self *GstBaseTransform, event *gst.Event) bool - }); ok { - C.setGstBaseTransformSinkEvent(class) - } - - if _, ok := elem.(interface { - SrcEvent(self *GstBaseTransform, event *gst.Event) bool - }); ok { - C.setGstBaseTransformSrcEvent(class) - } - - if _, ok := elem.(interface { - Start(self *GstBaseTransform) bool - }); ok { - C.setGstBaseTransformStart(class) - } - - if _, ok := elem.(interface { - Stop(self *GstBaseTransform) bool - }); ok { - C.setGstBaseTransformStop(class) - } - - if _, ok := elem.(interface { - SubmitInputBuffer(self *GstBaseTransform, isDiscont bool, input *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseTransformSubmitInputBuffer(class) - } - - if _, ok := elem.(interface { - Transform(self *GstBaseTransform, inbuf, outbuf *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseTransformTransform(class) - } - - if _, ok := elem.(interface { - TransformCaps(self *GstBaseTransform, direction gst.PadDirection, caps, filter *gst.Caps) *gst.Caps - }); ok { - C.setGstBaseTransformTransformCaps(class) - } - - if _, ok := elem.(interface { - TransformIP(self *GstBaseTransform, buf *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstBaseTransformTransformIP(class) - } - - if _, ok := elem.(interface { - TransformMeta(self *GstBaseTransform, outbuf *gst.Buffer, meta *gst.Meta, inbuf *gst.Buffer) bool - }); ok { - C.setGstBaseTransformTransformMeta(class) - } - - if _, ok := elem.(interface { - TransformSize(self *GstBaseTransform, direction gst.PadDirection, caps *gst.Caps, size int64, othercaps *gst.Caps) (ok bool, othersize int64) - }); ok { - C.setGstBaseTransformTransformSize(class) - } - -} diff --git a/gst/base/gst_collect_pads.go b/gst/base/gst_collect_pads.go deleted file mode 100644 index d8211a0..0000000 --- a/gst/base/gst_collect_pads.go +++ /dev/null @@ -1,517 +0,0 @@ -package base - -/* -#include "gst.go.h" - -extern GstFlowReturn goGstCollectPadsBufferFunc (GstCollectPads * pads, GstCollectData * data, GstBuffer * buffer, gpointer user_data); -extern GstFlowReturn goGstCollectPadsClipFunc (GstCollectPads * pads, GstCollectData * data, GstBuffer * inbuffer, GstBuffer ** outbuffer, gpointer user_data); -extern gint goGstCollectPadsCompareFunc (GstCollectPads * pads, GstCollectData * data1, GstClockTime ts1, GstCollectData * data2, GstClockTime ts2, gpointer user_data); -extern gboolean goGstCollectPadsEventFunc (GstCollectPads * pads, GstCollectData * data, GstEvent * event, gpointer user_data); -extern void goGstCollectPadsFlushFunc (GstCollectPads * pads, gpointer user_data); -extern GstFlowReturn goGstCollectPadsFunc (GstCollectPads * pads, gpointer user_data); -extern gboolean goGstCollectPadsQueryFunc (GstCollectPads * pads, GstCollectData * data, GstQuery * query, gpointer user_data); - -GstFlowReturn -cgoGstCollectPadsBufferFunc (GstCollectPads * pads, GstCollectData * data, GstBuffer * buffer, gpointer user_data) -{ - return goGstCollectPadsBufferFunc(pads, data, buffer, user_data); -} - -GstFlowReturn -cgoGstCollectPadsClipFunc (GstCollectPads * pads, GstCollectData * data, GstBuffer * inbuffer, GstBuffer ** outbuffer, gpointer user_data) -{ - return goGstCollectPadsClipFunc(pads, data, inbuffer, outbuffer, user_data); -} - -gint -cgoGstCollectPadsCompareFunc (GstCollectPads * pads, GstCollectData * data1, GstClockTime ts1, GstCollectData * data2, GstClockTime ts2, gpointer user_data) -{ - return goGstCollectPadsCompareFunc(pads, data1, ts1, data2, ts2, user_data); -} - -gboolean -cgoGstCollectPadsEventFunc (GstCollectPads * pads, GstCollectData * data, GstEvent * event, gpointer user_data) -{ - return goGstCollectPadsEventFunc(pads, data, event, user_data); -} - -void -cgoGstCollectPadsFlushFunc (GstCollectPads * pads, gpointer user_data) -{ - goGstCollectPadsFlushFunc(pads, user_data); -} - -GstFlowReturn -cgoGstCollectPadsFunc (GstCollectPads * pads, gpointer user_data) -{ - return goGstCollectPadsFunc(pads, user_data); -} - -gboolean -cgoGstCollectPadsQueryFunc (GstCollectPads * pads, GstCollectData * data, GstQuery * query, gpointer user_data) -{ - return goGstCollectPadsQueryFunc(pads, data, query, user_data); -} - -*/ -import "C" - -import ( - "time" - "unsafe" - - gopointer "github.com/go-gst/go-pointer" - - "github.com/go-gst/go-gst/gst" -) - -// CollectPadsBufferFunc is a function that will be called when a (considered oldest) buffer can be muxed. -// If all pads have reached EOS, this function is called with a nil data and buffer. -type CollectPadsBufferFunc func(self *CollectPads, data *CollectData, buf *gst.Buffer) gst.FlowReturn - -// CollectPadsClipFunc is a function that will be called when a buffer is received on the pad managed by data -// in the collectpad object pads. -// -// The function should use the segment of data and the negotiated media type on the pad to perform clipping of -// the buffer. -// -// The function should return a nil buffer if it should be dropped. The bindings will take care of ownership -// of the in-buffer. -type CollectPadsClipFunc func(self *CollectPads, data *CollectData, inbuffer *gst.Buffer) (gst.FlowReturn, *gst.Buffer) - -// CollectPadsCompareFunc is a function for comparing two timestamps of buffers or newsegments collected on -// one pad. The function should return an integer less than zero when first timestamp is deemed older than the -// second one. Zero if the timestamps are deemed equally old. Integer greater than zero when second timestamp -// is deemed older than the first one. -type CollectPadsCompareFunc func(self *CollectPads, data1 *CollectData, ts1 time.Duration, data2 *CollectData, ts2 time.Duration) int // should this be a ClockTime? - -// CollectPadsEventFunc is a function that will be called while processing an event. It takes ownership of the -// event and is responsible for chaining up (to EventDefault) or dropping events (such typical cases being handled -// by the default handler). It should return true if the pad could handle the event. -type CollectPadsEventFunc func(self *CollectPads, data *CollectData, event *gst.Event) bool - -// CollectPadsFlushFunc is a function that will be called while processing a flushing seek event. -// -// The function should flush any internal state of the element and the state of all the pads. It should clear -// only the state not directly managed by the pads object. It is therefore not necessary to call SetFlushing() -// nor Clear() from this function. -type CollectPadsFlushFunc func(self *CollectPads) - -// CollectPadsFunc is a function that will be called when all pads have received data. -type CollectPadsFunc func(self *CollectPads) gst.FlowReturn - -// CollectPadsQueryFunc is a function that will be called while processing a query. It takes ownership of the -// query and is responsible for chaining up (to events downstream (with EventDefault()). -// -// The function should return true if the pad could handle the event. -type CollectPadsQueryFunc func(self *CollectPads, data *CollectData, query *gst.Query) bool - -// CollectData is a structure used by CollectPads. -type CollectData struct{ ptr *C.GstCollectData } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCollectData(ptr *C.GstCollectData) *CollectData { return &CollectData{ptr} } - -// Instance returns the underly C object -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) Instance() *C.GstCollectData { return c.ptr } - -// Collect returns the owner CollectPads -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) Collect() *CollectPads { return wrapCollectPadsNone(c.ptr.collect) } - -// Pad returns the pad managed by this data. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) Pad() *gst.Pad { return gst.FromGstPadUnsafeNone(unsafe.Pointer(c.ptr.pad)) } - -// Buffer returns the currently queued buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) Buffer() *gst.Buffer { - return gst.FromGstBufferUnsafeNone(unsafe.Pointer(c.ptr.buffer)) -} - -// Pos returns the position in the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) Pos() uint { return uint(c.ptr.pos) } - -// Segment returns the last segment received. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) Segment() *gst.Segment { - return gst.FromGstSegmentUnsafe(unsafe.Pointer(&c.ptr.segment)) -} - -// DTS returns the signed version of the DTS converted to running time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectData) DTS() time.Duration { return time.Duration(C.gstCollectDataDTS(c.ptr)) } - -// CollectPads manages a set of pads that operate in collect mode. This means that control is given to the -// manager of this object when all pads have data. -// For more information see: -// https://gstreamer.freedesktop.org/documentation/base/gstcollectpads.html?gi-language=c#gstcollectpads-page -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type CollectPads struct { - *gst.Object - funcMap *collectPadsFuncMap - selfPtr unsafe.Pointer -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type collectPadsFuncMap struct { - bufferFunc CollectPadsBufferFunc - clipFunc CollectPadsClipFunc - compareFunc CollectPadsCompareFunc - eventFunc CollectPadsEventFunc - flushFunc CollectPadsFlushFunc - funcFunc CollectPadsFunc - queryFunc CollectPadsQueryFunc -} - -// NewCollectPads creates a new CollectPads instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCollectPads() *CollectPads { - return wrapCollectPadsFull(C.gst_collect_pads_new()) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCollectPadsFull(ptr *C.GstCollectPads) *CollectPads { - collect := &CollectPads{ - Object: gst.FromGstObjectUnsafeFull(unsafe.Pointer(ptr)), - funcMap: &collectPadsFuncMap{}, - } - collect.selfPtr = gopointer.Save(collect) - return collect -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCollectPadsNone(ptr *C.GstCollectPads) *CollectPads { - collect := &CollectPads{ - Object: gst.FromGstObjectUnsafeNone(unsafe.Pointer(ptr)), - funcMap: &collectPadsFuncMap{}, - } - collect.selfPtr = gopointer.Save(collect) - return collect -} - -// Instance returns the underlying C object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Instance() *C.GstCollectPads { return C.toGstCollectPads(c.Unsafe()) } - -// AddPad adds a pad to the collection of collect pads. The pad has to be a sinkpad. The refcount of the pad is -// incremented. Use RemovePad to remove the pad from the collection again. -// -// Keeping a pad locked in waiting state is only relevant when using the default collection algorithm -// (providing the oldest buffer). It ensures a buffer must be available on this pad for a collection to take -// place. This is of typical use to a muxer element where non-subtitle streams should always be in waiting -// state, e.g. to assure that caps information is available on all these streams when initial headers have -// to be written. -// -// The pad will be automatically activated in push mode when pads is started. -// -// This function can return nil if supplied with invalid arguments. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) AddPad(pad *gst.Pad, lock bool) *CollectData { - data := C.gst_collect_pads_add_pad( - c.Instance(), - (*C.GstPad)(pad.Unsafe()), - C.guint(C.sizeof_GstCollectData), - nil, - gboolean(lock), - ) - if data == nil { - return nil - } - return wrapCollectData(data) -} - -// Available queries how much bytes can be read from each queued buffer. This means that the result of -// this call is the maximum number of bytes that can be read from each of the pads. -// -// This function should be called with pads STREAM_LOCK held, such as in the callback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Available() uint { return uint(C.gst_collect_pads_available(c.Instance())) } - -// InvalidRunningTime is a cast of C_MININT64 to signify a DTS that is invalid. -var InvalidRunningTime = time.Duration(C.G_MININT64) - -// ClipRunningTime is a convenience clipping function that converts incoming buffer's timestamp to running -// time, or clips the buffer if outside configured segment. -// -// Since 1.6, this clipping function also sets the DTS parameter of the GstCollectData structure. This version -// of the running time DTS can be negative. InvalidRunningTime is used to indicate invalid value. -// -// data is the CollectData of the corresponding pad and buf is the buffer being clipped. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) ClipRunningTime(data *CollectData, buf *gst.Buffer) (ret gst.FlowReturn, outbuf *gst.Buffer) { - var goutbuf *C.GstBuffer - ret = gst.FlowReturn(C.gst_collect_pads_clip_running_time( - c.Instance(), - data.Instance(), - (*C.GstBuffer)(unsafe.Pointer(buf.Instance())), - &goutbuf, - nil, - )) - if goutbuf != nil { - outbuf = gst.FromGstBufferUnsafeFull(unsafe.Pointer(goutbuf)) - } - return -} - -// EventDefault is the default GstCollectPads event handling that elements should always chain up to to ensure -// proper operation. Element might however indicate event should not be forwarded downstream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) EventDefault(data *CollectData, event *gst.Event, discard bool) bool { - return gobool(C.gst_collect_pads_event_default( - c.Instance(), - data.Instance(), - (*C.GstEvent)(unsafe.Pointer(event.Instance())), - gboolean(discard), - )) -} - -// Flush size bytes from the pad data. Returns the number of bytes actually flushed. -// -// This function should be called with pads STREAM_LOCK held, such as in the callback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Flush(data *CollectData, size uint) uint { - return uint(C.gst_collect_pads_flush(c.Instance(), data.Instance(), C.guint(size))) -} - -// Free will free the C references to any go callbacks registered with the CollectPads. This is required -// due to the way the bindings are implemented around this object currently. While it's safe to assume this -// data will be collected whenever a program exits, in the context of a plugin that might get reused in -// a single application, NOT calling this function between starts and stops of your element could lead to -// memory leaks. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Free() { gopointer.Unref(c.selfPtr) } - -// Peek at the buffer currently queued in data. This function should be called with the pads STREAM_LOCK held, -// such as in the callback handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Peek(data *CollectData) *gst.Buffer { - buf := C.gst_collect_pads_peek(c.Instance(), data.Instance()) - if buf == nil { - return nil - } - return gst.FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// Pop the buffer currently queued in data. This function should be called with the pads STREAM_LOCK held, such -// as in the callback handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Pop(data *CollectData) *gst.Buffer { - buf := C.gst_collect_pads_pop(c.Instance(), data.Instance()) - if buf == nil { - return nil - } - return gst.FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// QueryDefault is the Default GstCollectPads query handling that elements should always chain up to to ensure -// proper operation. Element might however indicate query should not be forwarded downstream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) QueryDefault(data *CollectData, query *gst.Query, discard bool) bool { - return gobool(C.gst_collect_pads_query_default( - c.Instance(), data.Instance(), - (*C.GstQuery)(unsafe.Pointer(query.Instance())), - gboolean(discard), - )) -} - -// ReadBuffer gets a subbuffer of size bytes from the given pad data. -// -// This function should be called with pads STREAM_LOCK held, such as in the callback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) ReadBuffer(data *CollectData, size uint) *gst.Buffer { - buf := C.gst_collect_pads_read_buffer(c.Instance(), data.Instance(), C.guint(size)) - if buf == nil { - return nil - } - return gst.FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// RemovePad removes a pad from the collection of collect pads. This function will also free the GstCollectData -// and all the resources that were allocated with AddPad. -// -// The pad will be deactivated automatically when CollectPads is stopped. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) RemovePad(pad *gst.Pad) bool { - return gobool(C.gst_collect_pads_remove_pad(c.Instance(), (*C.GstPad)(unsafe.Pointer(pad.Instance())))) -} - -// SetBufferFunction sets the callback that will be called with the oldest buffer when all pads have been collected, -// or nil on EOS. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetBufferFunction(f CollectPadsBufferFunc) { - c.funcMap.bufferFunc = f - C.gst_collect_pads_set_buffer_function( - c.Instance(), - C.GstCollectPadsBufferFunction(C.cgoGstCollectPadsBufferFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetClipFunction installs a clipping function that is called after buffers are received on managed pads. -// See CollectPadsClipFunc for more details. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetClipFunction(f CollectPadsClipFunc) { - c.funcMap.clipFunc = f - C.gst_collect_pads_set_clip_function( - c.Instance(), - C.GstCollectPadsClipFunction(C.cgoGstCollectPadsClipFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetCompareFunction sets the timestamp comparison function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetCompareFunction(f CollectPadsCompareFunc) { - c.funcMap.compareFunc = f - C.gst_collect_pads_set_compare_function( - c.Instance(), - C.GstCollectPadsCompareFunction(C.cgoGstCollectPadsCompareFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetEventFunction sets the event callback function that will be called when collectpads has received an event -// originating from one of the collected pads. If the event being processed is a serialized one, this callback -// is called with pads STREAM_LOCK held, otherwise not. As this lock should be held when calling a number of -// CollectPads functions, it should be acquired if so (unusually) needed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetEventFunction(f CollectPadsEventFunc) { - c.funcMap.eventFunc = f - C.gst_collect_pads_set_event_function( - c.Instance(), - C.GstCollectPadsEventFunction(C.cgoGstCollectPadsEventFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetFlushFunction installs a flush function that is called when the internal state of all pads should be -// flushed as part of flushing seek handling. See CollectPadsFlushFunc for more info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetFlushFunction(f CollectPadsFlushFunc) { - c.funcMap.flushFunc = f - C.gst_collect_pads_set_flush_function( - c.Instance(), - C.GstCollectPadsFlushFunction(C.cgoGstCollectPadsFlushFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetFlushing changes the flushing state of all the pads in the collection. No pad is able to accept anymore -// data when flushing is TRUE. Calling this function with flushing FALSE makes pads accept data again. Caller -// must ensure that downstream streaming (thread) is not blocked, e.g. by sending a FLUSH_START downstream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetFlushing(flushing bool) { - C.gst_collect_pads_set_flushing(c.Instance(), gboolean(flushing)) -} - -// SetFunction sets a function that overrides the behavior around the BufferFunction. -// -// CollectPads provides a default collection algorithm that will determine the oldest buffer available on all -// of its pads, and then delegate to a configured callback. However, if circumstances are more complicated -// and/or more control is desired, this sets a callback that will be invoked instead when all the pads added -// to the collection have buffers queued. Evidently, this callback is not compatible with SetBufferFunction -// callback. If this callback is set, the former will be unset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetFunction(f CollectPadsFunc) { - c.funcMap.funcFunc = f - C.gst_collect_pads_set_function( - c.Instance(), - C.GstCollectPadsFunction(C.cgoGstCollectPadsFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetQueryFunction sets the query callback function and user data that will be called after collectpads has -// received a query originating from one of the collected pads. If the query being processed is a serialized -// one, this callback is called with pads STREAM_LOCK held, otherwise not. As this lock should be held when -// calling a number of CollectPads functions, it should be acquired if so (unusually) needed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetQueryFunction(f CollectPadsQueryFunc) { - c.funcMap.queryFunc = f - C.gst_collect_pads_set_query_function( - c.Instance(), - C.GstCollectPadsQueryFunction(C.cgoGstCollectPadsQueryFunc), - (C.gpointer)(c.selfPtr), - ) -} - -// SetWaiting sets a pad to waiting or non-waiting mode, if at least this pad has not been created with locked -// waiting state, in which case nothing happens. -// -// This function should be called with pads STREAM_LOCK held, such as in the callback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SetWaiting(data *CollectData, waiting bool) { - C.gst_collect_pads_set_waiting(c.Instance(), data.Instance(), gboolean(waiting)) -} - -// SrcEventDefault is the CollectPads event handling for the src pad of elements. Elements can chain up to this -// to let flushing seek event handling be done by CollectPads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) SrcEventDefault(pad *gst.Pad, event *gst.Event) bool { - return gobool(C.gst_collect_pads_src_event_default( - c.Instance(), - (*C.GstPad)(unsafe.Pointer(pad.Instance())), - (*C.GstEvent)(unsafe.Pointer(event.Instance())), - )) -} - -// Start starts the processing of data in the collectpads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Start() { C.gst_collect_pads_start(c.Instance()) } - -// Stop stops the processing of data in the collectpads. It also u nblocks any blocking operations. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) Stop() { C.gst_collect_pads_stop(c.Instance()) } - -// TakeBuffer gets a subbuffer of size bytes from the given pad data. Flushes the amount of read bytes. -// -// This function should be called with pads STREAM_LOCK held, such as in the callback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CollectPads) TakeBuffer(data *CollectData, size uint) *gst.Buffer { - buf := C.gst_collect_pads_take_buffer(c.Instance(), data.Instance(), C.guint(size)) - if buf == nil { - return nil - } - return gst.FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} diff --git a/gst/base/gst_collect_pads_exports.go b/gst/base/gst_collect_pads_exports.go deleted file mode 100644 index 4f3b921..0000000 --- a/gst/base/gst_collect_pads_exports.go +++ /dev/null @@ -1,109 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "time" - "unsafe" - - gopointer "github.com/go-gst/go-pointer" - - "github.com/go-gst/go-gst/gst" -) - -//export goGstCollectPadsBufferFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsBufferFunc(pads *C.GstCollectPads, data *C.GstCollectData, buf *C.GstBuffer, userData C.gpointer) C.GstFlowReturn { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.bufferFunc - - var wrappedBuf *gst.Buffer - var wrappedData *CollectData - if buf != nil { - wrappedBuf = gst.FromGstBufferUnsafeNone(unsafe.Pointer(buf)) - defer wrappedBuf.Unref() - } - if data != nil { - wrappedData = wrapCollectData(data) - } - - return C.GstFlowReturn(f(collectPads, wrappedData, wrappedBuf)) -} - -//export goGstCollectPadsClipFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsClipFunc(pads *C.GstCollectPads, data *C.GstCollectData, inbuf *C.GstBuffer, outbuf **C.GstBuffer, userData C.gpointer) C.GstFlowReturn { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.clipFunc - - buf := gst.FromGstBufferUnsafeNone(unsafe.Pointer(inbuf)) - defer buf.Unref() - - ret, gooutbuf := f(collectPads, wrapCollectData(data), buf) - if gooutbuf != nil { - C.memcpy(unsafe.Pointer(*outbuf), unsafe.Pointer(gooutbuf.Instance()), C.sizeof_GstBuffer) - } - - return C.GstFlowReturn(ret) -} - -//export goGstCollectPadsCompareFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsCompareFunc(pads *C.GstCollectPads, data1 *C.GstCollectData, ts1 C.GstClockTime, data2 *C.GstCollectData, ts2 C.GstClockTime, userData C.gpointer) C.gint { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.compareFunc - - return C.gint(f(collectPads, wrapCollectData(data1), time.Duration(ts1), wrapCollectData(data2), time.Duration(ts2))) -} - -//export goGstCollectPadsEventFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsEventFunc(pads *C.GstCollectPads, data *C.GstCollectData, event *C.GstEvent, userData C.gpointer) C.gboolean { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.eventFunc - - return gboolean(f(collectPads, wrapCollectData(data), gst.FromGstEventUnsafeNone(unsafe.Pointer(event)))) -} - -//export goGstCollectPadsFlushFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsFlushFunc(pads *C.GstCollectPads, userData C.gpointer) { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.flushFunc - - f(collectPads) -} - -//export goGstCollectPadsFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsFunc(pads *C.GstCollectPads, userData C.gpointer) C.GstFlowReturn { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.funcFunc - - return C.GstFlowReturn(f(collectPads)) -} - -//export goGstCollectPadsQueryFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstCollectPadsQueryFunc(pads *C.GstCollectPads, data *C.GstCollectData, query *C.GstQuery, userData C.gpointer) C.gboolean { - iface := gopointer.Restore(unsafe.Pointer(userData)) - collectPads := iface.(*CollectPads) - f := collectPads.funcMap.queryFunc - - return gboolean(f(collectPads, wrapCollectData(data), gst.FromGstQueryUnsafeNone(unsafe.Pointer(query)))) -} diff --git a/gst/base/gst_flow_combiner.go b/gst/base/gst_flow_combiner.go deleted file mode 100644 index 621858f..0000000 --- a/gst/base/gst_flow_combiner.go +++ /dev/null @@ -1,103 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// FlowCombiner is a helper structure for aggregating flow returns. This struct -// is not thread safe. -// For more information see https://gstreamer.freedesktop.org/documentation/base/gstflowcombiner.html?gi-language=c#GstFlowCombiner -type FlowCombiner struct{ ptr *C.GstFlowCombiner } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapFlowCombiner(ptr *C.GstFlowCombiner) *FlowCombiner { - return &FlowCombiner{ptr} -} - -// NewFlowCombiner creates a new flow combiner. Use Free() to free it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewFlowCombiner() *FlowCombiner { - return wrapFlowCombiner(C.gst_flow_combiner_new()) -} - -// Instance returns the underlying GstFlowCombiner instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) Instance() *C.GstFlowCombiner { return f.ptr } - -// AddPad adds a new pad to the FlowCombiner. A reference is taken on the pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) AddPad(pad *gst.Pad) { - C.gst_flow_combiner_add_pad(f.Instance(), (*C.GstPad)(unsafe.Pointer(pad.Instance()))) -} - -// Clear will remove all pads and reset the combiner to its initial state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) Clear() { C.gst_flow_combiner_clear(f.Instance()) } - -// Free will free a FlowCombiner and all its internal data. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) Free() { C.gst_flow_combiner_free(f.Instance()) } - -// Ref will increment the reference count on the FlowCombiner. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) Ref() *FlowCombiner { - return wrapFlowCombiner(C.gst_flow_combiner_ref(f.Instance())) -} - -// RemovePad will remove a pad from the FlowCombiner. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) RemovePad(pad *gst.Pad) { - C.gst_flow_combiner_remove_pad(f.Instance(), (*C.GstPad)(unsafe.Pointer(pad.Instance()))) -} - -// Reset flow combiner and all pads to their initial state without removing pads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) Reset() { C.gst_flow_combiner_reset(f.Instance()) } - -// Unref decrements the reference count on the Flow Combiner. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) Unref() { C.gst_flow_combiner_unref(f.Instance()) } - -// UpdateFlow computes the combined flow return for the pads in it. -// -// The GstFlowReturn parameter should be the last flow return update for a pad in this GstFlowCombiner. -// It will use this value to be able to shortcut some combinations and avoid looking over all pads again. -// e.g. The last combined return is the same as the latest obtained GstFlowReturn. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) UpdateFlow(fret gst.FlowReturn) gst.FlowReturn { - return gst.FlowReturn(C.gst_flow_combiner_update_flow(f.Instance(), C.GstFlowReturn(fret))) -} - -// UpdatePadFlow sets the provided pad's last flow return to provided value and computes the combined flow -// return for the pads in it. -// -// The GstFlowReturn parameter should be the last flow return update for a pad in this GstFlowCombiner. It -// will use this value to be able to shortcut some combinations and avoid looking over all pads again. e.g. -// The last combined return is the same as the latest obtained GstFlowReturn. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlowCombiner) UpdatePadFlow(pad *gst.Pad, fret gst.FlowReturn) gst.FlowReturn { - return gst.FlowReturn(C.gst_flow_combiner_update_pad_flow( - f.Instance(), - (*C.GstPad)(unsafe.Pointer(pad.Instance())), - C.GstFlowReturn(fret), - )) -} diff --git a/gst/base/gst_push_src.go b/gst/base/gst_push_src.go deleted file mode 100644 index d4a2e43..0000000 --- a/gst/base/gst_push_src.go +++ /dev/null @@ -1,34 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// GstPushSrc represents a GstBaseSrc. -type GstPushSrc struct{ *GstBaseSrc } - -// ToGstPushSrc returns a GstPushSrc object for the given object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstPushSrc(obj interface{}) *GstPushSrc { - switch obj := obj.(type) { - case *gst.Object: - return &GstPushSrc{&GstBaseSrc{&gst.Element{Object: obj}}} - case *glib.Object: - return &GstPushSrc{&GstBaseSrc{&gst.Element{Object: &gst.Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}}}}} - } - return nil -} - -// Instance returns the underlying C GstBaseSrc instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GstPushSrc) Instance() *C.GstPushSrc { - return C.toGstPushSrc(g.Unsafe()) -} diff --git a/gst/base/gst_push_src_exports.go b/gst/base/gst_push_src_exports.go deleted file mode 100644 index ffe2ad1..0000000 --- a/gst/base/gst_push_src_exports.go +++ /dev/null @@ -1,69 +0,0 @@ -package base - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -//export goGstPushSrcAlloc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPushSrcAlloc(src *C.GstPushSrc, buf **C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - var outbuf *gst.Buffer - goPushSrc := ToGstPushSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Alloc(*GstPushSrc) (gst.FlowReturn, *gst.Buffer) - }) - ret, outbuf = iface.Alloc(goPushSrc) - - if outbuf != nil { - C.memcpy(unsafe.Pointer(*buf), unsafe.Pointer(outbuf.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstPushSrcCreate -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPushSrcCreate(src *C.GstPushSrc, buf **C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - var outbuf *gst.Buffer - goPushSrc := ToGstPushSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Create(*GstPushSrc) (gst.FlowReturn, *gst.Buffer) - }) - ret, outbuf = iface.Create(goPushSrc) - - if outbuf != nil { - C.memcpy(unsafe.Pointer(*buf), unsafe.Pointer(outbuf.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstPushSrcFill -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPushSrcFill(src *C.GstPushSrc, buf *C.GstBuffer) C.GstFlowReturn { - var ret gst.FlowReturn - goPushSrc := ToGstPushSrc(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(src))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(src)) - - iface := subclass.(interface { - Fill(*GstPushSrc, *gst.Buffer) gst.FlowReturn - }) - ret = iface.Fill(goPushSrc, gst.ToGstBuffer(unsafe.Pointer(buf))) - - return C.GstFlowReturn(ret) -} diff --git a/gst/base/gst_push_src_impl.go b/gst/base/gst_push_src_impl.go deleted file mode 100644 index 4df0e90..0000000 --- a/gst/base/gst_push_src_impl.go +++ /dev/null @@ -1,83 +0,0 @@ -package base - -/* -#include "gst.go.h" - -extern GstFlowReturn goGstPushSrcAlloc (GstPushSrc * src, GstBuffer ** buf); -extern GstFlowReturn goGstPushSrcCreate (GstPushSrc * src, GstBuffer ** buf); -extern GstFlowReturn goGstPushSrcFill (GstPushSrc * src, GstBuffer * buf); - -void setGstPushSrcAlloc (GstPushSrcClass * klass) { klass->alloc = goGstPushSrcAlloc; } -void setGstPushSrcCreate (GstPushSrcClass * klass) { klass->create = goGstPushSrcCreate; } -void setGstPushSrcFill (GstPushSrcClass * klass) { klass->fill = goGstPushSrcFill; } - -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -var ( - // ExtendsPushSrc is an Extendable for extending a GstPushSrc - ExtendsPushSrc glib.Extendable = &extendsPushSrc{parent: ExtendsBaseSrc} -) - -// GstPushSrcImpl is the documented interface for an element extending a GstPushSrc. It does not have to -// be implemented in it's entirety. Each of the methods it declares will be checked for their presence -// in the initializing object, and if the object declares an override it will replace the default -// implementation in the virtual methods. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type GstPushSrcImpl interface { - // Asks the subclass to allocate a buffer. The subclass decides which size this buffer should be. - // The default implementation will create a new buffer from the negotiated allocator. - Alloc(*GstPushSrc) (gst.FlowReturn, *gst.Buffer) - // Asks the subclass to create a buffer. The subclass decides which size this buffer should be. Other - // then that, refer to GstBaseSrc.create for more details. If this method is not implemented, alloc - // followed by fill will be called. - Create(*GstPushSrc) (gst.FlowReturn, *gst.Buffer) - // Asks the subclass to fill the buffer with data. - Fill(*GstPushSrc, *gst.Buffer) gst.FlowReturn -} - -type extendsPushSrc struct{ parent glib.Extendable } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsPushSrc) Type() glib.Type { return glib.Type(C.gst_push_src_get_type()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsPushSrc) ClassSize() int64 { return int64(C.sizeof_GstPushSrcClass) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsPushSrc) InstanceSize() int64 { return int64(C.sizeof_GstPushSrc) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsPushSrc) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) { - e.parent.InitClass(klass, elem) - - srcClass := C.toGstPushSrcClass(klass) - - if _, ok := elem.(interface { - Alloc(*GstPushSrc) (gst.FlowReturn, *gst.Buffer) - }); ok { - C.setGstPushSrcAlloc(srcClass) - } - - if _, ok := elem.(interface { - Create(*GstPushSrc) (gst.FlowReturn, *gst.Buffer) - }); ok { - C.setGstPushSrcCreate(srcClass) - } - - if _, ok := elem.(interface { - Fill(*GstPushSrc, *gst.Buffer) gst.FlowReturn - }); ok { - C.setGstPushSrcFill(srcClass) - } -} diff --git a/gst/base/gst_type_find.go b/gst/base/gst_type_find.go deleted file mode 100644 index 3c6b7d2..0000000 --- a/gst/base/gst_type_find.go +++ /dev/null @@ -1,162 +0,0 @@ -package base - -/* -#include "gst.go.h" - -#include -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// TypeFindHelper tries to find what type of data is flowing from the given source GstPad. -// Returns nil if no Caps matches the data stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TypeFindHelper(pad *gst.Pad, size uint64) *gst.Caps { - caps := C.gst_type_find_helper((*C.GstPad)(unsafe.Pointer(pad.Instance())), C.guint64(size)) - if caps == nil { - return nil - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// TypeFindHelperForBuffer tries to find what type of data is contained in the given GstBuffer, -// the assumption being that the buffer represents the beginning of the stream or file. -// -// All available typefinders will be called on the data in order of rank. If a typefinding function -// returns a probability of gst.TypeFindMaximum, typefinding is stopped immediately and the found -// caps will be returned right away. Otherwise, all available typefind functions will the tried, and -// the caps with the highest probability will be returned, or nil if the content of the buffer could -// not be identified. -// -// Object can either be nil or the object doing the typefinding (used for logging). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TypeFindHelperForBuffer(obj *gst.Object, buffer *gst.Buffer) (*gst.Caps, gst.TypeFindProbability) { - var prob C.GstTypeFindProbability - var cobj *C.GstObject - if obj != nil { - cobj = (*C.GstObject)(obj.Unsafe()) - } - caps := C.gst_type_find_helper_for_buffer(cobj, (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), &prob) - if caps == nil { - return nil, gst.TypeFindProbability(prob) - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)), gst.TypeFindProbability(prob) -} - -// TypeFindHelperForBufferWithExtension ries to find what type of data is contained in the given GstBuffer, -// the assumption being that the buffer represents the beginning of the stream or file. -// -// All available typefinders will be called on the data in order of rank. If a typefinding function returns -// a probability of gst.TypeFindMaximum, typefinding is stopped immediately and the found caps will be returned -// right away. Otherwise, all available typefind functions will the tried, and the caps with the highest -// probability will be returned, or nil if the content of the buffer could not be identified. -// -// When extension is not empty, this function will first try the typefind functions for the given extension, -// which might speed up the typefinding in many cases. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TypeFindHelperForBufferWithExtension(obj *gst.Object, buffer *gst.Buffer, extension string) (*gst.Caps, gst.TypeFindProbability) { - var prob C.GstTypeFindProbability - var cobj *C.GstObject - var cext *C.gchar - if obj != nil { - cobj = (*C.GstObject)(obj.Unsafe()) - } - if extension != "" { - cstr := C.CString(extension) - defer C.free(unsafe.Pointer(cstr)) - cext = (*C.gchar)(unsafe.Pointer(cstr)) - } - caps := C.gst_type_find_helper_for_buffer_with_extension(cobj, (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), cext, &prob) - if caps == nil { - return nil, gst.TypeFindProbability(prob) - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)), gst.TypeFindProbability(prob) -} - -// TypeFindHelperForData tries to find what type of data is contained in the given data, -// the assumption being that the buffer represents the beginning of the stream or file. -// -// All available typefinders will be called on the data in order of rank. If a typefinding function -// returns a probability of gst.TypeFindMaximum, typefinding is stopped immediately and the found -// caps will be returned right away. Otherwise, all available typefind functions will the tried, and -// the caps with the highest probability will be returned, or nil if the content of the buffer could -// not be identified. -// -// Object can either be nil or the object doing the typefinding (used for logging). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TypeFindHelperForData(obj *gst.Object, data []byte) (*gst.Caps, gst.TypeFindProbability) { - var prob C.GstTypeFindProbability - var cobj *C.GstObject - if obj != nil { - cobj = (*C.GstObject)(obj.Unsafe()) - } - caps := C.gst_type_find_helper_for_data(cobj, (*C.guint8)(unsafe.Pointer(&data[0])), C.gsize(len(data)), &prob) - if caps == nil { - return nil, gst.TypeFindProbability(prob) - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)), gst.TypeFindProbability(prob) -} - -// TypeFindHelperForDataWithExtension ries to find what type of data is contained in the given data, -// the assumption being that the buffer represents the beginning of the stream or file. -// -// All available typefinders will be called on the data in order of rank. If a typefinding function returns -// a probability of gst.TypeFindMaximum, typefinding is stopped immediately and the found caps will be returned -// right away. Otherwise, all available typefind functions will the tried, and the caps with the highest -// probability will be returned, or nil if the content of the buffer could not be identified. -// -// When extension is not empty, this function will first try the typefind functions for the given extension, -// which might speed up the typefinding in many cases. -// -// Object can either be nil or the object doing the typefinding (used for logging). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TypeFindHelperForDataWithExtension(obj *gst.Object, data []byte, extension string) (*gst.Caps, gst.TypeFindProbability) { - var prob C.GstTypeFindProbability - var cobj *C.GstObject - var cext *C.gchar - if obj != nil { - cobj = (*C.GstObject)(obj.Unsafe()) - } - if extension != "" { - cstr := C.CString(extension) - defer C.free(unsafe.Pointer(cstr)) - cext = (*C.gchar)(unsafe.Pointer(cstr)) - } - caps := C.gst_type_find_helper_for_data_with_extension(cobj, (*C.guint8)(unsafe.Pointer(&data[0])), C.gsize(len(data)), cext, &prob) - if caps == nil { - return nil, gst.TypeFindProbability(prob) - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)), gst.TypeFindProbability(prob) -} - -// TypeFindHelperForExtension tries to find the best GstCaps associated with extension. -// -// All available typefinders will be checked against the extension in order of rank. The caps of the first typefinder -// that can handle extension will be returned. -// -// Object can either be nil or the object doing the typefinding (used for logging). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TypeFindHelperForExtension(obj *gst.Object, extension string) *gst.Caps { - var cobj *C.GstObject - if obj != nil { - cobj = (*C.GstObject)(obj.Unsafe()) - } - cext := C.CString(extension) - defer C.free(unsafe.Pointer(cext)) - caps := C.gst_type_find_helper_for_extension(cobj, (*C.gchar)(unsafe.Pointer(cext))) - if caps == nil { - return nil - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} diff --git a/gst/base/pkg_config.go b/gst/base/pkg_config.go deleted file mode 100644 index a65ba9c..0000000 --- a/gst/base/pkg_config.go +++ /dev/null @@ -1,7 +0,0 @@ -package base - -/* -#cgo pkg-config: gstreamer-1.0 gstreamer-base-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall -*/ -import "C" diff --git a/gst/base/util.go b/gst/base/util.go deleted file mode 100644 index f1cb592..0000000 --- a/gst/base/util.go +++ /dev/null @@ -1,21 +0,0 @@ -package base - -//#include "gst.go.h" -import "C" - -// gboolean converts a go bool to a C.gboolean. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gboolean(b bool) C.gboolean { - if b { - return C.gboolean(1) - } - return C.gboolean(0) -} - -// gobool provides an easy type conversion between C.gboolean and a go bool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { - return int(b) > 0 -} diff --git a/gst/c_util.go b/gst/c_util.go deleted file mode 100644 index 59dc61c..0000000 --- a/gst/c_util.go +++ /dev/null @@ -1,149 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "fmt" - "math" - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func toGObject(data unsafe.Pointer) *glib.Object { - return &glib.Object{GObject: glib.ToGObject(data)} -} - -// gobool provides an easy type conversion between C.gboolean and a go bool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { - return int(b) > 0 -} - -// gboolean converts a go bool to a C.gboolean. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gboolean(b bool) C.gboolean { - if b { - return C.gboolean(1) - } - return C.gboolean(0) -} - -// gdateToTime converts a GDate to a time object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gdateToTime(gdate *C.GDate) time.Time { - // should this really be local time? - return time.Date(int(C.g_date_get_year(gdate)), time.Month(C.g_date_get_month(gdate)), int(C.g_date_get_day(gdate)), 0, 0, 0, 0, time.Local) -} - -// gstDateTimeToTime converts a GstDateTime to a time object. If the datetime object could not be parsed, -// an empty time object is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gstDateTimeToTime(gstdatetime *C.GstDateTime) time.Time { - dateStr := fmt.Sprintf( - "%s %s %d:%d:%d %s %d", - time.Weekday(C.gst_date_time_get_day(gstdatetime)).String(), - time.Month(C.gst_date_time_get_month(gstdatetime)).String(), - int(C.gst_date_time_get_hour(gstdatetime)), - int(C.gst_date_time_get_minute(gstdatetime)), - int(C.gst_date_time_get_second(gstdatetime)), - formatOffset(C.gst_date_time_get_time_zone_offset(gstdatetime)), - int(C.gst_date_time_get_year(gstdatetime)), - ) - tm, _ := time.Parse("Mon Jan 2 15:04:05 -0700 2006", dateStr) - return tm -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func formatOffset(offset C.gfloat) string { - if offset < 0 { - return fmt.Sprintf("-0%d00", int(offset)) - } - return fmt.Sprintf("+0%d00", int(offset)) -} - -// goStrings returns a string slice for an array of size argc starting at the address argv. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goStrings(argc C.int, argv **C.gchar) []string { - length := int(argc) - tmpslice := (*[(math.MaxInt32 - 1) / unsafe.Sizeof((*C.gchar)(nil))]*C.gchar)(unsafe.Pointer(argv))[:length:length] - gostrings := make([]string, length) - for i, s := range tmpslice { - gostrings[i] = C.GoString(s) - } - return gostrings -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gcharStrings(strs []string) **C.gchar { - gcharSlc := make([]*C.gchar, len(strs)) - for _, s := range strs { - cStr := C.CString(s) - defer C.free(unsafe.Pointer(cStr)) - gcharSlc = append(gcharSlc, cStr) - } - return &gcharSlc[0] -} - -// newQuarkFromString creates a new GQuark (or returns an existing one) for the given -// string -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func newQuarkFromString(str string) C.uint { - cstr := C.CString(str) - defer C.free(unsafe.Pointer(cstr)) - quark := C.g_quark_from_string(cstr) - return quark -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func quarkToString(q C.GQuark) string { - return C.GoString(C.g_quark_to_string(q)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func streamSliceToGlist(streams []*Stream) *C.GList { - var glist C.GList - wrapped := glib.WrapList(unsafe.Pointer(&glist)) - for _, stream := range streams { - wrapped = wrapped.Append(stream.Unsafe()) - } - return &glist -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToStreamSlice(glist *C.GList) []*Stream { - l := glib.WrapList(unsafe.Pointer(&glist)) - out := make([]*Stream, 0) - l.FreeFull(func(item interface{}) { - st := item.(*C.GstStream) - out = append(out, wrapStream(toGObject(unsafe.Pointer(st)))) - }) - return out -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToPadTemplateSlice(glist *C.GList) []*PadTemplate { - l := glib.WrapList(unsafe.Pointer(&glist)) - out := make([]*PadTemplate, 0) - l.FreeFull(func(item interface{}) { - tmpl := item.(*C.GstPadTemplate) - out = append(out, FromGstPadTemplateUnsafeNone(unsafe.Pointer(tmpl))) - }) - return out -} diff --git a/gst/cgo_exports.go b/gst/cgo_exports.go deleted file mode 100644 index ac06ffa..0000000 --- a/gst/cgo_exports.go +++ /dev/null @@ -1,334 +0,0 @@ -package gst - -// CGO exports have to be defined in a separate file from where they are used or else -// there will be double linkage issues. - -/* -#include -#include -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -//export goElementCallAsync -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goElementCallAsync(element *C.GstElement, userData C.gpointer) { - iface := gopointer.Restore(unsafe.Pointer(userData)) - f := iface.(func()) - f() -} - -//export goPadStickyEventForEachFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goPadStickyEventForEachFunc(gpad *C.GstPad, event **C.GstEvent, userData C.gpointer) C.gboolean { - cbIface := gopointer.Restore(unsafe.Pointer(userData)) - cbFunc := cbIface.(StickyEventsForEachFunc) - pad := wrapPad(toGObject(unsafe.Pointer(gpad))) - ev := wrapEvent(*event) - return gboolean(cbFunc(pad, ev)) -} - -//export goPadProbeFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goPadProbeFunc(gstPad *C.GstPad, info *C.GstPadProbeInfo, userData C.gpointer) C.GstPadProbeReturn { - cbIface := gopointer.Restore(unsafe.Pointer(userData)) - cbFunc := cbIface.(PadProbeCallback) - pad := wrapPad(toGObject(unsafe.Pointer(gstPad))) - return C.GstPadProbeReturn(cbFunc(pad, &PadProbeInfo{info})) -} - -//export goPadForwardFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goPadForwardFunc(gstPad *C.GstPad, userData C.gpointer) C.gboolean { - cbIface := gopointer.Restore(unsafe.Pointer(userData)) - cbFunc := cbIface.(PadForwardFunc) - pad := wrapPad(toGObject(unsafe.Pointer(gstPad))) - return gboolean(cbFunc(pad)) -} - -//export goTagForEachFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goTagForEachFunc(tagList *C.GstTagList, tag *C.gchar, userData C.gpointer) { - cbIface := gopointer.Restore(unsafe.Pointer(userData)) - cbFunc := cbIface.(TagListForEachFunc) - cbFunc(wrapTagList(tagList), Tag(C.GoString(tag))) -} - -//export goBufferListForEachCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goBufferListForEachCb(buf **C.GstBuffer, idx C.guint, userData C.gpointer) C.gboolean { - cbIface := gopointer.Restore(unsafe.Pointer(userData)) - cbFunc := cbIface.(func(*Buffer, uint) bool) - return gboolean(cbFunc(wrapBuffer(*buf), uint(idx))) -} - -//export goBufferMetaForEachCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goBufferMetaForEachCb(buf *C.GstBuffer, meta **C.GstMeta, userData C.gpointer) C.gboolean { - cbIface := gopointer.Restore(unsafe.Pointer(userData)) - cbFunc := cbIface.(func(*Meta) bool) - return gboolean(cbFunc(wrapMeta(*meta))) -} - -//export structForEachCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func structForEachCb(fieldID C.GQuark, val *C.GValue, chPtr C.gpointer) C.gboolean { - ptr := gopointer.Restore(unsafe.Pointer(chPtr)) - resCh := ptr.(chan interface{}) - fieldName := C.GoString(C.g_quark_to_string(fieldID)) - - var resValue interface{} - - gVal := glib.ValueFromNative(unsafe.Pointer(val)) - if resValue, _ = gVal.GoValue(); resValue == nil { - // serialize the value if we can't do anything else with it - serialized := C.gst_value_serialize(val) - defer C.free(unsafe.Pointer(serialized)) - resValue = C.GoString(serialized) - } - - resCh <- fieldName - resCh <- resValue - return gboolean(true) -} - -//export goBusSyncHandler -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goBusSyncHandler(bus *C.GstBus, cMsg *C.GstMessage, userData C.gpointer) C.GstBusSyncReply { - // wrap the message - msg := wrapMessage(cMsg) - - // retrieve the ptr to the function - ptr := unsafe.Pointer(userData) - funcIface := gopointer.Restore(ptr) - busFunc, ok := funcIface.(BusSyncHandler) - - if !ok { - return C.GstBusSyncReply(BusPass) - } - - return C.GstBusSyncReply(busFunc(msg)) -} - -//export goBusFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goBusFunc(bus *C.GstBus, cMsg *C.GstMessage, userData C.gpointer) C.gboolean { - // wrap the message - msg := wrapMessage(cMsg) - - // retrieve the ptr to the function - ptr := unsafe.Pointer(userData) - funcIface := gopointer.Restore(ptr) - busFunc, ok := funcIface.(BusWatchFunc) - if !ok { - return gboolean(false) - } - - // run the call back - if cont := busFunc(msg); !cont { - return gboolean(false) - } - - return gboolean(true) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getMetaInfoCbFuncs(meta *C.GstMeta) *MetaInfoCallbackFuncs { - gapi := glib.Type(meta.info.api) - gtype := glib.Type(meta.info._type) - typeCbs := registeredMetas[gapi] - if typeCbs == nil { - return nil - } - return typeCbs[gtype.Name()] -} - -//export goMetaFreeFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goMetaFreeFunc(meta *C.GstMeta, buf *C.GstBuffer) { - cbFuncs := getMetaInfoCbFuncs(meta) - if cbFuncs != nil && cbFuncs.FreeFunc != nil { - cbFuncs.FreeFunc(wrapBuffer(buf)) - } -} - -//export goMetaInitFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goMetaInitFunc(meta *C.GstMeta, params C.gpointer, buf *C.GstBuffer) C.gboolean { - cbFuncs := getMetaInfoCbFuncs(meta) - if cbFuncs != nil && cbFuncs.InitFunc != nil { - paramsIface := gopointer.Restore(unsafe.Pointer(params)) - defer gopointer.Unref(unsafe.Pointer(params)) - return gboolean(cbFuncs.InitFunc(paramsIface, wrapBuffer(buf))) - } - return gboolean(true) -} - -//export goMetaTransformFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goMetaTransformFunc(transBuf *C.GstBuffer, meta *C.GstMeta, buffer *C.GstBuffer, mType C.GQuark, data C.gpointer) C.gboolean { - cbFuncs := getMetaInfoCbFuncs(meta) - if cbFuncs != nil && cbFuncs.TransformFunc != nil { - transformData := (*C.GstMetaTransformCopy)(unsafe.Pointer(data)) - return gboolean(cbFuncs.TransformFunc( - wrapBuffer(transBuf), - wrapBuffer(buffer), - quarkToString(mType), - &MetaTransformCopy{ - Region: gobool(transformData.region), - Offset: int64(transformData.offset), - Size: int64(transformData.size), - }, - )) - } - return gboolean(true) -} - -//export goGDestroyNotifyFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGDestroyNotifyFunc(ptr C.gpointer) { - funcIface := gopointer.Restore(unsafe.Pointer(ptr)) - defer gopointer.Unref(unsafe.Pointer(ptr)) - f := funcIface.(func()) - if f != nil { - f() - } -} - -//export goGDestroyNotifyFuncNoRun -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGDestroyNotifyFuncNoRun(ptr C.gpointer) { - gopointer.Unref(unsafe.Pointer(ptr)) - - padprobesProfile.Remove(unsafe.Pointer(ptr)) // no-op if it wasn't a pad probe -} - -//export goCapsMapFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goCapsMapFunc(features *C.GstCapsFeatures, structure *C.GstStructure, userData C.gpointer) C.gboolean { - // retrieve the ptr to the function - ptr := unsafe.Pointer(userData) - funcIface := gopointer.Restore(ptr) - mapFunc, ok := funcIface.(CapsMapFunc) - - if !ok { - return gboolean(false) - } - - return gboolean(mapFunc(wrapCapsFeatures(features), wrapStructure(structure))) -} - -//export goClockCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goClockCb(gclock *C.GstClock, clockTime C.GstClockTime, clockID C.GstClockID, userData C.gpointer) C.gboolean { - // retrieve the ptr to the function - ptr := unsafe.Pointer(userData) - funcIface := gopointer.Restore(ptr) - cb, ok := funcIface.(ClockCallback) - - if !ok { - return gboolean(false) - } - - clock := wrapClock(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(gclock))}) - return gboolean(cb(clock, ClockTime(clockTime))) -} - -//export goPluginInit -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goPluginInit(plugin *C.GstPlugin, userData C.gpointer) C.gboolean { - ptr := unsafe.Pointer(userData) - defer gopointer.Unref(ptr) - funcIface := gopointer.Restore(ptr) - cb, ok := funcIface.(PluginInitFunc) - if !ok { - return gboolean(false) - } - return gboolean(cb(wrapPlugin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(plugin))}))) -} - -//export goGlobalPluginInit -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGlobalPluginInit(plugin *C.GstPlugin) C.gboolean { - return gboolean(globalPluginInit(wrapPlugin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(plugin))}))) -} - -//export goLogFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goLogFunction( - category *C.GstDebugCategory, - level C.GstDebugLevel, - file *C.gchar, - function *C.gchar, - line C.gint, - object *C.GObject, - message *C.GstDebugMessage, - userData C.gpointer, -) { - if category == nil { - return - } - - logFnMu.RLock() - f := customLogFunction - logFnMu.RUnlock() - - if f != nil { - f( - &DebugCategory{ptr: category}, - DebugLevel(level), - C.GoString(file), - C.GoString(function), - int(line), - &LoggedObject{ptr: object}, - &DebugMessage{ptr: message}, - ) - } -} - -// goUnrefGopointerUserData is a GDestroyNotify used to unref the gopointer from the userdata, used for callback functions -// -//export goUnrefGopointerUserData -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goUnrefGopointerUserData(fPtr C.gpointer) { - gopointer.Unref(unsafe.Pointer(fPtr)) -} - -// goPromiseChangeFunc is the function the GstPromise calls when it changes state -// -//export goPromiseChangeFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goPromiseChangeFunc(_ *C.GstPromise, fPtr C.gpointer) { - f := gopointer.Restore(unsafe.Pointer(fPtr)).(func()) - - f() -} diff --git a/gst/constants.go b/gst/constants.go deleted file mode 100644 index 998ae03..0000000 --- a/gst/constants.go +++ /dev/null @@ -1,1094 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "time" - "unsafe" -) - -// Version represents information about the current GST version. -type Version int - -const ( - // VersionMajor is the major version number of the GStreamer core. - VersionMajor Version = C.GST_VERSION_MAJOR - // VersionMinor is the minor version number of the GStreamer core. - VersionMinor Version = C.GST_VERSION_MINOR - VersionMicro Version = C.GST_VERSION_MICRO -) - -// License represents a type of license used on a plugin. -type License string - -// Types of licenses -const ( - LicenseLGPL License = "LGPL" - LicenseGPL License = "GPL" - LicenseQPL License = "QPL" - LicenseGPLQPL License = "GPL/QPL" - LicenseMPL License = "MPL" - LicenseBSD License = "BSD" - LicenseMIT License = "MIT/X11" - LicenseProprietary License = "Proprietary" - LicenseUnknown License = "unknown" -) - -// ClockTimeDiff is a datatype to hold a time difference, measured in nanoseconds. -type ClockTimeDiff int64 - -// convinience function to convert the diff to a time.Duration -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (ctd ClockTimeDiff) AsDuration() time.Duration { - return time.Duration(ctd) -} - -// ClockTimeNone means infinite timeout or an empty value -const ClockTimeNone ClockTime = 0xffffffffffffffff // Ideally this would be set to C.GST_CLOCK_TIME_NONE but this causes issues on MacOS and Windows - -// ClockEntryType wraps GstClockEntryType -type ClockEntryType int - -// Type castings of ClockEntryTypes -const ( - ClockEntrySingle ClockEntryType = C.GST_CLOCK_ENTRY_SINGLE // (0) – a single shot timeout - ClockEntryPeriodic ClockEntryType = C.GST_CLOCK_ENTRY_PERIODIC // (1) – a periodic timeout request -) - -// ClockFlags wraps GstClockFlags -type ClockFlags int - -// Type castings of ClockFlags -const ( - ClockFlagCanDoSingleSync ClockFlags = C.GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC // (16) – clock can do a single sync timeout request - ClockFlagCanDoSingleAsync ClockFlags = C.GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC // (32) – clock can do a single async timeout request - ClockFlagCanDoPeriodicSync ClockFlags = C.GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC // (64) – clock can do sync periodic timeout requests - ClockFlagCanDoPeriodicAsync ClockFlags = C.GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC // (128) – clock can do async periodic timeout callbacks - ClockFlagCanSetResolution ClockFlags = C.GST_CLOCK_FLAG_CAN_SET_RESOLUTION // (256) – clock's resolution can be changed - ClockFlagCanSetMaster ClockFlags = C.GST_CLOCK_FLAG_CAN_SET_MASTER // (512) – clock can be slaved to a master clock - ClockFlagNeedsStartupSync ClockFlags = C.GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC // (1024) – clock needs to be synced before it can be used (Since: 1.6) - ClockFlagLast ClockFlags = C.GST_CLOCK_FLAG_LAST // (4096) – subclasses can add additional flags starting from this flag -) - -// ClockReturn wraps a GstClockReturn -type ClockReturn int - -// Type castings of clock returns -const ( - ClockOK ClockReturn = C.GST_CLOCK_OK // (0) – The operation succeeded. - ClockEarly ClockReturn = C.GST_CLOCK_EARLY // (1) – The operation was scheduled too late. - ClockUnscheduled ClockReturn = C.GST_CLOCK_UNSCHEDULED // (2) – The clockID was unscheduled - ClockBusy ClockReturn = C.GST_CLOCK_BUSY // (3) – The ClockID is busy - ClockBadTime ClockReturn = C.GST_CLOCK_BADTIME // (4) – A bad time was provided to a function. - ClockError ClockReturn = C.GST_CLOCK_ERROR // (5) – An error occurred - ClockUnsupported ClockReturn = C.GST_CLOCK_UNSUPPORTED // (6) – Operation is not supported - ClockDone ClockReturn = C.GST_CLOCK_DONE // (7) – The ClockID is done waiting -) - -// BusSyncReply casts GstBusSyncReply to a go type -type BusSyncReply int - -// Type castings of SyncReplies -const ( - BusDrop BusSyncReply = C.GST_BUS_DROP // (0) – drop the message - BusPass BusSyncReply = C.GST_BUS_PASS // (1) – pass the message to the async queue - BusAsync BusSyncReply = C.GST_BUS_ASYNC // (2) – pass message to async queue, continue if message is handled -) - -// BufferFlags casts GstBufferFlags to a go type. -type BufferFlags int - -// Type castings of BufferFlags -const ( - BufferFlagLive BufferFlags = C.GST_BUFFER_FLAG_LIVE // (16) – the buffer is live data and should be discarded in the PAUSED state. - BufferFlagDecodeOnly BufferFlags = C.GST_BUFFER_FLAG_DECODE_ONLY // (32) – the buffer contains data that should be dropped because it will be clipped against the segment boundaries or because it does not contain data that should be shown to the user. - BufferFlagDiscont BufferFlags = C.GST_BUFFER_FLAG_DISCONT // (64) – the buffer marks a data discontinuity in the stream. This typically occurs after a seek or a dropped buffer from a live or network source. - BufferFlagResync BufferFlags = C.GST_BUFFER_FLAG_RESYNC // (128) – the buffer timestamps might have a discontinuity and this buffer is a good point to resynchronize. - BufferFlagCorrupted BufferFlags = C.GST_BUFFER_FLAG_CORRUPTED // (256) – the buffer data is corrupted. - BufferFlagMarker BufferFlags = C.GST_BUFFER_FLAG_MARKER // (512) – the buffer contains a media specific marker. for video this is the end of a frame boundary, for audio this is the start of a talkspurt. - BufferFlagHeader BufferFlags = C.GST_BUFFER_FLAG_HEADER // (1024) – the buffer contains header information that is needed to decode the following data. - BufferFlagGap BufferFlags = C.GST_BUFFER_FLAG_GAP // (2048) – the buffer has been created to fill a gap in the stream and contains media neutral data (elements can switch to optimized code path that ignores the buffer content). - BufferFlagDroppable BufferFlags = C.GST_BUFFER_FLAG_DROPPABLE // (4096) – the buffer can be dropped without breaking the stream, for example to reduce bandwidth. - BufferFlagDeltaUnit BufferFlags = C.GST_BUFFER_FLAG_DELTA_UNIT // (8192) – this unit cannot be decoded independently. - BufferFlagSyncAfter BufferFlags = C.GST_BUFFER_FLAG_SYNC_AFTER // (32768) – Elements which write to disk or permanent storage should ensure the data is synced after writing the contents of this buffer. (Since: 1.6) - BufferFlagNonDroppable BufferFlags = C.GST_BUFFER_FLAG_NON_DROPPABLE // (65536) – This buffer is important and should not be dropped. This can be used to mark important buffers, e.g. to flag RTP packets carrying keyframes or codec setup data for RTP Forward Error Correction purposes, or to prevent still video frames from being dropped by elements due to QoS. (Since: 1.14) - BufferFlagLast BufferFlags = C.GST_BUFFER_FLAG_LAST // (1048576) – additional media specific flags can be added starting from this flag. -) - -// BufferCopyFlags casts GstBufferCopyFlags to a go type. -type BufferCopyFlags int - -// Type castings of BufferCopyFlags -const ( - BufferCopyNone BufferCopyFlags = C.GST_BUFFER_COPY_NONE // (0) – copy nothing - BufferCopyBufferFlags BufferCopyFlags = C.GST_BUFFER_COPY_FLAGS // (1) – flag indicating that buffer flags should be copied - BufferCopyTimestamps BufferCopyFlags = C.GST_BUFFER_COPY_TIMESTAMPS // (2) – flag indicating that buffer pts, dts, duration, offset and offset_end should be copied - BufferCopyMeta BufferCopyFlags = C.GST_BUFFER_COPY_META // (4) – flag indicating that buffer meta should be copied - BufferCopyMemory BufferCopyFlags = C.GST_BUFFER_COPY_MEMORY // (8) – flag indicating that buffer memory should be reffed and appended to already existing memory. Unless the memory is marked as NO_SHARE, no actual copy of the memory is made but it is simply reffed. Add GST_BUFFER_COPY_DEEP to force a real copy. - BufferCopyMerge BufferCopyFlags = C.GST_BUFFER_COPY_MERGE // (16) – flag indicating that buffer memory should be merged - BufferCopyDeep BufferCopyFlags = C.GST_BUFFER_COPY_DEEP // (32) – flag indicating that memory should always be copied instead of reffed (Since: 1.2) -) - -// BufferPoolAcquireFlags casts GstBufferPoolAcquireFlags to a go type. -type BufferPoolAcquireFlags int - -// Type castings of BufferPoolAcquireFlags -const ( - BufferPoolAcquireFlagNone BufferPoolAcquireFlags = C.GST_BUFFER_POOL_ACQUIRE_FLAG_NONE // (0) – no flags - BufferPoolAcquireFlagKeyUnit BufferPoolAcquireFlags = C.GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT // (1) – buffer is keyframe - BufferPoolAcquireFlagDontWait BufferPoolAcquireFlags = C.GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT // (2) – when the bufferpool is empty, acquire_buffer will by default block until a buffer is released into the pool again. Setting this flag makes acquire_buffer return GST_FLOW_EOS instead of blocking. - BufferPoolAcquireFlagDiscont BufferPoolAcquireFlags = C.GST_BUFFER_POOL_ACQUIRE_FLAG_DISCONT // (4) – buffer is discont - BufferPoolAcquireFlagLast BufferPoolAcquireFlags = C.GST_BUFFER_POOL_ACQUIRE_FLAG_LAST // (65536) – last flag, subclasses can use private flags starting from this value. -) - -// BufferingMode is a representation of GstBufferingMode -type BufferingMode int - -// Type casts of buffering modes -const ( - BufferingStream BufferingMode = C.GST_BUFFERING_STREAM // (0) – a small amount of data is buffered - BufferingDownload BufferingMode = C.GST_BUFFERING_DOWNLOAD // (1) – the stream is being downloaded - BufferingTimeshift BufferingMode = C.GST_BUFFERING_TIMESHIFT // (2) – the stream is being downloaded in a ringbuffer - BufferingLive BufferingMode = C.GST_BUFFERING_LIVE // (3) – the stream is a live stream -) - -// String implements a stringer on a BufferingMode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b BufferingMode) String() string { - switch b { - case BufferingStream: - return "A small amount of data is buffered" - case BufferingDownload: - return "The stream is being downloaded" - case BufferingTimeshift: - return "The stream is being downloaded in a ringbuffer" - case BufferingLive: - return "The stream is live" - } - return "" -} - -// SegmentFlags casts GstSegmentFlags -type SegmentFlags int - -// Type castings -const ( - SegmentFlagNone SegmentFlags = C.GST_SEGMENT_FLAG_NONE // (0) – no flags - SegmentFlagReset SegmentFlags = C.GST_SEGMENT_FLAG_RESET // (1) – reset the pipeline running_time to the segment running_time - SegmentFlagTrickMode SegmentFlags = C.GST_SEGMENT_FLAG_TRICKMODE // (16) – perform skip playback (Since: 1.6) - SegmentFlagSkip SegmentFlags = C.GST_SEGMENT_FLAG_SKIP // (16) – Deprecated backward compatibility flag, replaced by GST_SEGMENT_FLAG_TRICKMODE - SegmentFlagSegment SegmentFlags = C.GST_SEGMENT_FLAG_SEGMENT // (8) – send SEGMENT_DONE instead of EOS - SegmentFlagKeyUnits SegmentFlags = C.GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS // (128) – Decode only keyframes, where possible (Since: 1.6) - // SegmentFlagTrickModeForwardPredicted SegmentFlags = C.GST_SEGMENT_FLAG_TRICKMODE_FORWARD_PREDICTED // (512) – Decode only keyframes or forward predicted frames, where possible (Since: 1.18) - SegmentFlagTrickModeNoAudio SegmentFlags = C.GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO // (256) – Do not decode any audio, where possible (Since: 1.6) -) - -// EventType is a go cast for a GstEventType -type EventType int - -// Type casts for EventTypes -const ( - EventTypeUnknown EventType = C.GST_EVENT_UNKNOWN //(0) – unknown event. - EventTypeFlushStart EventType = C.GST_EVENT_FLUSH_START // (2563) – Start a flush operation. This event clears all data from the pipeline and unblock all streaming threads. - EventTypeFlushStop EventType = C.GST_EVENT_FLUSH_STOP // (5127) – Stop a flush operation. This event resets the running-time of the pipeline. - EventTypeStreamStart EventType = C.GST_EVENT_STREAM_START // (10254) – Event to mark the start of a new stream. Sent before any other serialized event and only sent at the start of a new stream, not after flushing seeks. - EventTypeCaps EventType = C.GST_EVENT_CAPS // (12814) – GstCaps event. Notify the pad of a new media type. - EventTypeSegment EventType = C.GST_EVENT_SEGMENT // (17934) – A new media segment follows in the dataflow. The segment events contains information for clipping buffers and converting buffer timestamps to running-time and stream-time. - EventTypeStreamCollection EventType = C.GST_EVENT_STREAM_COLLECTION // (19230) – A new GstStreamCollection is available (Since: 1.10) - EventTypeTag EventType = C.GST_EVENT_TAG // (20510) – A new set of metadata tags has been found in the stream. - EventTypeBufferSize EventType = C.GST_EVENT_BUFFERSIZE // (23054) – Notification of buffering requirements. Currently not used yet. - EventTypeSinkMessage EventType = C.GST_EVENT_SINK_MESSAGE // (25630) – An event that sinks turn into a message. Used to send messages that should be emitted in sync with rendering. - EventTypeStreamGroupDone EventType = C.GST_EVENT_STREAM_GROUP_DONE // (26894) – Indicates that there is no more data for the stream group ID in the message. Sent before EOS in some instances and should be handled mostly the same. (Since: 1.10) - EventTypeEOS EventType = C.GST_EVENT_EOS // (28174) – End-Of-Stream. No more data is to be expected to follow without either a STREAM_START event, or a FLUSH_STOP and a SEGMENT event. - EventTypeTOC EventType = C.GST_EVENT_TOC // (30750) – An event which indicates that a new table of contents (TOC) was found or updated. - EventTypeProtection EventType = C.GST_EVENT_PROTECTION // (33310) – An event which indicates that new or updated encryption information has been found in the stream. - EventTypeSegmentDone EventType = C.GST_EVENT_SEGMENT_DONE // (38406) – Marks the end of a segment playback. - EventTypeGap EventType = C.GST_EVENT_GAP // (40966) – Marks a gap in the datastream. - // EventTypeInstantRateChange EventType = C.GST_EVENT_INSTANT_RATE_CHANGE // (46090) – Notify downstream that a playback rate override should be applied as soon as possible. (Since: 1.18) - EventTypeQOS EventType = C.GST_EVENT_QOS // (48641) – A quality message. Used to indicate to upstream elements that the downstream elements should adjust their processing rate. - EventTypeSeek EventType = C.GST_EVENT_SEEK // (51201) – A request for a new playback position and rate. - EventTypeNavigation EventType = C.GST_EVENT_NAVIGATION // (53761) – Navigation events are usually used for communicating user requests, such as mouse or keyboard movements, to upstream elements. - EventTypeLatency EventType = C.GST_EVENT_LATENCY // (56321) – Notification of new latency adjustment. Sinks will use the latency information to adjust their synchronization. - EventTypeStep EventType = C.GST_EVENT_STEP // (58881) – A request for stepping through the media. Sinks will usually execute the step operation. - EventTypeReconfigure EventType = C.GST_EVENT_RECONFIGURE // (61441) – A request for upstream renegotiating caps and reconfiguring. - EventTypeTOCSelect EventType = C.GST_EVENT_TOC_SELECT // (64001) – A request for a new playback position based on TOC entry's UID. - EventTypeSelectStreams EventType = C.GST_EVENT_SELECT_STREAMS // (66561) – A request to select one or more streams (Since: 1.10) - // EventTypeInstantRateSyncTime EventType = C.GST_EVENT_INSTANT_RATE_SYNC_TIME // (66817) – Sent by the pipeline to notify elements that handle the instant-rate-change event about the running-time when the rate multiplier should be applied (or was applied). (Since: 1.18) - EventTypeCustomUpstream EventType = C.GST_EVENT_CUSTOM_UPSTREAM // (69121) – Upstream custom event - EventTypeCustomDownstream EventType = C.GST_EVENT_CUSTOM_DOWNSTREAM // (71686) – Downstream custom event that travels in the data flow. - EventTypeCustomOOB EventType = C.GST_EVENT_CUSTOM_DOWNSTREAM_OOB // (74242) – Custom out-of-band downstream event. - EventTypeCustomDownstreamSticky EventType = C.GST_EVENT_CUSTOM_DOWNSTREAM_STICKY // (76830) – Custom sticky downstream event. - EventTypeCustomBoth EventType = C.GST_EVENT_CUSTOM_BOTH // (79367) – Custom upstream or downstream event. In-band when traveling downstream. - EventTypeCustomBothOOB EventType = C.GST_EVENT_CUSTOM_BOTH_OOB // (81923) – Custom upstream or downstream out-of-band event. -) - -// String implements a stringer on event types -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e EventType) String() string { return C.GoString(C.gst_event_type_get_name(C.GstEventType(e))) } - -// EventTypeFlags casts GstEventTypeFlags -type EventTypeFlags int - -// Type castings -const ( - EventTypeFlagUpstream EventTypeFlags = C.GST_EVENT_TYPE_UPSTREAM // (1) – Set if the event can travel upstream. - EventTypeFlagDownstream EventTypeFlags = C.GST_EVENT_TYPE_DOWNSTREAM // (2) – Set if the event can travel downstream. - EventTypeFlagSerialized EventTypeFlags = C.GST_EVENT_TYPE_SERIALIZED // (4) – Set if the event should be serialized with data flow. - EventTypeFlagSticky EventTypeFlags = C.GST_EVENT_TYPE_STICKY // (8) – Set if the event is sticky on the pads. - EventTypeFlagStickyMulti EventTypeFlags = C.GST_EVENT_TYPE_STICKY_MULTI // (16) – Multiple sticky events can be on a pad, each identified by the event name. -) - -// GapFlags casts GstGapFlags -type GapFlags int - -// Type castings -const ( - GapFlagMissingData GapFlags = 1 -) - -// QOSType casts GstQOSType -type QOSType int - -// Type castings -const ( - QOSTypeOverflow QOSType = C.GST_QOS_TYPE_OVERFLOW // (0) – The QoS event type that is produced when upstream elements are producing data too quickly and the element can't keep up processing the data. Upstream should reduce their production rate. This type is also used when buffers arrive early or in time. - QOSTypeUnderflow QOSType = C.GST_QOS_TYPE_UNDERFLOW // (1) – The QoS event type that is produced when upstream elements are producing data too slowly and need to speed up their production rate. - QOSTypeThrottle QOSType = C.GST_QOS_TYPE_THROTTLE // (2) – The QoS event type that is produced when the application enabled throttling to limit the data rate. -) - -// Format is a representation of GstFormat. -type Format int - -// Type casts of formats -const ( - FormatUndefined Format = C.GST_FORMAT_UNDEFINED // (0) – undefined format - FormatDefault Format = C.GST_FORMAT_DEFAULT // (1) – the default format of the pad/element. This can be samples for raw audio, or frames/fields for raw video. - FormatBytes Format = C.GST_FORMAT_BYTES // (2) - bytes - FormatTime Format = C.GST_FORMAT_TIME // (3) – time in nanoseconds -) - -// String implements a stringer on GstFormat types -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) String() string { - switch f { - case FormatUndefined: - return "undefined" - case FormatDefault: - return "default" - case FormatBytes: - return "bytes" - case FormatTime: - return "time" - } - return "" -} - -// MessageType is an alias to the C equivalent of GstMessageType. -// See the official documentation for definitions of the messages: -// https://gstreamer.freedesktop.org/documentation/gstreamer/gstmessage.html?gi-language=c#GstMessageType -type MessageType int - -// Type casting of GstMessageTypes -// See the official documentation for definitions of the messages: -// https://gstreamer.freedesktop.org/documentation/gstreamer/gstmessage.html?gi-language=c#GstMessageType -const ( - MessageUnknown MessageType = C.GST_MESSAGE_UNKNOWN - MessageEOS MessageType = C.GST_MESSAGE_EOS - MessageError MessageType = C.GST_MESSAGE_ERROR - MessageWarning MessageType = C.GST_MESSAGE_WARNING - MessageInfo MessageType = C.GST_MESSAGE_INFO - MessageTag MessageType = C.GST_MESSAGE_TAG - MessageBuffering MessageType = C.GST_MESSAGE_BUFFERING - MessageStateChanged MessageType = C.GST_MESSAGE_STATE_CHANGED - MessageStateDirty MessageType = C.GST_MESSAGE_STATE_DIRTY - MessageStepDone MessageType = C.GST_MESSAGE_STEP_DONE - MessageClockProvide MessageType = C.GST_MESSAGE_CLOCK_PROVIDE - MessageClockLost MessageType = C.GST_MESSAGE_CLOCK_LOST - MessageNewClock MessageType = C.GST_MESSAGE_NEW_CLOCK - MessageStructureChange MessageType = C.GST_MESSAGE_STRUCTURE_CHANGE - MessageStreamStatus MessageType = C.GST_MESSAGE_STREAM_STATUS - MessageApplication MessageType = C.GST_MESSAGE_APPLICATION - MessageElement MessageType = C.GST_MESSAGE_ELEMENT - MessageSegmentStart MessageType = C.GST_MESSAGE_SEGMENT_START - MessageSegmentDone MessageType = C.GST_MESSAGE_SEGMENT_DONE - MessageDurationChanged MessageType = C.GST_MESSAGE_DURATION_CHANGED - MessageLatency MessageType = C.GST_MESSAGE_LATENCY - MessageAsyncStart MessageType = C.GST_MESSAGE_ASYNC_START - MessageAsyncDone MessageType = C.GST_MESSAGE_ASYNC_DONE - MessageRequestState MessageType = C.GST_MESSAGE_REQUEST_STATE - MessageStepStart MessageType = C.GST_MESSAGE_STEP_START - MessageQoS MessageType = C.GST_MESSAGE_QOS - MessageProgress MessageType = C.GST_MESSAGE_PROGRESS - MessageTOC MessageType = C.GST_MESSAGE_TOC - MessageResetTime MessageType = C.GST_MESSAGE_RESET_TIME - MessageStreamStart MessageType = C.GST_MESSAGE_STREAM_START - MessageNeedContext MessageType = C.GST_MESSAGE_NEED_CONTEXT - MessageHaveContext MessageType = C.GST_MESSAGE_HAVE_CONTEXT - MessageExtended MessageType = C.GST_MESSAGE_EXTENDED - MessageDeviceAdded MessageType = C.GST_MESSAGE_DEVICE_ADDED - MessageDeviceRemoved MessageType = C.GST_MESSAGE_DEVICE_REMOVED - MessagePropertyNotify MessageType = C.GST_MESSAGE_PROPERTY_NOTIFY - MessageStreamCollection MessageType = C.GST_MESSAGE_STREAM_COLLECTION - MessageStreamsSelected MessageType = C.GST_MESSAGE_STREAMS_SELECTED - MessageRedirect MessageType = C.GST_MESSAGE_REDIRECT - MessageDeviceChanged MessageType = C.GST_MESSAGE_DEVICE_CHANGED - MessageAny MessageType = C.GST_MESSAGE_ANY -) - -// String implements a stringer on MessageTypes -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m MessageType) String() string { - return C.GoString(C.gst_message_type_get_name((C.GstMessageType)(m))) -} - -// PadFlags is a go cast of GstPadFlags -type PadFlags int - -// Type casts of PadFlags -const ( - PadFlagBlocked PadFlags = C.GST_PAD_FLAG_BLOCKED // (16) – is dataflow on a pad blocked - PadFlagFlushing PadFlags = C.GST_PAD_FLAG_FLUSHING // (32) – is pad flushing - PadFlagEOS PadFlags = C.GST_PAD_FLAG_EOS // (64) – is pad in EOS state - PadFlagBlocking PadFlags = C.GST_PAD_FLAG_BLOCKING // (128) – is pad currently blocking on a buffer or event - PadFlagParent PadFlags = C.GST_PAD_FLAG_NEED_PARENT // (256) – ensure that there is a parent object before calling into the pad callbacks. - PadFlagReconfigure PadFlags = C.GST_PAD_FLAG_NEED_RECONFIGURE // (512) – the pad should be reconfigured/renegotiated. The flag has to be unset manually after reconfiguration happened. - PadFlagPendingEvents PadFlags = C.GST_PAD_FLAG_PENDING_EVENTS // (1024) – the pad has pending events - PadFlagFixedCaps PadFlags = C.GST_PAD_FLAG_FIXED_CAPS // (2048) – the pad is using fixed caps. This means that once the caps are set on the pad, the default caps query function will only return those caps. - PadFlagProxyCaps PadFlags = C.GST_PAD_FLAG_PROXY_CAPS // (4096) – the default event and query handler will forward all events and queries to the internally linked pads instead of discarding them. - PadFlagProxyAllocation PadFlags = C.GST_PAD_FLAG_PROXY_ALLOCATION // (8192) – the default query handler will forward allocation queries to the internally linked pads instead of discarding them. - PadFlagProxyScheduling PadFlags = C.GST_PAD_FLAG_PROXY_SCHEDULING // (16384) – the default query handler will forward scheduling queries to the internally linked pads instead of discarding them. - PadFlagAcceptIntersect PadFlags = C.GST_PAD_FLAG_ACCEPT_INTERSECT // (32768) – the default accept-caps handler will check it the caps intersect the query-caps result instead of checking for a subset. This is interesting for parsers that can accept incompletely specified caps. - PadFlagAcceptTemplate PadFlags = C.GST_PAD_FLAG_ACCEPT_TEMPLATE // (65536) – the default accept-caps handler will use the template pad caps instead of query caps to compare with the accept caps. Use this in combination with GST_PAD_FLAG_ACCEPT_INTERSECT. (Since: 1.6) - PadFlagLast PadFlags = C.GST_PAD_FLAG_LAST // (1048576) – offset to define more flags -) - -// PadLinkCheck is a go cast of GstPadLinkCheck -type PadLinkCheck int - -// Type casts of PadLinkChecks -const ( - PadLinkCheckNothing PadLinkCheck = C.GST_PAD_LINK_CHECK_NOTHING // (0) – Don't check hierarchy or caps compatibility. - PadLinkCheckHierarchy PadLinkCheck = C.GST_PAD_LINK_CHECK_HIERARCHY // (1) – Check the pads have same parents/grandparents. Could be omitted if it is already known that the two elements that own the pads are in the same bin. - PadLinkCheckTemplateCaps PadLinkCheck = C.GST_PAD_LINK_CHECK_TEMPLATE_CAPS // (2) – Check if the pads are compatible by using their template caps. This is much faster than GST_PAD_LINK_CHECK_CAPS, but would be unsafe e.g. if one pad has GST_CAPS_ANY. - PadLinkCheckCaps PadLinkCheck = C.GST_PAD_LINK_CHECK_CAPS // (4) – Check if the pads are compatible by comparing the caps returned by gst_pad_query_caps. - PadLinkCheckNoReconfigure PadLinkCheck = C.GST_PAD_LINK_CHECK_NO_RECONFIGURE // (8) – Disables pushing a reconfigure event when pads are linked. - PadLinkCheckDefault PadLinkCheck = C.GST_PAD_LINK_CHECK_DEFAULT // (5) – The default checks done when linking pads (i.e. the ones used by gst_pad_link). -) - -// PadMode is a cast of GstPadMode. -type PadMode int - -// Type casts of PadModes -const ( - PadModeNone PadMode = C.GST_PAD_MODE_NONE // (0) – Pad will not handle dataflow - PadModePush PadMode = C.GST_PAD_MODE_PUSH // (1) – Pad handles dataflow in downstream push mode - PadModePull PadMode = C.GST_PAD_MODE_PULL // (2) – Pad handles dataflow in upstream pull mode -) - -// String implements a stringer on PadMode -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p PadMode) String() string { - return C.GoString(C.gst_pad_mode_get_name(C.GstPadMode(p))) -} - -// PadDirection is a cast of GstPadDirection to a go type. -type PadDirection int - -// Type casting of pad directions -const ( - PadDirectionUnknown PadDirection = C.GST_PAD_UNKNOWN // (0) - the direction is unknown - PadDirectionSource PadDirection = C.GST_PAD_SRC // (1) - the pad is a source pad - PadDirectionSink PadDirection = C.GST_PAD_SINK // (2) - the pad is a sink pad -) - -// String implements a Stringer on PadDirection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p PadDirection) String() string { - switch p { - case PadDirectionUnknown: - return "unknown" - case PadDirectionSource: - return "src" - case PadDirectionSink: - return "sink" - } - return "" -} - -// PadLinkReturn os a representation of GstPadLinkReturn. -type PadLinkReturn int - -// Type casts for PadLinkReturns. -const ( - PadLinkOK PadLinkReturn = C.GST_PAD_LINK_OK - PadLinkWrongHierarchy PadLinkReturn = C.GST_PAD_LINK_WRONG_HIERARCHY - PadLinkWasLinked PadLinkReturn = C.GST_PAD_LINK_WAS_LINKED - PadLinkWrongDirection PadLinkReturn = C.GST_PAD_LINK_WRONG_DIRECTION - PadLinkNoFormat PadLinkReturn = C.GST_PAD_LINK_NOFORMAT - PadLinkNoSched PadLinkReturn = C.GST_PAD_LINK_NOSCHED - PadLinkRefused PadLinkReturn = C.GST_PAD_LINK_REFUSED -) - -// String implemeents a stringer on PadLinkReturn -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p PadLinkReturn) String() string { - return C.GoString(C.gst_pad_link_get_name(C.GstPadLinkReturn(p))) -} - -// PadPresence is a cast of GstPadPresence to a go type. -type PadPresence int - -// Type casting of pad presences -const ( - PadPresenceAlways PadPresence = C.GST_PAD_ALWAYS // (0) - the pad is always available - PadPresenceSometimes PadPresence = C.GST_PAD_SOMETIMES // (1) - the pad will become available depending on the media stream - PadPresenceRequest PadPresence = C.GST_PAD_REQUEST // (2) - the pad is only available on request with gst_element_request_pad. -) - -// String implements a stringer on PadPresence. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p PadPresence) String() string { - switch p { - case PadPresenceAlways: - return "always" - case PadPresenceSometimes: - return "sometimes" - case PadPresenceRequest: - return "request" - } - return "" -} - -// PadProbeReturn casts GstPadProbeReturn -type PadProbeReturn int - -// Type castings of ProbeReturns -const ( - PadProbeDrop PadProbeReturn = C.GST_PAD_PROBE_DROP // (0) – drop data in data probes. For push mode this means that the data item is not sent downstream. For pull mode, it means that the data item is not passed upstream. In both cases, no other probes are called for this item and GST_FLOW_OK or TRUE is returned to the caller. - PadProbeOK PadProbeReturn = C.GST_PAD_PROBE_OK // (1) – normal probe return value. This leaves the probe in place, and defers decisions about dropping or passing data to other probes, if any. If there are no other probes, the default behavior for the probe type applies ('block' for blocking probes, and 'pass' for non-blocking probes). - PadProbeRemove PadProbeReturn = C.GST_PAD_PROBE_REMOVE // (2) – remove this probe. - PadProbePass PadProbeReturn = C.GST_PAD_PROBE_PASS // (3) – pass the data item in the block probe and block on the next item. - PadProbeHandled PadProbeReturn = C.GST_PAD_PROBE_HANDLED // (4) – Data has been handled in the probe and will not be forwarded further. For events and buffers this is the same behavior as GST_PAD_PROBE_DROP (except that in this case you need to unref the buffer or event yourself). For queries it will also return TRUE to the caller. The probe can also modify the GstFlowReturn value by using the GST_PAD_PROBE_INFO_FLOW_RETURN() accessor. Note that the resulting query must contain valid entries. Since: 1.6 -) - -// PadProbeType casts GstPadProbeType -type PadProbeType int - -// Type castings of PadProbeTypes -const ( - PadProbeTypeInvalid PadProbeType = C.GST_PAD_PROBE_TYPE_INVALID // (0) – invalid probe type - PadProbeTypeIdle PadProbeType = C.GST_PAD_PROBE_TYPE_IDLE // (1) – probe idle pads and block while the callback is called - PadProbeTypeBlock PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCK // (2) – probe and block pads - PadProbeTypeBuffer PadProbeType = C.GST_PAD_PROBE_TYPE_BUFFER // (16) – probe buffers - PadProbeTypeBufferList PadProbeType = C.GST_PAD_PROBE_TYPE_BUFFER_LIST // (32) – probe buffer lists - PadProbeTypeEventDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM // (64) – probe downstream events - PadProbeTypeEventUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_UPSTREAM // (128) – probe upstream events - PadProbeTypeEventFlush PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_FLUSH // (256) – probe flush events. This probe has to be explicitly enabled and is not included in the @GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM or @GST_PAD_PROBE_TYPE_EVENT_UPSTREAM probe types. - PadProbeTypeQueryDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM // (512) – probe downstream queries - PadProbeTypeQueryUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_QUERY_UPSTREAM // (1024) – probe upstream queries - PadProbeTypePush PadProbeType = C.GST_PAD_PROBE_TYPE_PUSH // (4096) – probe push - PadProbeTypePull PadProbeType = C.GST_PAD_PROBE_TYPE_PULL // (8192) – probe pull - PadProbeTypeBlocking PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCKING // (3) – probe and block at the next opportunity, at data flow or when idle - PadProbeTypeDataDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM // (112) – probe downstream data (buffers, buffer lists, and events) - PadProbeTypeDataUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_DATA_UPSTREAM // (128) – probe upstream data (events) - PadProbeTypeDataBoth PadProbeType = C.GST_PAD_PROBE_TYPE_DATA_BOTH // (240) – probe upstream and downstream data (buffers, buffer lists, and events) - PadProbeTypeBlockDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM // (114) – probe and block downstream data (buffers, buffer lists, and events) - PadProbeTypeBlockUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM // (130) – probe and block upstream data (events) - PadProbeTypeEventBoth PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_BOTH // (192) – probe upstream and downstream events - PadProbeTypeQueryBoth PadProbeType = C.GST_PAD_PROBE_TYPE_QUERY_BOTH // (1536) – probe upstream and downstream queries - PadProbeTypeAllBoth PadProbeType = C.GST_PAD_PROBE_TYPE_ALL_BOTH // (1776) – probe upstream events and queries and downstream buffers, buffer lists, events and queries - PadProbeTypeScheduling PadProbeType = C.GST_PAD_PROBE_TYPE_SCHEDULING // (12288) – probe push and pull -) - -// Rank casts GstRank -type Rank uint - -const ( - RankNone Rank = C.GST_RANK_NONE // (0) - will be chosen last or not at all - RankMarginal Rank = C.GST_RANK_MARGINAL // (64) – unlikely to be chosen - RankSecondary Rank = C.GST_RANK_SECONDARY // (128) – likely to be chosen - RankPrimary Rank = C.GST_RANK_PRIMARY // (256) – will be chosen first -) - -// SchedulingFlags casts GstSchedulingFlags -type SchedulingFlags int - -// Type casts -const ( - SchedulingFlagSeekable SchedulingFlags = C.GST_SCHEDULING_FLAG_SEEKABLE // (1) – if seeking is possible - SchedulingFlagSequential SchedulingFlags = C.GST_SCHEDULING_FLAG_SEQUENTIAL // (2) – if sequential access is recommended - SchedulingFlagBandwidthLimited SchedulingFlags = C.GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED // (4) – if bandwidth is limited and buffering possible (since 1.2) -) - -// State is a type cast of the C GstState -type State int - -// Type casting for GstStates -const ( - VoidPending State = C.GST_STATE_VOID_PENDING // (0) – no pending state. - StateNull State = C.GST_STATE_NULL // (1) – the NULL state or initial state of an element. - StateReady State = C.GST_STATE_READY // (2) – the element is ready to go to PAUSED. - StatePaused State = C.GST_STATE_PAUSED // (3) – the element is PAUSED, it is ready to accept and process data. Sink elements however only accept one buffer and then block. - StatePlaying State = C.GST_STATE_PLAYING // (4) – the element is PLAYING, the GstClock is running and the data is flowing. -) - -// String returns the string representation of this state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s State) String() string { - return C.GoString(C.gst_element_state_get_name((C.GstState)(s))) -} - -// SeekFlags is a representation of GstSeekFlags. -type SeekFlags int - -// Type casts of SeekFlags -const ( - SeekFlagNone SeekFlags = C.GST_SEEK_FLAG_NONE - SeekFlagFlush SeekFlags = C.GST_SEEK_FLAG_FLUSH - SeekFlagAccurate SeekFlags = C.GST_SEEK_FLAG_ACCURATE - SeekFlagKeyUnit SeekFlags = C.GST_SEEK_FLAG_KEY_UNIT - SeekFlagSegment SeekFlags = C.GST_SEEK_FLAG_SEGMENT - SeekFlagSkip SeekFlags = C.GST_SEEK_FLAG_SKIP - SeekFlagSnapBefore SeekFlags = C.GST_SEEK_FLAG_SNAP_BEFORE - SeekFlagSnapAfter SeekFlags = C.GST_SEEK_FLAG_SNAP_AFTER - SeekFlagSnapNearest SeekFlags = C.GST_SEEK_FLAG_SNAP_NEAREST -) - -// SeekType is a representation of GstSeekType. -type SeekType int - -// Type casts of seek types -const ( - SeekTypeNone SeekType = C.GST_SEEK_TYPE_NONE - SeekTypeSet SeekType = C.GST_SEEK_TYPE_SET - SeekTypeEnd SeekType = C.GST_SEEK_TYPE_END -) - -// StateChange is the different state changes an element goes through. StateNull ⇒ StatePlaying is called -// an upwards state change and StatePlaying ⇒ StateNull a downwards state change. -// -// See https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c#GstStateChange -// for more information on the responsibiltiies of elements during each transition. -type StateChange int - -// StateChange castings -const ( - StateChangeNullToReady StateChange = C.GST_STATE_CHANGE_NULL_TO_READY - StateChangeReadyToPaused StateChange = C.GST_STATE_CHANGE_READY_TO_PAUSED - StateChangePausedToPlaying StateChange = C.GST_STATE_CHANGE_PAUSED_TO_PLAYING - StateChangePlayingToPaused StateChange = C.GST_STATE_CHANGE_PLAYING_TO_PAUSED - StateChangePausedToReady StateChange = C.GST_STATE_CHANGE_PAUSED_TO_READY - StateChangeReadyToNull StateChange = C.GST_STATE_CHANGE_READY_TO_NULL - StateChangeNullToNull StateChange = C.GST_STATE_CHANGE_NULL_TO_NULL - StateChangeReadyToReady StateChange = C.GST_STATE_CHANGE_READY_TO_READY - StateChangePausedToPaused StateChange = C.GST_STATE_CHANGE_PAUSED_TO_PAUSED - StateChangePlayingToPlaying StateChange = C.GST_STATE_CHANGE_PLAYING_TO_PLAYING -) - -// String returns the string representation of a StateChange -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s StateChange) String() string { - return C.GoString(C.gst_state_change_get_name(C.GstStateChange(s))) -} - -// StateChangeReturn is a representation of GstStateChangeReturn. -type StateChangeReturn int - -// Type casts of state change returns -const ( - StateChangeFailure StateChangeReturn = C.GST_STATE_CHANGE_FAILURE - StateChangeSuccess StateChangeReturn = C.GST_STATE_CHANGE_SUCCESS - StateChangeAsync StateChangeReturn = C.GST_STATE_CHANGE_ASYNC - StateChangeNoPreroll StateChangeReturn = C.GST_STATE_CHANGE_NO_PREROLL -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s StateChangeReturn) String() string { - return C.GoString(C.gst_element_state_change_return_get_name(C.GstStateChangeReturn(s))) -} - -// ElementFlags casts C GstElementFlags to a go type -type ElementFlags int - -// Type casting of element flags -const ( - ElementFlagLockedState ElementFlags = C.GST_ELEMENT_FLAG_LOCKED_STATE // (16) – ignore state changes from parent - ElementFlagSink ElementFlags = C.GST_ELEMENT_FLAG_SINK // (32) – the element is a sink - ElementFlagSource ElementFlags = C.GST_ELEMENT_FLAG_SOURCE // (64) – the element is a source. - ElementFlagProvideClock ElementFlags = C.GST_ELEMENT_FLAG_PROVIDE_CLOCK // (128) – the element can provide a clock - ElementFlagRequireClock ElementFlags = C.GST_ELEMENT_FLAG_REQUIRE_CLOCK // (256) – the element requires a clock - ElementFlagIndexable ElementFlags = C.GST_ELEMENT_FLAG_INDEXABLE // (512) – the element can use an index - ElementFlagLast ElementFlags = C.GST_ELEMENT_FLAG_LAST // (16384) – offset to define more flags -) - -// MiniObjectFlags casts GstMiniObjectFlags to a go type. -type MiniObjectFlags int - -// Type casting of mini-object flags -const ( - MiniObjectFlagLockable MiniObjectFlags = C.GST_MINI_OBJECT_FLAG_LOCKABLE // (1) – the object can be locked and unlocked with gst_mini_object_lock and gst_mini_object_unlock. - MiniObjectFlagLockReadOnly MiniObjectFlags = C.GST_MINI_OBJECT_FLAG_LOCK_READONLY // (2) – the object is permanently locked in READONLY mode. Only read locks can be performed on the object. - MiniObjectFlagMayBeLeaked MiniObjectFlags = C.GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED // (4) – the object is expected to stay alive even after gst_deinit has been called and so should be ignored by leak detection tools. (Since: 1.10) - MiniObjectFlagLast MiniObjectFlags = C.GST_MINI_OBJECT_FLAG_LAST // (16) – first flag that can be used by subclasses. -) - -// FlowReturn is go type casting for GstFlowReturn. -type FlowReturn int - -// Type casting of the GstFlowReturn types. Custom ones are omitted for now. -const ( - FlowOK FlowReturn = C.GST_FLOW_OK // Data passing was ok - FlowNotLinked FlowReturn = C.GST_FLOW_NOT_LINKED // Pad is not linked - FlowFlushing FlowReturn = C.GST_FLOW_FLUSHING // Pad is flushing - FlowEOS FlowReturn = C.GST_FLOW_EOS // Pad is EOS - FlowNotNegotiated FlowReturn = C.GST_FLOW_NOT_NEGOTIATED // Pad is not negotiated - FlowError FlowReturn = C.GST_FLOW_ERROR // Some (fatal) error occurred - FlowNotSupported FlowReturn = C.GST_FLOW_NOT_SUPPORTED // The operation is not supported. -) - -// String impelements a stringer on FlowReturn -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f FlowReturn) String() string { - return C.GoString(C.gst_flow_get_name(C.GstFlowReturn(f))) -} - -// MapFlags is a go casting of GstMapFlags -type MapFlags int - -// Type casting of the map flag types -const ( - MapRead MapFlags = C.GST_MAP_READ // (1) – map for read access - MapWrite MapFlags = C.GST_MAP_WRITE // (2) - map for write access - MapFlagLast MapFlags = C.GST_MAP_FLAG_LAST // (65536) – first flag that can be used for custom purposes -) - -// StreamStatusType represents a type of change in a stream's status -type StreamStatusType int - -// Type castings of the stream status types -const ( - StreamStatusCreate StreamStatusType = C.GST_STREAM_STATUS_TYPE_CREATE // (0) – A new thread need to be created. - StreamStatusEnter StreamStatusType = C.GST_STREAM_STATUS_TYPE_ENTER // (1) – a thread entered its loop function - StreamStatusLeave StreamStatusType = C.GST_STREAM_STATUS_TYPE_LEAVE // (2) – a thread left its loop function - StreamStatusDestroy StreamStatusType = C.GST_STREAM_STATUS_TYPE_DESTROY // (3) – a thread is destroyed - StreamStatusStart StreamStatusType = C.GST_STREAM_STATUS_TYPE_START // (8) – a thread is started - StreamStatusPause StreamStatusType = C.GST_STREAM_STATUS_TYPE_PAUSE // (9) – a thread is paused - StreamStatusStop StreamStatusType = C.GST_STREAM_STATUS_TYPE_STOP // (10) – a thread is stopped -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s StreamStatusType) String() string { - switch s { - case StreamStatusCreate: - return "A new thread needs to be created" - case StreamStatusEnter: - return "A thread has entered its loop function" - case StreamStatusLeave: - return "A thread has left its loop function" - case StreamStatusDestroy: - return "A thread has been destroyed" - case StreamStatusStart: - return "A thread has started" - case StreamStatusPause: - return "A thread has paused" - case StreamStatusStop: - return "A thread has stopped" - } - return "" -} - -// StructureChangeType is a go representation of a GstStructureChangeType -type StructureChangeType int - -// Type castings of StructureChangeTypes -const ( - StructureChangePadLink StructureChangeType = C.GST_STRUCTURE_CHANGE_TYPE_PAD_LINK // (0) – Pad linking is starting or done. - StructureChangePadUnlink StructureChangeType = C.GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK // (1) – Pad unlinking is starting or done. -) - -// String implements a stringer on StructureChangeTypes. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s StructureChangeType) String() string { - switch s { - case StructureChangePadLink: - return "pad link" - case StructureChangePadUnlink: - return "pad unlink" - } - return "" -} - -// ProgressType is a go representation of a GstProgressType -type ProgressType int - -// Type castings of ProgressTypes -const ( - ProgressTypeStart ProgressType = C.GST_PROGRESS_TYPE_START // (0) – A new task started. - ProgressTypeContinue ProgressType = C.GST_PROGRESS_TYPE_CONTINUE // (1) – A task completed and a new one continues. - ProgressTypeComplete ProgressType = C.GST_PROGRESS_TYPE_COMPLETE // (2) – A task completed. - ProgressTypeCanceled ProgressType = C.GST_PROGRESS_TYPE_CANCELED // (3) – A task was canceled. - ProgressTypeError ProgressType = C.GST_PROGRESS_TYPE_ERROR // (4) – A task caused an error. An error message is also posted on the bus. -) - -// String implements a stringer on ProgressTypes -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p ProgressType) String() string { - switch p { - case ProgressTypeStart: - return "started" - case ProgressTypeContinue: - return "continuing" - case ProgressTypeComplete: - return "completed" - case ProgressTypeCanceled: - return "canceled" - case ProgressTypeError: - return "error" - } - return "" -} - -// StreamType is a go representation of a GstStreamType -type StreamType int - -// Type castings of stream types -const ( - StreamTypeUnknown StreamType = C.GST_STREAM_TYPE_UNKNOWN // (1) – The stream is of unknown (unclassified) type. - StreamTypeAudio StreamType = C.GST_STREAM_TYPE_AUDIO // (2) – The stream is of audio data - StreamTypeVideo StreamType = C.GST_STREAM_TYPE_VIDEO // (4) – The stream carries video data - StreamTypeContainer StreamType = C.GST_STREAM_TYPE_CONTAINER // (8) – The stream is a muxed container type - StreamTypeText StreamType = C.GST_STREAM_TYPE_TEXT // (16) – The stream contains subtitle / subpicture data. -) - -// String implements a stringer on StreamTypes. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s StreamType) String() string { - name := C.gst_stream_type_get_name((C.GstStreamType)(s)) - defer C.free(unsafe.Pointer(name)) - return C.GoString(name) -} - -// StreamFlags represent configuration options for a new stream. -type StreamFlags int - -// Type castings of StreamFlags -const ( - StreamFlagNone StreamFlags = C.GST_STREAM_FLAG_NONE // (0) – This stream has no special attributes - StreamFlagSparse StreamFlags = C.GST_STREAM_FLAG_SPARSE // (1) – This stream is a sparse stream (e.g. a subtitle stream), data may flow only in irregular intervals with large gaps in between. - StreamFlagSelect StreamFlags = C.GST_STREAM_FLAG_SELECT // (2) – This stream should be selected by default. This flag may be used by demuxers to signal that a stream should be selected by default in a playback scenario. - StreamFlagUnselect StreamFlags = C.GST_STREAM_FLAG_UNSELECT // (4) – This stream should not be selected by default. This flag may be used by demuxers to signal that a stream should not be selected by default in a playback scenario, but only if explicitly selected by the user (e.g. an audio track for the hard of hearing or a director's commentary track). -) - -// MemoryFlags represent flags for wrapped memory -type MemoryFlags int - -// Type castins of MemoryFlags -const ( - MemoryFlagReadOnly MemoryFlags = C.GST_MEMORY_FLAG_READONLY // (2) – memory is readonly. It is not allowed to map the memory with GST_MAP_WRITE. - MemoryFlagNoShare MemoryFlags = C.GST_MEMORY_FLAG_NO_SHARE // (16) – memory must not be shared. Copies will have to be made when this memory needs to be shared between buffers. (DEPRECATED: do not use in new code, instead you should create a custom GstAllocator for memory pooling instead of relying on the GstBuffer they were originally attached to.) - MemoryFlagZeroPrefixed MemoryFlags = C.GST_MEMORY_FLAG_ZERO_PREFIXED // (32) – the memory prefix is filled with 0 bytes - MemoryFlagZeroPadded MemoryFlags = C.GST_MEMORY_FLAG_ZERO_PADDED // (64) – the memory padding is filled with 0 bytes - MemoryFlagPhysicallyContiguous MemoryFlags = C.GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS // (128) – the memory is physically contiguous. (Since: 1.2) - MemoryFlagNotMappable MemoryFlags = C.GST_MEMORY_FLAG_NOT_MAPPABLE // (256) – the memory can't be mapped via gst_memory_map without any preconditions. (Since: 1.2) - MemoryFlagLast MemoryFlags = 1048576 // first flag that can be used for custom purposes -) - -// URIType casts C GstURIType to a go type -type URIType int - -// Type cast URI types -const ( - URIUnknown URIType = C.GST_URI_UNKNOWN // (0) – The URI direction is unknown - URISink URIType = C.GST_URI_SINK // (1) – The URI is a consumer. - URISource URIType = C.GST_URI_SRC // (2) - The URI is a producer. -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (u URIType) String() string { - switch u { - case URIUnknown: - return "Unknown" - case URISink: - return "Sink" - case URISource: - return "Source" - } - return "" -} - -// MetaFlags casts C GstMetaFlags to a go type. -type MetaFlags int - -// Type casts of GstMetaFlags -const ( - MetaFlagNone MetaFlags = C.GST_META_FLAG_NONE // (0) – no flags - MetaFlagReadOnly MetaFlags = C.GST_META_FLAG_READONLY // (1) – metadata should not be modified - MetaFlagPooled MetaFlags = C.GST_META_FLAG_POOLED // (2) – metadata is managed by a bufferpool - MetaFlagLocked MetaFlags = C.GST_META_FLAG_LOCKED // (4) – metadata should not be removed - MetaFlagLast MetaFlags = C.GST_META_FLAG_LAST // (65536) – additional flags can be added starting from this flag. -) - -// QueryType casts GstQueryType -type QueryType int - -// Type casts -const ( - QueryUnknown QueryType = C.GST_QUERY_UNKNOWN // (0) – unknown query type - QueryPosition QueryType = C.GST_QUERY_POSITION // (2563) – current position in stream - QueryDuration QueryType = C.GST_QUERY_DURATION // (5123) – total duration of the stream - QueryLatency QueryType = C.GST_QUERY_LATENCY // (7683) – latency of stream - QueryJitter QueryType = C.GST_QUERY_JITTER // (10243) – current jitter of stream - QueryRate QueryType = C.GST_QUERY_RATE // (12803) – current rate of the stream - QuerySeeking QueryType = C.GST_QUERY_SEEKING // (15363) – seeking capabilities - QuerySegment QueryType = C.GST_QUERY_SEGMENT // (17923) – segment start/stop positions - QueryConvert QueryType = C.GST_QUERY_CONVERT // (20483) – convert values between formats - QueryFormats QueryType = C.GST_QUERY_FORMATS // (23043) – query supported formats for convert - QueryBuffering QueryType = C.GST_QUERY_BUFFERING // (28163) – query available media for efficient seeking. - QueryCustom QueryType = C.GST_QUERY_CUSTOM // (30723) – a custom application or element defined que QueryType = C.ry. - QueryURI QueryType = C.GST_QUERY_URI // (33283) – query the URI of the source or sink. - QueryAllocation QueryType = C.GST_QUERY_ALLOCATION // (35846) – the buffer allocation properties - QueryScheduling QueryType = C.GST_QUERY_SCHEDULING // (38401) – the scheduling properties - QueryAcceptCaps QueryType = C.GST_QUERY_ACCEPT_CAPS // (40963) – the accept caps query - QueryCaps QueryType = C.GST_QUERY_CAPS // (43523) – the caps query - QueryDrain QueryType = C.GST_QUERY_DRAIN // (46086) – wait till all serialized data is consumed downstream - QueryContext QueryType = C.GST_QUERY_CONTEXT // (48643) – query the pipeline-local context from downstream or upstream (since 1.2) - QueryBitrate QueryType = C.GST_QUERY_BITRATE // (51202) – the bitrate query (since 1.16) -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q QueryType) String() string { return C.GoString(C.gst_query_type_get_name(C.GstQueryType(q))) } - -// QueryTypeFlags casts GstQueryTypeFlags -type QueryTypeFlags int - -// Type casts -const ( - QueryTypeUpstream QueryTypeFlags = C.GST_QUERY_TYPE_UPSTREAM // (1) – Set if the query can travel upstream. - QueryTypeDownstream QueryTypeFlags = C.GST_QUERY_TYPE_DOWNSTREAM // (2) – Set if the query can travel downstream. - QueryTypeSerialized QueryTypeFlags = C.GST_QUERY_TYPE_SERIALIZED // (4) – Set if the query should be serialized with data flow. -) - -// TaskState casts GstTaskState -type TaskState int - -// Type castings -const ( - TaskStarted TaskState = C.GST_TASK_STARTED // (0) – the task is started and running - TaskStopped TaskState = C.GST_TASK_STOPPED // (1) – the task is stopped - TaskPaused TaskState = C.GST_TASK_PAUSED // (2) – the task is paused -) - -// TOCScope represents the scope of a TOC. -type TOCScope int - -// Type castings of TOCScopes. -const ( - // (1) – global TOC representing all selectable options (this is what applications are usually interested in) - TOCScopeGlobal TOCScope = C.GST_TOC_SCOPE_GLOBAL - // (2) – TOC for the currently active/selected stream (this is a TOC representing the current stream from start - // to EOS, and is what a TOC writer / muxer is usually interested in; it will usually be a subset of the global - // TOC, e.g. just the chapters of the current title, or the chapters selected for playback from the current title) - TOCScopeCurrent TOCScope = C.GST_TOC_SCOPE_CURRENT -) - -// String implements a stringer on a TOCScope -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t TOCScope) String() string { - switch t { - case TOCScopeGlobal: - return "global" - case TOCScopeCurrent: - return "current" - } - return "" -} - -// TOCLoopType represents a GstTocLoopType -type TOCLoopType int - -// Type castings of TOCLoopTypes -const ( - TOCLoopNone TOCLoopType = C.GST_TOC_LOOP_NONE // (0) – single forward playback - TOCLoopForward TOCLoopType = C.GST_TOC_LOOP_FORWARD // (1) – repeat forward - TOCLoopReverse TOCLoopType = C.GST_TOC_LOOP_REVERSE // (2) – repeat backward - TOCLoopPingPong TOCLoopType = C.GST_TOC_LOOP_PING_PONG // (3) – repeat forward and backward -) - -// TOCEntryType represents a GstTocEntryType. -type TOCEntryType int - -// Type castings of TOCEntryTypes -const ( - TOCEntryTypeAngle TOCEntryType = C.GST_TOC_ENTRY_TYPE_ANGLE // (-3) – entry is an angle (i.e. an alternative) - TOCEntryTypeVersion TOCEntryType = C.GST_TOC_ENTRY_TYPE_VERSION // (-2) – entry is a version (i.e. alternative) - TOCEntryTypeEdition TOCEntryType = C.GST_TOC_ENTRY_TYPE_EDITION // (-1) – entry is an edition (i.e. alternative) - TOCEntryTypeInvalid TOCEntryType = C.GST_TOC_ENTRY_TYPE_INVALID // (0) – invalid entry type value - TOCEntryTypeTitle TOCEntryType = C.GST_TOC_ENTRY_TYPE_TITLE // (1) – entry is a title (i.e. a part of a sequence) - TOCEntryTypeTrack TOCEntryType = C.GST_TOC_ENTRY_TYPE_TRACK // (2) – entry is a track (i.e. a part of a sequence) - TOCEntryTypeChapter TOCEntryType = C.GST_TOC_ENTRY_TYPE_CHAPTER // (3) – entry is a chapter (i.e. a part of a sequence) -) - -// TagFlag represents a GstTagFlag -type TagFlag int - -// Type castins of TagFlags -const ( - TagFlagUndefined TagFlag = C.GST_TAG_FLAG_UNDEFINED // (0) – undefined flag - TagFlagMeta TagFlag = C.GST_TAG_FLAG_META // (1) – tag is meta data - TagFlagEncoded TagFlag = C.GST_TAG_FLAG_ENCODED // (2) – tag is encoded - TagFlagDecoded TagFlag = C.GST_TAG_FLAG_DECODED // (3) – tag is decoded - TagFlagCount TagFlag = C.GST_TAG_FLAG_COUNT // (4) – number of tag flags -) - -// TagMergeMode represents a GstTagMergeMode. -// See: https://gstreamer.freedesktop.org/documentation/gstreamer/gsttaglist.html#GstTagMergeMode -type TagMergeMode int - -// Type castings of TagMergeModes -const ( - TagMergeUndefined TagMergeMode = C.GST_TAG_MERGE_UNDEFINED // (0) – undefined merge mode - TagMergeReplaceAll TagMergeMode = C.GST_TAG_MERGE_REPLACE_ALL // (1) – replace all tags (clear list and append) - TagMergeReplace TagMergeMode = C.GST_TAG_MERGE_REPLACE // (2) – replace tags - TagMergeAppend TagMergeMode = C.GST_TAG_MERGE_APPEND // (3) – append tags - TagMergePrepend TagMergeMode = C.GST_TAG_MERGE_PREPEND // (4) – prepend tags - TagMergeKeep TagMergeMode = C.GST_TAG_MERGE_KEEP // (5) – keep existing tags - TagMergeKeepAll TagMergeMode = C.GST_TAG_MERGE_KEEP_ALL // (6) – keep all existing tags - TagMergeCount TagMergeMode = C.GST_TAG_MERGE_COUNT // (7) – the number of merge modes -) - -// TagScope represents a GstTagScope -type TagScope int - -// Type castings of tag scopes -const ( - TagScopeStream TagScope = C.GST_TAG_SCOPE_STREAM // (0) – tags specific to this single stream - TagScopeGlobal TagScope = C.GST_TAG_SCOPE_GLOBAL // (1) – global tags for the complete medium -) - -// Tag wraps the builtin gstreamer tags -type Tag string - -// Type castings of Tags -// For more information see: https://gstreamer.freedesktop.org/documentation/gstreamer/gsttaglist.html?gi-language=c#constants -const ( - TagAlbum Tag = C.GST_TAG_ALBUM - TagAlbumArtist Tag = C.GST_TAG_ALBUM_ARTIST - TagAlbumArtistSortName Tag = C.GST_TAG_ALBUM_ARTIST_SORTNAME - TagAlbumGain Tag = C.GST_TAG_ALBUM_GAIN - TagAlbumPeak Tag = C.GST_TAG_ALBUM_PEAK - TagAlbumSortName Tag = C.GST_TAG_ALBUM_SORTNAME - TagAlbumVolumeCount Tag = C.GST_TAG_ALBUM_VOLUME_COUNT - TagAlbumVolumeNumber Tag = C.GST_TAG_ALBUM_VOLUME_NUMBER - TagApplicationData Tag = C.GST_TAG_APPLICATION_DATA - TagApplicationName Tag = C.GST_TAG_APPLICATION_NAME - TagArtist Tag = C.GST_TAG_ARTIST - TagArtistSortName Tag = C.GST_TAG_ARTIST_SORTNAME - TagAttachment Tag = C.GST_TAG_ATTACHMENT - TagAudioCodec Tag = C.GST_TAG_AUDIO_CODEC - TagBeatsPerMinute Tag = C.GST_TAG_BEATS_PER_MINUTE - TagBitrate Tag = C.GST_TAG_BITRATE - TagCodec Tag = C.GST_TAG_CODEC - TagComment Tag = C.GST_TAG_COMMENT - TagComposer Tag = C.GST_TAG_COMPOSER - TagComposerSortName Tag = C.GST_TAG_COMPOSER_SORTNAME - TagConductor Tag = C.GST_TAG_CONDUCTOR - TagContact Tag = C.GST_TAG_CONTACT - TagContainerFormat Tag = C.GST_TAG_CONTAINER_FORMAT - TagCopyright Tag = C.GST_TAG_COPYRIGHT - TagCopyrightURI Tag = C.GST_TAG_COPYRIGHT_URI - TagDate Tag = C.GST_TAG_DATE - TagDateTime Tag = C.GST_TAG_DATE_TIME - TagDescription Tag = C.GST_TAG_DESCRIPTION - TagDeviceManufacturer Tag = C.GST_TAG_DEVICE_MANUFACTURER - TagDeviceModel Tag = C.GST_TAG_DEVICE_MODEL - TagDuration Tag = C.GST_TAG_DURATION - TagEncodedBy Tag = C.GST_TAG_ENCODED_BY - TagEncoder Tag = C.GST_TAG_ENCODER - TagEncoderVersion Tag = C.GST_TAG_ENCODER_VERSION - TagExtendedComment Tag = C.GST_TAG_EXTENDED_COMMENT - TagGenre Tag = C.GST_TAG_GENRE - TagGeoLocationCaptureDirection Tag = C.GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION - TagGeoLocationCity Tag = C.GST_TAG_GEO_LOCATION_CITY - TagGeoLocationCountry Tag = C.GST_TAG_GEO_LOCATION_COUNTRY - TagGeoLocationElevation Tag = C.GST_TAG_GEO_LOCATION_ELEVATION - TagGeoLocationHoriozontalError Tag = C.GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR - TagGeoLocationLatitude Tag = C.GST_TAG_GEO_LOCATION_LATITUDE - TagGeoLocationLongitude Tag = C.GST_TAG_GEO_LOCATION_LONGITUDE - TagGeoLocationMovementDirection Tag = C.GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION - TagGeoLocationMovementSpeed Tag = C.GST_TAG_GEO_LOCATION_MOVEMENT_SPEED - TagGeoLocationName Tag = C.GST_TAG_GEO_LOCATION_NAME - TagGeoLocationSubLocation Tag = C.GST_TAG_GEO_LOCATION_SUBLOCATION - TagGrouping Tag = C.GST_TAG_GROUPING - TagHomepage Tag = C.GST_TAG_HOMEPAGE - TagImage Tag = C.GST_TAG_IMAGE - TagImageOrientation Tag = C.GST_TAG_IMAGE_ORIENTATION - TagInterpretedBy Tag = C.GST_TAG_INTERPRETED_BY - TagISRC Tag = C.GST_TAG_ISRC - TagKeywords Tag = C.GST_TAG_KEYWORDS - TagLanguageCode Tag = C.GST_TAG_LANGUAGE_CODE - TagLanguageName Tag = C.GST_TAG_LANGUAGE_NAME - TagLicense Tag = C.GST_TAG_LICENSE - TagLicenseURI Tag = C.GST_TAG_LICENSE_URI - TagLocation Tag = C.GST_TAG_LOCATION - TagLyrics Tag = C.GST_TAG_LYRICS - TagMaximumBitrate Tag = C.GST_TAG_MAXIMUM_BITRATE - TagMIDIBaseNote Tag = C.GST_TAG_MIDI_BASE_NOTE - TagMinimumBitrate Tag = C.GST_TAG_MINIMUM_BITRATE - TagNominalBitrate Tag = C.GST_TAG_NOMINAL_BITRATE - TagOrganization Tag = C.GST_TAG_ORGANIZATION - TagPerformer Tag = C.GST_TAG_PERFORMER - TagPreviewImage Tag = C.GST_TAG_PREVIEW_IMAGE - TagPrivateData Tag = C.GST_TAG_PRIVATE_DATA - TagPublisher Tag = C.GST_TAG_PUBLISHER - TagReferenceLevel Tag = C.GST_TAG_REFERENCE_LEVEL - TagSerial Tag = C.GST_TAG_SERIAL - TagShowEpisodeNumber Tag = C.GST_TAG_SHOW_EPISODE_NUMBER - TagShowName Tag = C.GST_TAG_SHOW_NAME - TagShowSeasonNumber Tag = C.GST_TAG_SHOW_SEASON_NUMBER - TagShowSortName Tag = C.GST_TAG_SHOW_SORTNAME - TagSubtitleCodec Tag = C.GST_TAG_SUBTITLE_CODEC - TagTitle Tag = C.GST_TAG_TITLE - TagTitleSortName Tag = C.GST_TAG_TITLE_SORTNAME - TagTrackCount Tag = C.GST_TAG_TRACK_COUNT - TagTrackGain Tag = C.GST_TAG_TRACK_GAIN - TagTrackNumber Tag = C.GST_TAG_TRACK_NUMBER - TagTrackPeak Tag = C.GST_TAG_TRACK_PEAK - TagUserRating Tag = C.GST_TAG_USER_RATING - TagVersion Tag = C.GST_TAG_VERSION - TagVideoCodec Tag = C.GST_TAG_VIDEO_CODEC -) - -// TypeFindProbability represents a probability for type find functions. Higher values -// reflect higher certainty. -type TypeFindProbability int - -// Type castings -const ( - TypeFindNone TypeFindProbability = C.GST_TYPE_FIND_NONE // (0) – type undetected. - TypeFindMinimum TypeFindProbability = C.GST_TYPE_FIND_MINIMUM // (1) – unlikely typefind. - TypeFindPossible TypeFindProbability = C.GST_TYPE_FIND_POSSIBLE // (50) – possible type detected. - TypeFindLikely TypeFindProbability = C.GST_TYPE_FIND_LIKELY // (80) – likely a type was detected. - TypeFindNearlyCertain TypeFindProbability = C.GST_TYPE_FIND_NEARLY_CERTAIN // (99) – nearly certain that a type was detected. - TypeFindMaximum TypeFindProbability = C.GST_TYPE_FIND_MAXIMUM // (100) – very certain a type was detected. -) diff --git a/gst/control_binding.go b/gst/control_binding.go deleted file mode 100644 index 112c259..0000000 --- a/gst/control_binding.go +++ /dev/null @@ -1,34 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -type ControlBinding struct{ *Object } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (cb *ControlBinding) Instance() *C.GstControlBinding { - return C.toGstControlBinding(cb.Unsafe()) -} - -type DirectControlBinding struct{ *ControlBinding } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDirectControlBinding(obj *Object, prop string, csource *InterpolationControlSource) *DirectControlBinding { - cprop := C.CString(prop) - defer C.free(unsafe.Pointer(cprop)) - - cbinding := C.gst_direct_control_binding_new(obj.Instance(), cprop, csource.Instance()) - - return &DirectControlBinding{ - ControlBinding: &ControlBinding{ - Object: wrapObject(glib.TransferNone(unsafe.Pointer(cbinding))), - }, - } -} diff --git a/gst/control_source.go b/gst/control_source.go deleted file mode 100644 index db6e95a..0000000 --- a/gst/control_source.go +++ /dev/null @@ -1,59 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "strconv" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -type InterpolationControlSource struct{ *Object } - -type InterpolationMode int - -const ( - //steps-like interpolation, default - InterpolationModeNone InterpolationMode = 0 // GST_INTERPOLATION_MODE_NONE - //linear interpolation - InterpolationModeLinear InterpolationMode = 1 // GST_INTERPOLATION_MODE_LINEAR - //cubic interpolation (natural), may overshoot the min or max values set by the control point, but is more 'curvy' - InterpolationModeCubic InterpolationMode = 2 // GST_INTERPOLATION_MODE_CUBIC - //monotonic cubic interpolation, will not produce any values outside of the min-max range set by the control points (Since: 1.8) - InterpolationModeCubicMonotonic InterpolationMode = 3 // GST_INTERPOLATION_MODE_CUBIC_MONOTONIC -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (cs *InterpolationControlSource) Instance() *C.GstControlSource { - return C.toGstControlSource(cs.Unsafe()) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewInterpolationControlSource() *InterpolationControlSource { - cCs := C.gst_interpolation_control_source_new() - - return &InterpolationControlSource{ - Object: wrapObject(glib.TransferFull(unsafe.Pointer(cCs))), - } -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (cs *InterpolationControlSource) SetInterpolationMode(mode InterpolationMode) { - cs.SetArg("mode", strconv.Itoa(int(mode))) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (cs *InterpolationControlSource) SetTimedValue(time ClockTime, value float64) bool { - return gobool(C.gst_timed_value_control_source_set(C.toGstTimedValueControlSource(cs.Unsafe()), C.GstClockTime(time), C.double(value))) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (cs *InterpolationControlSource) UnsetAll() { - C.gst_timed_value_control_source_unset_all(C.toGstTimedValueControlSource(cs.Unsafe())) -} diff --git a/gst/deprecate.sh b/gst/deprecate.sh deleted file mode 100755 index 8e06b60..0000000 --- a/gst/deprecate.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -find . -type f -name "*.go" ! -name "*_deprecation.go" | while read file; do - awk ' - /^[^ \t]/ { # Only consider global (non-indented) lines - if ($1 == "func" || ($1 == "type" && ($3 == "struct" || $3 == "interface"))) { - print "//\n// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead." - } - } - { print } - ' "$file" >"$file.tmp" && mv "$file.tmp" "$file" -done diff --git a/gst/deprecated.go b/gst/deprecated.go deleted file mode 100644 index 764c29a..0000000 --- a/gst/deprecated.go +++ /dev/null @@ -1,2 +0,0 @@ -// Description: This package is superseeded by the autogenerated bindings. -package gst diff --git a/gst/doc.go b/gst/doc.go deleted file mode 100644 index d1bb558..0000000 --- a/gst/doc.go +++ /dev/null @@ -1,6 +0,0 @@ -/* -Package gst contains bindings for the gstreamer C API. If you are trying -to build simple pipelines quickly (and optiionally readers/writers) see -the gstauto package. -*/ -package gst diff --git a/gst/gst.go.c b/gst/gst.go.c deleted file mode 100644 index 46684c2..0000000 --- a/gst/gst.go.c +++ /dev/null @@ -1,183 +0,0 @@ -#include "gst.go.h" - -GType objectGType (GObject *obj) { return G_OBJECT_TYPE(obj); }; - -GstAllocator * toGstAllocator (void *p) { return (GST_ALLOCATOR_CAST(p)); } -GstBin * toGstBin (void *p) { return (GST_BIN(p)); } -GstBinClass * toGstBinClass (void *p) { return (GST_BIN_CLASS(p)); } -GstBufferList * toGstBufferList (void *p) { return (GST_BUFFER_LIST(p)); } -GstBufferPool * toGstBufferPool (void *p) { return (GST_BUFFER_POOL(p)); } -GstBuffer * toGstBuffer (void *p) { return (GST_BUFFER(p)); } -GstBus * toGstBus (void *p) { return (GST_BUS(p)); } -GstCapsFeatures * toGstCapsFeatures (void *p) { return (GST_CAPS_FEATURES(p)); } -GstCaps * toGstCaps (void *p) { return (GST_CAPS(p)); } -GstChildProxy * toGstChildProxy (void *p) { return (GST_CHILD_PROXY(p)); } -GstClock * toGstClock (void *p) { return (GST_CLOCK(p)); } -GstContext * toGstContext (void *p) { return (GST_CONTEXT_CAST(p)); } -GstDevice * toGstDevice (void *p) { return (GST_DEVICE_CAST(p)); } -GstDeviceProvider * toGstDeviceProvider (void *p) { return (GST_DEVICE_PROVIDER_CAST(p)); } -GstElementFactory * toGstElementFactory (void *p) { return (GST_ELEMENT_FACTORY(p)); } -GstElementClass * toGstElementClass (void *p) { return (GST_ELEMENT_CLASS(p)); } -GstElement * toGstElement (void *p) { return (GST_ELEMENT(p)); } -GstEvent * toGstEvent (void *p) { return (GST_EVENT(p)); } -GstGhostPad * toGstGhostPad (void *p) { return (GST_GHOST_PAD(p)); } -GstMemory * toGstMemory (void *p) { return (GST_MEMORY_CAST(p)); } -GstMessage * toGstMessage (void *p) { return (GST_MESSAGE(p)); } -GstMeta * toGstMeta (void *p) { return (GST_META_CAST(p)); } -GstMiniObject * toGstMiniObject (void *p) { return (GST_MINI_OBJECT(p)); } -GstObject * toGstObject (void *p) { return (GST_OBJECT(p)); } -GstPad * toGstPad (void *p) { return (GST_PAD(p)); } -GstPadTemplate * toGstPadTemplate (void *p) { return (GST_PAD_TEMPLATE(p)); } -GstPipeline * toGstPipeline (void *p) { return (GST_PIPELINE(p)); } -GstPluginFeature * toGstPluginFeature (void *p) { return (GST_PLUGIN_FEATURE(p)); } -GstPlugin * toGstPlugin (void *p) { return (GST_PLUGIN(p)); } -GstProxyPad * toGstProxyPad (void *p) { return (GST_PROXY_PAD(p)); } -GstQuery * toGstQuery (void *p) { return (GST_QUERY(p)); } -GstRegistry * toGstRegistry (void *p) { return (GST_REGISTRY(p)); } -GstSample * toGstSample (void *p) { return (GST_SAMPLE(p)); } -GstStreamCollection * toGstStreamCollection (void *p) { return (GST_STREAM_COLLECTION_CAST(p)); } -GstStream * toGstStream (void *p) { return (GST_STREAM_CAST(p)); } -GstStructure * toGstStructure (void *p) { return (GST_STRUCTURE(p)); } -GstTagList * toGstTagList (void *p) { return (GST_TAG_LIST(p)); } -GstTask * toGstTask (void *p) { return (GST_TASK_CAST(p)); } -GstTaskPool * toGstTaskPool (void *p) { return (GST_TASK_POOL_CAST(p)); } -GstURIHandler * toGstURIHandler (void *p) { return (GST_URI_HANDLER(p)); } -GstUri * toGstURI (void *p) { return (GST_URI(p)); } -GstControlBinding * toGstControlBinding (void *p) { return (GST_CONTROL_BINDING(p)); } -GstControlSource * toGstControlSource (void *p) { return (GST_CONTROL_SOURCE(p)); } -GstTimedValueControlSource * toGstTimedValueControlSource (void *p) { return (GST_TIMED_VALUE_CONTROL_SOURCE(p)); } - -/* Buffer Utilities */ - -GstBuffer * getBufferValue (GValue * val) -{ - return gst_value_get_buffer(val); -} - -gboolean bufferIsWritable (GstBuffer * buf) -{ - return (gst_buffer_is_writable(buf)); -} - -GstBuffer * makeBufferWritable (GstBuffer * buf) -{ - return (gst_buffer_make_writable(buf)); -} - -GType bufferListType () -{ - return GST_TYPE_BUFFER_LIST; -} - -/* BufferList Utilities */ - -gboolean bufferListIsWritable (GstBufferList * bufList) -{ - return gst_buffer_list_is_writable(bufList); -} - -GstBufferList * makeBufferListWritable (GstBufferList * bufList) -{ - return gst_buffer_list_make_writable(bufList); -} - -void addToBufferList (GstBufferList * bufList, GstBuffer * buf) -{ - gst_buffer_list_add(bufList, buf); -} - -/* BufferPool utilities */ - -gboolean bufferPoolIsFlushing (GstBufferPool * pool) -{ - return GST_BUFFER_POOL_IS_FLUSHING(pool); -} - -/* Caps utilties */ - -gboolean capsIsWritable (GstCaps * caps) -{ - return gst_caps_is_writable(caps); -} - -GstCaps * makeCapsWritable (GstCaps * caps) -{ - return gst_caps_make_writable(caps); -} - -/* Context utilities */ - -gboolean contextIsWritable (GstContext * ctx) -{ - return gst_context_is_writable(ctx); -} - -GstContext * makeContextWritable (GstContext * ctx) -{ - return gst_context_make_writable(ctx); -} - -/* Event Utilities */ - -gboolean eventIsWritable (GstEvent * event) -{ - return gst_event_is_writable(event); -} - -GstEvent * makeEventWritable (GstEvent * event) -{ - return gst_event_make_writable(event); -} - -/* TOC Utilities */ - -gboolean entryTypeIsAlternative (GstTocEntryType * type) { return GST_TOC_ENTRY_TYPE_IS_ALTERNATIVE(type); } -gboolean entryTypeIsSequence (GstTocEntryType * type) { return GST_TOC_ENTRY_TYPE_IS_SEQUENCE(type); } -GstTocEntry * copyTocEntry (GstTocEntry * entry) { return gst_toc_entry_copy(entry); } -GstTocEntry * makeTocEntryWritable (GstTocEntry * entry) { return gst_toc_entry_make_writable(entry); } -GstTocEntry * tocEntryRef (GstTocEntry * entry) { return gst_toc_entry_ref(entry); } -void tocEntryUnref (GstTocEntry * entry) { gst_toc_entry_unref(entry); } -GstToc * copyToc (GstToc * toc) { return gst_toc_copy(toc); } -GstToc * makeTocWritable (GstToc * toc) { return gst_toc_make_writable(toc); } -GstToc * tocRef (GstToc * toc) { return gst_toc_ref(toc); } -void tocUnref (GstToc * toc) { gst_toc_unref(toc); } - -/* TagList utilities */ - -gboolean tagListIsWritable (GstTagList * tagList) { return gst_tag_list_is_writable(tagList); } -GstTagList * makeTagListWritable (GstTagList * tagList) { return gst_tag_list_make_writable(tagList); } - -/* Object Utilities */ - -gboolean gstObjectFlagIsSet (GstObject * obj, guint32 flags) { return (GST_OBJECT_FLAG_IS_SET(obj, flags)); } -void gstObjectFlagSet (GstObject * obj, guint32 flags) { (GST_OBJECT_FLAG_SET(obj, flags)); } -void gstObjectFlagUnset (GstObject * obj, guint32 flags) { (GST_OBJECT_FLAG_UNSET(obj, flags)); } - -/* Element utilities */ - -gboolean gstElementIsURIHandler (GstElement * elem) { return (GST_IS_URI_HANDLER(elem)); } -GstTocSetter * toTocSetter (GstElement * elem) { return GST_TOC_SETTER(elem); } -GstTagSetter * toTagSetter (GstElement *elem) { return GST_TAG_SETTER(elem); } - -/* Sample Utilities */ - -GstSample * getSampleValue (GValue * val) -{ - return gst_value_get_sample(val); -} - - -/* Misc */ - -gpointer glistNext (GList * list) -{ - return g_list_next(list); -} - -int sizeOfGCharArray (gchar ** arr) -{ - int i; - for (i = 0 ; 1 ; i = i + 1) { - if (arr[i] == NULL) { return i; }; - } -} diff --git a/gst/gst.go.h b/gst/gst.go.h deleted file mode 100644 index 4602fe8..0000000 --- a/gst/gst.go.h +++ /dev/null @@ -1,147 +0,0 @@ -#ifndef __GST_GO_H__ -#define __GST_GO_H__ - -#include -#include -#include -#include -#include - -typedef struct _PadDestroyNotifyInfo { - gpointer pad_ptr; - gpointer func_map_ptr; -} PadDestroyNotifyInfo; - -/* - Type Castings -*/ - -extern GType objectGType (GObject *obj); - -extern GstAllocator * toGstAllocator (void *p); -extern GstBin * toGstBin (void *p); -extern GstBinClass * toGstBinClass (void *p); -extern GstBufferList * toGstBufferList (void *p); -extern GstBufferPool * toGstBufferPool (void *p); -extern GstBuffer * toGstBuffer (void *p); -extern GstBus * toGstBus (void *p); -extern GstCapsFeatures * toGstCapsFeatures (void *p); -extern GstCaps * toGstCaps (void *p); -extern GstChildProxy * toGstChildProxy (void *p); -extern GstClock * toGstClock (void *p); -extern GstContext * toGstContext (void *p); -extern GstDevice * toGstDevice (void *p); -extern GstDeviceProvider * toGstDeviceProvider (void *p); -extern GstElementFactory * toGstElementFactory (void *p); -extern GstElementClass * toGstElementClass (void *p); -extern GstElement * toGstElement (void *p); -extern GstEvent * toGstEvent (void *p); -extern GstGhostPad * toGstGhostPad (void *p); -extern GstMemory * toGstMemory (void *p); -extern GstMessage * toGstMessage (void *p); -extern GstMeta * toGstMeta (void *p); -extern GstMiniObject * toGstMiniObject (void *p); -extern GstObject * toGstObject (void *p); -extern GstPad * toGstPad (void *p); -extern GstPadTemplate * toGstPadTemplate (void *p); -extern GstPipeline * toGstPipeline (void *p); -extern GstPluginFeature * toGstPluginFeature (void *p); -extern GstPlugin * toGstPlugin (void *p); -extern GstProxyPad * toGstProxyPad (void *p); -extern GstQuery * toGstQuery (void *p); -extern GstRegistry * toGstRegistry (void *p); -extern GstSample * toGstSample (void *p); -extern GstStreamCollection * toGstStreamCollection (void *p); -extern GstStream * toGstStream (void *p); -extern GstStructure * toGstStructure (void *p); -extern GstTagList * toGstTagList (void *p); -extern GstTask * toGstTask (void *p); -extern GstTaskPool * toGstTaskPool (void *p); -extern GstURIHandler * toGstURIHandler (void *p); -extern GstUri * toGstURI (void *p); -extern GstControlBinding * toGstControlBinding (void *p); -extern GstControlSource * toGstControlSource (void *p); -extern GstTimedValueControlSource * toGstTimedValueControlSource (void *p); - -/* Buffer Utilities */ - -extern GstBuffer * getBufferValue (GValue * val); - -extern gboolean bufferIsWritable (GstBuffer * buf); - -extern GstBuffer * makeBufferWritable (GstBuffer * buf); - -extern GType bufferListType (); - -/* BufferList Utilities */ - -extern gboolean bufferListIsWritable (GstBufferList * bufList); - -extern GstBufferList * makeBufferListWritable (GstBufferList * bufList); - -extern void addToBufferList (GstBufferList * bufList, GstBuffer * buf); - -/* BufferPool utilities */ - -extern gboolean bufferPoolIsFlushing (GstBufferPool * pool); - -/* Caps utilties */ - -extern gboolean capsIsWritable (GstCaps * caps); - -extern GstCaps * makeCapsWritable (GstCaps * caps); - -/* Context utilities */ - -extern gboolean contextIsWritable (GstContext * ctx); - -extern GstContext * makeContextWritable (GstContext * ctx); - -/* Event Utilities */ - -extern gboolean eventIsWritable (GstEvent * event); - -extern GstEvent * makeEventWritable (GstEvent * event); - -/* TOC Utilities */ - -extern gboolean entryTypeIsAlternative (GstTocEntryType * type); -extern gboolean entryTypeIsSequence (GstTocEntryType * type); -extern GstTocEntry * copyTocEntry (GstTocEntry * entry); -extern GstTocEntry * makeTocEntryWritable (GstTocEntry * entry); -extern GstTocEntry * tocEntryRef (GstTocEntry * entry); -extern void tocEntryUnref (GstTocEntry * entry); -extern GstToc * copyToc (GstToc * toc); -extern GstToc * makeTocWritable (GstToc * toc); -extern GstToc * tocRef (GstToc * toc); -extern void tocUnref (GstToc * toc); - -/* TagList utilities */ - -extern gboolean tagListIsWritable (GstTagList * tagList); -extern GstTagList * makeTagListWritable (GstTagList * tagList); - -/* Object Utilities */ - -extern gboolean gstObjectFlagIsSet (GstObject * obj, guint32 flags); -extern void gstObjectFlagSet (GstObject * obj, guint32 flags); -extern void gstObjectFlagUnset (GstObject * obj, guint32 flags); - -/* Element utilities */ - -extern gboolean gstElementIsURIHandler (GstElement * elem); -extern GstTocSetter * toTocSetter (GstElement * elem); -extern GstTagSetter * toTagSetter (GstElement *elem); - - -/* Misc */ - -extern gpointer glistNext (GList * list); - -extern int sizeOfGCharArray (gchar ** arr); - -/* Sample Utilities */ - -extern GstSample * getSampleValue (GValue * val); - -#endif diff --git a/gst/gst_allocator.go b/gst/gst_allocator.go deleted file mode 100644 index 3fe899f..0000000 --- a/gst/gst_allocator.go +++ /dev/null @@ -1,157 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// AllocationParams wraps the GstAllocationParams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type AllocationParams struct { - ptr *C.GstAllocationParams -} - -// FromGstAllocationParamsUnsafe wraps the given unsafe.Pointer in an AllocationParams instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstAllocationParamsUnsafe(alloc unsafe.Pointer) *AllocationParams { - return &AllocationParams{ptr: (*C.GstAllocationParams)(alloc)} -} - -// NewAllocationParams initializes a set of allocation params with the default -// values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAllocationParams() *AllocationParams { - params := &AllocationParams{ - ptr: &C.GstAllocationParams{}, - } - params.Init() - runtime.SetFinalizer(params, (*AllocationParams).Free) - return params -} - -// Instance returns the underlying GstAllocationParams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) Instance() *C.GstAllocationParams { return a.ptr } - -// Init initializes these AllocationParams to their original values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) Init() { C.gst_allocation_params_init(a.ptr) } - -// Copy copies these AllocationParams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) Copy() *AllocationParams { - return wrapAllocationParams(C.gst_allocation_params_copy(a.ptr)) -} - -// Free frees the underlying AllocationParams -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) Free() { C.gst_allocation_params_free(a.ptr) } - -// GetFlags returns the flags on these AllocationParams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) GetFlags() MemoryFlags { return MemoryFlags(a.ptr.flags) } - -// SetFlags changes the flags on these AllocationParams. this must be used -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) SetFlags(flags MemoryFlags) { a.ptr.flags = C.GstMemoryFlags(flags) } - -// GetAlignment returns the desired alignment of the memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) GetAlignment() int64 { return int64(a.ptr.align) } - -// SetAlignment sets the desired alignment of the memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) SetAlignment(align int64) { a.ptr.align = C.gsize(align) } - -// GetPrefix returns the desired prefix size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) GetPrefix() int64 { return int64(a.ptr.prefix) } - -// SetPrefix sets the desired prefix size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) SetPrefix(prefix int64) { a.ptr.prefix = C.gsize(prefix) } - -// GetPadding returns the desired padding size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) GetPadding() int64 { return int64(a.ptr.padding) } - -// SetPadding sets the desired padding size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *AllocationParams) SetPadding(padding int64) { a.ptr.padding = C.gsize(padding) } - -// Allocator is a go representation of a GstAllocator -type Allocator struct{ *Object } - -// FromGstAllocatorUnsafeNone wraps the given unsafe.Pointer in an Allocator instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstAllocatorUnsafeNone(alloc unsafe.Pointer) *Allocator { - return wrapAllocator(glib.TransferNone(alloc)) -} - -// FromGstAllocatorUnsafeFull wraps the given unsafe.Pointer in an Allocator instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstAllocatorUnsafeFull(alloc unsafe.Pointer) *Allocator { - return wrapAllocator(glib.TransferFull(alloc)) -} - -// DefaultAllocator returns the default GstAllocator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func DefaultAllocator() *Allocator { - return wrapAllocator(glib.TransferFull(unsafe.Pointer(C.gst_allocator_find(nil)))) -} - -// Instance returns the underlying GstAllocator instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Allocator) Instance() *C.GstAllocator { return C.toGstAllocator(a.Unsafe()) } - -// MemType returns the memory type for this allocator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Allocator) MemType() string { return C.GoString(a.Instance().mem_type) } - -// Alloc is used to allocate a new memory block with memory that is at least size big. -// The optional params can specify the prefix and padding for the memory. If nil is passed, -// no flags, no extra prefix/padding and a default alignment is used. -// -// The prefix/padding will be filled with 0 if flags contains MemoryFlagZeroPrefixed and -// MemoryFlagZeroPadded respectively. -// -// The alignment in params is given as a bitmask so that align + 1 equals the amount of bytes to -// align to. For example, to align to 8 bytes, use an alignment of 7. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Allocator) Alloc(size int64, params *AllocationParams) *Memory { - mem := C.gst_allocator_alloc(a.Instance(), C.gsize(size), params.ptr) - return FromGstMemoryUnsafeFull(unsafe.Pointer(mem)) -} - -// Free memory that was originally allocated with this allocator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Allocator) Free(mem *Memory) { - C.gst_allocator_free(a.Instance(), mem.Instance()) -} diff --git a/gst/gst_bin.go b/gst/gst_bin.go deleted file mode 100644 index 29c8b40..0000000 --- a/gst/gst_bin.go +++ /dev/null @@ -1,454 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -gboolean -binParentAddElement (GstBin * bin, GstElement * element) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - return parent->add_element(bin, element); -} - -void -binParentDeepElementAdded (GstBin * bin, GstBin * subbin, GstElement * element) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - parent->deep_element_added(bin, subbin, element); -} - -void -binParentDeepElementRemoved (GstBin * bin, GstBin * subbin, GstElement * element) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(element)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - parent->deep_element_removed(bin, subbin, element); -} - -gboolean -binParentDoLatency (GstBin * bin) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - return parent->do_latency(bin); -} - -void -binParentElementAdded (GstBin * bin, GstElement * element) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - parent->element_added(bin, element); -} - -void -binParentElementRemoved (GstBin * bin, GstElement * element) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - parent->element_removed(bin, element); -} - -void -binParentHandleMessage (GstBin * bin, GstMessage * message) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - parent->handle_message(bin, message); -} - -gboolean -binParentRemoveElement (GstBin * bin, GstElement * element) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(bin)); - GstBinClass * parent = toGstBinClass(g_type_class_peek_parent(this_class)); - return parent->remove_element(bin, element); -} - -*/ -import "C" - -import ( - "errors" - "fmt" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Bin is a go wrapper arounds a GstBin. -type Bin struct{ *Element } - -// NewBin returns a new Bin with the given name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBin(name string) *Bin { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - bin := C.gst_bin_new((*C.gchar)(unsafe.Pointer(cName))) - return wrapBin(glib.TransferNone(unsafe.Pointer(bin))) -} - -// NewBinFromString constructs a bin from a string description. -// description - command line describing the bin -// ghostUnlinkedPads - whether to automatically create ghost pads for unlinked source or sink pads within the bin -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBinFromString(description string, ghostUnlinkedPads bool) (*Bin, error) { - cDescription := C.CString(description) - defer C.free(unsafe.Pointer(cDescription)) - var gerr *C.GError - bin := C.gst_parse_bin_from_description((*C.gchar)(cDescription), gboolean(ghostUnlinkedPads), (**C.GError)(&gerr)) - if gerr != nil { - defer C.g_error_free((*C.GError)(gerr)) - errMsg := C.GoString(gerr.message) - return nil, errors.New(errMsg) - } - return &Bin{&Element{wrapObject(glib.TransferNone(unsafe.Pointer(bin)))}}, nil -} - -// ToGstBin wraps the given glib.Object, gst.Object, or gst.Element in a Bin instance. Only -// works for objects that implement their own Bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstBin(obj interface{}) *Bin { - switch obj := obj.(type) { - case *Object: - return &Bin{&Element{Object: obj}} - case *Element: - return &Bin{obj} - case *glib.Object: - return &Bin{&Element{Object: &Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}}}} - } - return nil -} - -// Instance returns the underlying GstBin instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) Instance() *C.GstBin { return C.toGstBin(b.Unsafe()) } - -// GetElementByName returns the element with the given name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetElementByName(name string) (*Element, error) { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - elem := C.gst_bin_get_by_name((*C.GstBin)(b.Instance()), (*C.gchar)(cName)) - if elem == nil { - return nil, fmt.Errorf("could not find element with name %s", name) - } - return wrapElement(glib.TransferFull(unsafe.Pointer(elem))), nil -} - -// GetElementByNameRecursive returns the element with the given name. If it is not -// found in this Bin, parent Bins are searched recursively. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetElementByNameRecursive(name string) (*Element, error) { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - elem := C.gst_bin_get_by_name_recurse_up((*C.GstBin)(b.Instance()), (*C.gchar)(cName)) - if elem == nil { - return nil, fmt.Errorf("could not find element with name %s", name) - } - return wrapElement(glib.TransferFull(unsafe.Pointer(elem))), nil -} - -// GetElements returns a list of the elements added to this pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetElements() ([]*Element, error) { - iterator := C.gst_bin_iterate_elements((*C.GstBin)(b.Instance())) - return iteratorToElementSlice(iterator) -} - -// GetElementsRecursive returns a list of the elements added to this Bin. It recurses -// children Bins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetElementsRecursive() ([]*Element, error) { - iterator := C.gst_bin_iterate_recurse((*C.GstBin)(b.Instance())) - return iteratorToElementSlice(iterator) -} - -// GetSourceElements returns a list of all the source elements in this Bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetSourceElements() ([]*Element, error) { - iterator := C.gst_bin_iterate_sources((*C.GstBin)(b.Instance())) - return iteratorToElementSlice(iterator) -} - -// GetSinkElements returns a list of all the sink elements in this Bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetSinkElements() ([]*Element, error) { - iterator := C.gst_bin_iterate_sinks((*C.GstBin)(b.Instance())) - return iteratorToElementSlice(iterator) -} - -// GetElementsSorted returns a list of the elements in this bin in topologically sorted order. -// This means that the elements are returned from the most downstream elements (sinks) to the sources. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetElementsSorted() ([]*Element, error) { - iterator := C.gst_bin_iterate_sorted((*C.GstBin)(b.Instance())) - return iteratorToElementSlice(iterator) -} - -// GetByInterface looks for an element inside the bin that implements the given interface. If such an -// element is found, it returns the element. You can cast this element to the given interface afterwards. -// If you want all elements that implement the interface, use GetAllByInterface. This function recurses -// into child bins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetByInterface(iface glib.Interface) (*Element, error) { - elem := C.gst_bin_get_by_interface(b.Instance(), C.GType(iface.Type())) - if elem == nil { - return nil, fmt.Errorf("could not find any elements implementing %s", iface.Type().Name()) - } - return wrapElement(glib.TransferFull(unsafe.Pointer(elem))), nil -} - -// GetAllByInterface looks for all elements inside the bin that implements the given interface. You can -// safely cast all returned elements to the given interface. The function recurses inside child bins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetAllByInterface(iface glib.Interface) ([]*Element, error) { - iterator := C.gst_bin_iterate_all_by_interface(b.Instance(), C.GType(iface.Type())) - return iteratorToElementSlice(iterator) -} - -// // GetElementsByFactoryName returns a list of the elements in this bin created from the given factory -// // name. -// func (b *Bin) GetElementsByFactoryName(name string) ([]*Element, error) { -// cname := C.CString(name) -// defer C.free(unsafe.Pointer(cname)) -// iterator := C.gst_bin_iterate_all_by_element_factory_name(b.Instance(), (*C.gchar)(unsafe.Pointer(cname))) -// return iteratorToElementSlice(iterator) -// } - -// Add adds an element to the bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) Add(elem *Element) error { - if ok := C.gst_bin_add((*C.GstBin)(b.Instance()), (*C.GstElement)(elem.Instance())); !gobool(ok) { - return fmt.Errorf("failed to add element to pipeline: %s", elem.GetName()) - } - return nil -} - -// AddMany is a go implementation of `gst_bin_add_many`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) AddMany(elems ...*Element) error { - for _, elem := range elems { - if err := b.Add(elem); err != nil { - return err - } - } - return nil -} - -// Remove removes an element from the Bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) Remove(elem *Element) error { - if ok := C.gst_bin_remove((*C.GstBin)(b.Instance()), (*C.GstElement)(elem.Instance())); !gobool(ok) { - return fmt.Errorf("failed to remove element from pipeline: %s", elem.GetName()) - } - return nil -} - -// RemoveMany is a go implementation of `gst_bin_remove_many`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) RemoveMany(elems ...*Element) error { - for _, elem := range elems { - if err := b.Remove(elem); err != nil { - return err - } - } - return nil -} - -// FindUnlinkedPad recursively looks for elements with an unlinked pad of the given direction -// within this bin and returns an unlinked pad if one is found, or NULL otherwise. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) FindUnlinkedPad(direction PadDirection) *Pad { - pad := C.gst_bin_find_unlinked_pad(b.Instance(), C.GstPadDirection(direction)) - if pad == nil { - return nil - } - return wrapPad(glib.TransferFull(unsafe.Pointer(pad))) -} - -// GetSuppressedFlags returns the suppressed flags of the bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) GetSuppressedFlags() ElementFlags { - return ElementFlags(C.gst_bin_get_suppressed_flags(b.Instance())) -} - -// SetSuppressedFlags suppresses the given flags on the bin. ElementFlags of a child element are -// propagated when it is added to the bin. When suppressed flags are set, those specified flags -// will not be propagated to the bin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) SetSuppressedFlags(flags ElementFlags) { - C.gst_bin_set_suppressed_flags(b.Instance(), C.GstElementFlags(flags)) -} - -// RecalculateLatency queries bin for the current latency and reconfigures this latency to all -// the elements with a LATENCY event. -// -// This method is typically called on the pipeline when a MessageLatency is posted on the bus. -// -// This function simply emits the 'do-latency' signal so any custom latency calculations will be performed. -// It returns true if the latency could be queried and reconfigured. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) RecalculateLatency() bool { - return gobool(C.gst_bin_recalculate_latency(b.Instance())) -} - -// SyncChildrenStates synchronizes the state of every child with the state of this Bin. -// This function returns true if the operation was successful. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) SyncChildrenStates() bool { - return gobool(C.gst_bin_sync_children_states(b.Instance())) -} - -// DEBUG OPERATIONS // - -// DebugGraphDetails casts GstDebugGraphDetails -type DebugGraphDetails int - -// Type castings -const ( - DebugGraphShowMediaType DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE // (1) – show caps-name on edges - DebugGraphShowCapsDetails DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS // (2) – show caps-details on edges - DebugGraphShowNonDefaultParams DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS // (4) – show modified parameters on elements - DebugGraphShowStates DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_STATES // (8) – show element states - DebugGraphShowFullParams DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_FULL_PARAMS // (16) – show full element parameter values even if they are very long - DebugGraphShowAll DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_ALL // (15) – show all the typical details that one might want - DebugGraphShowVerbose DebugGraphDetails = C.GST_DEBUG_GRAPH_SHOW_VERBOSE // (4294967295) – show all details regardless of how large or verbose they make the resulting output - - // Deprecated: Use DebugGraphShowFullParams instead as this was just a typo. - DebugGraphShowPullParams = DebugGraphShowFullParams -) - -// DebugBinToDotData will obtain the whole network of gstreamer elements that form the pipeline into a dot file. -// This data can be processed with graphviz to get an image. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) DebugBinToDotData(details DebugGraphDetails) string { - ret := C.gst_debug_bin_to_dot_data(b.Instance(), C.GstDebugGraphDetails(details)) - defer C.g_free((C.gpointer)(unsafe.Pointer(ret))) - return C.GoString(ret) -} - -// DebugBinToDotFile is like DebugBinToDotData except it will write the dot data to the filename -// specified. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) DebugBinToDotFile(details DebugGraphDetails, filename string) { - cname := C.CString(filename) - defer C.free(unsafe.Pointer(cname)) - C.gst_debug_bin_to_dot_file(b.Instance(), C.GstDebugGraphDetails(details), (*C.gchar)(unsafe.Pointer(cname))) -} - -// DebugBinToDotFileWithTs is like DebugBinToDotFile except it will write the dot data to the filename -// specified, except it will append the current timestamp to the filename. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) DebugBinToDotFileWithTs(details DebugGraphDetails, filename string) { - cname := C.CString(filename) - defer C.free(unsafe.Pointer(cname)) - C.gst_debug_bin_to_dot_file_with_ts(b.Instance(), C.GstDebugGraphDetails(details), (*C.gchar)(unsafe.Pointer(cname))) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func iteratorToElementSlice(iterator *C.GstIterator) ([]*Element, error) { - elems := make([]*Element, 0) - gval := new(C.GValue) - - for { - switch C.gst_iterator_next((*C.GstIterator)(iterator), (*C.GValue)(unsafe.Pointer(gval))) { - case C.GST_ITERATOR_DONE: - C.gst_iterator_free((*C.GstIterator)(iterator)) - return elems, nil - case C.GST_ITERATOR_RESYNC: - C.gst_iterator_resync((*C.GstIterator)(iterator)) - case C.GST_ITERATOR_OK: - cElemVoid := C.g_value_get_object((*C.GValue)(gval)) - cElem := (*C.GstElement)(cElemVoid) - elems = append(elems, wrapElement(glib.TransferNone(unsafe.Pointer(cElem)))) - C.g_value_unset((*C.GValue)(gval)) - default: - return nil, errors.New("element iterator failed") - } - } -} - -// ParentAddElement chains up to the parent AddElement handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentAddElement(element *Element) bool { - return gobool(C.binParentAddElement(b.Instance(), element.Instance())) -} - -// ParentDeepElementAdded chains up to the parent DeepElementAdded handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentDeepElementAdded(subbin *Bin, element *Element) { - C.binParentDeepElementAdded(b.Instance(), subbin.Instance(), element.Instance()) -} - -// ParentDeepElementRemoved chains up to the parent DeepElementRemoved handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentDeepElementRemoved(subbin *Bin, element *Element) { - C.binParentDeepElementRemoved(b.Instance(), subbin.Instance(), element.Instance()) -} - -// ParentDoLatency chains up to the parent DoLatency handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentDoLatency() bool { - return gobool(C.binParentDoLatency(b.Instance())) -} - -// ParentElementAdded chains up to the parent ElementAdded handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentElementAdded(element *Element) { - C.binParentElementAdded(b.Instance(), element.Instance()) -} - -// ParentElementRemoved chains up to the parent ElementRemoved handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentElementRemoved(element *Element) { - C.binParentElementRemoved(b.Instance(), element.Instance()) -} - -// ParentHandleMessage chains up to the parent HandleMessage handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentHandleMessage(message *Message) { - C.binParentHandleMessage(b.Instance(), message.Instance()) -} - -// ParentRemoveElement chains up to the parent RemoveElement handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bin) ParentRemoveElement(element *Element) bool { - return gobool(C.binParentRemoveElement(b.Instance(), element.Instance())) -} diff --git a/gst/gst_bin_exports.go b/gst/gst_bin_exports.go deleted file mode 100644 index 4550c68..0000000 --- a/gst/gst_bin_exports.go +++ /dev/null @@ -1,144 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -//export goGstBinAddElement -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinAddElement(bin *C.GstBin, child *C.GstElement) C.gboolean { - var ret bool - - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - gochild := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}) - - caller := subclass.(interface { - AddElement(self *Bin, element *Element) bool - }) - ret = caller.AddElement(goBin, gochild) - - return gboolean(ret) -} - -//export goGstBinDeepElementAdded -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinDeepElementAdded(bin *C.GstBin, subbin *C.GstBin, child *C.GstElement) { - - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - gosubbin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(subbin))}) - gochild := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}) - - caller := subclass.(interface { - DeepElementAdded(self *Bin, subbin *Bin, child *Element) - }) - caller.DeepElementAdded(goBin, gosubbin, gochild) -} - -//export goGstBinDeepElementRemoved -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinDeepElementRemoved(bin *C.GstBin, subbin *C.GstBin, child *C.GstElement) { - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - gosubbin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(subbin))}) - gochild := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}) - - caller := subclass.(interface { - DeepElementRemoved(self *Bin, subbin *Bin, child *Element) - }) - caller.DeepElementRemoved(goBin, gosubbin, gochild) -} - -//export goGstBinDoLatency -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinDoLatency(bin *C.GstBin) C.gboolean { - var ret bool - - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - caller := subclass.(interface { - DoLatency(self *Bin) bool - }) - ret = caller.DoLatency(goBin) - - return gboolean(ret) -} - -//export goGstBinElementAdded -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinElementAdded(bin *C.GstBin, child *C.GstElement) { - - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - gochild := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}) - - caller := subclass.(interface { - ElementAdded(self *Bin, child *Element) - }) - caller.ElementAdded(goBin, gochild) -} - -//export goGstBinElementRemoved -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinElementRemoved(bin *C.GstBin, child *C.GstElement) { - - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - gochild := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}) - - caller := subclass.(interface { - ElementRemoved(self *Bin, child *Element) - }) - caller.ElementRemoved(goBin, gochild) -} - -//export goGstBinHandleMessage -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinHandleMessage(bin *C.GstBin, message *C.GstMessage) { - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - caller := subclass.(interface { - HandleMessage(self *Bin, msg *Message) - }) - caller.HandleMessage(goBin, wrapMessage(message)) -} - -//export goGstBinRemoveElement -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstBinRemoveElement(bin *C.GstBin, child *C.GstElement) C.gboolean { - var ret bool - - goBin := wrapBin(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(bin))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(bin)) - - gochild := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}) - - caller := subclass.(interface { - RemoveElement(self *Bin, child *Element) bool - }) - ret = caller.RemoveElement(goBin, gochild) - - return gboolean(ret) -} diff --git a/gst/gst_bin_impl.go b/gst/gst_bin_impl.go deleted file mode 100644 index 5b0bbb1..0000000 --- a/gst/gst_bin_impl.go +++ /dev/null @@ -1,116 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean goGstBinAddElement (GstBin * bin, GstElement * element); -extern void goGstBinDeepElementAdded (GstBin * bin, GstBin * subbin, GstElement * child); -extern void goGstBinDeepElementRemoved (GstBin * bin, GstBin * subbin, GstElement * child); -extern gboolean goGstBinDoLatency (GstBin * bin); -extern void goGstBinElementAdded (GstBin * bin, GstElement * child); -extern void goGstBinElementRemoved (GstBin * bin, GstElement * child); -extern void goGstBinHandleMessage (GstBin * bin, GstMessage * message); -extern gboolean goGstBinRemoveElement (GstBin * bin, GstElement * element); - -void setGstBinAddElement (GstBinClass * klass) { klass->add_element = goGstBinAddElement; }; -void setGstBinDeepElementAdded (GstBinClass * klass) { klass->deep_element_added = goGstBinDeepElementAdded; }; -void setGstBinDeepElementRemoved (GstBinClass * klass) { klass->deep_element_removed = goGstBinDeepElementRemoved; }; -void setGstBinDoLatency (GstBinClass * klass) { klass->do_latency = goGstBinDoLatency; }; -void setGstBinElementAdded (GstBinClass * klass) { klass->element_added = goGstBinElementAdded; }; -void setGstBinElementRemoved (GstBinClass * klass) { klass->element_removed = goGstBinElementRemoved; }; -void setGstBinHandleMessage (GstBinClass * klass) { klass->handle_message = goGstBinHandleMessage; }; -void setGstBinRemoveElement (GstBinClass * klass) { klass->remove_element = goGstBinRemoveElement; }; - -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// ExtendsBin implements an Extendable object based on a GstBin. -var ExtendsBin glib.Extendable = &extendsBin{parent: ExtendsElement} - -// BinImpl is the reference interface for Go elements extending a Bin. You only need to -// implement the methods that interest you. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type BinImpl interface { - AddElement(self *Bin, element *Element) bool - DeepElementAdded(self *Bin, subbin *Bin, child *Element) - DeepElementRemoved(self *Bin, subbin *Bin, child *Element) - DoLatency(self *Bin) bool - ElementAdded(self *Bin, child *Element) - ElementRemoved(self *Bin, child *Element) - HandleMessage(self *Bin, msg *Message) - RemoveElement(self *Bin, element *Element) bool -} - -type extendsBin struct{ parent glib.Extendable } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBin) Type() glib.Type { return glib.Type(C.gst_bin_get_type()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBin) ClassSize() int64 { return int64(C.sizeof_GstBinClass) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBin) InstanceSize() int64 { return int64(C.sizeof_GstBin) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendsBin) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) { - e.parent.InitClass(klass, elem) - - class := C.toGstBinClass(klass) - - if _, ok := elem.(interface { - AddElement(self *Bin, element *Element) bool - }); ok { - C.setGstBinAddElement(class) - } - - if _, ok := elem.(interface { - DeepElementAdded(self *Bin, subbin *Bin, child *Element) - }); ok { - C.setGstBinDeepElementAdded(class) - } - - if _, ok := elem.(interface { - DeepElementRemoved(self *Bin, subbin *Bin, child *Element) - }); ok { - C.setGstBinDeepElementRemoved(class) - } - - if _, ok := elem.(interface { - DoLatency(self *Bin) bool - }); ok { - C.setGstBinDoLatency(class) - } - - if _, ok := elem.(interface { - ElementAdded(self *Bin, child *Element) - }); ok { - C.setGstBinElementAdded(class) - } - - if _, ok := elem.(interface { - ElementRemoved(self *Bin, child *Element) - }); ok { - C.setGstBinElementRemoved(class) - } - - if _, ok := elem.(interface { - HandleMessage(self *Bin, msg *Message) - }); ok { - C.setGstBinHandleMessage(class) - } - - if _, ok := elem.(interface { - RemoveElement(self *Bin, element *Element) bool - }); ok { - C.setGstBinRemoveElement(class) - } -} diff --git a/gst/gst_buffer.go b/gst/gst_buffer.go deleted file mode 100644 index de62fee..0000000 --- a/gst/gst_buffer.go +++ /dev/null @@ -1,895 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goGDestroyNotifyFunc (gpointer data); -extern gboolean goBufferMetaForEachCb (GstBuffer * buffer, GstMeta ** meta, gpointer user_data); - -void cgoDestroyNotifyFunc (gpointer data) { - goGDestroyNotifyFunc(data); -} - -gboolean cgoBufferMetaForEachCb (GstBuffer * buffer, GstMeta ** meta, gpointer user_data) -{ - return goBufferMetaForEachCb(buffer, meta, user_data); -} - -gboolean isBuffer (GstBuffer * buffer) { return GST_IS_BUFFER(buffer); } -*/ -import "C" - -import ( - "bytes" - "io" - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// GetMaxBufferMemory returns the maximum amount of memory a buffer can hold. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetMaxBufferMemory() uint64 { return uint64(C.gst_buffer_get_max_memory()) } - -// Buffer is a go representation of a GstBuffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Buffer struct { - ptr *C.GstBuffer - mapInfo *MapInfo -} - -// FromGstBufferUnsafeNone wraps the given buffer, sinking any floating references, and places -// a finalizer on the wrapped Buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBufferUnsafeNone(buf unsafe.Pointer) *Buffer { - if buf == nil { - return nil - } - - wrapped := ToGstBuffer(buf) - wrapped.Ref() - runtime.SetFinalizer(wrapped, (*Buffer).Unref) - return wrapped -} - -// FromGstBufferUnsafeFull wraps the given buffer without taking an additional reference. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBufferUnsafeFull(buf unsafe.Pointer) *Buffer { - if buf == nil { - return nil - } - - wrapped := ToGstBuffer(buf) - runtime.SetFinalizer(wrapped, (*Buffer).Unref) - return wrapped -} - -// ToGstBuffer converts the given pointer into a Buffer without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstBuffer(buf unsafe.Pointer) *Buffer { - return wrapBuffer((*C.GstBuffer)(buf)) -} - -// NewEmptyBuffer returns a new empty buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewEmptyBuffer() *Buffer { - return FromGstBufferUnsafeFull(unsafe.Pointer(C.gst_buffer_new())) -} - -// NewBufferWithSize is a convenience wrapped for NewBufferrAllocate with the default allocator -// and parameters. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferWithSize(size int64) *Buffer { - return NewBufferAllocate(nil, nil, size) -} - -// NewBufferAllocate tries to create a newly allocated buffer with data of the given size -// and extra parameters from allocator. If the requested amount of memory can't be allocated, -// nil will be returned. The allocated buffer memory is not cleared. -// -// When allocator is nil, the default memory allocator will be used. -// -// Note that when size == 0, the buffer will not have memory associated with it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferAllocate(alloc *Allocator, params *AllocationParams, size int64) *Buffer { - var gstalloc *C.GstAllocator - if alloc != nil { - gstalloc = alloc.Instance() - } - var gstparams *C.GstAllocationParams - if params != nil { - gstparams = params.Instance() - } - buf := C.gst_buffer_new_allocate(gstalloc, C.gsize(size), gstparams) - if buf == nil { - return nil - } - return FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// NewBufferFromBytes returns a new buffer from the given byte slice. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferFromBytes(b []byte) *Buffer { - gbytes := C.g_bytes_new((C.gconstpointer)(unsafe.Pointer(&b[0])), C.gsize(len(b))) - defer C.g_bytes_unref(gbytes) - return FromGstBufferUnsafeFull(unsafe.Pointer(C.gst_buffer_new_wrapped_bytes(gbytes))) -} - -// NewBufferFromReader returns a new buffer from the given io.Reader. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferFromReader(rdr io.Reader) (*Buffer, error) { - out, err := io.ReadAll(rdr) - if err != nil { - return nil, err - } - return NewBufferFromBytes(out), nil -} - -// NewBufferFull allocates a new buffer that wraps the given data. The wrapped buffer will -// have the region from offset and size visible. The maxsize must be at least the size of the -// data provided. -// -// When the buffer is destroyed, notifyFunc will be called if it is not nil. -// -// The prefix/padding must be filled with 0 if flags contains MemoryFlagZeroPrefixed and MemoryFlagZeroPadded respectively. -// -// // Example -// -// buf := gst.NewBufferFull(0, []byte("hello-world"), 1024, 0, 1024, func() { -// fmt.Println("buffer was destroyed") -// }) -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferFull(flags MemoryFlags, data []byte, maxSize, offset, size int64, notifyFunc func()) *Buffer { - var notifyData unsafe.Pointer - var gnotifyFunc C.GDestroyNotify - if notifyFunc != nil { - notifyData = gopointer.Save(notifyFunc) - gnotifyFunc = C.GDestroyNotify(C.cgoDestroyNotifyFunc) - } - dataStr := string(data) - dataPtr := unsafe.Pointer(C.CString(dataStr)) - buf := C.gst_buffer_new_wrapped_full( - C.GstMemoryFlags(flags), - (C.gpointer)(dataPtr), - C.gsize(maxSize), C.gsize(offset), C.gsize(size), - (C.gpointer)(notifyData), gnotifyFunc, - ) - if buf == nil { - return nil - } - return FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// Instance returns the underlying GstBuffer instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Instance() *C.GstBuffer { return C.toGstBuffer(unsafe.Pointer(b.ptr)) } - -// Ref increases the ref count on the buffer by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Ref() *Buffer { return wrapBuffer(C.gst_buffer_ref(b.Instance())) } - -// Unref decreaes the ref count on the buffer by one. When the refcount reaches zero, the memory is freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Unref() { C.gst_buffer_unref(b.Instance()) } - -// Reader returns an io.Reader for this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Reader() io.Reader { return bytes.NewBuffer(b.Bytes()) } - -// Bytes returns a byte slice of the data inside this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Bytes() []byte { - mapInfo := b.Map(MapRead) - if mapInfo == nil { - return nil - } - defer b.Unmap() - return mapInfo.Bytes() -} - -// PresentationTimestamp returns the presentation timestamp of the buffer, or a negative duration -// if not known or relevant. This value contains the timestamp when the media should be -// presented to the user. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) PresentationTimestamp() ClockTime { - pts := b.Instance().pts - - return ClockTime(pts) -} - -// SetPresentationTimestamp sets the presentation timestamp on the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) SetPresentationTimestamp(dur ClockTime) { - ins := b.Instance() - ins.pts = C.GstClockTime(dur) -} - -// DecodingTimestamp returns the decoding timestamp of the buffer, or a negative duration if not known -// or relevant. This value contains the timestamp when the media should be processed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) DecodingTimestamp() ClockTime { - dts := b.Instance().dts - - return ClockTime(dts) -} - -// Duration returns the length of the data inside this buffer, or a negative duration if not known -// or relevant. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Duration() ClockTime { - dur := b.Instance().duration - - return ClockTime(dur) -} - -// SetDuration sets the duration on the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) SetDuration(dur ClockTime) { - ins := b.Instance() - ins.duration = C.GstClockTime(dur) -} - -// Offset returns a media specific offset for the buffer data. For video frames, this is the frame -// number of this buffer. For audio samples, this is the offset of the first sample in this buffer. -// For file data or compressed data this is the byte offset of the first byte in this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Offset() int64 { return int64(b.Instance().offset) } - -// OffsetEnd returns the last offset contained in this buffer. It has the same format as Offset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) OffsetEnd() int64 { return int64(b.Instance().offset_end) } - -// AddMeta adds metadata for info to the buffer using the parameters in params. The given -// parameters are passed to the MetaInfo's init function, and as such will only work -// for MetaInfo objects created from the go runtime. -// -// // Example -// -// metaInfo := gst.RegisterMeta(glib.TypeFromName("MyObjectType"), "my-meta", 1024, &gst.MetaInfoCallbackFuncs{ -// InitFunc: func(params interface{}, buffer *gst.Buffer) bool { -// paramStr := params.(string) -// fmt.Println("Buffer initialized with params:", paramStr) -// return true -// }, -// FreeFunc: func(buffer *gst.Buffer) { -// fmt.Println("Buffer was destroyed") -// }, -// }) -// -// buf := gst.NewEmptyBuffer() -// buf.AddMeta(metaInfo, "hello world") -// -// // > Buffer initialized with params: hello world -// // > Buffer was destroyed -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) AddMeta(info *MetaInfo, params interface{}) *Meta { - meta := C.gst_buffer_add_meta(b.Instance(), info.Instance(), (C.gpointer)(gopointer.Save(params))) - if meta == nil { - return nil - } - return wrapMeta(meta) -} - -// ParentBufferMeta is a go representation of a GstParentBufferMeta -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ParentBufferMeta struct { - Parent *Meta - Buffer *Buffer -} - -// AddParentMeta adds a ParentBufferMeta to this buffer that holds a parent reference -// on the given buffer until the it is freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) AddParentMeta(buf *Buffer) *ParentBufferMeta { - meta := C.gst_buffer_add_parent_buffer_meta(b.Instance(), buf.Instance()) - return &ParentBufferMeta{ - Parent: wrapMeta(&meta.parent), - Buffer: wrapBuffer(meta.buffer), - } -} - -// AddProtectionMeta attaches ProtectionMeta to this buffer. The structure contains -// cryptographic information relating to the sample contained in the buffer. This -// function takes ownership of the structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) AddProtectionMeta(info *Structure) *ProtectionMeta { - meta := C.gst_buffer_add_protection_meta(b.Instance(), info.Instance()) - return &ProtectionMeta{ - Meta: wrapMeta(&meta.meta), - Info: wrapStructure(meta.info), - } -} - -// ReferenceTimestampMeta is a go representation of a GstReferenceTimestampMeta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ReferenceTimestampMeta struct { - Parent *Meta - Reference *Caps - Timestamp, Duration ClockTime -} - -// AddReferenceTimestampMeta adds a ReferenceTimestampMeta to this buffer that holds a -// timestamp and optional duration (specify -1 to omit) based on a specific timestamp reference. -// -// See the documentation of GstReferenceTimestampMeta for details. -// https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html?gi-language=c#GstReferenceTimestampMeta -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) AddReferenceTimestampMeta(ref *Caps, timestamp, duration ClockTime) *ReferenceTimestampMeta { - meta := C.gst_buffer_add_reference_timestamp_meta(b.Instance(), ref.Instance(), C.GstClockTime(timestamp), C.GstClockTime(duration)) - if meta == nil { - return nil - } - return &ReferenceTimestampMeta{ - Parent: wrapMeta(&meta.parent), - Reference: wrapCaps(meta.reference), - Timestamp: ClockTime(meta.timestamp), - Duration: ClockTime(meta.duration), - } -} - -// Append will append all the memory from the given buffer to this one. The result buffer will -// contain a concatenation of the memory of the two buffers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Append(buf *Buffer) *Buffer { - return FromGstBufferUnsafeFull(unsafe.Pointer(C.gst_buffer_append(b.Ref().Instance(), buf.Ref().Instance()))) -} - -// AppendMemory append the memory block to this buffer. This function takes ownership of -// the memory and thus doesn't increase its refcount. -// -// This function is identical to InsertMemory with an index of -1. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) AppendMemory(mem *Memory) { - C.gst_buffer_append_memory(b.Instance(), mem.Ref().Instance()) -} - -// AppendRegion will append size bytes at offset from the given buffer to this one. The result -// buffer will contain a concatenation of the memory of this buffer and the requested region of -// the one provided. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) AppendRegion(buf *Buffer, offset, size int64) *Buffer { - newbuf := C.gst_buffer_append_region(b.Ref().Instance(), buf.Ref().Instance(), C.gssize(offset), C.gssize(size)) - return FromGstBufferUnsafeFull(unsafe.Pointer(newbuf)) -} - -// Copy creates a copy of this buffer. This will only copy the buffer's data to a newly allocated -// Memory if needed (if the type of memory requires it), otherwise the underlying data is just referenced. -// Check DeepCopy if you want to force the data to be copied to newly allocated Memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Copy() *Buffer { - buf := C.gst_buffer_copy(b.Instance()) - return FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// DeepCopy creates a copy of the given buffer. This will make a newly allocated copy of the data -// the source buffer contains. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) DeepCopy() *Buffer { - buf := C.gst_buffer_copy_deep(b.Instance()) - return FromGstBufferUnsafeFull(unsafe.Pointer(buf)) -} - -// CopyInto copies the information from this buffer into the given one. If the given buffer already -// contains memory and flags contains BufferCopyMemory, the memory from this one will be appended to -// that provided. -// -// Flags indicate which fields will be copied. Offset and size dictate from where and how much memory -// is copied. If size is -1 then all data is copied. The function returns true if the copy was successful. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) CopyInto(dest *Buffer, flags BufferCopyFlags, offset, size int64) bool { - ok := C.gst_buffer_copy_into( - dest.Instance(), - b.Instance(), - C.GstBufferCopyFlags(flags), - C.gsize(offset), - C.gsize(size), - ) - return gobool(ok) -} - -// CopyRegion creates a sub-buffer from this one at offset and size. This sub-buffer uses the actual memory -// space of the parent buffer. This function will copy the offset and timestamp fields when the offset is 0. -// If not, they will be set to ClockTimeNone. -// -// If offset equals 0 and size equals the total size of buffer, the duration and offset end fields are also -// copied. If not they will be set to ClockTimeNone. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) CopyRegion(flags BufferCopyFlags, offset, size int64) *Buffer { - newbuf := C.gst_buffer_copy_region( - b.Instance(), - C.GstBufferCopyFlags(flags), - C.gsize(offset), - C.gsize(size), - ) - return wrapBuffer(newbuf) -} - -// Extract extracts size bytes starting from offset in this buffer. The data extracted may be lower -// than the actual size if the buffer did not contain enough data. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Extract(offset, size int64) []byte { - dest := C.malloc(C.sizeof_char * C.gsize(size)) - defer C.free(dest) - C.gst_buffer_extract(b.Instance(), C.gsize(offset), (C.gpointer)(unsafe.Pointer(dest)), C.gsize(size)) - return C.GoBytes(dest, C.int(size)) -} - -// FillBytes adds the given byte slice to the buffer at the given offset. The return value reflects the amount -// of data added to the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) FillBytes(offset int64, data []byte) int64 { - gbytes := C.g_bytes_new((C.gconstpointer)(unsafe.Pointer(&data[0])), C.gsize(len(data))) - defer C.g_bytes_unref(gbytes) - var size C.gsize - gdata := C.g_bytes_get_data(gbytes, &size) - if gdata == nil { - return 0 - } - return int64(C.gst_buffer_fill(b.Instance(), C.gsize(offset), gdata, size)) -} - -// FindMemory looks for the memory blocks that span size bytes starting from offset in buffer. Size can be -1 -// to retrieve all the memory blocks. -// -// Index will contain the index of the first memory block where the byte for offset can be found and length -// contains the number of memory blocks containing the size remaining bytes. Skip contains the number of bytes -// to skip in the memory block at index to get to the byte for offset. All values will be 0 if the memory blocks -// could not be read. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) FindMemory(offset, size int64) (index, length uint, skip int64) { - var gindex, glength C.uint - var gskip C.gsize - ok := C.gst_buffer_find_memory(b.Instance(), C.gsize(offset), C.gsize(size), &gindex, &glength, &gskip) - if !gobool(ok) { - return - } - return uint(gindex), uint(glength), int64(gskip) -} - -// ForEachMeta calls the given function for each Meta in this buffer. -// -// The function can modify the passed meta pointer or its contents. The return value defines if this function continues -// or if the remaining metadata items in the buffer should be skipped. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) ForEachMeta(f func(meta *Meta) bool) bool { - fPtr := gopointer.Save(f) - defer gopointer.Unref(fPtr) - return gobool(C.gst_buffer_foreach_meta( - b.Instance(), - C.GstBufferForeachMetaFunc(C.cgoBufferMetaForEachCb), - (C.gpointer)(unsafe.Pointer(fPtr)), - )) -} - -// GetAllMemory retrieves all the memory inside this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetAllMemory() *Memory { - mem := C.gst_buffer_get_all_memory(b.Instance()) - if mem == nil { - return nil - } - return FromGstMemoryUnsafeFull(unsafe.Pointer(mem)) -} - -// GetFlags returns the flags on this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetFlags() BufferFlags { - return BufferFlags(C.gst_buffer_get_flags(b.Instance())) -} - -// GetMemory retrieves the memory block at the given index in the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetMemory(idx uint) *Memory { - mem := C.gst_buffer_get_memory(b.Instance(), C.guint(idx)) - if mem == nil { - return nil - } - return FromGstMemoryUnsafeFull(unsafe.Pointer(mem)) -} - -// GetMemoryRange retrieves length memory blocks in buffer starting at idx. The memory blocks -// will be merged into one large Memory. If length is -1, all memory starting from idx is merged. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetMemoryRange(idx uint, length int) *Memory { - mem := C.gst_buffer_get_memory_range(b.Instance(), C.guint(idx), C.gint(length)) - if mem == nil { - return nil - } - return FromGstMemoryUnsafeFull(unsafe.Pointer(mem)) -} - -// GetMeta retrieves the metadata for the given api on buffer. When there is no such metadata, -// nil is returned. If multiple metadata with the given api are attached to this buffer only the -// first one is returned. To handle multiple metadata with a given API use ForEachMeta instead -// and check the type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetMeta(api glib.Type) *Meta { - meta := C.gst_buffer_get_meta(b.Instance(), C.GType(api)) - if meta == nil { - return nil - } - return wrapMeta(meta) -} - -// GetNumMetas returns the number of metas for the given api type on the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetNumMetas(api glib.Type) uint { - return uint(C.gst_buffer_get_n_meta(b.Instance(), C.GType(api))) -} - -// GetReferenceTimestampMeta finds the first ReferenceTimestampMeta on the buffer that conforms to -// reference. Conformance is tested by checking if the meta's reference is a subset of reference. -// -// Buffers can contain multiple ReferenceTimestampMeta metadata items. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetReferenceTimestampMeta(caps *Caps) *ReferenceTimestampMeta { - var meta *C.GstReferenceTimestampMeta - if caps == nil { - meta = C.gst_buffer_get_reference_timestamp_meta(b.Instance(), nil) - } else { - meta = C.gst_buffer_get_reference_timestamp_meta(b.Instance(), caps.Instance()) - } - if meta == nil { - return nil - } - refMeta := &ReferenceTimestampMeta{ - Parent: wrapMeta(&meta.parent), - Timestamp: ClockTime(meta.timestamp), - Duration: ClockTime(meta.duration), - } - if meta.reference != nil { - refMeta.Reference = wrapCaps(meta.reference) - } - return refMeta -} - -// GetSize retrieves the number of Memory blocks in the bffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetSize() int64 { - return int64(C.gst_buffer_get_size(b.Instance())) -} - -// GetSizes will retrieve the size of the buffer, the offset of the first memory block in the buffer, -// and the sum of the size of the buffer, the offset, and any padding. These values can be used to -// resize the buffer with Resize. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetSizes() (size, offset, maxsize int64) { - var goffset, gmaxsize C.gsize - gsize := C.gst_buffer_get_sizes(b.Instance(), &goffset, &gmaxsize) - return int64(gsize), int64(goffset), int64(gmaxsize) -} - -// GetSizesRange will get the total size of length memory blocks stating from idx in buffer. -// -// Offset will contain the offset of the data in the memory block in buffer at idx and maxsize will -// contain the sum of the size and offset and the amount of extra padding on the memory block at -// idx + length -1. Offset and maxsize can be used to resize the buffer memory blocks with ResizeRange. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) GetSizesRange(idx uint, length int) (offset, maxsize int64) { - var goffset, gmaxsize C.gsize - C.gst_buffer_get_sizes_range(b.Instance(), C.guint(idx), C.gint(length), &goffset, &gmaxsize) - return int64(goffset), int64(gmaxsize) -} - -// HasFlags returns true if this Buffer has the given BufferFlags. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) HasFlags(flags BufferFlags) bool { - return gobool(C.gst_buffer_has_flags(b.Instance(), C.GstBufferFlags(flags))) -} - -// InsertMemory insert the memory block to the buffer at idx. This function takes ownership of the Memory -// and thus doesn't increase its refcount. -// -// Only the value from GetMaxBufferMemory can be added to a buffer. If more memory is added, existing memory -// blocks will automatically be merged to make room for the new memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) InsertMemory(mem *Memory, idx int) { - C.gst_buffer_insert_memory(b.Instance(), C.gint(idx), mem.Ref().Instance()) -} - -// IsAllMemoryWritable checks if all memory blocks in buffer are writable. -// -// Note that this function does not check if buffer is writable, use IsWritable to check that if needed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) IsAllMemoryWritable() bool { - return gobool(C.gst_buffer_is_all_memory_writable(b.Instance())) -} - -// IsMemoryRangeWritable checks if length memory blocks in the buffer starting from idx are writable. -// -// Length can be -1 to check all the memory blocks after idx. -// -// Note that this function does not check if buffer is writable, use IsWritable to check that if needed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) IsMemoryRangeWritable(idx uint, length int) bool { - return gobool(C.gst_buffer_is_memory_range_writable(b.Instance(), C.guint(idx), C.gint(length))) -} - -// IsWritable returns true if this buffer is writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) IsWritable() bool { - return gobool(C.bufferIsWritable(b.Instance())) -} - -// MakeWritable returns a writable copy of this buffer. If the source buffer is already writable, -// this will simply return the same buffer. -// -// Use this function to ensure that a buffer can be safely modified before making changes to it, -// including changing the metadata such as PTS/DTS. -// -// If the reference count of the source buffer buf is exactly one, the caller is the sole owner and -// this function will return the buffer object unchanged. -// -// If there is more than one reference on the object, a copy will be made using gst_buffer_copy. The passed-in buf -// will be unreffed in that case, and the caller will now own a reference to the new returned buffer object. Note that -// this just copies the buffer structure itself, the underlying memory is not copied if it can be shared amongst -// multiple buffers. -// -// In short, this function unrefs the buf in the argument and refs the buffer that it returns. Don't access the argument -// after calling this function unless you have an additional reference to it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) MakeWritable() *Buffer { - return wrapBuffer(C.makeBufferWritable(b.Instance())) -} - -// IterateMeta retrieves the next Meta after the given one. If state points to nil, the first Meta is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) IterateMeta(meta *Meta) *Meta { - ptr := unsafe.Pointer(meta.Instance()) - return wrapMeta(C.gst_buffer_iterate_meta(b.Instance(), (*C.gpointer)(&ptr))) -} - -// IterateMetaFiltered is similar to IterateMeta except it will filter on the api type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) IterateMetaFiltered(meta *Meta, apiType glib.Type) *Meta { - ptr := unsafe.Pointer(meta.Instance()) - return wrapMeta(C.gst_buffer_iterate_meta_filtered(b.Instance(), (*C.gpointer)(&ptr), C.GType(apiType))) -} - -// Map will map the data inside this buffer. This function can return nil if the memory is not read or writable. -// It is safe to call this function multiple times on a single Buffer, however it will retain the flags -// used when mapping the first time. To change between read and write access first unmap and then remap the -// buffer with the appropriate flags, or map initially with both read/write access. -// -// Unmap the Buffer after usage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Map(flags MapFlags) *MapInfo { - if b.mapInfo != nil { - return b.mapInfo - } - var mapInfo C.GstMapInfo - C.gst_buffer_map( - (*C.GstBuffer)(b.Instance()), - (*C.GstMapInfo)(&mapInfo), - C.GstMapFlags(flags), - ) - b.mapInfo = wrapMapInfo((*C.GstMapInfo)(&mapInfo)) - return b.mapInfo -} - -// Unmap will unmap the data inside this memory. Use this after calling Map on the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Unmap() { - if b.mapInfo == nil { - return - } - C.gst_buffer_unmap(b.Instance(), (*C.GstMapInfo)(b.mapInfo.Instance())) - b.mapInfo = nil -} - -// MapRange maps the info of length merged memory blocks starting at idx in buffer. -// When length is -1, all memory blocks starting from idx are merged and mapped. -// -// Flags describe the desired access of the memory. When flags is MapWrite, buffer should be writable (as returned from IsWritable). -// -// When the buffer is writable but the memory isn't, a writable copy will automatically be -// created and returned. The readonly copy of the buffer memory will then also be replaced with this writable copy. -// -// Unmap the Buffer after usage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) MapRange(idx uint, length int, flags MapFlags) *MapInfo { - if b.mapInfo != nil { - return b.mapInfo - } - var mapInfo C.GstMapInfo - C.gst_buffer_map_range( - (*C.GstBuffer)(b.Instance()), - C.guint(idx), C.gint(length), - (*C.GstMapInfo)(&mapInfo), - C.GstMapFlags(flags), - ) - b.mapInfo = wrapMapInfo((*C.GstMapInfo)(&mapInfo)) - return b.mapInfo -} - -// Memset fills buf with size bytes with val starting from offset. It returns the -// size written to the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Memset(offset int64, val uint8, size int64) int64 { - return int64(C.gst_buffer_memset(b.Instance(), C.gsize(offset), C.guint8(val), C.gsize(size))) -} - -// NumMemoryBlocks returns the number of memory blocks this buffer has. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) NumMemoryBlocks() uint { return uint(C.gst_buffer_n_memory(b.Instance())) } - -// PeekMemory gets the memory block at idx in buffer. The memory block stays valid until the -// memory block is removed, replaced, or merged. Typically with any call that modifies the memory in buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) PeekMemory(idx uint) *Memory { - mem := C.gst_buffer_peek_memory(b.Instance(), C.guint(idx)) - if mem == nil { - return nil - } - return FromGstMemoryUnsafeNone(unsafe.Pointer(mem)) -} - -// PrependMemory prepends the memory block mem to this buffer. This function takes ownership of -// mem and thus doesn't increase its refcount. -// -// This function is identical to InsertMemory with an index of 0. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) PrependMemory(mem *Memory) { - C.gst_buffer_prepend_memory(b.Instance(), mem.Ref().Instance()) -} - -// RemoveAllMemory removes all memory blocks in the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) RemoveAllMemory() { C.gst_buffer_remove_all_memory(b.Instance()) } - -// RemoveMemoryAt removes the memory block at the given index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) RemoveMemoryAt(idx uint) { C.gst_buffer_remove_memory(b.Instance(), C.guint(idx)) } - -// RemoveMemoryRange removes length memory blocks in buffer starting from idx. -// -// Length can be -1, in which case all memory starting from idx is removed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) RemoveMemoryRange(idx uint, length int) { - C.gst_buffer_remove_memory_range(b.Instance(), C.guint(idx), C.gint(length)) -} - -// RemoveMeta removes the given metadata from the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) RemoveMeta(meta *Meta) bool { - return gobool(C.gst_buffer_remove_meta(b.Instance(), meta.Instance())) -} - -// ReplaceAllMemory replaces all the memory in this buffer with that provided. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) ReplaceAllMemory(mem *Memory) { - C.gst_buffer_replace_all_memory(b.Instance(), mem.Ref().Instance()) -} - -// ReplaceMemory replaces the memory at the given index with the given memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) ReplaceMemory(mem *Memory, idx uint) { - C.gst_buffer_replace_memory(b.Instance(), C.guint(idx), mem.Ref().Instance()) -} - -// ReplaceMemoryRange replaces length memory blocks in the buffer starting at idx with -// the given memory. -// -// If length is -1, all memory starting from idx will be removed and replaced. -// -// The buffer should be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) ReplaceMemoryRange(idx uint, length int, mem *Memory) { - C.gst_buffer_replace_memory_range(b.Instance(), C.guint(idx), C.gint(length), mem.Ref().Instance()) -} - -// Resize sets the offset and total size of the memory blocks in this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) Resize(offset, size int64) { - C.gst_buffer_resize(b.Instance(), C.gssize(offset), C.gssize(size)) -} - -// ResizeRange sets the total size of the length memory blocks starting at idx in this buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) ResizeRange(idx uint, length int, offset, size int64) bool { - return gobool(C.gst_buffer_resize_range( - b.Instance(), - C.guint(idx), - C.gint(length), - C.gssize(offset), - C.gssize(size), - )) -} - -// SetFlags sets one or more buffer flags on the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) SetFlags(flags BufferFlags) bool { - return gobool(C.gst_buffer_set_flags(b.Instance(), C.GstBufferFlags(flags))) -} - -// SetSize sets the total size of the memory blocks in buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) SetSize(size int64) { - C.gst_buffer_set_size(b.Instance(), C.gssize(size)) -} - -// UnsetFlags removes one or more flags from the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Buffer) UnsetFlags(flags BufferFlags) bool { - return gobool(C.gst_buffer_unset_flags(b.Instance(), C.GstBufferFlags(flags))) -} diff --git a/gst/gst_buffer_list.go b/gst/gst_buffer_list.go deleted file mode 100644 index 5369c42..0000000 --- a/gst/gst_buffer_list.go +++ /dev/null @@ -1,196 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean goBufferListForEachCb (GstBuffer ** buffer, guint idx, gpointer user_data); - -gboolean cgoBufferListForEachCb (GstBuffer ** buffer, guint idx, gpointer user_data) -{ - return goBufferListForEachCb(buffer, idx, user_data); -} -*/ -import "C" -import ( - "runtime" - "unsafe" - - gopointer "github.com/go-gst/go-pointer" -) - -// BufferList is a go wrapper around a GstBufferList for grouping Buffers -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type BufferList struct { - ptr *C.GstBufferList -} - -// NewBufferList returns a new BufferList. The given slice can be nil and the returned -// buffer list will be empty. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferList(buffers []*Buffer) *BufferList { - bufList := FromGstBufferListUnsafeFull(unsafe.Pointer(C.gst_buffer_list_new())) - if buffers == nil { - return bufList - } - for idx, buf := range buffers { - bufList.Insert(idx, buf) - } - return bufList -} - -// NewBufferListSized creates a new BufferList with the given size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferListSized(size uint) *BufferList { - return FromGstBufferListUnsafeFull(unsafe.Pointer(C.gst_buffer_list_new_sized(C.guint(size)))) -} - -// FromGstBufferListUnsafeNone is used for returns from transfer-none methods. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBufferListUnsafeNone(buf unsafe.Pointer) *BufferList { - wrapped := wrapBufferList((*C.GstBufferList)(buf)) - wrapped.Ref() - runtime.SetFinalizer(wrapped, (*BufferList).Unref) - return wrapped -} - -// FromGstBufferListUnsafeFull wraps the given buffer without taking an additional reference. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBufferListUnsafeFull(buf unsafe.Pointer) *BufferList { - wrapped := wrapBufferList((*C.GstBufferList)(buf)) - runtime.SetFinalizer(wrapped, (*BufferList).Unref) - return wrapped -} - -// ToGstBufferList converts the given pointer into a BufferList without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstBufferList(buf unsafe.Pointer) *BufferList { - return wrapBufferList((*C.GstBufferList)(buf)) -} - -// Instance returns the underlying GstBufferList. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Instance() *C.GstBufferList { return C.toGstBufferList(unsafe.Pointer(b.ptr)) } - -// CalculateSize calculates the size of the data contained in this buffer list by adding the size of all buffers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) CalculateSize() int64 { - return int64(C.gst_buffer_list_calculate_size(b.Instance())) -} - -// Copy creates a shallow copy of the given buffer list. This will make a newly allocated copy of the -// source list with copies of buffer pointers. The refcount of buffers pointed to will be increased by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Copy() *BufferList { - return FromGstBufferListUnsafeFull(unsafe.Pointer(C.gst_buffer_list_copy(b.Instance()))) -} - -// DeepCopy creates a copy of the given buffer list. This will make a newly allocated copy of each buffer -// that the source buffer list contains. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) DeepCopy() *BufferList { - return FromGstBufferListUnsafeFull(unsafe.Pointer(C.gst_buffer_list_copy_deep(b.Instance()))) -} - -// IsWritable returns true if this BufferList is writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) IsWritable() bool { - return gobool(C.bufferListIsWritable(b.Instance())) -} - -// MakeWritable makes a writable buffer list from this one. If the source buffer list is already writable, -// this will simply return the same buffer list. A copy will otherwise be made using Copy. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) MakeWritable() *BufferList { - return FromGstBufferListUnsafeFull(unsafe.Pointer(C.makeBufferListWritable(b.Instance()))) -} - -// ForEach calls the given function for each buffer in list. -// -// The function can modify the passed buffer pointer or its contents. The return value defines if this -// function returns or if the remaining buffers in the list should be skipped. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) ForEach(f func(buf *Buffer, idx uint) bool) { - fPtr := gopointer.Save(f) - defer gopointer.Unref(fPtr) - C.gst_buffer_list_foreach( - b.Instance(), - C.GstBufferListFunc(C.cgoBufferListForEachCb), - (C.gpointer)(unsafe.Pointer(fPtr)), - ) -} - -// GetBufferAt gets the buffer at idx. -// -// You must make sure that idx does not exceed the number of buffers available. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) GetBufferAt(idx uint) *Buffer { - return FromGstBufferUnsafeNone(unsafe.Pointer(C.gst_buffer_list_get(b.Instance(), C.guint(idx)))) -} - -// GetWritableBufferAt gets the buffer at idx, ensuring it is a writable buffer. -// -// You must make sure that idx does not exceed the number of buffers available. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) GetWritableBufferAt(idx uint) *Buffer { - return FromGstBufferUnsafeNone(unsafe.Pointer(C.gst_buffer_list_get_writable(b.Instance(), C.guint(idx)))) -} - -// Insert inserts a buffer at idx in the list. Other buffers are moved to make room for this new buffer. -// -// A -1 value for idx will append the buffer at the end. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Insert(idx int, buf *Buffer) { - C.gst_buffer_list_insert(b.Instance(), C.gint(idx), buf.Ref().Instance()) -} - -// Length returns the number of buffers in the list. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Length() uint { - return uint(C.gst_buffer_list_length(b.Instance())) -} - -// Ref increases the refcount of the given buffer list by one. -// -// Note that the refcount affects the writability of list and its data, see MakeWritable. -// It is important to note that keeping additional references to GstBufferList instances -// can potentially increase the number of memcpy operations in a pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Ref() *BufferList { - C.gst_buffer_list_ref(b.Instance()) - return b -} - -// Remove removes length buffers from the list starting at index. All following buffers -// are moved to close the gap. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Remove(idx, length uint) { - C.gst_buffer_list_remove(b.Instance(), C.guint(idx), C.guint(length)) -} - -// Unref decreases the refcount of the buffer list. If the refcount reaches 0, the buffer -// list will be freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferList) Unref() { - C.gst_buffer_list_unref(b.Instance()) -} diff --git a/gst/gst_buffer_pool.go b/gst/gst_buffer_pool.go deleted file mode 100644 index 802ab04..0000000 --- a/gst/gst_buffer_pool.go +++ /dev/null @@ -1,308 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// BufferPool is a go wrapper around a GstBufferPool. -// -// For more information refer to the official documentation: -// https://gstreamer.freedesktop.org/documentation/gstreamer/gstbufferpool.html?gi-language=c -type BufferPool struct{ *Object } - -// NewBufferPool returns a new BufferPool instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferPool() *BufferPool { - pool := C.gst_buffer_pool_new() - return FromGstBufferPoolUnsafeFull(unsafe.Pointer(pool)) -} - -// FromGstBufferPoolUnsafeNone wraps the given unsafe.Pointer in a BufferPool instance. It takes a -// ref and places a runtime finalizer on the resulting object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBufferPoolUnsafeNone(bufferPool unsafe.Pointer) *BufferPool { - pool := wrapBufferPool(glib.TransferNone(bufferPool)) - return pool -} - -// // FromGstBufferPoolUnsafe is an alias to FromGstBufferPoolUnsafeNone. -// func FromGstBufferPoolUnsafe(bufferPool unsafe.Pointer) *BufferPool { -// return FromGstBufferPoolUnsafeNone(bufferPool) -// } - -// FromGstBufferPoolUnsafeFull wraps the given unsafe.Pointer in a BufferPool instance. It just -// places a runtime finalizer on the resulting object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBufferPoolUnsafeFull(bufferPool unsafe.Pointer) *BufferPool { - pool := wrapBufferPool(glib.TransferFull(bufferPool)) - return pool -} - -// Instance returns the underlying GstBufferPool instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) Instance() *C.GstBufferPool { return C.toGstBufferPool(b.Unsafe()) } - -// IsFlushing returns true if this BufferPool is currently flushing. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) IsFlushing() bool { return gobool(C.bufferPoolIsFlushing(b.Instance())) } - -// BufferPoolAcquireParams represents parameters to an AcquireBuffer call. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type BufferPoolAcquireParams struct { - Format Format // format (GstFormat) – the format of start and stop - Start int64 // start (gint64) – the start position - Stop int64 // stop (gint64) – the stop position - Flags BufferPoolAcquireFlags // flags (GstBufferPoolAcquireFlags) – additional flags -} - -// AcquireBuffer acquires a buffer from this pool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) AcquireBuffer(params *BufferPoolAcquireParams) (*Buffer, FlowReturn) { - var buf *C.GstBuffer - if params != nil { - gparams := (*C.GstBufferPoolAcquireParams)(C.malloc(C.sizeof_GstBufferPoolAcquireParams)) - defer C.free(unsafe.Pointer(gparams)) - gparams.format = C.GstFormat(params.Format) - gparams.start = C.gint64(params.Start) - gparams.stop = C.gint64(params.Stop) - gparams.flags = C.GstBufferPoolAcquireFlags(params.Flags) - ret := C.gst_buffer_pool_acquire_buffer(b.Instance(), &buf, gparams) - if FlowReturn(ret) != FlowOK { - return nil, FlowReturn(ret) - } - return FromGstBufferUnsafeFull(unsafe.Pointer(buf)), FlowReturn(ret) - } - ret := C.gst_buffer_pool_acquire_buffer(b.Instance(), &buf, nil) - if FlowReturn(ret) != FlowOK { - return nil, FlowReturn(ret) - } - return FromGstBufferUnsafeFull(unsafe.Pointer(buf)), FlowReturn(ret) -} - -// GetConfig retrieves a copy of the current configuration of the pool. This configuration can either -// be modified and used for the SetConfig call or it must be freed after usage with Free. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) GetConfig() *BufferPoolConfig { - st := C.gst_buffer_pool_get_config(b.Instance()) - if st == nil { - return nil - } - return &BufferPoolConfig{Structure: FromGstStructureUnsafe(unsafe.Pointer(st))} -} - -// GetOptions retrieves a list of supported bufferpool options for the pool. An option would typically -// be enabled with AddOption. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) GetOptions() []string { - opts := C.gst_buffer_pool_get_options(b.Instance()) - defer C.g_free((C.gpointer)(unsafe.Pointer(opts))) - return goStrings(C.sizeOfGCharArray(opts), opts) -} - -// HasOption returns true if this BufferPool supports the given option. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) HasOption(opt string) bool { - gOpt := C.CString(opt) - defer C.free(unsafe.Pointer(gOpt)) - return gobool(C.gst_buffer_pool_has_option(b.Instance(), (*C.gchar)(gOpt))) -} - -// IsActive returns true if this BufferPool is active. A pool can be activated with SetActive. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) IsActive() bool { return gobool(C.gst_buffer_pool_is_active(b.Instance())) } - -// ReleaseBuffer releases the given buffer from the pool. The buffer should have previously been -// allocated from pool with AcquireBiffer. -// -// This function is usually called automatically when the last ref on buffer disappears. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) ReleaseBuffer(buf *Buffer) { - C.gst_buffer_pool_release_buffer(b.Instance(), buf.Ref().Instance()) -} - -// SetActive can be used to control the active state of pool. When the pool is inactive, new calls to -// AcquireBuffer will return with FlowFlushing. -// -// Activating the bufferpool will preallocate all resources in the pool based on the configuration of the pool. -// -// Deactivating will free the resources again when there are no outstanding buffers. When there are outstanding buffers, they will be freed as soon as they are all returned to the pool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) SetActive(active bool) (ok bool) { - return gobool(C.gst_buffer_pool_set_active(b.Instance(), gboolean(active))) -} - -// SetConfig sets the configuration of the pool. If the pool is already configured, and the configurations -// haven't changed, this function will return TRUE. If the pool is active, this method will return FALSE and -// active configurations will remain. Buffers allocated form this pool must be returned or else this function -// will do nothing and return FALSE. -// -// config is a GstStructure that contains the configuration parameters for the pool. A default and mandatory set -// of parameters can be configured with gst_buffer_pool_config_set_params, gst_buffer_pool_config_set_allocator -// and gst_buffer_pool_config_add_option. -// -// If the parameters in config can not be set exactly, this function returns FALSE and will try to update as much -// state as possible. The new state can then be retrieved and refined with GetConfig. -// -// This function takes ownership of the given structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) SetConfig(cfg *BufferPoolConfig) bool { - return gobool(C.gst_buffer_pool_set_config(b.Instance(), cfg.Instance())) -} - -// SetFlushing enables or disable the flushing state of a pool without freeing or allocating buffers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPool) SetFlushing(flushing bool) { - C.gst_buffer_pool_set_flushing(b.Instance(), gboolean(flushing)) -} - -// BufferPoolConfig wraps the Structure interface with extra methods for interacting with BufferPool -// configurations. -type BufferPoolConfig struct{ *Structure } - -// AddOption enables the option in config. This will instruct the bufferpool to enable the specified option -// on the buffers that it allocates. -// -// The supported options by pool can be retrieved with GetOptions. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) AddOption(opt string) { - cOpt := C.CString(opt) - defer C.free(unsafe.Pointer(cOpt)) - C.gst_buffer_pool_config_add_option(b.Instance(), (*C.gchar)(unsafe.Pointer(cOpt))) -} - -// GetAllocator retrieves the allocator and params from config. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) GetAllocator() (*Allocator, *AllocationParams) { - var allocator *C.GstAllocator - var params C.GstAllocationParams - C.gst_buffer_pool_config_get_allocator(b.Instance(), &allocator, ¶ms) - var allo *Allocator - if allocator != nil { - allo = wrapAllocator(glib.TransferNone(unsafe.Pointer(allocator))) - } - return allo, &AllocationParams{ptr: ¶ms} -} - -// GetOption retrieves the option at index of the options API array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) GetOption(index uint) string { - return C.GoString(C.gst_buffer_pool_config_get_option(b.Instance(), C.guint(index))) -} - -// GetParams retrieves the values from this config. All params return 0 or nil if they could not be fetched. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) GetParams() (caps *Caps, size, minBuffers, maxBuffers uint) { - var gcaps *C.GstCaps - var gsize, gminBuffers, gmaxBuffers C.guint - ret := gobool(C.gst_buffer_pool_config_get_params( - b.Instance(), - &gcaps, - &gsize, - &gminBuffers, - &gmaxBuffers, - )) - if ret { - return wrapCaps(gcaps), uint(gsize), uint(gminBuffers), uint(gmaxBuffers) - } - return nil, 0, 0, 0 -} - -// HasOption returns true if this config has the given option. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) HasOption(opt string) bool { - cOpt := C.CString(opt) - defer C.free(unsafe.Pointer(cOpt)) - return gobool(C.gst_buffer_pool_config_has_option(b.Instance(), (*C.gchar)(unsafe.Pointer(cOpt)))) -} - -// NumOptions retrieves the number of values currently stored in the options array of the config structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) NumOptions() uint { - return uint(C.gst_buffer_pool_config_n_options(b.Instance())) -} - -// SetAllocator sets the allocator and params on config. -// -// One of allocator and params can be nil, but not both. When allocator is nil, the default allocator of -// the pool will use the values in param to perform its allocation. When param is nil, the pool will use -// the provided allocator with its default AllocationParams. -// -// A call to SetConfig on the BufferPool can update the allocator and params with the values that it is able to do. -// Some pools are, for example, not able to operate with different allocators or cannot allocate with the values -// specified in params. Use GetConfig on the pool to get the currently used values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) SetAllocator(allocator *Allocator, params *AllocationParams) { - if allocator == nil && params != nil { - C.gst_buffer_pool_config_set_allocator(b.Instance(), nil, params.Instance()) - return - } - if allocator != nil && params == nil { - C.gst_buffer_pool_config_set_allocator(b.Instance(), allocator.Instance(), nil) - return - } - if allocator != nil && params != nil { - C.gst_buffer_pool_config_set_allocator(b.Instance(), allocator.Instance(), params.Instance()) - } -} - -// SetParams configures the config with the given parameters. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) SetParams(caps *Caps, size, minBuffers, maxBuffers uint) { - if caps == nil { - C.gst_buffer_pool_config_set_params( - b.Instance(), - nil, - C.guint(size), C.guint(minBuffers), C.guint(maxBuffers), - ) - return - } - C.gst_buffer_pool_config_set_params( - b.Instance(), - caps.Instance(), - C.guint(size), C.guint(minBuffers), C.guint(maxBuffers), - ) -} - -// Validate that changes made to config are still valid in the context of the expected parameters. This function is a -// helper that can be used to validate changes made by a pool to a config when SetConfig returns FALSE. This expects -// that caps haven't changed and that min_buffers aren't lower then what we initially expected. This does not check if -// options or allocator parameters are still valid, and won't check if size have changed, since changing the size is valid -// to adapt padding. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *BufferPoolConfig) Validate(caps *Caps, size, minBuffers, maxBuffers uint) bool { - return gobool(C.gst_buffer_pool_config_validate_params( - b.Instance(), - caps.Instance(), - C.guint(size), C.guint(minBuffers), C.guint(maxBuffers), - )) -} diff --git a/gst/gst_bus.go b/gst/gst_bus.go deleted file mode 100644 index 4a3bc3c..0000000 --- a/gst/gst_bus.go +++ /dev/null @@ -1,387 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern GstBusSyncReply goBusSyncHandler (GstBus * bus, GstMessage * message, gpointer user_data); -extern gboolean goBusFunc (GstBus * bus, GstMessage * msg, gpointer user_data); -extern void goUnrefGopointerUserData (gpointer); - -gboolean cgoBusFunc (GstBus * bus, GstMessage * msg, gpointer user_data) -{ - return goBusFunc(bus, msg, user_data); -} - -void cgoUnrefGopointerUserData (gpointer data) -{ - goUnrefGopointerUserData(data); -} - -GstBusSyncReply cgoBusSyncHandler (GstBus * bus, GstMessage * message, gpointer user_data) -{ - return goBusSyncHandler(bus, message, user_data); -} - -*/ -import "C" - -import ( - "reflect" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// Bus is a Go wrapper around a GstBus. It provides convenience methods for -// popping messages from the queue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Bus struct { - *Object -} - -// NewBus returns a new Bus instance. -// -// // Example of using the bus instance -// -// package main -// -// import ( -// "fmt" -// -// "github.com/go-gst/go-gst/gst" -// ) -// -// func main() { -// gst.Init(nil) -// -// bus := gst.NewBus() -// -// elem, err := gst.NewElement("fakesrc") -// if err != nil { -// panic(err) -// } -// -// bus.Post(gst.NewAsyncStartMessage(elem)) -// -// msg := bus.Pop() -// -// fmt.Println(msg) -// } -// -// // > [fakesrc0] ASYNC-START - Async task started -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBus() *Bus { - return FromGstBusUnsafeFull(unsafe.Pointer(C.gst_bus_new())) -} - -// FromGstBusUnsafeNone wraps the given unsafe.Pointer in a bus. It takes a ref on the bus and sets -// a runtime finalizer on it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBusUnsafeNone(bus unsafe.Pointer) *Bus { return wrapBus(glib.TransferNone(bus)) } - -// FromGstBusUnsafeFull wraps the given unsafe.Pointer in a bus. It does not increase the ref count -// and places a runtime finalizer on the instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstBusUnsafeFull(bus unsafe.Pointer) *Bus { return wrapBus(glib.TransferFull(bus)) } - -// Instance returns the underlying GstBus instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) Instance() *C.GstBus { return C.toGstBus(b.Unsafe()) } - -// AddSignalWatch adds a bus signal watch to the default main context with the default priority (%G_PRIORITY_DEFAULT). -// It is also possible to use a non-default main context set up using g_main_context_push_thread_default (before one -// had to create a bus watch source and attach it to the desired main context 'manually'). -// -// After calling this statement, the bus will emit the "message" signal for each message posted on the bus. -// -// This function may be called multiple times. To clean up, the caller is responsible for calling RemoveSignalWatch -// as many times as this function is called. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) AddSignalWatch() { C.gst_bus_add_signal_watch(b.Instance()) } - -// PopMessage attempts to pop a message from the bus. It returns nil if none are available. -// -// It is much safer and easier to use the AddWatch or other polling functions. Only use this method if you -// are unable to also run a MainLoop, or for convenience sake. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) PopMessage(timeout ClockTime) *Message { - return b.TimedPop(timeout) -} - -// BlockPopMessage blocks until a message is available on the bus and then returns it. -// This function can return nil if the bus is closed. -// -// It is much safer and easier to use the AddWatch or other polling functions. Only use this method if you -// are unable to also run a MainLoop, or for convenience sake. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) BlockPopMessage() *Message { - for { - if b.Instance() == nil { - return nil - } - msg := b.PopMessage(1) - if msg == nil { - continue - } - return msg - } -} - -// BusWatchFunc is a go representation of a GstBusFunc. It takes a message as a single argument -// and returns a bool value for whether to continue processing messages or not. -type BusWatchFunc func(msg *Message) bool - -// AddWatch adds a watch to the default MainContext for messages emitted on this bus. -// This function is used to receive asynchronous messages in the main loop. There can -// only be a single bus watch per bus, you must remove it before you can set a new one. -// -// The watch can be removed either by returning false from the function or by using RemoveWatch(). -// A MainLoop must be running for bus watches to work. -// -// The return value reflects whether the watch was successfully added. False is returned if there -// is already a function registered. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) AddWatch(busFunc BusWatchFunc) bool { - fPtr := gopointer.Save(busFunc) - return gobool( - C.int(C.gst_bus_add_watch_full( - b.Instance(), - C.G_PRIORITY_DEFAULT, - C.GstBusFunc(C.cgoBusFunc), - (C.gpointer)(unsafe.Pointer(fPtr)), - C.GDestroyNotify(C.cgoUnrefGopointerUserData), - )), - ) -} - -// CreateWatch creates a watch and returns the GSource to be added to a main loop. -// TODO: the return values from this function should be type casted and the MainLoop -// should offer methods for using the return of this function. -// func (b *Bus) CreateWatch() *C.GSource { -// return C.gst_bus_create_watch(b.Instance()) -// } - -// RemoveWatch will remove any watches installed on the bus. This can also be accomplished -// by returning false from a previously installed function. -// -// The function returns false if there was no watch on the bus. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) RemoveWatch() bool { - return gobool(C.gst_bus_remove_watch(b.Instance())) -} - -// RemoveSignalWatch removes a signal watch previously added with AddSignalWatch. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) RemoveSignalWatch() { C.gst_bus_remove_signal_watch(b.Instance()) } - -// DisableSyncMessageEmission instructs GStreamer to stop emitting the "sync-message" signal for this bus. -// See EnableSyncMessageEmission for more information. -// -// In the event that multiple pieces of code have called EnableSyncMessageEmission, the sync-message emissions -// will only be stopped after all calls to EnableSyncMessageEmission were "canceled" by calling this function. -// In this way the semantics are exactly the same as Ref that which calls enable should also call disable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) DisableSyncMessageEmission() { C.gst_bus_disable_sync_message_emission(b.Instance()) } - -// EnableSyncMessageEmission instructs GStreamer to emit the "sync-message" signal after running the bus's sync handler. -// This function is here so that code can ensure that they can synchronously receive messages without having to affect -// what the bin's sync handler is. -// -// This function may be called multiple times. To clean up, the caller is responsible for calling DisableSyncMessageEmission -// as many times as this function is called. -// -// While this function looks similar to AddSignalWatch, it is not exactly the same -- this function enables *synchronous* -// emission of signals when messages arrive; AddSignalWatch adds an idle callback to pop messages off the bus asynchronously. -// The sync-message signal comes from the thread of whatever object posted the message; the "message" signal is marshaled -// to the main thread via the main loop. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) EnableSyncMessageEmission() { C.gst_bus_enable_sync_message_emission(b.Instance()) } - -// PollFd represents the possible values returned from a GetPollFd. On Windows, there will not be -// a Fd. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type PollFd struct { - Fd int - Events, REvents uint -} - -// GetPollFd gets the file descriptor from the bus which can be used to get notified about messages being available with -// functions like g_poll, and allows integration into other event loops based on file descriptors. Whenever a message is -// available, the POLLIN / G_IO_IN event is set. -// -// Warning: NEVER read or write anything to the returned fd but only use it for getting notifications via g_poll or similar -// and then use the normal GstBus API, e.g. PopMessage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) GetPollFd() *PollFd { - var gpollFD C.GPollFD - C.gst_bus_get_pollfd(b.Instance(), &gpollFD) - pollFd := &PollFd{ - Events: uint(gpollFD.events), - REvents: uint(gpollFD.revents), - } - if fd := reflect.ValueOf(&gpollFD).Elem().FieldByName("fd"); fd.IsValid() { - pollFd.Fd = int(fd.Interface().(C.gint)) - } - return pollFd -} - -// HavePending checks if there are pending messages on the bus that should be handled. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) HavePending() bool { - return gobool(C.gst_bus_have_pending(b.Instance())) -} - -// Peek peeks the message on the top of the bus' queue. The message will remain on the bus' -// message queue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) Peek() *Message { - msg := C.gst_bus_peek(b.Instance()) - if msg == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(msg)) -} - -// Poll the bus for messages. Will block while waiting for messages to come. You can specify a maximum -// time to poll with the timeout parameter. If timeout is negative, this function will block indefinitely. -// -// All messages not in events will be popped off the bus and will be ignored. It is not possible to use message -// enums beyond MessageExtended in the events mask. -// -// Because poll is implemented using the "message" signal enabled by AddSignalWatch, calling Poll will cause the -// "message" signal to be emitted for every message that poll sees. Thus a "message" signal handler will see the -// same messages that this function sees -- neither will steal messages from the other. -// -// This function will run a main loop from the default main context when polling. -// -// You should never use this function, since it is pure evil. This is especially true for GUI applications based -// on Gtk+ or Qt, but also for any other non-trivial application that uses the GLib main loop. As this function -// runs a GLib main loop, any callback attached to the default GLib main context may be invoked. This could be -// timeouts, GUI events, I/O events etc.; even if Poll is called with a 0 timeout. Any of these callbacks -// -// may do things you do not expect, e.g. destroy the main application window or some other resource; change other -// -// application state; display a dialog and run another main loop until the user clicks it away. In short, using this -// function may add a lot of complexity to your code through unexpected re-entrancy and unexpected changes to your -// application's state. -// -// For 0 timeouts use gst_bus_pop_filtered instead of this function; for other short timeouts use TimedPopFiltered; -// everything else is better handled by setting up an asynchronous bus watch and doing things from there. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) Poll(msgTypes MessageType, timeout ClockTime) *Message { - cTime := C.GstClockTime(timeout) - mType := C.GstMessageType(msgTypes) - msg := C.gst_bus_poll(b.Instance(), mType, cTime) - if msg == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(msg)) -} - -// Pop pops a message from the bus, or returns nil if none are available. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) Pop() *Message { - msg := C.gst_bus_pop(b.Instance()) - if msg == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(msg)) -} - -// PopFiltered gets a message matching type from the bus. Will discard all messages on the bus that do not match type -// and that have been posted before the first message that does match type. If there is no message matching type on the -// bus, all messages will be discarded. It is not possible to use message enums beyond MessageExtended in the events mask. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) PopFiltered(msgTypes MessageType) *Message { - mType := C.GstMessageType(msgTypes) - msg := C.gst_bus_pop_filtered(b.Instance(), mType) - if msg == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(msg)) -} - -// Post a new message on the bus. The bus takes ownership of the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) Post(msg *Message) bool { - return gobool(C.gst_bus_post(b.Instance(), msg.Ref().Instance())) -} - -// SetFlushing sets whether to flush out and unref any messages queued in the bus. Releases references to the message origin -// objects. Will flush future messages until SetFlushing sets flushing to FALSE. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) SetFlushing(flushing bool) { C.gst_bus_set_flushing(b.Instance(), gboolean(flushing)) } - -// BusSyncHandler will be invoked synchronously, when a new message has been injected into the bus. This function is mostly -// used internally. Only one sync handler can be attached to a given bus. -// -// If the handler returns BusDrop, it should unref the message, else the message should not be unreffed by the sync handler. -type BusSyncHandler func(msg *Message) BusSyncReply - -// SetSyncHandler sets the synchronous handler on the bus. The function will be called every time a new message is posted on the bus. -// Note that the function will be called in the same thread context as the posting object. This function is usually only called by the -// creator of the bus. Applications should handle messages asynchronously using the watch and poll functions. -// -// Currently, destroyNotify funcs are not supported. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) SetSyncHandler(f BusSyncHandler) { - ptr := gopointer.Save(f) - C.gst_bus_set_sync_handler( - b.Instance(), - C.GstBusSyncHandler(C.cgoBusSyncHandler), - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.cgoUnrefGopointerUserData), - ) -} - -// TimedPop gets a message from the bus, waiting up to the specified timeout. -// -// If timeout is 0, this function behaves like Pop. If timeout is ClockTimeNone, this function will block forever until a message was posted on the bus. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) TimedPop(dur ClockTime) *Message { - msg := C.gst_bus_timed_pop(b.Instance(), C.GstClockTime(dur)) - if msg == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(msg)) -} - -// TimedPopFiltered gets a message from the bus whose type matches the message type mask types, waiting up to the specified timeout -// (and discarding any messages that do not match the mask provided). -// -// If timeout is 0, this function behaves like PopFiltered. If timeout is ClockTimeNone, this function will block forever until a matching message -// was posted on the bus. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b *Bus) TimedPopFiltered(dur ClockTime, msgTypes MessageType) *Message { - msg := C.gst_bus_timed_pop_filtered(b.Instance(), C.GstClockTime(dur), C.GstMessageType(msgTypes)) - if msg == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(msg)) -} diff --git a/gst/gst_caps.go b/gst/gst_caps.go deleted file mode 100644 index 53d5c93..0000000 --- a/gst/gst_caps.go +++ /dev/null @@ -1,594 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean goCapsMapFunc (GstCapsFeatures * features, GstStructure * structure, gpointer user_data); - -gboolean cgoCapsMapFunc (GstCapsFeatures * features, GstStructure * structure, gpointer user_data) -{ - return goCapsMapFunc(features, structure, user_data); -} - -*/ -import "C" - -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// TypeCaps is the static Glib Type for a GstCaps. -var TypeCaps = glib.Type(C.gst_caps_get_type()) - -var _ glib.ValueTransformer = &Caps{} - -// Caps is a go wrapper around GstCaps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Caps struct { - native *C.GstCaps -} - -// FromGstCapsUnsafeNone wraps the pointer to the given C GstCaps with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// A ref is taken on the caps and finalizer placed on the object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstCapsUnsafeNone(caps unsafe.Pointer) *Caps { - if caps == nil { - return nil - } - gocaps := ToGstCaps(caps) - gocaps.Ref() - runtime.SetFinalizer(gocaps, (*Caps).Unref) - return gocaps -} - -// FromGstCapsUnsafeFull wraps the pointer to the given C GstCaps with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// A finalizer is placed on the object to Unref after leaving scope. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstCapsUnsafeFull(caps unsafe.Pointer) *Caps { - if caps == nil { - return nil - } - gocaps := ToGstCaps(caps) - runtime.SetFinalizer(gocaps, (*Caps).Unref) - return gocaps -} - -// ToGstCaps converts the given pointer into a Caps without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstCaps(caps unsafe.Pointer) *Caps { - return wrapCaps(C.toGstCaps(caps)) -} - -// CapsMapFunc represents a function passed to the Caps MapInPlace, ForEach, and FilterAndMapInPlace methods. -type CapsMapFunc func(features *CapsFeatures, structure *Structure) bool - -// NewAnyCaps creates a new caps that indicate compatibility with any format. -// -// caps := gst.NewAnyCaps() -// fmt.Println(caps.IsAny()) -// // true -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAnyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_any())) } - -// NewEmptyCaps creates a new empty caps object. This is essentially the opposite of -// NewAnyCamps. -// -// caps := gst.NewEmptyCaps() -// fmt.Println(caps.IsEmpty()) -// // true -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewEmptyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_empty())) } - -// NewEmptySimpleCaps returns a new empty caps object with the given media format. -// -// caps := gst.NewEmptySimpleCaps("audio/x-raw") -// fmt.Println(caps.String()) -// // audio/x-raw -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewEmptySimpleCaps(mediaFormat string) *Caps { - cFormat := C.CString(mediaFormat) - defer C.free(unsafe.Pointer(cFormat)) - caps := C.gst_caps_new_empty_simple(cFormat) - return FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// NewFullCaps creates a new caps from the given structures. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewFullCaps(structures ...*Structure) *Caps { - caps := NewEmptyCaps() - for _, st := range structures { - caps.AppendStructure(st) - } - return caps -} - -// NewCapsFromString creates a new Caps object from the given string. -// -// caps := gst.NewCapsFromString("audio/x-raw, channels=2") -// fmt.Println(caps.String()) -// // audio/x-raw, channels=(int)2 -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCapsFromString(capsStr string) *Caps { - cStr := C.CString(capsStr) - defer C.free(unsafe.Pointer(cStr)) - caps := C.gst_caps_from_string(cStr) - if caps == nil { - return nil - } - return FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// Unsafe returns an unsafe.Pointer to the underlying GstCaps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Unsafe() unsafe.Pointer { return unsafe.Pointer(c.native) } - -// ToGValue returns a GValue containing the given caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(glib.Type(C.gst_caps_get_type())) - if err != nil { - return nil, err - } - C.gst_value_set_caps((*C.GValue)(unsafe.Pointer(val.GValue)), c.Instance()) - return val, nil -} - -// Ref increases the ref count on these caps by one. -// -// From this point on, until the caller calls Unref or MakeWritable, it is guaranteed that the caps object -// will not change. This means its structures won't change, etc. To use a Caps object, you must always have a -// refcount on it -- either the one made implicitly by e.g. NewSimpleCaps, or via taking one explicitly with -// this function. Note that when a function provided by these bindings returns caps, or they are converted -// through the FromGstCapsUnsafe methods, a ref is automatically taken if necessary and a runtime Finalizer -// is used to remove it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Ref() *Caps { - C.gst_caps_ref(c.Instance()) - return c -} - -// Unref decreases the ref count on these caps by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Unref() { C.gst_caps_unref(c.Instance()) } - -// Instance returns the native GstCaps instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Instance() *C.GstCaps { return C.toGstCaps(c.Unsafe()) } - -// MakeWritable returns a writable copy of caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) MakeWritable() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.makeCapsWritable(c.Instance()))) -} - -// String implements a stringer on a caps instance. This same string can be used for NewCapsFromString. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) String() string { - cStr := C.gst_caps_to_string(c.Instance()) - defer C.g_free((C.gpointer)(unsafe.Pointer(cStr))) - return C.GoString(cStr) -} - -// AppendStructure appends the given structure to this caps instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) AppendStructure(st *Structure) { - C.gst_caps_append_structure(c.Instance(), st.Instance()) -} - -// AppendStructureFull appends structure with features to caps. The structure is not copied; -// caps becomes the owner of structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) AppendStructureFull(st *Structure, features *CapsFeatures) { - C.gst_caps_append_structure_full(c.Instance(), st.Instance(), features.Instance()) -} - -// Append appends the given caps element to these caps. These caps take ownership -// over the given object. If either caps are ANY, the resulting caps will be ANY. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Append(caps *Caps) { - C.gst_caps_append(c.Instance(), caps.Ref().Instance()) -} - -// CanIntersect tries intersecting these caps with those given and reports whether the result would not be empty. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) CanIntersect(caps *Caps) bool { - return gobool(C.gst_caps_can_intersect(c.Instance(), caps.Instance())) -} - -// Copy creates a new Caps as a copy of these. The new caps will have a refcount of 1, owned by the caller. -// The structures are copied as well. -// -// Note that this function is the semantic equivalent of a Ref followed by a MakeWritable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Copy() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_copy(c.Instance()))) -} - -// CopyNth creates a new GstCaps and appends a copy of the nth structure contained in caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) CopyNth(n uint) *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_copy_nth(c.Instance(), C.guint(n)))) -} - -// FilterAndMapInPlace calls the provided function once for each structure and caps feature in the Caps. -// In contrast to ForEach, the function may modify the structure and features. In contrast to MapInPlace, -// the structure and features are removed from the caps if FALSE is returned from the function. The caps must be mutable. -// -// caps := gst.NewCapsFromString("audio/x-raw") -// -// caps.FilterAndMapInPlace(func(features *gst.CapsFeatures, structure *gst.Structure) bool { -// if features.Contains(gst.CapsFeatureMemorySystemMemory) { -// fmt.Println("Removing system memory feature") -// return false -// } -// return true -// }) -// -// fmt.Println(caps.IsEmpty()) -// -// // Removing system memory feature -// // true -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) FilterAndMapInPlace(f CapsMapFunc) { - ptr := gopointer.Save(f) - defer gopointer.Unref(ptr) - C.gst_caps_filter_and_map_in_place( - c.Instance(), - C.GstCapsFilterMapFunc(C.cgoCapsMapFunc), - (C.gpointer)(ptr), - ) -} - -// Fixate modifies the given caps into a representation with only fixed values. First the caps will be truncated and -// then the first structure will be fixated with Structure's Fixate. -// -// This function takes ownership of caps and will call gst_caps_make_writable on it so you must not use caps afterwards -// unless you keep an additional reference to it with Ref. -// -// Note that it is not guaranteed that the returned caps have exactly one structure. If caps are empty caps then then -// returned caps will be the empty too and contain no structure at all. -// -// Calling this function with any caps is not allowed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Fixate() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_fixate(c.Ref().Instance()))) -} - -// ForEach calls the provided function once for each structure and caps feature in the GstCaps. The function must not -// modify the fields. There is an unresolved bug in this function currently and it is better to use MapInPlace instead. -// -// caps := gst.NewCapsFromString("audio/x-raw") -// -// caps.ForEach(func(features *gst.CapsFeatures, structure *gst.Structure) bool { -// fmt.Println(structure) -// return true -// }) -// -// // audio/x-raw; -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) ForEach(f CapsMapFunc) bool { - ptr := gopointer.Save(f) - defer gopointer.Unref(ptr) - return gobool(C.gst_caps_foreach( - c.Instance(), - C.GstCapsForeachFunc(C.cgoCapsMapFunc), - (C.gpointer)(ptr), - )) -} - -// GetSize returns the number of structures inside this caps instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) GetSize() int { return int(C.gst_caps_get_size(c.Instance())) } - -// GetStructureAt returns the structure at the given index, or nil if none exists. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) GetStructureAt(idx int) *Structure { - st := C.gst_caps_get_structure(c.Instance(), C.guint(idx)) - if st == nil { - return nil - } - s := wrapStructure(st) - - // we don't own the structure, so keep the caps alive until we - // don't need the structure anymore - runtime.SetFinalizer(s, func(_ *Structure) { - runtime.KeepAlive(c) - }) - - return s -} - -// GetFeaturesAt returns the feature at the given index, or nil if none exists. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) GetFeaturesAt(idx int) *CapsFeatures { - feats := C.gst_caps_get_features(c.Instance(), C.guint(idx)) - if feats == nil { - return nil - } - return wrapCapsFeatures(feats) -} - -// CapsIntersectMode represents the modes of caps intersection. -// See the official documentation for more details: -// https://gstreamer.freedesktop.org/documentation/gstreamer/gstcaps.html?gi-language=c#GstCapsIntersectMode -type CapsIntersectMode int - -// Type castings of intersect modes -const ( - CapsIntersectZigZag CapsIntersectMode = C.GST_CAPS_INTERSECT_ZIG_ZAG - CapsIntersectFirst CapsIntersectMode = C.GST_CAPS_INTERSECT_FIRST -) - -// Intersect creates a new Caps that contains all the formats that are common to both these caps and those given. -// Defaults to CapsIntersectZigZag mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Intersect(caps *Caps) *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_intersect(c.Instance(), caps.Instance()))) -} - -// IntersectFull creates a new Caps that contains all the formats that are common to both these caps those given. -// The order is defined by the CapsIntersectMode used. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IntersectFull(caps *Caps, mode CapsIntersectMode) *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_intersect_full(c.Instance(), caps.Instance(), C.GstCapsIntersectMode(mode)))) -} - -// IsAlwaysCompatible returns if this structure is always compatible with another if every media format that is in -// the first is also contained in the second. That is, these caps are a subset of those given. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsAlwaysCompatible(caps *Caps) bool { - return gobool(C.gst_caps_is_always_compatible(c.Instance(), caps.Instance())) -} - -// IsAny returns true if these caps match any media format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsAny() bool { return gobool(C.gst_caps_is_any(c.Instance())) } - -// IsEmpty returns true if these caps are empty. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsEmpty() bool { return gobool(C.gst_caps_is_empty(c.Instance())) } - -// IsEqual returns true if the caps given represent the same set as these. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsEqual(caps *Caps) bool { - return gobool(C.gst_caps_is_equal(c.Instance(), caps.Instance())) -} - -// IsEqualFixed tests if the Caps are equal. This function only works on fixed Caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsEqualFixed(caps *Caps) bool { - return gobool(C.gst_caps_is_equal_fixed(c.Instance(), caps.Instance())) -} - -// IsFixed returns true if these caps are fixed, that is, they describe exactly one format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsFixed() bool { return gobool(C.gst_caps_is_fixed(c.Instance())) } - -// IsStrictlyEqual checks if the given caps are exactly the same set of caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsStrictlyEqual(caps *Caps) bool { - return gobool(C.gst_caps_is_strictly_equal(c.Instance(), caps.Instance())) -} - -// IsSubset checks if all caps represented by these are also represented by those given. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsSubset(caps *Caps) bool { - return gobool(C.gst_caps_is_subset(c.Instance(), caps.Instance())) -} - -// IsSubsetStructure checks if the given structure is a subset of these caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsSubsetStructure(structure *Structure) bool { - return gobool(C.gst_caps_is_subset_structure(c.Instance(), structure.Instance())) -} - -// IsSubsetStructureFull checks if the given structure is a subset of these caps with features. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsSubsetStructureFull(structure *Structure, features *CapsFeatures) bool { - if features == nil { - return gobool(C.gst_caps_is_subset_structure_full( - c.Instance(), structure.Instance(), nil, - )) - } - return gobool(C.gst_caps_is_subset_structure_full( - c.Instance(), structure.Instance(), features.Instance(), - )) -} - -// IsWritable returns true if these caps are writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) IsWritable() bool { - return gobool(C.capsIsWritable(c.Instance())) -} - -// MapInPlace calls the provided function once for each structure and caps feature in the Caps. -// In contrast to ForEach, the function may modify, but not delete, the structures and features. -// The caps must be mutable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) MapInPlace(f CapsMapFunc) bool { - ptr := gopointer.Save(f) - defer gopointer.Unref(ptr) - return gobool(C.gst_caps_map_in_place( - c.Instance(), - C.GstCapsMapFunc(C.cgoCapsMapFunc), - (C.gpointer)(ptr), - )) -} - -// Merge appends the structures contained in the given caps if they are not yet expressed by these. -// The structures in the given caps are not copied -- they are transferred to a writable copy of these ones, -// and then those given are freed. If either caps are ANY, the resulting caps will be ANY. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Merge(caps *Caps) *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_merge(c.Ref().Instance(), caps.Ref().Instance()))) -} - -// MergeStructure appends structure to caps if its not already expressed by caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) MergeStructure(structure *Structure) *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_merge_structure(c.Ref().Instance(), structure.Instance()))) -} - -// MergeStructureFull appends structure with features to the caps if its not already expressed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) MergeStructureFull(structure *Structure, features *CapsFeatures) *Caps { - if features == nil { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_merge_structure_full( - c.Ref().Instance(), structure.Instance(), nil, - ))) - } - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_merge_structure_full( - c.Ref().Instance(), structure.Instance(), features.Instance(), - ))) -} - -// Normalize returns a Caps that represents the same set of formats as caps, but contains no lists. -// Each list is expanded into separate GstStructures. -// -// This function takes ownership of caps and will call MakeWritable on it so you must not -// use caps afterwards unless you keep an additional reference to it with Ref. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Normalize() *Caps { - return wrapCaps(C.gst_caps_normalize(c.Instance())) -} - -// RemoveStructureAt removes the structure with the given index from the list of structures. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) RemoveStructureAt(idx uint) { - C.gst_caps_remove_structure(c.Instance(), C.guint(idx)) -} - -// SetFeaturesAt sets the CapsFeatures features for the structure at index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) SetFeaturesAt(idx uint, features *CapsFeatures) { - if features == nil { - C.gst_caps_set_features(c.Instance(), C.guint(idx), nil) - return - } - C.gst_caps_set_features(c.Instance(), C.guint(idx), features.Instance()) -} - -// SetFeaturesSimple sets the CapsFeatures for all the structures of these caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) SetFeaturesSimple(features *CapsFeatures) { - if features == nil { - C.gst_caps_set_features_simple(c.Instance(), nil) - return - } - C.gst_caps_set_features_simple(c.Instance(), features.Instance()) -} - -// SetValue sets the given field on all structures of caps to the given value. This is a convenience -// function for calling SetValue on all structures of caps. If the value cannot be coerced to a C type, -// then nothing will happen. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) SetValue(field string, val interface{}) { - gVal, err := glib.GValue(val) - if err != nil { - return - } - C.gst_caps_set_value( - c.Instance(), - (*C.gchar)(unsafe.Pointer(C.CString(field))), - (*C.GValue)(unsafe.Pointer(gVal.GValue)), - ) -} - -// Simplify converts the given caps into a representation that represents the same set of formats, but in a -// simpler form. Component structures that are identical are merged. Component structures that have values -// that can be merged are also merged. -// -// This function takes ownership of caps and will call MakeWritable on it if necessary, so you must not use -// caps afterwards unless you keep an additional reference to it with Ref. -// -// This method does not preserve the original order of caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Simplify() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_simplify(c.Ref().Instance()))) -} - -// StealStructureAt retrieves the structure with the given index from the list of structures contained in caps. -// The caller becomes the owner of the returned structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) StealStructureAt(idx uint) *Structure { - return wrapStructure(C.gst_caps_steal_structure(c.Instance(), C.guint(idx))) -} - -// Subtract subtracts the given caps from these. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Subtract(caps *Caps) *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_subtract(c.Instance(), caps.Instance()))) -} - -// Truncate discards all but the first structure from caps. Useful when fixating. -// -// This function takes ownership of caps and will call gst_caps_make_writable on it if necessary, so you must not -// use caps afterwards unless you keep an additional reference to it with Ref. -// -// Note that it is not guaranteed that the returned caps have exactly one structure. If caps is any or empty caps -// then then returned caps will be the same and contain no structure at all. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Caps) Truncate() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_truncate(c.Ref().Instance()))) -} diff --git a/gst/gst_caps_features.go b/gst/gst_caps_features.go deleted file mode 100644 index 6ea5ac0..0000000 --- a/gst/gst_caps_features.go +++ /dev/null @@ -1,196 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Go casting of pre-baked caps features -var ( - CapsFeatureMemorySystemMemory string = C.GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY -) - -// CapsFeatures is a go representation of GstCapsFeatures. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type CapsFeatures struct { - native *C.GstCapsFeatures -} - -// NewCapsFeaturesEmpty returns a new empty CapsFeatures. -// -// feats := gst.NewCapsFeaturesEmpty() -// fmt.Println(feats.GetSize()) -// // 0 -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCapsFeaturesEmpty() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_empty()) } - -// NewCapsFeaturesAny returns a new ANY CapsFeatures. -// -// feats := gst.NewCapsFeaturesAny() -// fmt.Println(feats.IsAny()) -// // true -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCapsFeaturesAny() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_any()) } - -// NewCapsFeaturesFromString creates new CapsFeatures from the given string. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCapsFeaturesFromString(features string) *CapsFeatures { - cStr := C.CString(features) - defer C.free(unsafe.Pointer(cStr)) - capsFeatures := C.gst_caps_features_from_string(cStr) - if capsFeatures == nil { - return nil - } - return wrapCapsFeatures(capsFeatures) -} - -// TypeCapsFeatures is the glib.Type for a CapsFeatures. -var TypeCapsFeatures = glib.Type(C.gst_caps_features_get_type()) - -var _ glib.ValueTransformer = &CapsFeatures{} - -// ToGValue implements a glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeCapsFeatures) - if err != nil { - return nil, err - } - C.gst_value_set_caps_features( - (*C.GValue)(unsafe.Pointer(val.GValue)), - c.Instance(), - ) - return val, nil -} - -// Instance returns the native underlying GstCapsFeatures instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) Instance() *C.GstCapsFeatures { - return C.toGstCapsFeatures(unsafe.Pointer(c.native)) -} - -// String implements a stringer on caps features. -// -// feats := gst.NewCapsFeaturesAny() -// fmt.Println(feats.String()) -// // ANY -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) String() string { - return C.GoString(C.gst_caps_features_to_string(c.Instance())) -} - -// Add adds the given feature to these. -// -// feats := gst.NewCapsFeaturesEmpty() -// -// fmt.Println(feats.GetSize()) -// -// feats.Add(gst.CapsFeatureMemorySystemMemory) -// -// fmt.Println(feats.GetSize()) -// fmt.Println(feats.Contains(gst.CapsFeatureMemorySystemMemory)) -// fmt.Println(feats.GetNth(0)) -// -// // 0 -// // 1 -// // true -// // memory:SystemMemory -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) Add(feature string) { - cStr := C.CString(feature) - defer C.free(unsafe.Pointer(cStr)) - C.gst_caps_features_add( - c.Instance(), - (*C.gchar)(unsafe.Pointer(cStr)), - ) -} - -// Contains returns true if the given feature is included in these. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) Contains(feature string) bool { - cStr := C.CString(feature) - defer C.free(unsafe.Pointer(cStr)) - return gobool(C.gst_caps_features_contains( - c.Instance(), - (*C.gchar)(unsafe.Pointer(cStr)), - )) -} - -// Copy duplicates these features and all of it's values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) Copy() *CapsFeatures { - return wrapCapsFeatures(C.gst_caps_features_copy(c.Instance())) -} - -// Free frees the memory containing these features. Only call this if you -// do not intend to pass these features to other methods. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) Free() { C.gst_caps_features_free(c.Instance()) } - -// GetNth returns the feature at index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) GetNth(idx uint) string { - feat := C.gst_caps_features_get_nth(c.Instance(), C.guint(idx)) - return C.GoString(feat) -} - -// GetSize returns the number of features. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) GetSize() uint { - return uint(C.gst_caps_features_get_size(c.Instance())) -} - -// IsAny returns true if these features match any. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) IsAny() bool { return gobool(C.gst_caps_features_is_any(c.Instance())) } - -// IsEqual returns true if the given CapsFeatures are equal to the provided ones. -// If the provided structure is nil, this function immediately returns false. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) IsEqual(feats *CapsFeatures) bool { - if feats == nil { - return false - } - return gobool(C.gst_caps_features_is_equal(c.Instance(), feats.Instance())) -} - -// Remove removes the given feature. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) Remove(feature string) { - cStr := C.CString(feature) - defer C.free(unsafe.Pointer(cStr)) - C.gst_caps_features_remove( - c.Instance(), - (*C.gchar)(unsafe.Pointer(cStr)), - ) -} - -// SetParentRefCount sets the parent_refcount field of CapsFeatures. This field is used to determine -// whether a caps features is mutable or not. This function should only be called by code implementing -// parent objects of CapsFeatures, as described in the MT Refcounting section of the design documents. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CapsFeatures) SetParentRefCount(refCount int) bool { - gcount := C.gint(refCount) - return gobool(C.gst_caps_features_set_parent_refcount(c.Instance(), &gcount)) -} diff --git a/gst/gst_child_proxy.go b/gst/gst_child_proxy.go deleted file mode 100644 index 08020f2..0000000 --- a/gst/gst_child_proxy.go +++ /dev/null @@ -1,249 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goGstChildProxyChildAdded (GstChildProxy * parent, GObject * child, const gchar * name); -extern void goGstChildProxyChildRemoved (GstChildProxy * parent, GObject * child, const gchar * name); -extern GObject * goGstChildProxyGetChildByIndex (GstChildProxy * parent, guint idx); -extern GObject * goGstChildProxyGetChildByName (GstChildProxy * parent, const gchar * name); -extern guint goGstChildProxyGetChildrenCount (GstChildProxy * parent); - -void setGstChildProxyChildAdded (gpointer iface) { ((GstChildProxyInterface*)iface)->child_added = goGstChildProxyChildAdded; } -void setGstChildProxyChildRemoved (gpointer iface) { ((GstChildProxyInterface*)iface)->child_removed = goGstChildProxyChildRemoved; } -void setGstChildProxyGetChildByIndex (gpointer iface) { ((GstChildProxyInterface*)iface)->get_child_by_index = goGstChildProxyGetChildByIndex; } -void setGstChildProxyGetChildByName (gpointer iface) { ((GstChildProxyInterface*)iface)->get_child_by_name = goGstChildProxyGetChildByName; } -void setGstChildProxyGetChildrenCount (gpointer iface) { ((GstChildProxyInterface*)iface)->get_children_count = goGstChildProxyGetChildrenCount; } - -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// InterfaceChildProxy represents the GstChildProxy interface. Use this when querying bins -// for elements that implement GstChildProxy, or when signaling that a GoObjectSubclass -// provides this interface. -var InterfaceChildProxy glib.Interface = &interfaceChildProxy{} - -type interfaceChildProxy struct{ glib.Interface } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *interfaceChildProxy) Type() glib.Type { return glib.Type(C.GST_TYPE_CHILD_PROXY) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *interfaceChildProxy) Init(instance *glib.TypeInstance) { - goobj := instance.GoType - - if _, ok := goobj.(interface { - ChildAdded(self *ChildProxy, child *glib.Object, name string) - }); ok { - C.setGstChildProxyChildAdded((C.gpointer)(instance.GTypeInstance)) - } - - if _, ok := goobj.(interface { - ChildRemoved(self *ChildProxy, child *glib.Object, name string) - }); ok { - C.setGstChildProxyChildRemoved((C.gpointer)(instance.GTypeInstance)) - } - - if _, ok := goobj.(interface { - GetChildByIndex(self *ChildProxy, idx uint) *glib.Object - }); ok { - C.setGstChildProxyGetChildByIndex((C.gpointer)(instance.GTypeInstance)) - } - - if _, ok := goobj.(interface { - GetChildByName(self *ChildProxy, name string) *glib.Object - }); ok { - C.setGstChildProxyGetChildByName((C.gpointer)(instance.GTypeInstance)) - } - - if _, ok := goobj.(interface { - GetChildrenCount(self *ChildProxy) uint - }); ok { - C.setGstChildProxyGetChildrenCount((C.gpointer)(instance.GTypeInstance)) - } -} - -// ChildProxyImpl is the reference implementation for a ChildProxy implemented by a Go object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ChildProxyImpl interface { - ChildAdded(self *ChildProxy, child *glib.Object, name string) - ChildRemoved(self *ChildProxy, child *glib.Object, name string) - GetChildByIndex(self *ChildProxy, idx uint) *glib.Object - GetChildByName(self *ChildProxy, name string) *glib.Object - GetChildrenCount(self *ChildProxy) uint -} - -// ChildProxy is an interface that abstracts handling of property sets for -// elements with children. They all have multiple GstPad or some kind of voice -// objects. Another use case are container elements like GstBin. The element -// implementing the interface acts as a parent for those child objects. -// -// Property names are written as "child-name::property-name". The whole naming -// scheme is recursive. Thus "child1::child2::property" is valid too, if "child1" -// and "child2" implement the GstChildProxy interface. -type ChildProxy struct{ ptr *C.GstChildProxy } - -// ToChildProxy returns a ChildProxy for the given element. If the element does not implement -// a ChildProxy it returns nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToChildProxy(elem *Element) *ChildProxy { - if proxy := C.toGstChildProxy(elem.Unsafe()); proxy != nil { - return &ChildProxy{proxy} - } - return nil -} - -// Instance returns the underlying GstChildProxy instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) Instance() *C.GstChildProxy { - return C.toGstChildProxy(unsafe.Pointer(c.ptr)) -} - -// ChildAdded emits the "child-added" signal. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) ChildAdded(child *glib.Object, name string) { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - C.gst_child_proxy_child_added( - c.Instance(), - (*C.GObject)(child.Unsafe()), - (*C.gchar)(unsafe.Pointer(cname)), - ) -} - -// ChildRemoved emits the "child-removed" signal. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) ChildRemoved(child *glib.Object, name string) { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - C.gst_child_proxy_child_removed( - c.Instance(), - (*C.GObject)(child.Unsafe()), - (*C.gchar)(unsafe.Pointer(cname)), - ) -} - -// Get gets properties of the parent object and its children. This is a direct alias to looping -// over GetProperty and returning the results in the order of the arguments. If any of the results -// returns nil from an allocation error, nil is returned for the entire slice. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) Get(names ...string) []*glib.Value { - out := make([]*glib.Value, len(names)) - for i, name := range names { - val := c.GetProperty(name) - if val == nil { - return nil - } - out[i] = val - } - return out -} - -// GetChildByIndex fetches a child by its number. This function can return nil if the object is not -// found. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) GetChildByIndex(idx uint) *glib.Object { - gobj := C.gst_child_proxy_get_child_by_index(c.Instance(), C.guint(idx)) - if gobj == nil { - return nil - } - return glib.TransferFull(unsafe.Pointer(gobj)) -} - -// GetChildByName fetches a child by name. The virtual method's default implementation uses Object -// together with Object.GetName. If the interface is to be used with GObjects, this method needs -// to be overridden. -// -// This function can return nil if the object is not found. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) GetChildByName(name string) *glib.Object { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - gobj := C.gst_child_proxy_get_child_by_name(c.Instance(), (*C.gchar)(unsafe.Pointer(cname))) - if gobj == nil { - return nil - } - return glib.TransferFull(unsafe.Pointer(gobj)) -} - -// GetChildrenCount returns the number of child objects the parent contains. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) GetChildrenCount() uint { - return uint(C.gst_child_proxy_get_children_count(c.Instance())) -} - -// GetProperty gets a single property using the ChildProxy mechanism. The bindings -// take care of freeing the value when it leaves the user's scope. This function -// can return nil if a failure happens trying to allocate GValues. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) GetProperty(name string) *glib.Value { - value, err := glib.ValueAlloc() - if err != nil { - return nil - } - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - C.gst_child_proxy_get_property(c.Instance(), (*C.gchar)(unsafe.Pointer(cname)), (*C.GValue)(unsafe.Pointer(value.GValue))) - return value -} - -// Lookup looks up which object and and parameter would be affected by the given name. -// If ok is false, the targets could not be found and this function returned nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) Lookup(name string) (ok bool, target *glib.Object, param *glib.ParamSpec) { - var gtarget *C.GObject - var gspec *C.GParamSpec - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - ok = gobool(C.gst_child_proxy_lookup( - c.Instance(), - (*C.gchar)(unsafe.Pointer(cname)), - >arget, &gspec, - )) - if !ok { - return - } - target = glib.TransferFull(unsafe.Pointer(gtarget)) - param = glib.ToParamSpec(unsafe.Pointer(gspec)) - return -} - -// Set takes a map of names to values and applies them using the ChildProxy mechanism. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) Set(values map[string]*glib.Value) { - for name, value := range values { - c.SetProperty(name, value) - } -} - -// SetProperty sets a single property using the ChildProxy mechanism. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChildProxy) SetProperty(name string, value *glib.Value) { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - C.gst_child_proxy_set_property( - c.Instance(), - (*C.gchar)(unsafe.Pointer(cname)), - (*C.GValue)(unsafe.Pointer(value.GValue)), - ) -} diff --git a/gst/gst_child_proxy_exports.go b/gst/gst_child_proxy_exports.go deleted file mode 100644 index 1a14de8..0000000 --- a/gst/gst_child_proxy_exports.go +++ /dev/null @@ -1,86 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapParent(parent *C.GstChildProxy) *ChildProxy { return &ChildProxy{ptr: parent} } - -//export goGstChildProxyChildAdded -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstChildProxyChildAdded(parent *C.GstChildProxy, child *C.GObject, name *C.gchar) { - iface := glib.FromObjectUnsafePrivate(unsafe.Pointer(parent)) - caller := iface.(interface { - ChildAdded(self *ChildProxy, child *glib.Object, name string) - }) - caller.ChildAdded( - wrapParent(parent), - &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}, - C.GoString(name), - ) -} - -//export goGstChildProxyChildRemoved -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstChildProxyChildRemoved(parent *C.GstChildProxy, child *C.GObject, name *C.gchar) { - iface := glib.FromObjectUnsafePrivate(unsafe.Pointer(parent)) - caller := iface.(interface { - ChildRemoved(self *ChildProxy, child *glib.Object, name string) - }) - caller.ChildRemoved( - wrapParent(parent), - &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(child))}, - C.GoString(name), - ) -} - -//export goGstChildProxyGetChildByIndex -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstChildProxyGetChildByIndex(parent *C.GstChildProxy, idx C.guint) *C.GObject { - iface := glib.FromObjectUnsafePrivate(unsafe.Pointer(parent)) - caller := iface.(interface { - GetChildByIndex(self *ChildProxy, idx uint) *glib.Object - }) - obj := caller.GetChildByIndex(wrapParent(parent), uint(idx)) - if obj == nil { - return nil - } - return (*C.GObject)(unsafe.Pointer(obj.GObject)) -} - -//export goGstChildProxyGetChildByName -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstChildProxyGetChildByName(parent *C.GstChildProxy, name *C.gchar) *C.GObject { - iface := glib.FromObjectUnsafePrivate(unsafe.Pointer(parent)) - caller := iface.(interface { - GetChildByName(self *ChildProxy, name string) *glib.Object - }) - obj := caller.GetChildByName(wrapParent(parent), C.GoString(name)) - if obj == nil { - return nil - } - return (*C.GObject)(unsafe.Pointer(obj.GObject)) -} - -//export goGstChildProxyGetChildrenCount -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstChildProxyGetChildrenCount(parent *C.GstChildProxy) C.guint { - iface := glib.FromObjectUnsafePrivate(unsafe.Pointer(parent)) - caller := iface.(interface { - GetChildrenCount(self *ChildProxy) uint - }) - return C.guint(caller.GetChildrenCount(wrapParent(parent))) -} diff --git a/gst/gst_clock.go b/gst/gst_clock.go deleted file mode 100644 index ed61ac2..0000000 --- a/gst/gst_clock.go +++ /dev/null @@ -1,491 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean goClockCb (GstClock * clock, GstClockTime time, GstClockID id, gpointer user_data); -extern void goGDestroyNotifyFuncNoRun (gpointer user_data); - -gboolean cgoClockCb (GstClock * clock, GstClockTime time, GstClockID id, gpointer user_data) -{ - return goClockCb(clock, time, id, user_data); -} - -void clockDestroyNotify (gpointer user_data) -{ - goGDestroyNotifyFuncNoRun(user_data); -} - -*/ -import "C" - -import ( - "fmt" - "runtime" - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -type ClockTime C.GstClockTime - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (ct ClockTime) String() string { - if ct == ClockTimeNone { - return "ClockTimeNone" - } - - return fmt.Sprint(uint64(ct)) -} - -// interpret the clocktime as a duration, returns nil on ClockTimeNone -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (ct ClockTime) AsDuration() *time.Duration { - if ct == ClockTimeNone { - return nil - } - - dur := time.Duration(uint64(ct)) - - return &dur -} - -// interpret the clocktime as a timestamp, returns nil on ClockTimeNone -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (ct ClockTime) AsTimestamp() *time.Time { - if ct == ClockTimeNone { - return nil - } - - dur := time.Unix(0, int64(ct)) - - return &dur -} - -// ClockCallback is the prototype of a clock callback function. -type ClockCallback func(clock *Clock, clockTime ClockTime) bool - -// ClockID is a go wrapper around a GstClockID. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ClockID struct { - ptr C.GstClockID // which is actually just a casted pointer -} - -// Instance returns the underlying pointer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) Instance() C.GstClockID { return c.ptr } - -// GetClock returns the clock for this ClockID. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) GetClock() *Clock { - clk := C.gst_clock_id_get_clock(c.Instance()) - return FromGstClockUnsafeFull(unsafe.Pointer(clk)) -} - -// GetTime returns the time for this ClockID -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) GetTime() ClockTime { - return ClockTime(C.gst_clock_id_get_time(c.Instance())) -} - -// Unschedule cancels an outstanding request with id. This can either be an outstanding async notification or a pending sync notification. -// After this call, id cannot be used anymore to receive sync or async notifications, you need to create a new GstClockID. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) Unschedule() { - C.gst_clock_id_unschedule(c.Instance()) -} - -// UsesClock returns whether id uses clock as the underlying clock. clock can be nil, in which case the return value indicates whether the -// underlying clock has been freed. If this is the case, the id is no longer usable and should be freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) UsesClock(clock *Clock) bool { - return gobool(C.gst_clock_id_uses_clock(c.Instance(), clock.Instance())) -} - -// Wait performs a blocking wait on id. id should have been created with NewSingleShotID or NewPeriodicID and should not have been unscheduled -// with a call to Unschedule. -// -// If the jitter argument is not 0 and this function returns ClockOK or ClockEarly, it will contain the difference against the clock and the -// time of id when this method was called. Positive values indicate how late id was relative to the clock (in which case this function will -// return ClockEarly). Negative values indicate how much time was spent waiting on the clock before this function returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) Wait() (ret ClockReturn, jitter ClockTimeDiff) { - var gjitter C.GstClockTimeDiff - ret = ClockReturn(C.gst_clock_id_wait(c.Instance(), &gjitter)) - jitter = ClockTimeDiff(gjitter) - return -} - -// WaitAsync registers a callback on the given ClockID id with the given function and user_data. When passing a ClockID with an invalid time to -// this function, the callback will be called immediately with a time set to ClockTimeNone. The callback will be called when the time of id has been reached. -// -// The callback func can be invoked from any thread, either provided by the core or from a streaming thread. The application should be prepared for this. -// -// // Example -// -// pipeline, _ := gst.NewPipelineFromString("fakesrc ! fakesink") -// -// clock := pipeline.GetPipelineClock() -// -// id := clock.NewSingleShotID(gst.ClockTime(1000000000)) // 1 second -// -// id.WaitAsync(func(clock *gst.Clock, clockTime ClockTime) bool { -// fmt.Println("Single shot triggered at", clockTime.Nanoseconds()) -// pipeline.SetState(gst.StateNull) -// return true -// }) -// -// pipeline.SetState(gst.StatePlaying) -// gst.Wait(pipeline) -// -// // Single shot triggered at 1000000000 -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) WaitAsync(f ClockCallback) ClockReturn { - ptr := gopointer.Save(f) - return ClockReturn(C.gst_clock_id_wait_async( - c.Instance(), - C.GstClockCallback(C.cgoClockCb), - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.clockDestroyNotify), - )) -} - -// Ref increaes the ref count on ClockID. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) Ref() *ClockID { - C.gst_clock_id_ref(c.Instance()) - return c -} - -// Unref unrefs a ClockID. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ClockID) Unref() { - C.gst_clock_id_unref(c.Instance()) -} - -// Clock is a go wrapper around a GstClock. -type Clock struct{ *Object } - -// FromGstClockUnsafeNone takes a pointer to a GstClock and wraps it in a Clock instance. -// A ref is taken on the clock and a finalizer applied. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstClockUnsafeNone(clock unsafe.Pointer) *Clock { - return wrapClock(glib.TransferNone(clock)) -} - -// FromGstClockUnsafeFull takes a pointer to a GstClock and wraps it in a Clock instance. -// A finalizer is set on the returned object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstClockUnsafeFull(clock unsafe.Pointer) *Clock { - return wrapClock(glib.TransferFull(clock)) -} - -// ToGstClock wraps the given glib.Object or gst.Object in a Clock instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstClock(obj interface{}) *Clock { - switch obj := obj.(type) { - case *Object: - return &Clock{Object: obj} - case *glib.Object: - return wrapClock(obj) - } - return nil -} - -// Instance returns the underlying GstClock instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) Instance() *C.GstClock { return C.toGstClock(c.Unsafe()) } - -// AddObservation adds the time master of the master clock and the time slave of the slave clock to the list of observations. -// If enough observations are available, a linear regression algorithm is run on the observations and clock is recalibrated. -// -// If this functions returns TRUE, the float will contain the correlation coefficient of the interpolation. A value of 1.0 means -// a perfect regression was performed. This value can be used to control the sampling frequency of the master and slave clocks. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) AddObservation(slaveTime, masterTime ClockTime) (bool, float64) { - var out C.gdouble - ok := gobool(C.gst_clock_add_observation( - c.Instance(), - C.GstClockTime(slaveTime), - C.GstClockTime(masterTime), - &out, - )) - return ok, float64(out) -} - -// AddObservationUnapplied adds a clock observation to the internal slaving algorithm the same as AddObservation, and returns the -// result of the master clock estimation, without updating the internal calibration. -// -// The caller can then take the results and call SetCalibration with the values, or some modified version of them. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) AddObservationUnapplied(slaveTime, masterTime ClockTime) (ok bool, rSquared float64, internalTime, externalTime, rateNum, rateDenom ClockTime) { - var ginternal, gexternal, grateNum, grateDenom C.GstClockTime - var grSquared C.gdouble - ok = gobool(C.gst_clock_add_observation_unapplied( - c.Instance(), - C.GstClockTime(slaveTime), - C.GstClockTime(masterTime), - &grSquared, &ginternal, &gexternal, &grateNum, &grateDenom, - )) - return ok, float64(grSquared), ClockTime(ginternal), ClockTime(gexternal), ClockTime(grateNum), ClockTime(grateDenom) -} - -// AdjustUnlocked converts the given internal clock time to the external time, adjusting for the rate and reference time set with -// SetCalibration and making sure that the returned time is increasing. This function should be called with the clock's OBJECT_LOCK -// held and is mainly used by clock subclasses. -// -// This function is the reverse of UnadjustUnlocked. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) AdjustUnlocked(internal ClockTime) ClockTime { - return ClockTime(C.gst_clock_adjust_unlocked(c.Instance(), C.GstClockTime(internal))) -} - -// AdjustWithCalibration converts the given internal_target clock time to the external time, using the passed calibration parameters. -// This function performs the same calculation as AdjustUnlocked when called using the current calibration parameters, but -// doesn't ensure a monotonically increasing result as AdjustUnlocked does. -// -// See: https://gstreamer.freedesktop.org/documentation/gstreamer/gstclock.html#gst_clock_adjust_with_calibration -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) AdjustWithCalibration(internalTarget, cinternal, cexternal, cnum, cdenom ClockTime) ClockTime { - return ClockTime(C.gst_clock_adjust_with_calibration( - c.Instance(), - C.GstClockTime(internalTarget), - C.GstClockTime(cinternal), - C.GstClockTime(cexternal), - C.GstClockTime(cnum), - C.GstClockTime(cdenom), - )) -} - -// GetCalibration gets the internal rate and reference time of clock. See gst_clock_set_calibration for more information. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) GetCalibration() (internal, external, rateNum, rateDenom ClockTime) { - var ginternal, gexternal, grateNum, grateDenom C.GstClockTime - C.gst_clock_get_calibration(c.Instance(), &ginternal, &gexternal, &grateNum, &grateDenom) - return ClockTime(ginternal), ClockTime(gexternal), ClockTime(grateNum), ClockTime(grateDenom) -} - -// GetTime gets the current time of the given clock in nanoseconds or -1 if invalid. -// The time is always monotonically increasing and adjusted according to the current offset and rate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) GetTime() ClockTime { - res := C.gst_clock_get_time(c.Instance()) - - return ClockTime(res) -} - -// GetInternalTime gets the current internal time of the given clock in nanoseconds -// or ClockTimeNone if invalid. The time is returned unadjusted for the offset and the rate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) GetInternalTime() ClockTime { - res := C.gst_clock_get_internal_time(c.Instance()) - - return ClockTime(res) -} - -// GetMaster returns the master clock that this clock is slaved to or nil when the clock -// is not slaved to any master clock. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) GetMaster() *Clock { - clock := C.gst_clock_get_master(c.Instance()) - if clock == nil { - return nil - } - return FromGstClockUnsafeFull(unsafe.Pointer(clock)) -} - -// GetResolution gets the accuracy of the clock. The accuracy of the clock is the granularity -// of the values returned by GetTime. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) GetResolution() ClockTime { - return ClockTime(C.gst_clock_get_resolution(c.Instance())) -} - -// GetTimeout gets the amount of time that master and slave clocks are sampled. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) GetTimeout() ClockTime { - return ClockTime(C.gst_clock_get_timeout(c.Instance())) -} - -// IsSynced returns true if the clock is synced. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) IsSynced() bool { return gobool(C.gst_clock_is_synced(c.Instance())) } - -// NewPeriodicID gets an ID from clock to trigger a periodic notification. The periodic notifications -// will start at time start_time and will then be fired with the given interval. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) NewPeriodicID(startTime, interval ClockTime) *ClockID { - id := C.gst_clock_new_periodic_id( - c.Instance(), - C.GstClockTime(startTime), - C.GstClockTime(interval), - ) - clkid := &ClockID{id} - runtime.SetFinalizer(clkid, (*ClockID).Unref) - return clkid -} - -// NewSingleShotID gets a ClockID from the clock to trigger a single shot notification at the requested time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) NewSingleShotID(at ClockTime) *ClockID { - id := C.gst_clock_new_single_shot_id( - c.Instance(), - C.GstClockTime(at), - ) - clkid := &ClockID{id} - runtime.SetFinalizer(clkid, (*ClockID).Unref) - return clkid -} - -// PeriodicIDReinit reinitializes the provided periodic id to the provided start time and interval. Does not -// / modify the reference count. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) PeriodicIDReinit(clockID *ClockID, startTime, interval ClockTime) bool { - return gobool(C.gst_clock_periodic_id_reinit( - c.Instance(), - clockID.Instance(), - C.GstClockTime(startTime), - C.GstClockTime(interval), - )) -} - -// SetCalibration adjusts the rate and time of clock. -// See: https://gstreamer.freedesktop.org/documentation/gstreamer/gstclock.html#gst_clock_set_calibration. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) SetCalibration(internal, external, rateNum, rateDenom ClockTime) { - C.gst_clock_set_calibration( - c.Instance(), - C.GstClockTime(internal), - C.GstClockTime(external), - C.GstClockTime(rateNum), - C.GstClockTime(rateDenom), - ) -} - -// SetMaster sets master as the master clock for clock. clock will be automatically calibrated so that -// GetTime reports the same time as the master clock. -// -// A clock provider that slaves its clock to a master can get the current calibration values with GetCalibration. -// -// Master can be nil in which case clock will not be slaved anymore. It will however keep reporting its time -// adjusted with the last configured rate and time offsets. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) SetMaster(master *Clock) bool { - if master == nil { - return gobool(C.gst_clock_set_master(c.Instance(), nil)) - } - return gobool(C.gst_clock_set_master(c.Instance(), master.Instance())) -} - -// SetResolution sets the accuracy of the clock. Some clocks have the possibility to operate with different accuracy -// at the expense of more resource usage. There is normally no need to change the default resolution of a clock. -// The resolution of a clock can only be changed if the clock has the ClockFlagCanSetResolution flag set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) SetResolution(resolution ClockTime) ClockTime { - return ClockTime(C.gst_clock_set_resolution(c.Instance(), C.GstClockTime(resolution))) -} - -// SetSynced sets clock to synced and emits the GstClock::synced signal, and wakes up any thread waiting in WaitForSync. -// -// This function must only be called if ClockFlagNeedsStartupSync is set on the clock, and is intended to be called by -// subclasses only. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) SetSynced(synced bool) { C.gst_clock_set_synced(c.Instance(), gboolean(synced)) } - -// SetTimeout sets the amount of time, in nanoseconds, to sample master and slave clocks -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) SetTimeout(timeout ClockTime) { - C.gst_clock_set_timeout(c.Instance(), C.GstClockTime(timeout)) -} - -// SingleShotIDReinit reinitializes the provided single shot id to the provided time. Does not modify the reference count. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) SingleShotIDReinit(clockID *ClockID, at ClockTime) bool { - return gobool(C.gst_clock_single_shot_id_reinit(c.Instance(), clockID.Instance(), C.GstClockTime(at))) -} - -// UnadjustUnlocked converts the given external clock time to the internal time of clock, using the rate and reference time -// set with SetCalibration. This function should be called with the clock's OBJECT_LOCK held and is mainly used by clock subclasses. -// -// This function is the reverse of AdjustUnlocked. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) UnadjustUnlocked(external ClockTime) ClockTime { - return ClockTime(C.gst_clock_unadjust_unlocked(c.Instance(), C.GstClockTime(external))) -} - -// UnadjustWithCalibration converts the given external_target clock time to the internal time, using the passed calibration parameters. -// This function performs the same calculation as UnadjustUnlocked when called using the current calibration parameters. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) UnadjustWithCalibration(externalTarget, cinternal, cexternal, cnum, cdenom ClockTime) ClockTime { - return ClockTime(C.gst_clock_unadjust_with_calibration( - c.Instance(), - C.GstClockTime(externalTarget), - C.GstClockTime(cinternal), - C.GstClockTime(cexternal), - C.GstClockTime(cnum), - C.GstClockTime(cdenom), - )) -} - -// WaitForSync waits until clock is synced for reporting the current time. If timeout is ClockTimeNone it will wait forever, otherwise it -// will time out after timeout nanoseconds. -// -// For asynchronous waiting, the GstClock::synced signal can be used. -// -// This returns immediately with TRUE if ClockFlagNeedsStartupSync is not set on the clock, or if the clock is already synced. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) WaitForSync(timeout ClockTime) bool { - return gobool(C.gst_clock_wait_for_sync(c.Instance(), C.GstClockTime(timeout))) -} - -// String returns the string representation of this clock value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) String() string { return fmt.Sprintf("%d", c.GetTime()) } - -// InternalString returns the string representation of this clock's internal value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Clock) InternalString() string { return fmt.Sprintf("%d", c.GetInternalTime()) } diff --git a/gst/gst_context.go b/gst/gst_context.go deleted file mode 100644 index 02c096c..0000000 --- a/gst/gst_context.go +++ /dev/null @@ -1,154 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "runtime" - "unsafe" -) - -// Context wraps a GstContext object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Context struct { - ptr *C.GstContext -} - -// FromGstContextUnsafeFull wraps the given context and places a runtime finalizer on it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstContextUnsafeFull(ctx unsafe.Pointer) *Context { - wrapped := wrapContext((*C.GstContext)(ctx)) - runtime.SetFinalizer(wrapped, (*Context).Unref) - return wrapped -} - -// FromGstContextUnsafeNone refs and wraps the given context and places a runtime finalizer on it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstContextUnsafeNone(ctx unsafe.Pointer) *Context { - wrapped := wrapContext((*C.GstContext)(ctx)) - wrapped.Ref() - runtime.SetFinalizer(wrapped, (*Context).Unref) - return wrapped -} - -// NewContext creates a new context. -// -// // Example -// -// ctx := gst.NewContext("test-context", false) -// fmt.Println(ctx.IsPersistent()) -// -// ctx = gst.NewContext("test-context", true) -// fmt.Println(ctx.IsPersistent()) -// -// // false -// // true -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewContext(ctxType string, persistent bool) *Context { - cStr := C.CString(ctxType) - defer C.free(unsafe.Pointer(cStr)) - ctx := C.gst_context_new((*C.gchar)(unsafe.Pointer(cStr)), gboolean(persistent)) - if ctx == nil { - return nil - } - return FromGstContextUnsafeFull(unsafe.Pointer(ctx)) -} - -// Instance returns the underlying GstContext instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) Instance() *C.GstContext { return C.toGstContext(unsafe.Pointer(c.ptr)) } - -// GetType returns the type of the context. -// -// // Example -// -// ctx := gst.NewContext("test-context", false) -// fmt.Println(ctx.GetType()) -// -// // test-context -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) GetType() string { - return C.GoString(C.gst_context_get_context_type(c.Instance())) -} - -// GetStructure returns the structure of the context. You should not modify or unref it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) GetStructure() *Structure { - st := C.gst_context_get_structure(c.Instance()) - if st == nil { - return nil - } - return wrapStructure(st) -} - -// HasContextType checks if the context has the given type. -// -// // Example -// -// ctx := gst.NewContext("test-context", false) -// fmt.Println(ctx.HasContextType("test-context")) -// fmt.Println(ctx.HasContextType("another-context")) -// -// // true -// // false -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) HasContextType(ctxType string) bool { - cStr := C.CString(ctxType) - defer C.free(unsafe.Pointer(cStr)) - return gobool(C.gst_context_has_context_type( - c.Instance(), - (*C.gchar)(unsafe.Pointer(cStr)), - )) -} - -// IsPersistent checks if the context is persistent. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) IsPersistent() bool { - return gobool(C.gst_context_is_persistent(c.Instance())) -} - -// IsWritable returns true if the context is writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) IsWritable() bool { - return gobool(C.contextIsWritable(c.Instance())) -} - -// MakeWritable returns a writable version of the context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) MakeWritable() *Context { - return FromGstContextUnsafeFull(unsafe.Pointer(C.makeContextWritable(c.Instance()))) -} - -// WritableStructure returns a writable version of the structure. You should still not unref it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) WritableStructure() *Structure { - st := C.gst_context_writable_structure(c.Instance()) - if st == nil { - return nil - } - return wrapStructure(st) -} - -// Ref increases the ref count on the Context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) Ref() *Context { - ctx := C.gst_context_ref(c.Instance()) - return &Context{ptr: ctx} -} - -// Unref decreases the ref count on the Context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *Context) Unref() { C.gst_context_unref(c.Instance()) } diff --git a/gst/gst_debug.go b/gst/gst_debug.go deleted file mode 100644 index 4b7213a..0000000 --- a/gst/gst_debug.go +++ /dev/null @@ -1,289 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goLogFunction(GstDebugCategory * category, - GstDebugLevel level, - const gchar * file, - const gchar * function, - gint line, - GObject * object, - GstDebugMessage * message, - gpointer user_data) G_GNUC_NO_INSTRUMENT; - -void cgoDebugLog (GstDebugCategory * category, - GstDebugLevel level, - const gchar * file, - const gchar * function, - gint line, - GObject * object, - const gchar * msg) -{ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wformat-security" - gst_debug_log(category, level, file, function, line, object, msg); -#pragma GCC diagnostic pop -} - -void cgoSetLogFunction() -{ - gst_debug_remove_log_function(gst_debug_log_default); - gst_debug_add_log_function(goLogFunction, NULL, NULL); -} - -void cgoResetLogFunction() -{ - gst_debug_remove_log_function(goLogFunction); - gst_debug_add_log_function(gst_debug_log_default, NULL, NULL); -} - -*/ -import "C" -import ( - "path" - "runtime" - "sync" - "unsafe" -) - -// DebugColorFlags are terminal style flags you can use when creating your debugging -// categories to make them stand out in debugging output. -type DebugColorFlags int - -// Type castings of DebugColorFlags -const ( - DebugColorNone DebugColorFlags = 0 // (0) - No color - DebugColorFgBlack DebugColorFlags = C.GST_DEBUG_FG_BLACK // (0) – Use black as foreground color. - DebugColorFgRed DebugColorFlags = C.GST_DEBUG_FG_RED // (1) – Use red as foreground color. - DebugColorFgGreen DebugColorFlags = C.GST_DEBUG_FG_GREEN // (2) – Use green as foreground color. - DebugColorFgYellow DebugColorFlags = C.GST_DEBUG_FG_YELLOW // (3) – Use yellow as foreground color. - DebugColorFgBlue DebugColorFlags = C.GST_DEBUG_FG_BLUE // (4) – Use blue as foreground color. - DebugColorFgMagenta DebugColorFlags = C.GST_DEBUG_FG_MAGENTA // (5) – Use magenta as foreground color. - DebugColorFgCyan DebugColorFlags = C.GST_DEBUG_FG_CYAN // (6) – Use cyan as foreground color. - DebugColorFgWhite DebugColorFlags = C.GST_DEBUG_FG_WHITE // (7) – Use white as foreground color. - DebugColorBgBlack DebugColorFlags = C.GST_DEBUG_BG_BLACK // (0) – Use black as background color. - DebugColorBgRed DebugColorFlags = C.GST_DEBUG_BG_RED // (16) – Use red as background color. - DebugColorBgGreen DebugColorFlags = C.GST_DEBUG_BG_GREEN // (32) – Use green as background color. - DebugColorBgYellow DebugColorFlags = C.GST_DEBUG_BG_YELLOW // (48) – Use yellow as background color. - DebugColorBgBlue DebugColorFlags = C.GST_DEBUG_BG_BLUE // (64) – Use blue as background color. - DebugColorBgMagenta DebugColorFlags = C.GST_DEBUG_BG_MAGENTA // (80) – Use magenta as background color. - DebugColorBgCyan DebugColorFlags = C.GST_DEBUG_BG_CYAN // (96) – Use cyan as background color. - DebugColorBgWhite DebugColorFlags = C.GST_DEBUG_BG_WHITE // (112) – Use white as background color. - DebugColorBold DebugColorFlags = C.GST_DEBUG_BOLD // (256) – Make the output bold. - DebugColorUnderline DebugColorFlags = C.GST_DEBUG_UNDERLINE // (512) – Underline the output. -) - -// DebugColorMode represents how to display colors. -type DebugColorMode int - -// Type castings of DebugColorModes -const ( - DebugColorModeOff DebugColorMode = C.GST_DEBUG_COLOR_MODE_OFF // (0) – Do not use colors in logs. - DebugColorModeOn DebugColorMode = C.GST_DEBUG_COLOR_MODE_ON // (1) – Paint logs in a platform-specific way. - DebugColorModeUnix DebugColorMode = C.GST_DEBUG_COLOR_MODE_UNIX // (2) – Paint logs with UNIX terminal color codes no matter what platform GStreamer is running on. -) - -// DebugLevel defines the importance of a debugging message. The more important a message is, the -// greater the probability that the debugging system outputs it. -type DebugLevel int - -// Type castings of DebugLevels -const ( - LevelNone DebugLevel = C.GST_LEVEL_NONE // (0) – No debugging level specified or desired. Used to deactivate debugging output. - LevelError DebugLevel = C.GST_LEVEL_ERROR // (1) – Error messages are to be used only when an error occurred that stops the application from keeping working correctly. An examples is gst_element_error, which outputs a message with this priority. It does not mean that the application is terminating as with g_error. - LevelWarning DebugLevel = C.GST_LEVEL_WARNING // (2) – Warning messages are to inform about abnormal behavior that could lead to problems or weird behavior later on. An example of this would be clocking issues ("your computer is pretty slow") or broken input data ("Can't synchronize to stream.") - LevelFixMe DebugLevel = C.GST_LEVEL_FIXME // (3) – Fixme messages are messages that indicate that something in the executed code path is not fully implemented or handled yet. Note that this does not replace proper error handling in any way, the purpose of this message is to make it easier to spot incomplete/unfinished pieces of code when reading the debug log. - LevelInfo DebugLevel = C.GST_LEVEL_INFO // (4) – Informational messages should be used to keep the developer updated about what is happening. Examples where this should be used are when a typefind function has successfully determined the type of the stream or when an mp3 plugin detects the format to be used. ("This file has mono sound.") - LevelDebug DebugLevel = C.GST_LEVEL_DEBUG // (5) – Debugging messages should be used when something common happens that is not the expected default behavior, or something that's useful to know but doesn't happen all the time (ie. per loop iteration or buffer processed or event handled). An example would be notifications about state changes or receiving/sending of events. - LevelLog DebugLevel = C.GST_LEVEL_LOG // (6) – Log messages are messages that are very common but might be useful to know. As a rule of thumb a pipeline that is running as expected should never output anything else but LOG messages whilst processing data. Use this log level to log recurring information in chain functions and loop functions, for example. - LevelTrace DebugLevel = C.GST_LEVEL_TRACE // (7) – Tracing-related messages. Examples for this are referencing/dereferencing of objects. - LevelMemDump DebugLevel = C.GST_LEVEL_MEMDUMP // (9) – memory dump messages are used to log (small) chunks of data as memory dumps in the log. They will be displayed as hexdump with ASCII characters. -) - -// StackTraceFlags are flags for configuring stack traces -type StackTraceFlags int - -// Type castings of StackTraceFlags -const ( - StackTraceShowNone StackTraceFlags = 0 // (0) – Try to retrieve the minimum information available, which may be none on some platforms (Since: 1.18) - StackTraceShowFull StackTraceFlags = C.GST_STACK_TRACE_SHOW_FULL // (1) – Try to retrieve as much information as possible, including source information when getting the stack trace -) - -// DebugCategory is a struct that describes a category of log messages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type DebugCategory struct { - ptr *C.GstDebugCategory -} - -// NewDebugCategory initializes a new DebugCategory with the given properties and set -// to the default threshold. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDebugCategory(name string, color DebugColorFlags, description string) *DebugCategory { - cat := C._gst_debug_category_new(C.CString(name), C.guint(color), C.CString(description)) - return &DebugCategory{ptr: cat} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) logDepth(level DebugLevel, message string, depth int, obj *C.GObject) { - function, file, line, _ := runtime.Caller(depth) - cFile := C.CString(path.Base(file)) - cFunc := C.CString(runtime.FuncForPC(function).Name()) - cMsg := C.CString(message) - defer C.free(unsafe.Pointer(cFile)) - defer C.free(unsafe.Pointer(cFunc)) - defer C.free(unsafe.Pointer(cMsg)) - C.cgoDebugLog( - d.ptr, - C.GstDebugLevel(level), - (*C.gchar)(cFile), - (*C.gchar)(cFunc), - C.gint(line), - obj, - (*C.gchar)(cMsg), - ) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getLogObj(obj ...*Object) *C.GObject { - if len(obj) > 0 { - return (*C.GObject)(obj[0].Unsafe()) - } - return nil -} - -// Log logs the given message using the currently registered debugging handlers. You can optionally -// provide a single object to log the message for. GStreamer will automatically add a newline to the -// end of the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) Log(level DebugLevel, message string, obj ...*Object) { - d.logDepth(level, message, 2, getLogObj(obj...)) -} - -// LogError is a convenience wrapper for logging an ERROR level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogError(message string, obj ...*Object) { - d.logDepth(LevelError, message, 2, getLogObj(obj...)) -} - -// LogWarning is a convenience wrapper for logging a WARNING level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogWarning(message string, obj ...*Object) { - d.logDepth(LevelWarning, message, 2, getLogObj(obj...)) -} - -// LogInfo is a convenience wrapper for logging an INFO level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogInfo(message string, obj ...*Object) { - d.logDepth(LevelInfo, message, 2, getLogObj(obj...)) -} - -// LogDebug is a convenience wrapper for logging a DEBUG level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogDebug(message string, obj ...*Object) { - d.logDepth(LevelDebug, message, 2, getLogObj(obj...)) -} - -// LogLog is a convenience wrapper for logging a LOG level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogLog(message string, obj ...*Object) { - d.logDepth(LevelLog, message, 2, getLogObj(obj...)) -} - -// LogTrace is a convenience wrapper for logging a TRACE level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogTrace(message string, obj ...*Object) { - d.logDepth(LevelTrace, message, 2, getLogObj(obj...)) -} - -// LogMemDump is a convenience wrapper for logging a MEMDUMP level message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) LogMemDump(message string, obj ...*Object) { - d.logDepth(LevelMemDump, message, 2, getLogObj(obj...)) -} - -// GetName returns the name of a debug category. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugCategory) GetName() string { - return C.GoString(C.gst_debug_category_get_name(d.ptr)) -} - -// C.GObject passed to logging callback might not be full constructed yet (logging before g_object_new() has returned), -// or they might have a refcount of 0 (logging in finalize), or they might be partially destructed (dispose). -// -// It is not safe for general use. For most needs, use DebugMessage.GetId() instead -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type LoggedObject struct { - ptr *C.GObject -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (l *LoggedObject) Get() unsafe.Pointer { - return unsafe.Pointer(l.ptr) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type DebugMessage struct { - ptr *C.GstDebugMessage -} - -// Get returns the string representation of a GstDebugMessage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugMessage) Get() string { - return C.GoString(C.gst_debug_message_get(d.ptr)) -} - -// GetId returns the id of the object that emitted this message. Can be empty. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DebugMessage) GetId() string { - return C.GoString(C.gst_debug_message_get_id(d.ptr)) -} - -type LogFunction = func( - category *DebugCategory, - level DebugLevel, - file string, - function string, - line int, - object *LoggedObject, - message *DebugMessage, -) - -var ( - logFnMu sync.RWMutex - customLogFunction LogFunction -) - -// SetLogFunction is used to replace gstreamer's default logging function. -// Setting to nil will revert to the default logging function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SetLogFunction(f LogFunction) { - logFnMu.Lock() - defer logFnMu.Unlock() - - if f == nil { - C.cgoResetLogFunction() - } else if customLogFunction == nil { - C.cgoSetLogFunction() - } - customLogFunction = f -} diff --git a/gst/gst_device.go b/gst/gst_device.go deleted file mode 100644 index 2783c68..0000000 --- a/gst/gst_device.go +++ /dev/null @@ -1,117 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "fmt" - "strings" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Device is a Go representation of a GstDevice. -type Device struct{ *Object } - -// FromGstDeviceUnsafeNone wraps the given device with a ref and finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstDeviceUnsafeNone(device unsafe.Pointer) *Device { - return &Device{wrapObject(glib.TransferNone(device))} -} - -// FromGstDeviceUnsafeFull wraps the given device with a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstDeviceUnsafeFull(device unsafe.Pointer) *Device { - return &Device{wrapObject(glib.TransferFull(device))} -} - -// Instance returns the underlying GstDevice object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) Instance() *C.GstDevice { return C.toGstDevice(d.Unsafe()) } - -// CreateElement creates a new element with all the required parameters set to use this device. -// If name is empty, one is automatically generated. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) CreateElement(name string) *Element { - var cName *C.gchar - if name != "" { - cName = C.CString(name) - defer C.free(unsafe.Pointer(cName)) - } - elem := C.gst_device_create_element(d.Instance(), cName) - if elem == nil { - return nil - } - return FromGstElementUnsafeNone(unsafe.Pointer(elem)) -} - -// GetCaps returns the caps that this device supports. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) GetCaps() *Caps { - caps := C.gst_device_get_caps(d.Instance()) - if caps == nil { - return nil - } - return FromGstCapsUnsafeNone(unsafe.Pointer(caps)) -} - -// GetDeviceClass gets the "class" of a device. This is a "/" separated list of classes that -// represent this device. They are a subset of the classes of the GstDeviceProvider that produced -// this device. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) GetDeviceClass() string { - class := C.gst_device_get_device_class(d.Instance()) - defer C.g_free((C.gpointer)(unsafe.Pointer(class))) - return C.GoString(class) -} - -// GetDisplayName gets the user-friendly name of the device. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) GetDisplayName() string { - name := C.gst_device_get_display_name(d.Instance()) - defer C.g_free((C.gpointer)(unsafe.Pointer(name))) - return C.GoString(name) -} - -// GetProperties gets the extra properties of the device. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) GetProperties() *Structure { - st := C.gst_device_get_properties(d.Instance()) - if st == nil { - return nil - } - return wrapStructure(st) -} - -// HasClasses checks if device matches all of the given classes. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) HasClasses(classes []string) bool { - cClasses := C.CString(strings.Join(classes, "/")) - defer C.free(unsafe.Pointer(cClasses)) - return gobool(C.gst_device_has_classes(d.Instance(), cClasses)) -} - -// ReconfigureElement tries to reconfigure an existing element to use the device. -// If this function fails, then one must destroy the element and create a new one -// using Device.CreateElement(). -// -// Note: This should only be implemented for elements that can change their device -// while in the PLAYING state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Device) ReconfigureElement(elem *Element) error { - if ok := gobool(C.gst_device_reconfigure_element(d.Instance(), elem.Instance())); !ok { - return fmt.Errorf("failed to reconfigure element %s", elem.GetName()) - } - return nil -} diff --git a/gst/gst_device_monitor.go b/gst/gst_device_monitor.go deleted file mode 100644 index eb11351..0000000 --- a/gst/gst_device_monitor.go +++ /dev/null @@ -1,102 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// DeviceMonitor is a Go representation of a GstDeviceMonitor. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type DeviceMonitor struct { - ptr *C.GstDeviceMonitor - bus *Bus -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDeviceMonitor() *DeviceMonitor { - monitor := C.gst_device_monitor_new() - if monitor == nil { - return nil - } - return &DeviceMonitor{ptr: monitor} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) AddFilter(classes string, caps *Caps) uint { - var cClasses *C.gchar - if classes != "" { - cClasses = C.CString(classes) - defer C.free(unsafe.Pointer(cClasses)) - } - - filterId := C.gst_device_monitor_add_filter(d.ptr, cClasses, caps.Instance()) - return uint(filterId) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) RemoveFilter(filterId uint) bool { - return gobool(C.gst_device_monitor_remove_filter(d.ptr, C.guint(filterId))) -} - -// GetBus returns the message bus for this pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) GetBus() *Bus { - if d.bus == nil { - cBus := C.gst_device_monitor_get_bus(d.ptr) - d.bus = FromGstBusUnsafeFull(unsafe.Pointer(cBus)) - } - return d.bus -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) Start() bool { - return gobool(C.gst_device_monitor_start(d.ptr)) - //should return if we were able to add the filter -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) Stop() { - C.gst_device_monitor_stop(d.ptr) - //should return if we were able to add the filter -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) GetDevices() []*Device { - glist := C.gst_device_monitor_get_devices(d.ptr) - if glist == nil { - return nil - } - goList := glib.WrapList(unsafe.Pointer(glist)) - out := make([]*Device, 0) - goList.Foreach(func(item interface{}) { - pt := item.(unsafe.Pointer) - out = append(out, FromGstDeviceUnsafeFull(pt)) - }) - return out -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) SetShowAllDevices(show bool) { - C.gst_device_monitor_set_show_all_devices(d.ptr, gboolean(show)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceMonitor) GetShowAllDevices() bool { - return gobool(C.gst_device_monitor_get_show_all_devices(d.ptr)) -} - -//gst_device_monitor_get_providers diff --git a/gst/gst_device_provider.go b/gst/gst_device_provider.go deleted file mode 100644 index 9e791cd..0000000 --- a/gst/gst_device_provider.go +++ /dev/null @@ -1,69 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// DeviceProvider is a Go representation of a GstDeviceProvider. -type DeviceProvider struct{ *Object } - -// FromGstDeviceProviderUnsafeNone wraps the given device with a ref and finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstDeviceProviderUnsafeNone(deviceProvider unsafe.Pointer) *DeviceProvider { - return &DeviceProvider{wrapObject(glib.TransferNone(deviceProvider))} -} - -// FromGstDeviceProviderUnsafeFull wraps the given device with a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstDeviceProviderUnsafeFull(deviceProvider unsafe.Pointer) *DeviceProvider { - return &DeviceProvider{wrapObject(glib.TransferFull(deviceProvider))} -} - -// Instance returns the underlying GstDevice object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceProvider) Instance() *C.GstDeviceProvider { return C.toGstDeviceProvider(d.Unsafe()) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceProvider) GetDevices() []*Device { - glist := C.gst_device_provider_get_devices((*C.GstDeviceProvider)(d.Instance())) - if glist == nil { - return nil - } - goList := glib.WrapList(unsafe.Pointer(glist)) - out := make([]*Device, 0) - goList.Foreach(func(item interface{}) { - pt := item.(unsafe.Pointer) - out = append(out, FromGstDeviceUnsafeFull(pt)) - }) - return out -} - -// GetBus returns the message bus for this pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceProvider) GetBus() *Bus { - cBus := C.gst_device_provider_get_bus((*C.GstDeviceProvider)(d.Instance())) - bus := FromGstBusUnsafeFull(unsafe.Pointer(cBus)) - return bus -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceProvider) Start() bool { - return gobool(C.gst_device_provider_start((*C.GstDeviceProvider)(d.Instance()))) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DeviceProvider) Stop() { - C.gst_device_provider_stop((*C.GstDeviceProvider)(d.Instance())) -} diff --git a/gst/gst_device_provider_factory.go b/gst/gst_device_provider_factory.go deleted file mode 100644 index 961f319..0000000 --- a/gst/gst_device_provider_factory.go +++ /dev/null @@ -1,20 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FindDeviceProviderByName(factoryName string) *DeviceProvider { - cFactoryName := C.CString(factoryName) - defer C.free(unsafe.Pointer(cFactoryName)) - provider := C.gst_device_provider_factory_get_by_name((*C.gchar)(unsafe.Pointer(cFactoryName))) - if provider == nil { - return nil - } - return FromGstDeviceProviderUnsafeFull(unsafe.Pointer(provider)) -} diff --git a/gst/gst_element.go b/gst/gst_element.go deleted file mode 100644 index 882b437..0000000 --- a/gst/gst_element.go +++ /dev/null @@ -1,809 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goGDestroyNotifyFuncNoRun (gpointer user_data); -extern void goElementCallAsync (GstElement * element, gpointer user_data); - -void cgoElementAsyncDestroyNotify (gpointer user_data) -{ - goGDestroyNotifyFuncNoRun(user_data); -} - -void cgoElementCallAsync (GstElement * element, gpointer user_data) -{ - goElementCallAsync(element, user_data); -} - -gboolean elementParentPostMessage (GstElement * element, GstMessage * message) { - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(element)); - GstElementClass * parent = toGstElementClass(g_type_class_peek_parent(this_class)); - return parent->post_message(element, message); -} - -GstStateChangeReturn elementParentChangeState (GstElement * element, GstStateChange transition) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(element)); - GstElementClass * parent = toGstElementClass(g_type_class_peek_parent(this_class)); - return parent->change_state(element, transition); -} - -gboolean elementParentSendEvent (GstElement * element, GstEvent * event) -{ - GObjectClass * this_class = G_OBJECT_GET_CLASS(G_OBJECT(element)); - GstElementClass * parent = toGstElementClass(g_type_class_peek_parent(this_class)); - return parent->send_event(element, event); -} - -*/ -import "C" - -import ( - "fmt" - "path" - "runtime" - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// Element is a Go wrapper around a GstElement. -type Element struct{ *Object } - -// FromGstElementUnsafeNone wraps the given element with a ref and a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstElementUnsafeNone(elem unsafe.Pointer) *Element { - if elem == nil { - return nil - } - return &Element{Object: &Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: glib.TransferNone(elem)}}} -} - -// FromGstElementUnsafeFull wraps the given element with a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstElementUnsafeFull(elem unsafe.Pointer) *Element { - if elem == nil { - return nil - } - return &Element{Object: &Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: glib.TransferFull(elem)}}} -} - -// ToElement returns an Element object for the given Object. It will work -// on either gst.Object or glib.Object interfaces. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToElement(obj interface{}) *Element { - switch obj := obj.(type) { - case *Object: - return &Element{Object: obj} - case *glib.Object: - return &Element{Object: &Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}}} - } - return nil -} - -// ElementLinkMany is a go implementation of `gst_element_link_many` to compensate for -// no variadic functions in cgo. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ElementLinkMany(elems ...*Element) error { - for idx, elem := range elems { - if idx == 0 { - // skip the first one as the loop always links previous to current - continue - } - if err := elems[idx-1].Link(elem); err != nil { - return err - } - } - return nil -} - -// ElementUnlinkMany is a go implementation of `gst_element_unlink_many` to compensate for -// no variadic functions in cgo. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ElementUnlinkMany(elems ...*Element) { - for idx, elem := range elems { - if idx == 0 { - // skip the first one as the loop always links previous to current - continue - } - elems[idx-1].Unlink(elem) - } -} - -// RegisterElement creates a new elementfactory capable of instantiating objects of the given GoElement -// and adds the factory to the plugin. A higher rank means more importance when autoplugging. -// -// plugin can also be nil to register a static element -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func RegisterElement(plugin *Plugin, name string, rank Rank, elem glib.GoObjectSubclass, extends glib.Extendable, interfaces ...glib.Interface) bool { - var pluginref *C.GstPlugin - - if plugin != nil { - pluginref = plugin.Instance() - } - - return gobool(C.gst_element_register( - pluginref, - C.CString(name), - C.guint(rank), - C.GType(glib.RegisterGoType(name, elem, extends, interfaces...)), - )) -} - -// Instance returns the underlying GstElement instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Instance() *C.GstElement { return C.toGstElement(e.Unsafe()) } - -// AbortState aborts the state change of the element. This function is used by elements that do asynchronous state changes -// and find out something is wrong. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) AbortState() { C.gst_element_abort_state(e.Instance()) } - -// AddPad adds a pad (link point) to element. pad's parent will be set to element -// -// Pads are automatically activated when added in the PAUSED or PLAYING state. -// -// The pad and the element should be unlocked when calling this function. -// -// This function will emit the pad-added signal on the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) AddPad(pad *Pad) bool { - return gobool(C.gst_element_add_pad(e.Instance(), pad.Instance())) -} - -// BlockSetState is a convinience wrapper function for calling SetState and an infinitely blocking GetState -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) BlockSetState(state State) error { - if err := e.SetState(state); err != nil { - return err - } - - status, _ := e.GetState(state, ClockTimeNone) - - if status != StateChangeSuccess { - return fmt.Errorf("failed to change state to %s (got %s)", state, status) - } - - return nil -} - -// CallAsync calls f from another thread. This is to be used for cases when a state change has to be performed from a streaming -// thread, directly via SetState or indirectly e.g. via SEEK events. -// -// Calling those functions directly from the streaming thread will cause deadlocks in many situations, as they might involve waiting -// for the streaming thread to shut down from this very streaming thread. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) CallAsync(f func()) { - ptr := gopointer.Save(f) - C.gst_element_call_async( - e.Instance(), - C.GstElementCallAsyncFunc(C.cgoElementCallAsync), - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.cgoElementAsyncDestroyNotify), - ) -} - -// PostMessage posts a message on the element's bus -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) PostMessage(message *Message) bool { - // gst_element_post_message takes ownership of the message so need to ref it before feeding it forward - return gobool(C.gst_element_post_message(e.Instance(), message.Ref().Instance())) -} - -// ChangeState performs the given transition on this element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ChangeState(transition StateChange) StateChangeReturn { - return StateChangeReturn(C.gst_element_change_state(e.Instance(), C.GstStateChange(transition))) -} - -// Connect connects to the given signal on this element, and applies f as the callback. The callback must -// match the signature of the expected callback from the documentation. However, instead of specifying C types -// for arguments specify the go-gst equivalent (e.g. *gst.Element for almost all GstElement derivatives). -// -// This and the Emit() method may get moved down the hierarchy to the Object level at some point, since -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Connect(signal string, f interface{}) (glib.SignalHandle, error) { - // Elements are sometimes their own type unique from TYPE_ELEMENT. So make sure a type marshaler - // is registered for whatever this type is. Use the built-in element marshaler. - if e.TypeFromInstance() != glib.Type(C.GST_TYPE_ELEMENT) { - glib.RegisterGValueMarshalers([]glib.TypeMarshaler{{T: e.TypeFromInstance(), F: marshalElement}}) - } - return e.Object.Connect(signal, f, nil) -} - -// ContinueState commits the state change of the element and proceed to the next pending state if any. This -// function is used by elements that do asynchronous state changes. The core will normally call this method -// automatically when an element returned GST_STATE_CHANGE_SUCCESS from the state change function. -// -// If after calling this method the element still has not reached the pending state, the next state change is performed. -// -// This method is used internally and should normally not be called by plugins or applications. -// -// This function must be called with STATE_LOCK held. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ContinueState(ret StateChangeReturn) StateChangeReturn { - return StateChangeReturn(C.gst_element_continue_state(e.Instance(), C.GstStateChangeReturn(ret))) -} - -// Emit is a wrapper around g_signal_emitv() and emits the signal -// specified by the string s to an Object. This means that it performs identically to -// g_signal_emit_by_name. Arguments to callback functions connected to this signal must -// be specified in args. Emit() returns an interface{} which contains the go equivalent of the C return value. -// -// Make sure that the Types are known to go-glib. Special types need to be registered with -// RegisterGValueMarshalers before calling Emit. Sub libraries of go-gst (sdp, rtp, webrtc, base, etc.) -// register their types when they are imported via init() functions. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Emit(signal string, args ...interface{}) (interface{}, error) { - // We are wrapping this for the same reason as Connect. - if e.TypeFromInstance() != glib.Type(C.GST_TYPE_ELEMENT) { - glib.RegisterGValueMarshalers([]glib.TypeMarshaler{{T: e.TypeFromInstance(), F: marshalElement}}) - } - return e.Object.Emit(signal, args...) -} - -// InfoMessage is a convenience wrapper for posting an info message from inside an element. Only to be used from -// plugins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) InfoMessage(domain Domain, text string) { - function, file, line, _ := runtime.Caller(1) - e.MessageFull(MessageInfo, domain, ErrorCode(0), "", text, path.Base(file), runtime.FuncForPC(function).Name(), line) -} - -// WarningMessage is a convenience wrapper for posting a warning message from inside an element. Only to be used from -// plugins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) WarningMessage(domain Domain, text string) { - function, file, line, _ := runtime.Caller(1) - e.MessageFull(MessageWarning, domain, ErrorCode(0), "", text, path.Base(file), runtime.FuncForPC(function).Name(), line) -} - -// Error is a convenience wrapper around ErrorMessage to simply post the provided go error on the bus. -// The domain is assumed to be DomainLibrary and the code is assumed to be LibraryErrorFailed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Error(msg string, err error) { - function, file, line, _ := runtime.Caller(1) - debugMsg := fmt.Sprintf("%s: %s", msg, err.Error()) - e.MessageFull(MessageError, DomainLibrary, LibraryErrorFailed, err.Error(), debugMsg, path.Base(file), runtime.FuncForPC(function).Name(), line) -} - -// ErrorMessage is a convenience wrapper for posting an error message from inside an element. Only to be used from -// plugins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ErrorMessage(domain Domain, code ErrorCode, text, debug string) { - function, file, line, _ := runtime.Caller(1) - e.MessageFull(MessageError, domain, code, text, debug, path.Base(file), runtime.FuncForPC(function).Name(), line) -} - -// MessageFull will post an error, warning, or info message on the bus from inside an element. Only to be used -// from plugins. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) MessageFull(msgType MessageType, domain Domain, code ErrorCode, text, debug, file, function string, line int) { - var cTxt, cDbg unsafe.Pointer = nil, nil - if text != "" { - ctxtstr := C.CString(debug) - defer C.free(unsafe.Pointer(ctxtstr)) - cTxt = unsafe.Pointer(C.g_strdup((*C.gchar)(unsafe.Pointer(ctxtstr)))) - } - if debug != "" { - cdbgstr := C.CString(debug) - defer C.free(unsafe.Pointer(cdbgstr)) - cDbg = unsafe.Pointer(C.g_strdup((*C.gchar)(unsafe.Pointer(cdbgstr)))) - } - C.gst_element_message_full( - e.Instance(), - C.GstMessageType(msgType), - domain.toQuark(), - C.gint(code), - (*C.gchar)(cTxt), - (*C.gchar)(cDbg), - C.CString(file), - C.CString(function), - C.gint(line), - ) -} - -// GetBus returns the GstBus for retrieving messages from this element. This function returns -// nil unless the element is a Pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetBus() *Bus { - bus := C.gst_element_get_bus((*C.GstElement)(e.Instance())) - if bus == nil { - return nil - } - return FromGstBusUnsafeFull(unsafe.Pointer(bus)) -} - -// GetClock returns the Clock for this element. This is the clock as was last set with gst_element_set_clock. -// Elements in a pipeline will only have their clock set when the pipeline is in the PLAYING state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetClock() *Clock { - cClock := C.gst_element_get_clock((*C.GstElement)(e.Instance())) - if cClock == nil { - return nil - } - return FromGstClockUnsafeFull(unsafe.Pointer(cClock)) -} - -// GetFactory returns the factory that created this element. No refcounting is needed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetFactory() *ElementFactory { - factory := C.gst_element_get_factory((*C.GstElement)(e.Instance())) - if factory == nil { - return nil - } - return wrapElementFactory(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(factory))}) -} - -// GetPads retrieves a list of pads associated with the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetPads() ([]*Pad, error) { - iter := C.gst_element_iterate_pads(e.Instance()) - if iter == nil { - return nil, nil - } - return iteratorToPadSlice(iter) -} - -// GetSinkPads retrieves a list of sink pads associated with the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetSinkPads() ([]*Pad, error) { - iter := C.gst_element_iterate_sink_pads(e.Instance()) - if iter == nil { - return nil, nil - } - return iteratorToPadSlice(iter) -} - -// GetSrcPads retrieves a list of src pads associated with the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetSrcPads() ([]*Pad, error) { - iter := C.gst_element_iterate_src_pads(e.Instance()) - if iter == nil { - return nil, nil - } - return iteratorToPadSlice(iter) -} - -// GetPadTemplates retrieves a list of the pad templates associated with this element. -// The list must not be modified by the calling code. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetPadTemplates() []*PadTemplate { - glist := C.gst_element_get_pad_template_list((*C.GstElement)(e.Instance())) - if glist == nil { - return nil - } - goList := glib.WrapList(unsafe.Pointer(glist)) - out := make([]*PadTemplate, 0) - goList.Foreach(func(item interface{}) { - pt := item.(unsafe.Pointer) - out = append(out, wrapPadTemplate(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(pt))})) - }) - return out -} - -// Gets the state of the element. -// -// For elements that performed an ASYNC state change, as reported by gst_element_set_state, this function will block up -// to the specified timeout value for the state change to complete. If the element completes the state change or goes into -// an error, this function returns immediately with a return value of GST_STATE_CHANGE_SUCCESS or GST_STATE_CHANGE_FAILURE respectively. -// -// For elements that did not return GST_STATE_CHANGE_ASYNC, this function returns the current and pending state immediately. -// -// This function returns GST_STATE_CHANGE_NO_PREROLL if the element successfully changed its state but is not able to provide -// data yet. This mostly happens for live sources that only produce data in GST_STATE_PLAYING. While the state change return is -// equivalent to GST_STATE_CHANGE_SUCCESS, it is returned to the application to signal that some sink elements might not be able -// to complete their state change because an element is not producing data to complete the preroll. When setting the element to -// playing, the preroll will complete and playback will start. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetState(state State, timeout ClockTime) (StateChangeReturn, State) { - pending := C.GstState(state) - var curState C.GstState - stateChangeStatus := C.gst_element_get_state( - (*C.GstElement)(e.Instance()), - (*C.GstState)(unsafe.Pointer(&curState)), - (*C.GstState)(unsafe.Pointer(&pending)), - C.GstClockTime(timeout), - ) - - return StateChangeReturn(stateChangeStatus), State(curState) -} - -// this returns the value of the `current_state` member of the element: -// -// the current state of an element -// -// see https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c#members -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetCurrentState() State { - return State(e.Instance().current_state) -} - -// GetStaticPad retrieves a pad from element by name. This version only retrieves -// already-existing (i.e. 'static') pads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetStaticPad(name string) *Pad { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - pad := C.gst_element_get_static_pad(e.Instance(), (*C.gchar)(unsafe.Pointer(cname))) - if pad == nil { - return nil - } - return FromGstPadUnsafeFull(unsafe.Pointer(pad)) -} - -// Has returns true if this element has the given flags. -// Non MT safe -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Has(flags ElementFlags) bool { - return e.hasFlags(uint32(flags)) -} - -// Set element flags -// Non MT safe -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SetFlags(flags ElementFlags) { - e.setFlags(uint32(flags)) -} - -// Unset element flags -// Non MT safe -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) UnsetFlags(flags ElementFlags) { - e.unsetFlags(uint32(flags)) -} - -// IsURIHandler returns true if this element can handle URIs. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) IsURIHandler() bool { - return gobool(C.gstElementIsURIHandler(e.Instance())) -} - -// Link wraps gst_element_link and links this element to the given one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Link(elem *Element) error { - if ok := C.gst_element_link((*C.GstElement)(e.Instance()), (*C.GstElement)(elem.Instance())); !gobool(ok) { - return fmt.Errorf("failed to link %s to %s", e.GetName(), elem.GetName()) - } - return nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Unlink(elem *Element) { - C.gst_element_unlink((*C.GstElement)(e.Instance()), (*C.GstElement)(elem.Instance())) -} - -// LinkFiltered wraps gst_element_link_filtered and link this element to the given one -// using the provided sink caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) LinkFiltered(elem *Element, filter *Caps) error { - if filter == nil { - if ok := C.gst_element_link_filtered(e.Instance(), elem.Instance(), nil); !gobool(ok) { - return fmt.Errorf("failed to link %s to %s with provided caps", e.GetName(), elem.GetName()) - } - return nil - } - if ok := C.gst_element_link_filtered(e.Instance(), elem.Instance(), filter.Instance()); !gobool(ok) { - return fmt.Errorf("failed to link %s to %s with provided caps", e.GetName(), elem.GetName()) - } - return nil -} - -// ParentChangeState can be used when extending an element to chain up to the parents ChangeState -// handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ParentChangeState(transition StateChange) StateChangeReturn { - return StateChangeReturn(C.elementParentChangeState(e.Instance(), C.GstStateChange(transition))) -} - -// ParentSendEvent chains up to the parent SendEvent handler. -// send_event takes ownership of the incoming event pointer so we have to ref it beforehand -// in order not to mess up go's gc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ParentSendEvent(event *Event) bool { - return gobool(C.elementParentSendEvent(e.Instance(), event.Ref().Instance())) -} - -// ParentPostMessage can be used when extending an element. During a PostMessage, use this method -// to have the message posted on the bus after processing. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ParentPostMessage(msg *Message) bool { - return gobool(C.elementParentPostMessage(e.Instance(), msg.Instance())) -} - -// Query performs a query on the given element. -// -// For elements that don't implement a query handler, this function forwards the query to a random srcpad or -// to the peer of a random linked sinkpad of this element. -// -// Please note that some queries might need a running pipeline to work. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) Query(q *Query) bool { - return gobool(C.gst_element_query(e.Instance(), q.Instance())) -} - -// QueryConvert queries an element to convert src_val in src_format to dest_format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) QueryConvert(srcFormat Format, srcValue int64, destFormat Format) (bool, int64) { - var out C.gint64 - gok := C.gst_element_query_convert(e.Instance(), C.GstFormat(srcFormat), C.gint64(srcValue), C.GstFormat(destFormat), &out) - return gobool(gok), int64(out) -} - -// QueryDuration queries an element (usually top-level pipeline or playbin element) for the total stream -// duration in nanoseconds. This query will only work once the pipeline is prerolled (i.e. reached PAUSED -// or PLAYING state). The application will receive an ASYNC_DONE message on the pipeline bus when that is -// the case. -// -// If the duration changes for some reason, you will get a DURATION_CHANGED message on the pipeline bus, -// in which case you should re-query the duration using this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) QueryDuration(format Format) (bool, int64) { - var out C.gint64 - gok := C.gst_element_query_duration(e.Instance(), C.GstFormat(format), &out) - return gobool(gok), int64(out) -} - -// QueryPosition queries an element (usually top-level pipeline or playbin element) for the stream position -// in nanoseconds. This will be a value between 0 and the stream duration (if the stream duration is known). -// This query will usually only work once the pipeline is prerolled (i.e. reached PAUSED or PLAYING state). -// The application will receive an ASYNC_DONE message on the pipeline bus when that is the case. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) QueryPosition(format Format) (bool, int64) { - var out C.gint64 - gok := C.gst_element_query_position(e.Instance(), C.GstFormat(format), &out) - return gobool(gok), int64(out) -} - -// SendEvent sends an event to an element. If the element doesn't implement an event handler, the event will -// be pushed on a random linked sink pad for downstream events or a random linked source pad for upstream events. -// -// This function takes ownership of the provided event so you should gst_event_ref it if you want to reuse the event -// after this call. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SendEvent(ev *Event) bool { - return gobool(C.gst_element_send_event(e.Instance(), ev.Ref().Instance())) -} - -// SetState sets the target state for this element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SetState(state State) error { - stateRet := C.gst_element_set_state((*C.GstElement)(e.Instance()), C.GstState(state)) - if stateRet == C.GST_STATE_CHANGE_FAILURE { - return fmt.Errorf("failed to change state to %s", state.String()) - } - return nil -} - -// SetLockedState sets the locked state flag for this element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SetLockedState(lockedState bool) error { - ret := C.gst_element_set_locked_state((*C.GstElement)(e.Instance()), gboolean(lockedState)) - if !gobool(ret) { - return fmt.Errorf("failed to set locked state") - } - return nil -} - -// SyncStateWithParent tries to change the state of the element to the same as its parent. If this function returns -// FALSE, the state of element is undefined. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SyncStateWithParent() bool { - return gobool(C.gst_element_sync_state_with_parent(e.Instance())) -} - -// TOCSetter returns a TOCSetter interface if implemented by this element. Otherwise it -// returns nil. Currently this only supports elements built through this package, however, -// inner application elements could still use the interface as a reference implementation. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) TOCSetter() TOCSetter { - if C.toTocSetter(e.Instance()) == nil { - return nil - } - return &gstTOCSetter{ptr: e.Instance()} -} - -// TagSetter returns a TagSetter interface if implemented by this element. Otherwise it returns nil. -// This currently only supports elements built through this package's bindings, however, inner application -// elements can still implement the interface themselves if they want. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) TagSetter() TagSetter { - if C.toTagSetter(e.Instance()) == nil { - return nil - } - return &gstTagSetter{ptr: e.Instance()} -} - -// URIHandler returns a URIHandler interface if implemented by this element. Otherwise it -// returns nil. Currently this only supports elements built through this package, however, -// inner application elements could still use the interface as a reference implementation. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) URIHandler() URIHandler { - if C.toGstURIHandler(e.Unsafe()) == nil { - return nil - } - return &gstURIHandler{ptr: e.Instance()} -} - -// RemovePad removes pad from element. pad will be destroyed if it has not been referenced elsewhere using gst_object_unparent. -// -// This function is used by plugin developers and should not be used by applications. Pads that were dynamically requested from -// elements with gst_element_request_pad should be released with the gst_element_release_request_pad function instead. -// -// Pads are not automatically deactivated so elements should perform the needed steps to deactivate the pad in case this pad is -// removed in the PAUSED or PLAYING state. See gst_pad_set_active for more information about deactivating pads. -// -// The pad and the element should be unlocked when calling this function. -// -// This function will emit the pad-removed signal on the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) RemovePad(pad *Pad) bool { - return gobool(C.gst_element_remove_pad(e.Instance(), pad.Instance())) -} - -// GetRequestPad gets a request pad from the element based on the name of the pad template. -// Unlike static pads, request pads are not created automatically but are only created on demand -// For example, audiomixer has sink template, 'sink_%u', which is used for creating multiple sink pads on demand so that it performs mixing of audio streams by linking multiple upstream elements on it's sink pads created on demand. -// This returns the request pad created on demand. Otherwise, it returns null if failed to create. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetRequestPad(name string) *Pad { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - pad := C.gst_element_get_request_pad(e.Instance(), (*C.gchar)(unsafe.Pointer(cname))) - if pad == nil { - return nil - } - return FromGstPadUnsafeFull(unsafe.Pointer(pad)) -} - -// ReleaseRequestPad releases request pad -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ReleaseRequestPad(pad *Pad) { - C.gst_element_release_request_pad(e.Instance(), pad.Instance()) -} - -// Set the start time of an element. The start time of the element is the running time of the element -// when it last went to the PAUSED state. In READY or after a flushing seek, it is set to 0. -// -// Toplevel elements like GstPipeline will manage the start_time and base_time on its children. -// Setting the start_time to GST_CLOCK_TIME_NONE on such a toplevel element will disable the distribution of the base_time -// to the children and can be useful if the application manages the base_time itself, for example if you want to synchronize -// capture from multiple pipelines, and you can also ensure that the pipelines have the same clock. -// -// MT safe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SetStartTime(startTime ClockTime) { - C.gst_element_set_start_time(e.Instance(), C.GstClockTime(startTime)) -} - -// Returns the start time of the element. The start time is the running time of the clock when this element was last put to PAUSED. -// Usually the start_time is managed by a toplevel element such as GstPipeline. -// MT safe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetStartTime() ClockTime { - ctime := C.gst_element_get_start_time(e.Instance()) - - return ClockTime(ctime) -} - -// Set the base time of an element. The base time is the absolute time of the clock -// when this element was last put to PLAYING. Subtracting the base time from the clock time gives the running time of the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SetBaseTime(startTime ClockTime) { - C.gst_element_set_base_time(e.Instance(), C.GstClockTime(startTime)) -} - -// Returns the base time of the element. The base time is the absolute time of the clock -// when this element was last put to PLAYING. Subtracting the base time from the clock time gives the running time of the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) GetBaseTime() ClockTime { - ctime := C.gst_element_get_base_time(e.Instance()) - - return ClockTime(ctime) -} - -// SeekSimple seeks to the given position in the stream. The element / pipeline should be in the PAUSED or PLAYING state and must be a seekable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SeekSimple(position int64, format Format, flag SeekFlags) bool { - result := C.gst_element_seek_simple(e.Instance(), C.GstFormat(format), C.GstSeekFlags(flag), C.gint64(position)) - return gobool(result) -} - -// SeekTime seeks to the given position time in the stream. The element / pipeline should be in the PAUSED or PLAYING state and must be a seekable. -// -// For example, to seek to 40th second of the stream, use: -// -// pos := int64(time.Duration(40 * time.Second)) -// element.SeekTime(pos, gst.FormatTime, gst.SeekFlagFlush) -// -// to perform a flush seek to the nearest keyframe before the given position. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SeekTime(position time.Duration, flag SeekFlags) bool { - return e.SeekSimple(position.Nanoseconds(), FormatTime, flag) -} - -// SeekDefault seeks to the given position in the stream. The position is the frame number for video, or sample for audio. -// The element should be in the PAUSED or PLAYING state and must be a seekable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) SeekDefault(position int64, flag SeekFlags) bool { - return e.SeekSimple(position, FormatDefault, flag) -} - -// this prevents go pointers in cgo when setting a gst.Element to a property -// see (https://github.com/go-gst/go-gst/issues/65) -// ToGValue implements glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Element) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(glib.Type(C.GST_TYPE_ELEMENT)) - if err != nil { - return nil, err - } - val.SetInstance(unsafe.Pointer(e.Instance())) - return val, nil -} diff --git a/gst/gst_element_class.go b/gst/gst_element_class.go deleted file mode 100644 index 86ed8fc..0000000 --- a/gst/gst_element_class.go +++ /dev/null @@ -1,129 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// ElementClass represents the subclass of an element provided by a plugin. -type ElementClass struct{ *glib.ObjectClass } - -// ToElementClass wraps the given ObjectClass in an ElementClass instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToElementClass(klass *glib.ObjectClass) *ElementClass { - return &ElementClass{klass} -} - -// Instance returns the underlying GstElementClass instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) Instance() *C.GstElementClass { - return C.toGstElementClass(e.Unsafe()) -} - -// AddMetadata sets key with the given value in the metadata of the class. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) AddMetadata(key, value string) { - C.gst_element_class_add_static_metadata( - e.Instance(), - (*C.gchar)(C.CString(key)), - (*C.gchar)(C.CString(value)), - ) -} - -// AddPadTemplate adds a padtemplate to an element class. This is mainly used in the -// ClassInit functions of ObjectSubclasses. If a pad template with the same name as an -// already existing one is added the old one is replaced by the new one. -// -// templ's reference count will be incremented, and any floating reference will be removed -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) AddPadTemplate(templ *PadTemplate) { - C.gst_element_class_add_pad_template( - e.Instance(), - (*C.GstPadTemplate)(templ.Unsafe()), - ) -} - -// AddStaticPadTemplate adds a pad template to an element class based on the pad template templ. The template -// is first converted to a static pad template. -// -// This is mainly used in the ClassInit functions of element implementations. If a pad template with the -// same name already exists, the old one is replaced by the new one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) AddStaticPadTemplate(templ *PadTemplate) { - staticTmpl := C.GstStaticPadTemplate{ - name_template: templ.Instance().name_template, - direction: templ.Instance().direction, - presence: templ.Instance().presence, - static_caps: C.GstStaticCaps{ - caps: templ.Caps().Ref().Instance(), - string: C.CString(templ.Name()), - }, - } - C.gst_element_class_add_static_pad_template( - e.Instance(), - &staticTmpl, - ) -} - -// GetMetadata retrieves the metadata associated with key in the class. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) GetMetadata(key string) string { - ckey := C.CString(key) - defer C.free(unsafe.Pointer(ckey)) - return C.GoString(C.gst_element_class_get_metadata(e.Instance(), (*C.gchar)(ckey))) -} - -// GetPadTemplate retrieves the padtemplate with the given name. -// If no pad template exists with the given name, nil is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) GetPadTemplate(name string) *PadTemplate { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - tmpl := C.gst_element_class_get_pad_template(e.Instance(), (*C.gchar)(cname)) - if tmpl == nil { - return nil - } - return FromGstPadTemplateUnsafeNone(unsafe.Pointer(tmpl)) -} - -// GetAllPadTemplates retrieves a slice of all the pad templates associated with this class. -// The list must not be modified. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) GetAllPadTemplates() []*PadTemplate { - glist := C.gst_element_class_get_pad_template_list(e.Instance()) - return glistToPadTemplateSlice(glist) -} - -// SetMetadata sets the detailed information for this class. -// -// `longname` - The english long name of the element. E.g "File Sink" -// -// `classification` - A string describing the type of element, as an unordered list separated with slashes ('/'). E.g: "Sink/File" -// -// `description` - Sentence describing the purpose of the element. E.g: "Write stream to a file" -// -// `author` - Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs " -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementClass) SetMetadata(longname, classification, description, author string) { - C.gst_element_class_set_static_metadata( - e.Instance(), - (*C.gchar)(C.CString(longname)), - (*C.gchar)(C.CString(classification)), - (*C.gchar)(C.CString(description)), - (*C.gchar)(C.CString(author)), - ) -} diff --git a/gst/gst_element_emit_test.go b/gst/gst_element_emit_test.go deleted file mode 100644 index 4bd4618..0000000 --- a/gst/gst_element_emit_test.go +++ /dev/null @@ -1,119 +0,0 @@ -package gst_test - -import ( - "errors" - "strings" - "testing" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestSignalEmitSimpleReturnValue(t *testing.T) { - gst.Init(nil) - webrtcbin, err := gst.NewElement("webrtcbin") - - if err != nil { - t.Fatal(err) - } - - okI, err := webrtcbin.Emit("add-turn-server", "turn://user:password@host:1234") - - if err != nil { - t.Fatal(err) - } - - ok := okI.(bool) - - if !ok { - t.Fatal("Failed to add turn server") - } -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestSignalEmitVoidReturnValue(t *testing.T) { - gst.Init(nil) - - elem, err := gst.NewElement("splitmuxsink") - if err != nil { - t.Fatal(err) - } - - result, err := elem.Emit("split-after") - if err != nil { - t.Fatal("Result must be nil due to void return type, unless splitmux api changed" + - err.Error()) - } - if result != nil { - t.Fatal("Result must be nil due to void return type, unless splitmux api changed") - } -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestSignalEmitGObjectReturnValue(t *testing.T) { - gst.Init(nil) - - elements := []string{ - "rtpbin", "name=rtpbin", - - "videotestsrc", "!", "videoconvert", "!", "queue", "!", - "x264enc", "bframes=0", "speed-preset=ultrafast", "tune=zerolatency", "name=encoder", "!", "queue", "!", "rtph264pay", "config-interval=1", "!", "rtpbin.send_rtp_sink_0", "rtpbin.send_rtp_src_0", "!", - - "udpsink", "host=127.0.0.1", "port=5510", "sync=false", "async=false", "rtpbin.send_rtcp_src_0", "!", - - "udpsink", "host=127.0.0.1", "port=5511", "sync=false", "async=false", - - "udpsrc", "port=5511", "caps=\"application/x-rtcp\"", "!", "rtpbin.recv_rtcp_sink_0", - } - - pipeline, err := gst.NewPipelineFromString(strings.Join(elements, " ")) - if err != nil { - t.Fatal(err) - } - - rtpbin, err := pipeline.GetElementByName("rtpbin") - if err != nil { - t.Fatal(err) - } - - errchan := make(chan error) - - rtpbin.Connect("on-new-ssrc", func(bin *gst.Element, sessionID uint, ssrc uint32) { - retI, err := rtpbin.Emit("get-internal-session", sessionID) - - if err != nil { - errchan <- err - } - - rtpSession, ok := retI.(*glib.Object) - - if !ok { - errchan <- errors.New("could not cast return value to *glib.Object") - } - - bw, err := rtpSession.GetProperty("bandwidth") - - if err != nil { - errchan <- err - } - - _ = bw - - close(errchan) - }) - - pipeline.SetState(gst.StatePlaying) - - err = <-errchan - - if err != nil { - t.Fatal(err) - } - - pipeline.SetState(gst.StateNull) - -} diff --git a/gst/gst_element_exports.go b/gst/gst_element_exports.go deleted file mode 100644 index d3667c6..0000000 --- a/gst/gst_element_exports.go +++ /dev/null @@ -1,248 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -//export goGstElementClassChangeState -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassChangeState(elem *C.GstElement, change C.GstStateChange) C.GstStateChangeReturn { - var ret StateChangeReturn - - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface { - ChangeState(*Element, StateChange) StateChangeReturn - }) - ret = iface.ChangeState(goElem, StateChange(change)) - - return C.GstStateChangeReturn(ret) -} - -//export goGstElementClassGetState -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassGetState(elem *C.GstElement, state, pending *C.GstState, timeout C.GstClockTime) C.GstStateChangeReturn { - var ret StateChangeReturn - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface { - GetState(*Element, time.Duration) (ret StateChangeReturn, current, pending State) // should this be a ClockTime? - }) - var cur, pend State - ret, cur, pend = iface.GetState(goElem, time.Duration(timeout)*time.Nanosecond) - if ret != StateChangeFailure { - *state = C.GstState(cur) - *pending = C.GstState(pend) - } - - return C.GstStateChangeReturn(ret) -} - -//export goGstElementClassNoMorePads -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassNoMorePads(elem *C.GstElement) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ NoMorePads(*Element) }) - iface.NoMorePads(goElem) -} - -//export goGstElementClassPadAdded -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassPadAdded(elem *C.GstElement, pad *C.GstPad) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ PadAdded(*Element, *Pad) }) - iface.PadAdded(goElem, wrapPad(toGObject(unsafe.Pointer(pad)))) -} - -//export goGstElementClassPadRemoved -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassPadRemoved(elem *C.GstElement, pad *C.GstPad) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ PadRemoved(*Element, *Pad) }) - iface.PadRemoved(goElem, wrapPad(toGObject(unsafe.Pointer(pad)))) -} - -//export goGstElementClassPostMessage -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassPostMessage(elem *C.GstElement, msg *C.GstMessage) C.gboolean { - var ret C.gboolean - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ PostMessage(*Element, *Message) bool }) - ret = gboolean(iface.PostMessage(goElem, wrapMessage(msg))) - - return ret -} - -//export goGstElementClassProvideClock -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassProvideClock(elem *C.GstElement) *C.GstClock { - var clock *Clock - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ ProvideClock(*Element) *Clock }) - clock = iface.ProvideClock(goElem) - - if clock == nil { - return nil - } - return clock.Instance() -} - -//export goGstElementClassQuery -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassQuery(elem *C.GstElement, query *C.GstQuery) C.gboolean { - var ret C.gboolean - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ Query(*Element, *Query) bool }) - ret = gboolean(iface.Query(goElem, wrapQuery(query))) - - return ret -} - -//export goGstElementClassReleasePad -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassReleasePad(elem *C.GstElement, pad *C.GstPad) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ ReleasePad(*Element, *Pad) }) - iface.ReleasePad(goElem, wrapPad(toGObject(unsafe.Pointer(pad)))) -} - -//export goGstElementClassRequestNewPad -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassRequestNewPad(elem *C.GstElement, templ *C.GstPadTemplate, name *C.gchar, caps *C.GstCaps) *C.GstPad { - var pad *Pad - - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface { - RequestNewPad(self *Element, templ *PadTemplate, name string, caps *Caps) *Pad - }) - pad = iface.RequestNewPad( - goElem, - wrapPadTemplate(toGObject(unsafe.Pointer(templ))), - C.GoString(name), - wrapCaps(caps), - ) - - if pad == nil { - return nil - } - return pad.Instance() -} - -//export goGstElementClassSendEvent -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassSendEvent(elem *C.GstElement, event *C.GstEvent) C.gboolean { - var ret C.gboolean - - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ SendEvent(*Element, *Event) bool }) - ret = gboolean(iface.SendEvent(goElem, wrapEvent(event))) - - return ret -} - -//export goGstElementClassSetBus -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassSetBus(elem *C.GstElement, bus *C.GstBus) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ SetBus(*Element, *Bus) }) - iface.SetBus(goElem, wrapBus(toGObject(unsafe.Pointer(bus)))) -} - -//export goGstElementClassSetClock -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassSetClock(elem *C.GstElement, clock *C.GstClock) C.gboolean { - var ret C.gboolean - - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ SetClock(*Element, *Clock) bool }) - ret = gboolean(iface.SetClock(goElem, wrapClock(toGObject(unsafe.Pointer(clock))))) - - return ret -} - -//export goGstElementClassSetContext -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassSetContext(elem *C.GstElement, ctx *C.GstContext) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface{ SetContext(*Element, *Context) }) - iface.SetContext(goElem, wrapContext(ctx)) -} - -//export goGstElementClassSetState -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassSetState(elem *C.GstElement, state C.GstState) C.GstStateChangeReturn { - var ret C.GstStateChangeReturn - - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface { - SetState(*Element, State) StateChangeReturn - }) - ret = C.GstStateChangeReturn(iface.SetState(goElem, State(state))) - - return ret -} - -//export goGstElementClassStateChanged -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstElementClassStateChanged(elem *C.GstElement, old, new, pending C.GstState) { - goElem := wrapElement(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(elem))}) - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(elem)) - - iface := subclass.(interface { - StateChanged(self *Element, old, new, pending State) - }) - iface.StateChanged(goElem, State(old), State(new), State(pending)) - -} diff --git a/gst/gst_element_factory.go b/gst/gst_element_factory.go deleted file mode 100644 index bbcc84f..0000000 --- a/gst/gst_element_factory.go +++ /dev/null @@ -1,172 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "fmt" - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// NewElement creates a new element using the factory of the given name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewElement(factory string) (*Element, error) { - return NewElementWithName(factory, "") -} - -// NewElementWithName creates a new element and sets it's name to the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewElementWithName(factory string, name string) (*Element, error) { - elemName := C.CString(factory) - defer C.free(unsafe.Pointer(elemName)) - var elem *C.GstElement - if name == "" { - elem = C.gst_element_factory_make((*C.gchar)(elemName), nil) - } else { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - elem = C.gst_element_factory_make((*C.gchar)(elemName), (*C.gchar)(cname)) - } - if elem == nil { - return nil, fmt.Errorf("could not create element: %s", factory) - } - return wrapElement(glib.TransferNone(unsafe.Pointer(elem))), nil -} - -// Create a new element of the type defined by the given elementfactory. The supplied list of properties, will be passed at object construction. -// -// this function is needed for gstreamer props that have the "Construct Only" flag, e.g.: -// https://gstreamer.freedesktop.org/documentation/audio/gstaudioaggregator.html?gi-language=c#GstAudioAggregator:force-live -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewElementWithProperties(factory string, properties map[string]interface{}) (*Element, error) { - props := make([]*C.char, 0) - values := make([]C.GValue, 0) - - for p, v := range properties { - cpropName := C.CString(p) - defer C.free(unsafe.Pointer(cpropName)) - - props = append(props, cpropName) - - value, err := glib.GValue(v) - - if err != nil { - return nil, err - } - - // value goes out of scope, but the finalizer must not run until the cgo call is finished - defer runtime.KeepAlive(value) - - values = append(values, *(*C.GValue)(value.Unsafe())) - } - - cfactory := C.CString(factory) - defer C.free(unsafe.Pointer(cfactory)) - - n := C.uint(len(properties)) - p := unsafe.SliceData(props) - v := unsafe.SliceData(values) - - elem := C.gst_element_factory_make_with_properties(cfactory, n, p, v) - - if elem == nil { - return nil, fmt.Errorf("could not create element: %s", factory) - } - return wrapElement(glib.TransferNone(unsafe.Pointer(elem))), nil -} - -// NewElementMany is a convenience wrapper around building many GstElements in a -// single function call. It returns an error if the creation of any element fails. A -// slice in the order the names were given is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewElementMany(elemNames ...string) ([]*Element, error) { - elems := make([]*Element, len(elemNames)) - for idx, name := range elemNames { - elem, err := NewElement(name) - if err != nil { - return nil, err - } - elems[idx] = elem - } - return elems, nil -} - -// ElementFactory wraps the GstElementFactory -type ElementFactory struct{ *PluginFeature } - -// Find returns the factory for the given plugin, or nil if it doesn't exist. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Find(name string) *ElementFactory { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - factory := C.gst_element_factory_find((*C.gchar)(cName)) - if factory == nil { - return nil - } - return wrapElementFactory(glib.TransferFull(unsafe.Pointer(factory))) -} - -// Instance returns the C GstFactory instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) Instance() *C.GstElementFactory { return C.toGstElementFactory(e.Unsafe()) } - -// CanSinkAllCaps checks if the factory can sink all possible capabilities. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) CanSinkAllCaps(caps *Caps) bool { - return gobool(C.gst_element_factory_can_sink_all_caps((*C.GstElementFactory)(e.Instance()), (*C.GstCaps)(caps.Instance()))) -} - -// CanSinkAnyCaps checks if the factory can sink any possible capability. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) CanSinkAnyCaps(caps *Caps) bool { - return gobool(C.gst_element_factory_can_sink_any_caps((*C.GstElementFactory)(e.Instance()), (*C.GstCaps)(caps.Instance()))) -} - -// CanSourceAllCaps checks if the factory can src all possible capabilities. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) CanSourceAllCaps(caps *Caps) bool { - return gobool(C.gst_element_factory_can_src_all_caps((*C.GstElementFactory)(e.Instance()), (*C.GstCaps)(caps.Instance()))) -} - -// CanSourceAnyCaps checks if the factory can src any possible capability. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) CanSourceAnyCaps(caps *Caps) bool { - return gobool(C.gst_element_factory_can_src_any_caps((*C.GstElementFactory)(e.Instance()), (*C.GstCaps)(caps.Instance()))) -} - -// GetMetadata gets the metadata on this factory with key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) GetMetadata(key string) string { - ckey := C.CString(key) - defer C.free(unsafe.Pointer(ckey)) - res := C.gst_element_factory_get_metadata((*C.GstElementFactory)(e.Instance()), (*C.gchar)(ckey)) - defer C.free(unsafe.Pointer(res)) - return C.GoString(res) -} - -// GetMetadataKeys gets the available keys for the metadata on this factory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *ElementFactory) GetMetadataKeys() []string { - keys := C.gst_element_factory_get_metadata_keys((*C.GstElementFactory)(e.Instance())) - if keys == nil { - return nil - } - defer C.g_strfreev(keys) - size := C.sizeOfGCharArray(keys) - return goStrings(size, keys) -} diff --git a/gst/gst_element_impl.go b/gst/gst_element_impl.go deleted file mode 100644 index 01e562d..0000000 --- a/gst/gst_element_impl.go +++ /dev/null @@ -1,206 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern GstStateChangeReturn goGstElementClassChangeState (GstElement * element, GstStateChange change); -extern GstStateChangeReturn goGstElementClassGetState (GstElement * element, GstState * state, GstState * pending, GstClockTime timeout); -extern void goGstElementClassNoMorePads (GstElement * element); -extern void goGstElementClassPadAdded (GstElement * element, GstPad * pad); -extern void goGstElementClassPadRemoved (GstElement * element, GstPad * pad); -extern gboolean goGstElementClassPostMessage (GstElement * element, GstMessage * msg); -extern GstClock * goGstElementClassProvideClock (GstElement * element); -extern gboolean goGstElementClassQuery (GstElement * element, GstQuery * query); -extern void goGstElementClassReleasePad (GstElement * element, GstPad * pad); -extern GstPad * goGstElementClassRequestNewPad (GstElement * element, GstPadTemplate * templ, const gchar * name, const GstCaps * caps); -extern gboolean goGstElementClassSendEvent (GstElement * element, GstEvent * event); -extern void goGstElementClassSetBus (GstElement * element, GstBus * bus); -extern gboolean goGstElementClassSetClock (GstElement * element, GstClock * clock); -extern void goGstElementClassSetContext (GstElement * element, GstContext * ctx); -extern GstStateChangeReturn goGstElementClassSetState (GstElement * element, GstState state); -extern void goGstElementClassStateChanged (GstElement * element, GstState old, GstState new, GstState pending); - -void setGstElementClassChangeState (GstElementClass * klass) { klass->change_state = goGstElementClassChangeState; } -void setGstElementClassGetState (GstElementClass * klass) { klass->get_state = goGstElementClassGetState; } -void setGstElementClassNoMorePads (GstElementClass * klass) { klass->no_more_pads = goGstElementClassNoMorePads; } -void setGstElementClassPadAdded (GstElementClass * klass) { klass->pad_added = goGstElementClassPadAdded; } -void setGstElementClassPadRemoved (GstElementClass * klass) { klass->pad_removed = goGstElementClassPadRemoved; } -void setGstElementClassPostMessage (GstElementClass * klass) { klass->post_message = goGstElementClassPostMessage; } -void setGstElementClassProvideClock (GstElementClass * klass) { klass->provide_clock = goGstElementClassProvideClock; } -void setGstElementClassQuery (GstElementClass * klass) { klass->query = goGstElementClassQuery; } -void setGstElementClassReleasePad (GstElementClass * klass) { klass->release_pad = goGstElementClassReleasePad; } -void setGstElementClassRequestNewPad (GstElementClass * klass) { klass->request_new_pad = goGstElementClassRequestNewPad; } -void setGstElementClassSendEvent (GstElementClass * klass) { klass->send_event = goGstElementClassSendEvent; } -void setGstElementClassSetBus (GstElementClass * klass) { klass->set_bus = goGstElementClassSetBus; } -void setGstElementClassSetClock (GstElementClass * klass) { klass->set_clock = goGstElementClassSetClock; } -void setGstElementClassSetContext (GstElementClass * klass) { klass->set_context = goGstElementClassSetContext; } -void setGstElementClassSetState (GstElementClass * klass) { klass->set_state = goGstElementClassSetState; } -void setGstElementClassStateChanged (GstElementClass * klass) { klass->state_changed = goGstElementClassStateChanged; } - -*/ -import "C" -import ( - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// ExtendsElement implements an Extendable object based on a GstElement. -var ExtendsElement glib.Extendable = &extendElement{parent: glib.ExtendsObject} - -// ElementImpl is an interface containing go equivalents of the virtual methods that can be -// overridden by a plugin extending an Element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ElementImpl interface { - // ChangeState is called by SetState to perform an incremental state change. - ChangeState(*Element, StateChange) StateChangeReturn - // GetState should return the states of the element - GetState(self *Element, timeout time.Duration) (ret StateChangeReturn, current, pending State) // should this also be a ClockTime? - // NoMorePads is called when there are no more pads on the element. - NoMorePads(*Element) - // PadAdded is called to add a pad to the element. - PadAdded(*Element, *Pad) - // PadRemoved is called to remove a pad from the element. - PadRemoved(*Element, *Pad) - // PostMessage is called when a message is posted to the element. Call Element.ParentPostMessage - // to have it posted on the bus after processing. - PostMessage(*Element, *Message) bool - // ProvideClock is called to retrieve the clock provided by the element. - ProvideClock(*Element) *Clock - // Query is called to perform a query on the element. - Query(*Element, *Query) bool - // ReleasePad is called when a request pad is to be released. - ReleasePad(*Element, *Pad) - // RequestNewPad is called when a new pad is requested from the element. - RequestNewPad(self *Element, templ *PadTemplate, name string, caps *Caps) *Pad - // SendEvent is called to send an event to the element. - SendEvent(*Element, *Event) bool - // SetBus is called to set the Bus on the element. - SetBus(*Element, *Bus) - // SetClock is called to set the clock on the element. - SetClock(*Element, *Clock) bool - // SetContext is called to set the Context on the element. - SetContext(*Element, *Context) - // SetState is called to set a new state on the element. - SetState(*Element, State) StateChangeReturn - // StateChanged is called immediately after a new state was set. - StateChanged(self *Element, old, new, pending State) -} - -type extendElement struct{ parent glib.Extendable } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendElement) Type() glib.Type { return glib.Type(C.gst_element_get_type()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendElement) ClassSize() int64 { return int64(C.sizeof_GstElementClass) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendElement) InstanceSize() int64 { return int64(C.sizeof_GstElement) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *extendElement) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) { - e.parent.InitClass(klass, elem) - - elemClass := C.toGstElementClass(klass) - - if _, ok := elem.(interface { - ChangeState(*Element, StateChange) StateChangeReturn - }); ok { - C.setGstElementClassChangeState(elemClass) - } - - if _, ok := elem.(interface { - GetState(self *Element, timeout time.Duration) (ret StateChangeReturn, current, pending State) - }); ok { - C.setGstElementClassGetState(elemClass) - } - - if _, ok := elem.(interface { - NoMorePads(*Element) - }); ok { - C.setGstElementClassNoMorePads(elemClass) - } - - if _, ok := elem.(interface { - PadAdded(*Element, *Pad) - }); ok { - C.setGstElementClassPadAdded(elemClass) - } - - if _, ok := elem.(interface { - PadRemoved(*Element, *Pad) - }); ok { - C.setGstElementClassPadRemoved(elemClass) - } - - if _, ok := elem.(interface { - PostMessage(*Element, *Message) bool - }); ok { - C.setGstElementClassPostMessage(elemClass) - } - - if _, ok := elem.(interface { - ProvideClock(*Element) *Clock - }); ok { - C.setGstElementClassProvideClock(elemClass) - } - - if _, ok := elem.(interface { - Query(*Element, *Query) bool - }); ok { - C.setGstElementClassQuery(elemClass) - } - - if _, ok := elem.(interface { - ReleasePad(*Element, *Pad) - }); ok { - C.setGstElementClassReleasePad(elemClass) - } - - if _, ok := elem.(interface { - RequestNewPad(self *Element, templ *PadTemplate, name string, caps *Caps) *Pad - }); ok { - C.setGstElementClassRequestNewPad(elemClass) - } - - if _, ok := elem.(interface { - SendEvent(*Element, *Event) bool - }); ok { - C.setGstElementClassSendEvent(elemClass) - } - - if _, ok := elem.(interface { - SetBus(*Element, *Bus) - }); ok { - C.setGstElementClassSetBus(elemClass) - } - - if _, ok := elem.(interface { - SetClock(*Element, *Clock) bool - }); ok { - C.setGstElementClassSetClock(elemClass) - } - - if _, ok := elem.(interface { - SetContext(*Element, *Context) - }); ok { - C.setGstElementClassSetContext(elemClass) - } - - if _, ok := elem.(interface { - SetState(*Element, State) StateChangeReturn - }); ok { - C.setGstElementClassSetState(elemClass) - } - - if _, ok := elem.(interface { - StateChanged(self *Element, old, new, pending State) - }); ok { - C.setGstElementClassStateChanged(elemClass) - } -} diff --git a/gst/gst_errors.go b/gst/gst_errors.go deleted file mode 100644 index f11a228..0000000 --- a/gst/gst_errors.go +++ /dev/null @@ -1,149 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" - -// Domain represents the different types of error domains. -type Domain string - -// ErrorDomain castings -const ( - DomainCore Domain = "CORE" - DomainLibrary Domain = "LIBRARY" - DomainResource Domain = "RESOURCE" - DomainStream Domain = "STREAM" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d Domain) toQuark() C.GQuark { - switch d { - case DomainCore: - return C.gst_core_error_quark() - case DomainLibrary: - return C.gst_library_error_quark() - case DomainResource: - return C.gst_resource_error_quark() - case DomainStream: - return C.gst_stream_error_quark() - default: - return C.gst_library_error_quark() - } -} - -// ErrorCode represents GstGError codes. -type ErrorCode int - -// Type castings of CoreErrors -const ( - CoreErrorFailed ErrorCode = C.GST_CORE_ERROR_FAILED // (1) – a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. - CoreErrorTooLazy ErrorCode = C.GST_CORE_ERROR_TOO_LAZY // (2) – do not use this except as a placeholder for deciding where to go while developing code. - CoreErrorNotImplemented ErrorCode = C.GST_CORE_ERROR_NOT_IMPLEMENTED // (3) – use this when you do not want to implement this functionality yet. - CoreErrorStateChange ErrorCode = C.GST_CORE_ERROR_STATE_CHANGE // (4) – used for state change errors. - CoreErrorPad ErrorCode = C.GST_CORE_ERROR_PAD // (5) – used for pad-related errors. - CoreErrorThread ErrorCode = C.GST_CORE_ERROR_THREAD // (6) – used for thread-related errors. - CoreErrorNegotiation ErrorCode = C.GST_CORE_ERROR_NEGOTIATION // (7) – used for negotiation-related errors. - CoreErrorEvent ErrorCode = C.GST_CORE_ERROR_EVENT // (8) – used for event-related errors. - CoreErrorSeek ErrorCode = C.GST_CORE_ERROR_SEEK // (9) – used for seek-related errors. - CoreErrorCaps ErrorCode = C.GST_CORE_ERROR_CAPS // (10) – used for caps-related errors. - CoreErrorTag ErrorCode = C.GST_CORE_ERROR_TAG // (11) – used for negotiation-related errors. - CoreErrorMissingPlugin ErrorCode = C.GST_CORE_ERROR_MISSING_PLUGIN // (12) – used if a plugin is missing. - CoreErrorClock ErrorCode = C.GST_CORE_ERROR_CLOCK // (13) – used for clock related errors. - CoreErrorDisabled ErrorCode = C.GST_CORE_ERROR_DISABLED // (14) – used if functionality has been disabled at compile time. -) - -// Type castings for LibraryErrors -const ( - LibraryErrorFailed ErrorCode = C.GST_LIBRARY_ERROR_FAILED // (1) – a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. - LibraryErrorTooLazy ErrorCode = C.GST_LIBRARY_ERROR_TOO_LAZY // (2) – do not use this except as a placeholder for deciding where to go while developing code. - LibraryErrorInit ErrorCode = C.GST_LIBRARY_ERROR_INIT // (3) – used when the library could not be opened. - LibraryErrorShutdown ErrorCode = C.GST_LIBRARY_ERROR_SHUTDOWN // (4) – used when the library could not be closed. - LibraryErrorSettings ErrorCode = C.GST_LIBRARY_ERROR_SETTINGS // (5) – used when the library doesn't accept settings. - LibraryErrorEncode ErrorCode = C.GST_LIBRARY_ERROR_ENCODE // (6) – used when the library generated an encoding error. -) - -// Type castings for ResourceErrors -const ( - ResourceErrorFailed ErrorCode = C.GST_RESOURCE_ERROR_FAILED // (1) – a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. - ResourceErrorTooLazy ErrorCode = C.GST_RESOURCE_ERROR_TOO_LAZY // (2) – do not use this except as a placeholder for deciding where to go while developing code. - ResourceErrorNotFound ErrorCode = C.GST_RESOURCE_ERROR_NOT_FOUND // (3) – used when the resource could not be found. - ResourceErrorBusy ErrorCode = C.GST_RESOURCE_ERROR_BUSY // (4) – used when resource is busy. - ResourceErrorOpenRead ErrorCode = C.GST_RESOURCE_ERROR_OPEN_READ // (5) – used when resource fails to open for reading. - ResourceErrorOpenWrite ErrorCode = C.GST_RESOURCE_ERROR_OPEN_WRITE // (6) – used when resource fails to open for writing. - ResourceErrorOpenReadWrite ErrorCode = C.GST_RESOURCE_ERROR_OPEN_READ_WRITE // (7) – used when resource cannot be opened for both reading and writing, or either (but unspecified which). - ResourceErrorClose ErrorCode = C.GST_RESOURCE_ERROR_CLOSE // (8) – used when the resource can't be closed. - ResourceErrorRead ErrorCode = C.GST_RESOURCE_ERROR_READ // (9) – used when the resource can't be read from. - ResourceErrorWrite ErrorCode = C.GST_RESOURCE_ERROR_WRITE // (10) – used when the resource can't be written to. - ResourceErrorSeek ErrorCode = C.GST_RESOURCE_ERROR_SEEK // (11) – used when a seek on the resource fails. - ResourceErrorSync ErrorCode = C.GST_RESOURCE_ERROR_SYNC // (12) – used when a synchronize on the resource fails. - ResourceErrorSettings ErrorCode = C.GST_RESOURCE_ERROR_SETTINGS // (13) – used when settings can't be manipulated on. - ResourceErrorNoSpaceLeft ErrorCode = C.GST_RESOURCE_ERROR_NO_SPACE_LEFT // (14) – used when the resource has no space left. - ResourceErrorNotAuthorized ErrorCode = C.GST_RESOURCE_ERROR_NOT_AUTHORIZED // (15) – used when the resource can't be opened due to missing authorization. (Since: 1.2.4) -) - -// Type castings for StreamErrors -const ( - StreamErrorFailed ErrorCode = C.GST_STREAM_ERROR_FAILED // (1) – a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. - StreamErrorTooLazy ErrorCode = C.GST_STREAM_ERROR_TOO_LAZY // (2) – do not use this except as a placeholder for deciding where to go while developing code. - StreamErrorNotImplemented ErrorCode = C.GST_STREAM_ERROR_NOT_IMPLEMENTED // (3) – use this when you do not want to implement this functionality yet. - StreamErrorTypeNotFound ErrorCode = C.GST_STREAM_ERROR_TYPE_NOT_FOUND // (4) – used when the element doesn't know the stream's type. - StreamErrorWrongType ErrorCode = C.GST_STREAM_ERROR_WRONG_TYPE // (5) – used when the element doesn't handle this type of stream. - StreamErrorCodecNotFound ErrorCode = C.GST_STREAM_ERROR_CODEC_NOT_FOUND // (6) – used when there's no codec to handle the stream's type. - StreamErrorDecode ErrorCode = C.GST_STREAM_ERROR_DECODE // (7) – used when decoding fails. - StreamErrorEncode ErrorCode = C.GST_STREAM_ERROR_ENCODE // (8) – used when encoding fails. - StreamErrorDemux ErrorCode = C.GST_STREAM_ERROR_DEMUX // (9) – used when demuxing fails. - StreamErrorMux ErrorCode = C.GST_STREAM_ERROR_MUX // (10) – used when muxing fails. - StreamErrorFormat ErrorCode = C.GST_STREAM_ERROR_FORMAT // (11) – used when the stream is of the wrong format (for example, wrong caps). - StreamErrorDecrypt ErrorCode = C.GST_STREAM_ERROR_DECRYPT // (12) – used when the stream is encrypted and can't be decrypted because this is not supported by the element. - StreamErrorDecryptNoKey ErrorCode = C.GST_STREAM_ERROR_DECRYPT_NOKEY // (13) – used when the stream is encrypted and can't be decrypted because no suitable key is available. -) - -// GError is a Go wrapper for a C GError in the context of GStreamer. It implements the error interface -// and provides additional functions for retrieving debug strings and details. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type GError struct { - errMsg, debugStr string - structure *Structure - - // used for message constructors - code ErrorCode -} - -// Message is an alias to `Error()`. It's for clarity when this object -// is parsed from a `GST_MESSAGE_INFO` or `GST_MESSAGE_WARNING`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *GError) Message() string { return e.Error() } - -// Error implements the error interface and returns the error message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *GError) Error() string { return e.errMsg } - -// DebugString returns any debug info alongside the error. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *GError) DebugString() string { return e.debugStr } - -// Structure returns the structure of the error message which may contain additional metadata. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *GError) Structure() *Structure { return e.structure } - -// Code returns the error code of the error message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *GError) Code() ErrorCode { return e.code } - -// NewGError wraps the given error inside a GError (to be used with message constructors). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewGError(code ErrorCode, err error) *GError { - return &GError{ - errMsg: err.Error(), - code: code, - } -} diff --git a/gst/gst_event.go b/gst/gst_event.go deleted file mode 100644 index a0c2c68..0000000 --- a/gst/gst_event.go +++ /dev/null @@ -1,473 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "runtime" - "time" - "unsafe" -) - -// Event is a go wrapper around a GstEvent. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Event struct { - ptr *C.GstEvent -} - -// // FromGstEventUnsafe is an alias to FromGstEventUnsafeNone. -// func FromGstEventUnsafe(ev unsafe.Pointer) *Event { return FromGstEventUnsafeNone(ev) } - -// FromGstEventUnsafeNone wraps the pointer to the given C GstEvent with the go type. -// A ref is taken and finalizer applied. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstEventUnsafeNone(ev unsafe.Pointer) *Event { - event := ToGstEvent(ev) - event.Ref() - runtime.SetFinalizer(event, (*Event).Unref) - return event -} - -// FromGstEventUnsafeFull wraps the pointer to the given C GstEvent without taking a ref. -// A finalizer is applied. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstEventUnsafeFull(ev unsafe.Pointer) *Event { - event := ToGstEvent(ev) - runtime.SetFinalizer(event, (*Event).Unref) - return event -} - -// ToGstEvent converts the given pointer into an Event without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstEvent(ev unsafe.Pointer) *Event { - return wrapEvent((*C.GstEvent)(ev)) -} - -// Instance returns the underlying GstEvent instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Instance() *C.GstEvent { return C.toGstEvent(unsafe.Pointer(e.ptr)) } - -// Type returns the type of the event -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Type() EventType { return EventType(e.Instance()._type) } - -// Timestamp returns the timestamp of the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Timestamp() time.Duration { - ts := e.Instance().timestamp - return time.Duration(uint64(ts)) * time.Nanosecond -} - -// Seqnum returns the sequence number of the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Seqnum() uint32 { - return uint32(e.Instance().seqnum) -} - -// Copy copies the event using the event specific copy function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Copy() *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_copy(e.Instance()))) -} - -// CopySegment parses a segment event and copies the Segment into the location given by segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) CopySegment(segment *Segment) { - C.gst_event_copy_segment(e.Instance(), segment.Instance()) -} - -// GetRunningTimeOffset retrieves the accumulated running time offset of the event. -// -// Events passing through GstPad that have a running time offset set via gst_pad_set_offset will get their -// offset adjusted according to the pad's offset. -// -// If the event contains any information that related to the running time, this information will need to be -// updated before usage with this offset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) GetRunningTimeOffset() int64 { - return int64(C.gst_event_get_running_time_offset(e.Instance())) -} - -// GetSeqnum retrieves the sequence number of a event. -// -// Events have ever-incrementing sequence numbers, which may also be set explicitly via SetSeqnum. Sequence -// numbers are typically used to indicate that a event corresponds to some other set of events or messages, -// for example an EOS event corresponding to a SEEK event. It is considered good practice to make this -// correspondence when possible, though it is not required. -// -// Note that events and messages share the same sequence number incrementor; two events or messages will never -// have the same sequence number unless that correspondence was made explicitly. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) GetSeqnum() uint32 { - return uint32(C.gst_event_get_seqnum(e.Instance())) -} - -// GetStructure accesses the structure of the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) GetStructure() *Structure { - return wrapStructure(C.gst_event_get_structure(e.Instance())) -} - -// HasName checks if event has the given name. This function is usually used to check the name of a custom event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) HasName(name string) bool { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - return gobool(C.gst_event_has_name(e.Instance(), (*C.gchar)(unsafe.Pointer(cName)))) -} - -// ParseBufferSize gets the format, minsize, maxsize and async-flag in the buffersize event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseBufferSize() (format Format, minSize, maxSize int64, async bool) { - var gformat C.GstFormat - var gmin, gmax C.gint64 - var gasync C.gboolean - C.gst_event_parse_buffer_size(e.Instance(), &gformat, &gmin, &gmax, &gasync) - return Format(gformat), int64(gmin), int64(gmax), gobool(gasync) -} - -// ParseCaps gets the caps from event. The caps remains valid as long as event remains valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseCaps() *Caps { - var caps *C.GstCaps - C.gst_event_parse_caps(e.Instance(), &caps) - return FromGstCapsUnsafeNone(unsafe.Pointer(caps)) -} - -// ParseFlushStop parses the FLUSH_STOP event and retrieve the reset_time member. Value reflects whether -// time should be reset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseFlushStop() (resetTime bool) { - var gbool C.gboolean - C.gst_event_parse_flush_stop(e.Instance(), &gbool) - return gobool(gbool) -} - -// ParseGap extracts timestamp and duration from a new GAP event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseGap() (timestamp, duration time.Duration) { - var ts, dur C.GstClockTime - C.gst_event_parse_gap(e.Instance(), &ts, &dur) - return time.Duration(ts), time.Duration(dur) -} - -// ParseGapFlags retrieves the gap flags that may have been set on a gap event with SetGapFlags. -// func (e *Event) ParseGapFlags() GapFlags { -// var out C.GstGapFlags -// C.gst_event_parse_gap_flags(e.Instance(), &out) -// return GapFlags(out) -// } - -// ParseGroupID returns a group ID if set on the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseGroupID() (ok bool, gid uint) { - var out C.guint - gok := C.gst_event_parse_group_id(e.Instance(), &out) - return gobool(gok), uint(out) -} - -// ParseInstantRateChange extracts rate and flags from an instant-rate-change event. -// func (e *Event) ParseInstantRateChange() {} - -// ParseInstantRateSyncTime extracts the rate multiplier and running times from an instant-rate-sync-time event. -// func (e *Event) ParseInstantRateChange() {} - -// ParseLatency gets the latency in the latency event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseLatency() ClockTime { - var out C.GstClockTime - C.gst_event_parse_latency(e.Instance(), &out) - return ClockTime(out) -} - -// ParseProtection parses an event containing protection system specific information and stores the results in -// system_id, data and origin. The data stored in system_id, origin and data are valid until event is released. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseProtection() (systemID string, data *Buffer, origin string) { - idPtr := C.malloc(C.sizeof_char * 1024) - originPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(idPtr)) - defer C.free(unsafe.Pointer(originPtr)) - var buf *C.GstBuffer - C.gst_event_parse_protection( - e.Instance(), - (**C.gchar)(unsafe.Pointer(&idPtr)), - &buf, - (**C.gchar)(unsafe.Pointer(&originPtr)), - ) - return C.GoString((*C.char)(unsafe.Pointer(idPtr))), wrapBuffer(buf), C.GoString((*C.char)(unsafe.Pointer(originPtr))) -} - -// ParseQOS gets the type, proportion, diff and timestamp in the qos event. See NewQOSEvent for more information about -// the different QoS values. -// -// timestamp will be adjusted for any pad offsets of pads it was passing through. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseQOS() (qTtype QOSType, proportion float64, diff ClockTimeDiff, timestamp ClockTime) { - var gtype C.GstQOSType - var gprop C.gdouble - var gdiff C.GstClockTimeDiff - var gts C.GstClockTime - C.gst_event_parse_qos( - e.Instance(), - >ype, &gprop, &gdiff, >s, - ) - return QOSType(gtype), float64(gprop), ClockTimeDiff(gdiff), ClockTime(gts) -} - -// ParseSeek parses a seek event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseSeek() (rate float64, format Format, flags SeekFlags, startType SeekType, start int64, stopType SeekType, stop int64) { - var grate C.gdouble - var gformat C.GstFormat - var gflags C.GstSeekFlags - var gstartType, gstopType C.GstSeekType - var gstart, gstop C.gint64 - C.gst_event_parse_seek(e.Instance(), &grate, &gformat, &gflags, &gstartType, &gstart, &gstopType, &gstop) - return float64(grate), Format(gformat), SeekFlags(gflags), SeekType(gstartType), int64(gstart), SeekType(gstopType), int64(gstop) -} - -// ParseSeekTrickModeInterval retrieves the trickmode interval that may have been set on a seek event with -// SetSeekTrickModeInterval. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseSeekTrickModeInterval() (interval ClockTime) { - var out C.GstClockTime - C.gst_event_parse_seek_trickmode_interval(e.Instance(), &out) - return ClockTime(out) -} - -// ParseSegment parses a segment event and stores the result in the given segment location. segment remains valid -// only until the event is freed. Don't modify the segment and make a copy if you want to modify it or store it for -// later use. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseSegment() *Segment { - var out *C.GstSegment - C.gst_event_parse_segment(e.Instance(), &out) - return wrapSegment(out) -} - -// ParseSegmentDone extracts the position and format from the segment done message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseSegmentDone() (Format, int64) { - var format C.GstFormat - var pos C.gint64 - C.gst_event_parse_segment_done(e.Instance(), &format, &pos) - return Format(format), int64(pos) -} - -// ParseSelectStreams parses the SELECT_STREAMS event and retrieve the contained streams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseSelectStreams() []*Stream { - var outList *C.GList - C.gst_event_parse_select_streams(e.Instance(), &outList) - return glistToStreamSlice(outList) -} - -// ParseSinkMessage parses the sink-message event. Unref msg after usage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseSinkMessage() *Message { - var msg *C.GstMessage - C.gst_event_parse_sink_message(e.Instance(), &msg) - return wrapMessage(msg) -} - -// ParseStep parses a step message -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseStep() (format Format, amount uint64, rate float64, flush, intermediate bool) { - var gformat C.GstFormat - var gamount C.guint64 - var grate C.gdouble - var gflush, gintermediate C.gboolean - C.gst_event_parse_step(e.Instance(), &gformat, &gamount, &grate, &gflush, &gintermediate) - return Format(gformat), uint64(gamount), float64(grate), gobool(gflush), gobool(gintermediate) -} - -// ParseStream parses a stream-start event and extract the GstStream from it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseStream() *Stream { - var stream *C.GstStream - C.gst_event_parse_stream(e.Instance(), &stream) - return FromGstStreamUnsafeFull(unsafe.Pointer(stream)) -} - -// ParseStreamCollection parses a stream collection from the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseStreamCollection() *StreamCollection { - stream := &C.GstStreamCollection{} - C.gst_event_parse_stream_collection(e.Instance(), &stream) - return FromGstStreamCollectionUnsafeFull(unsafe.Pointer(stream)) -} - -// ParseStreamFlags parses the stream flags from an event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseStreamFlags() StreamFlags { - var out C.GstStreamFlags - C.gst_event_parse_stream_flags(e.Instance(), &out) - return StreamFlags(out) -} - -// ParseStreamGroupDone parses a stream-group-done event and store the result in the given group_id location. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseStreamGroupDone() uint { - var out C.guint - C.gst_event_parse_stream_group_done(e.Instance(), &out) - return uint(out) -} - -// ParseStreamStart parses a stream-id event and store the result in the given stream_id location. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseStreamStart() string { - idPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(idPtr) - - C.gst_event_parse_stream_start(e.Instance(), (**C.gchar)(unsafe.Pointer(&idPtr))) - return C.GoString((*C.char)(unsafe.Pointer(idPtr))) -} - -// ParseTag parses a tag event and stores the results in the given taglist location. Do not modify or free the returned -// tag list. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseTag() *TagList { - var out *C.GstTagList - C.gst_event_parse_tag(e.Instance(), &out) - return FromGstTagListUnsafeNone(unsafe.Pointer(out)) -} - -// ParseTOC parses a TOC event and store the results in the given toc and updated locations. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseTOC() (toc *TOC, updated bool) { - var out *C.GstToc - var gupdated C.gboolean - C.gst_event_parse_toc(e.Instance(), &out, &gupdated) - return FromGstTOCUnsafeFull(unsafe.Pointer(out)), gobool(gupdated) -} - -// ParseTOCSelect parses a TOC select event and store the results in the given uid location. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) ParseTOCSelect() string { - idPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(idPtr)) - C.gst_event_parse_toc_select(e.Instance(), (**C.gchar)(unsafe.Pointer(&idPtr))) - return C.GoString((*C.char)(unsafe.Pointer(idPtr))) -} - -// Ref increases the ref count on the event by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Ref() *Event { - C.gst_event_ref(e.Instance()) - return e -} - -// SetGapFlags sets flags on event to give additional information about the reason for the GST_EVENT_GAP. -// func (e *Event) SetGapFlags(flags GapFlags) { -// C.gst_event_set_gap_flags(e.Instance(), C.GstGapFlags(flags)) -// } - -// NextGroupID returns a new group id that can be used for an event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NextGroupID() uint { - return uint(C.gst_util_group_id_next()) -} - -// SetGroupID sets the group id for the stream. All streams that have the same group id are supposed to be played -// together, i.e. all streams inside a container file should have the same group id but different stream ids. The -// group id should change each time the stream is started, resulting in different group ids each time a file is -// played for example. -// -// Use NextGroupID to get a new group id. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) SetGroupID(id uint) { - C.gst_event_set_group_id(e.Instance(), C.guint(id)) -} - -// SetRunningTimeOffset sets the running time offset of a event. See GetRunningTimeOffset for more information. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) SetRunningTimeOffset(offset int64) { - C.gst_event_set_running_time_offset(e.Instance(), C.gint64(offset)) -} - -// SetSeekTrickModeInterval sets a trickmode interval on a (writable) seek event. Elements that support TRICKMODE_KEY_UNITS -// seeks SHOULD use this as the minimal interval between each frame they may output. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) SetSeekTrickModeInterval(interval ClockTime) { - C.gst_event_set_seek_trickmode_interval(e.Instance(), C.GstClockTime(interval)) -} - -// SetSeqnum sets the sequence number of a event. -// -// This function might be called by the creator of a event to indicate that the event relates to other events or messages. -// See GetSeqnum for more information. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) SetSeqnum(seqnum uint32) { - C.gst_event_set_seqnum(e.Instance(), C.guint32(seqnum)) -} - -// SetStream sets the stream on the stream-start event -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) SetStream(stream *Stream) { - C.gst_event_set_stream(e.Instance(), stream.Instance()) -} - -// SetStreamFlags sets the stream flags on the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) SetStreamFlags(flags StreamFlags) { - C.gst_event_set_stream_flags(e.Instance(), C.GstStreamFlags(flags)) -} - -// Unref decreases the refcount of an event, freeing it if the refcount reaches 0. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) Unref() { C.gst_event_unref(e.Instance()) } - -// WritableStructure returns a writable version of the structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *Event) WritableStructure() *Structure { - return wrapStructure(C.gst_event_writable_structure(e.Instance())) -} diff --git a/gst/gst_event_constructors.go b/gst/gst_event_constructors.go deleted file mode 100644 index 209d0ad..0000000 --- a/gst/gst_event_constructors.go +++ /dev/null @@ -1,410 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" -) - -// NewBufferSizeEvent creates a new buffersize event. The event is sent downstream and notifies -// elements that they should provide a buffer of the specified dimensions. -// -// When the async flag is set, a thread boundary is preferred. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferSizeEvent(format Format, minSize, maxSize int64, async bool) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_buffer_size( - C.GstFormat(format), - C.gint64(minSize), - C.gint64(maxSize), - gboolean(async), - ))) -} - -// NewCapsEvent creates a new CAPS event for caps. The caps event can only travel downstream synchronized with -// the buffer flow and contains the format of the buffers that will follow after the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCapsEvent(caps *Caps) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_caps( - caps.Instance(), - ))) -} - -// NewEOSEvent creates a new EOS event. The eos event can only travel downstream synchronized with the buffer flow. -// Elements that receive the EOS event on a pad can return FlowEOS as a FlowReturn when data after the EOS event arrives. -// -// The EOS event will travel down to the sink elements in the pipeline which will then post the MessageEOS on the bus -// after they have finished playing any buffered data. -// -// When all sinks have posted an EOS message, an EOS message is forwarded to the application. -// -// The EOS event itself will not cause any state transitions of the pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewEOSEvent() *Event { return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_eos())) } - -// NewFlushStartEvent allocates a new flush start event. The flush start event can be sent upstream and downstream and -// travels out-of-bounds with the dataflow. -// -// It marks pads as being flushing and will make them return FlowFlushing when used for data flow with gst_pad_push, -// gst_pad_chain, gst_pad_get_range and gst_pad_pull_range. Any event (except a EventFlushSStop) received on a flushing -// pad will return FALSE immediately. -// -// Elements should unlock any blocking functions and exit their streaming functions as fast as possible when this event is received. -// -// This event is typically generated after a seek to flush out all queued data in the pipeline so that the new media is played as soon as possible. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewFlushStartEvent() *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_flush_start())) -} - -// NewFlushStopEvent allocates a new flush stop event. The flush stop event can be sent upstream and downstream and travels serialized with the -// dataflow. It is typically sent after sending a FLUSH_START event to make the pads accept data again. -// -// Elements can process this event synchronized with the dataflow since the preceding FLUSH_START event stopped the dataflow. -// -// This event is typically generated to complete a seek and to resume dataflow. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewFlushStopEvent(resetTime bool) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_flush_stop(gboolean(resetTime)))) -} - -// NewGapEvent creates a new GAP event. A gap event can be thought of as conceptually equivalent to a buffer to signal that there is no data for a -// certain amount of time. This is useful to signal a gap to downstream elements which may wait for data, such as muxers or mixers or overlays, -// especially for sparse streams such as subtitle streams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewGapEvent(timestamp, duration ClockTime) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_gap( - C.GstClockTime(timestamp), - C.GstClockTime(duration), - ))) -} - -// NewInstantRateChangeEvent creates a new instant-rate-change event. This event is sent by seek handlers (e.g. demuxers) when receiving a seek with the -// GST_SEEK_FLAG_INSTANT_RATE_CHANGE and signals to downstream elements that the playback rate in the existing segment should be immediately multiplied -// by the rate_multiplier factor. -// -// The flags provided replace any flags in the existing segment, for the flags within the GST_SEGMENT_INSTANT_FLAGS set. Other GstSegmentFlags are ignored -// and not transferred in the event. -// func NewInstantRateChangeEvent(rateMultiplier float64, newFlags SegmentFlags) *Event { -// return wrapEvent(C.gst_event_new_instant_rate_change( -// C.gdouble(rateMultiplier), -// C.GstSegmentFlags(newFlags), -// )) -// } - -// NewInstantRateSyncTimeEvent creates a new instant-rate-sync-time event. This event is sent by the pipeline to notify elements handling the instant-rate-change -// event about the running-time when the new rate should be applied. The running time may be in the past when elements handle this event, which can lead to switching -// artifacts. The magnitude of those depends on the exact timing of event delivery to each element and the magnitude of the change in playback rate being applied. -// -// The running_time and upstream_running_time are the same if this is the first instant-rate adjustment, but will differ for later ones to compensate for the -// accumulated offset due to playing at a rate different to the one indicated in the playback segments. -// func NewInstantRateSyncTimeEvent(rateMultiplier float64, runningTime, upstreamRunningTime time.Duration) *Event { -// return wrapEvent(C.gst_event_new_instant_rate_sync_time( -// C.gdouble(rateMultiplier), -// C.GstClockTime(durationToClockTime(runningTime)), -// C.GstClockTime(durationToClockTime(upstreamRunningTime)), -// )) -// } - -// NewLatencyEvent creates a new latency event. The event is sent upstream from the sinks and notifies elements that they should add an additional latency to the -// running time before synchronizing against the clock. -// -// The latency is mostly used in live sinks and is always expressed in the time format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewLatencyEvent(latency ClockTime) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_latency( - C.GstClockTime(latency), - ))) -} - -// NewNavigationEvent creates a new navigation event from the given description. The event will take ownership of the structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewNavigationEvent(structure *Structure) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_navigation( - structure.Instance(), - ))) -} - -// NewProtectionEvent creates a new event containing information specific to a particular protection system (uniquely identified by system_id), by which that protection system -// can acquire key(s) to decrypt a protected stream. -// -// In order for a decryption element to decrypt media protected using a specific system, it first needs all the protection system specific information necessary to acquire the -// decryption key(s) for that stream. The functions defined here enable this information to be passed in events from elements that extract it (e.g., ISOBMFF demuxers, MPEG DASH -// demuxers) to protection decrypter elements that use it. -// -// Events containing protection system specific information are created using NewProtectionEvent, and they can be parsed by downstream elements using ParseProtection. -// -// In Common Encryption, protection system specific information may be located within ISOBMFF files, both in movie (moov) boxes and movie fragment (moof) boxes; it may also be -// contained in ContentProtection elements within MPEG DASH MPDs. The events created by gst_event_new_protection contain data identifying from which of these locations the encapsulated -// protection system specific information originated. This origin information is required as some protection systems use different encodings depending upon where the information originates. -// -// The events returned by NewProtectionEvent are implemented in such a way as to ensure that the most recently-pushed protection info event of a particular origin and system_id will be -// stuck to the output pad of the sending element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewProtectionEvent(systemID string, buffer *Buffer, origin string) *Event { - cSystemID := C.CString(systemID) - cOrigin := C.CString(origin) - defer C.free(unsafe.Pointer(cSystemID)) - defer C.free(unsafe.Pointer(cOrigin)) - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_protection( - (*C.gchar)(unsafe.Pointer(cSystemID)), - buffer.Instance(), - (*C.gchar)(unsafe.Pointer(cOrigin)), - ))) -} - -// NewQOSEvent allocates a new qos event with the given values. The QOS event is generated in an element that wants an upstream element to either reduce or increase its rate because of -// high/low CPU load or other resource usage such as network performance or throttling. Typically sinks generate these events for each buffer they receive. -// -// Type indicates the reason for the QoS event. GST_QOS_TYPE_OVERFLOW is used when a buffer arrived in time or when the sink cannot keep up with the upstream datarate. GST_QOS_TYPE_UNDERFLOW -// is when the sink is not receiving buffers fast enough and thus has to drop late buffers. GST_QOS_TYPE_THROTTLE is used when the datarate is artificially limited by the application, for -// example to reduce power consumption. -// -// Proportion indicates the real-time performance of the streaming in the element that generated the QoS event (usually the sink). The value is generally computed based on more long term -// statistics about the streams timestamps compared to the clock. A value < 1.0 indicates that the upstream element is producing data faster than real-time. A value > 1.0 indicates that the -// upstream element is not producing data fast enough. 1.0 is the ideal proportion value. The proportion value can safely be used to lower or increase the quality of the element. -// -// Diff is the difference against the clock in running time of the last buffer that caused the element to generate the QOS event. A negative value means that the buffer with timestamp arrived -// in time. A positive value indicates how late the buffer with timestamp was. When throttling is enabled, diff will be set to the requested throttling interval. -// -// Timestamp is the timestamp of the last buffer that cause the element to generate the QOS event. It is expressed in running time and thus an ever increasing value. -// -// The upstream element can use the diff and timestamp values to decide whether to process more buffers. For positive diff, all buffers with timestamp <= timestamp + diff will certainly arrive -// late in the sink as well. A (negative) diff value so that timestamp + diff would yield a result smaller than 0 is not allowed. -// -// The application can use general event probes to intercept the QoS event and implement custom application specific QoS handling. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewQOSEvent(qType QOSType, proportion float64, diff ClockTimeDiff, timestamp ClockTime) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_qos( - C.GstQOSType(qType), - C.gdouble(proportion), - C.GstClockTimeDiff(diff), - C.GstClockTime(timestamp), - ))) -} - -// NewReconfigureEvent creates a new reconfigure event. The purpose of the reconfigure event is to travel upstream and make elements renegotiate their caps or reconfigure their buffer pools. -// This is useful when changing properties on elements or changing the topology of the pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewReconfigureEvent() *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_reconfigure())) -} - -// NewSeekEvent allocates a new seek event with the given parameters. -// -// The seek event configures playback of the pipeline between start to stop at the speed given in rate, also called a playback segment. The start and stop values are expressed in format. -// -// A rate of 1.0 means normal playback rate, 2.0 means double speed. Negatives values means backwards playback. A value of 0.0 for the rate is not allowed and should be accomplished instead -// by PAUSING the pipeline. -// -// A pipeline has a default playback segment configured with a start position of 0, a stop position of -1 and a rate of 1.0. The currently configured playback segment can be queried with -// GST_QUERY_SEGMENT. -// -// start_type and stop_type specify how to adjust the currently configured start and stop fields in playback segment. Adjustments can be made relative or absolute to the last configured values. -// A type of GST_SEEK_TYPE_NONE means that the position should not be updated. -// -// When the rate is positive and start has been updated, playback will start from the newly configured start position. -// -// For negative rates, playback will start from the newly configured stop position (if any). If the stop position is updated, it must be different from -1 (#GST_CLOCK_TIME_NONE) for negative rates. -// -// It is not possible to seek relative to the current playback position, to do this, PAUSE the pipeline, query the current playback position with GST_QUERY_POSITION and update the playback segment -// current position with a GST_SEEK_TYPE_SET to the desired position. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSeekEvent(rate float64, format Format, flags SeekFlags, startType SeekType, start int64, stopType SeekType, stop int64) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_seek( - C.gdouble(rate), - C.GstFormat(format), - C.GstSeekFlags(flags), - C.GstSeekType(startType), - C.gint64(start), - C.GstSeekType(stopType), - C.gint64(stop), - ))) -} - -// NewSegmentEvent creates a new SEGMENT event for segment. The segment event can only travel downstream synchronized with the buffer flow and contains timing information and playback properties -// for the buffers that will follow. -// -// The segment event marks the range of buffers to be processed. All data not within the segment range is not to be processed. This can be used intelligently by plugins to apply more efficient -// methods of skipping unneeded data. The valid range is expressed with the start and stop values. -// -// The time value of the segment is used in conjunction with the start value to convert the buffer timestamps into the stream time. This is usually done in sinks to report the current stream_time. -// time represents the stream_time of a buffer carrying a timestamp of start. time cannot be -1. -// -// start cannot be -1, stop can be -1. If there is a valid stop given, it must be greater or equal the start, including when the indicated playback rate is < 0. -// -// The applied_rate value provides information about any rate adjustment that has already been made to the timestamps and content on the buffers of the stream. (@rate * applied_rate) should always -// equal the rate that has been requested for playback. For example, if an element has an input segment with intended playback rate of 2.0 and applied_rate of 1.0, it can adjust incoming timestamps -// and buffer content by half and output a segment event with rate of 1.0 and applied_rate of 2.0 -// -// After a segment event, the buffer stream time is calculated with: -// -// time + (TIMESTAMP(buf) - start) * ABS (rate * applied_rate) -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSegmentEvent(segment *Segment) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_segment( - segment.Instance(), - ))) -} - -// NewSegmentDoneEvent creates a new segment-done event. This event is sent by elements that finish playback of a segment as a result of a segment seek. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSegmentDoneEvent(format Format, position int64) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_segment_done( - C.GstFormat(format), C.gint64(position), - ))) -} - -// NewSelectStreamsEvent allocates a new select-streams event. -// -// The select-streams event requests the specified streams to be activated. -// -// The list of streams corresponds to the "Stream ID" of each stream to be activated. Those ID can be obtained via the GstStream objects present in EventStreamStart, -// EventStreamCollection or MessageStreamCollection. -// -// Note: The list of streams can not be empty. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSelectStreamsEvent(streams []*Stream) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_select_streams( - streamSliceToGlist(streams), - ))) -} - -// NewSinkMessageEvent creates a new sink-message event. The purpose of the sink-message event is to instruct a sink to post the message contained in the event -// synchronized with the stream. -// -// name is used to store multiple sticky events on one pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSinkMessageEvent(name string, msg *Message) *Event { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_sink_message( - (*C.gchar)(unsafe.Pointer(cName)), - msg.Instance(), - ))) -} - -// NewStepEvent createss a new step event. The purpose of the step event is to instruct a sink to skip amount (expressed in format) of media. It can be used to -// implement stepping through the video frame by frame or for doing fast trick modes. -// -// A rate of <= 0.0 is not allowed. Pause the pipeline, for the effect of rate = 0.0 or first reverse the direction of playback using a seek event to get the same -// effect as rate < 0.0. -// -// The flush flag will clear any pending data in the pipeline before starting the step operation. -// -// The intermediate flag instructs the pipeline that this step operation is part of a larger step operation. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStepEvent(format Format, amount uint64, rate float64, flush, intermediate bool) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_step( - C.GstFormat(format), - C.guint64(amount), - C.gdouble(rate), - gboolean(flush), - gboolean(intermediate), - ))) -} - -// NewStreamCollectionEvent creates a new STREAM_COLLECTION event. The stream collection event can only travel downstream synchronized with the buffer flow. -// -// Source elements, demuxers and other elements that manage collections of streams and post GstStreamCollection messages on the bus also send this event downstream -// on each pad involved in the collection, so that activation of a new collection can be tracked through the downstream data flow. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamCollectionEvent(collection *StreamCollection) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_stream_collection( - collection.Instance(), - ))) -} - -// NewStreamGroupDoneEvent creates a new Stream Group Done event. The stream-group-done event can only travel downstream synchronized with the buffer flow. Elements -// that receive the event on a pad should handle it mostly like EOS, and emit any data or pending buffers that would depend on more data arriving and unblock, since -// there won't be any more data. -// -// This event is followed by EOS at some point in the future, and is generally used when switching pads - to unblock downstream so that new pads can be exposed before -// sending EOS on the existing pads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamGroupDoneEvent(groupID uint) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_stream_group_done(C.guint(groupID)))) -} - -// NewStreamStartEvent creates a new STREAM_START event. The stream start event can only travel downstream synchronized with the buffer flow. It is expected to be the -// first event that is sent for a new stream. -// -// Source elements, demuxers and other elements that create new streams are supposed to send this event as the first event of a new stream. It should not be sent after a -// flushing seek or in similar situations and is used to mark the beginning of a new logical stream. Elements combining multiple streams must ensure that this event is only -// forwarded downstream once and not for every single input stream. -// -// The stream_id should be a unique string that consists of the upstream stream-id, / as separator and a unique stream-id for this specific stream. A new stream-id should -// only be created for a stream if the upstream stream is split into (potentially) multiple new streams, e.g. in a demuxer, but not for every single element in the pipeline. -// Pad CreateStreamID can be used to create a stream-id. There are no particular semantics for the stream-id, though it should be deterministic (to support stream matching) -// and it might be used to order streams (besides any information conveyed by stream flags). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamStartEvent(streamID string) *Event { - cName := C.CString(streamID) - defer C.free(unsafe.Pointer(cName)) - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_stream_start( - (*C.gchar)(unsafe.Pointer(cName)), - ))) -} - -// NewTagEvent generates a metadata tag event from the given taglist. -// -// The scope of the taglist specifies if the taglist applies to the complete medium or only to this specific stream. As the tag event is a sticky event, elements should merge -// tags received from upstream with a given scope with their own tags with the same scope and create a new tag event from it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTagEvent(tagList *TagList) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_tag( - tagList.Ref().Instance(), - ))) -} - -// NewTOCEvent generates a TOC event from the given toc. The purpose of the TOC event is to inform elements that some kind of the TOC was found. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTOCEvent(toc *TOC, updated bool) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_toc( - toc.Instance(), gboolean(updated), - ))) -} - -// NewTOCSelectEvent generates a TOC select event with the given uid. The purpose of the TOC select event is to start playback based on the TOC's -// entry with the given uid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTOCSelectEvent(uid string) *Event { - cUID := C.CString(uid) - defer C.free(unsafe.Pointer(cUID)) - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_toc_select( - (*C.gchar)(unsafe.Pointer(cUID)), - ))) -} - -// NewCustomEvent creates a new custom-typed event. This can be used for anything not handled by other event-specific functions to pass an event -// to another element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCustomEvent(eventType EventType, structure *Structure) *Event { - return FromGstEventUnsafeFull(unsafe.Pointer(C.gst_event_new_custom( - C.GstEventType(eventType), structure.Instance(), - ))) -} diff --git a/gst/gst_ghost_pad.go b/gst/gst_ghost_pad.go deleted file mode 100644 index c525317..0000000 --- a/gst/gst_ghost_pad.go +++ /dev/null @@ -1,240 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// GhostPad is a go representation of a GstGhostPad. -type GhostPad struct{ *ProxyPad } - -// FromGstGhostPadUnsafeNone wraps the given GstGhostPad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstGhostPadUnsafeNone(pad unsafe.Pointer) *GhostPad { - return &GhostPad{&ProxyPad{&Pad{wrapObject(glib.TransferNone(pad))}}} -} - -// FromGstGhostPadUnsafeFull wraps the given GstGhostPad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstGhostPadUnsafeFull(pad unsafe.Pointer) *GhostPad { - return &GhostPad{&ProxyPad{&Pad{wrapObject(glib.TransferFull(pad))}}} - -} - -// NewGhostPad create a new ghostpad with target as the target. The direction will be -// taken from the target pad. The target must be unlinked. If name is empty, one will be -// selected. -// -// Will ref the target. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewGhostPad(name string, target *Pad) *GhostPad { - var cName *C.gchar - if name != "" { - cStr := C.CString(name) - defer C.free(unsafe.Pointer(cStr)) - cName = (*C.gchar)(unsafe.Pointer(cStr)) - } - pad := C.gst_ghost_pad_new( - cName, - target.Instance(), - ) - if pad == nil { - return nil - } - return FromGstGhostPadUnsafeNone(unsafe.Pointer(pad)) -} - -// NewGhostPadFromTemplate creates a new ghostpad with target as the target. The direction will be taken -// from the target pad. The template used on the ghostpad will be template. If name is empty one will be -// selected. -// -// Will ref the target. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewGhostPadFromTemplate(name string, target *Pad, tmpl *PadTemplate) *GhostPad { - var cName *C.gchar - if name != "" { - cStr := C.CString(name) - defer C.free(unsafe.Pointer(cStr)) - cName = (*C.gchar)(unsafe.Pointer(cStr)) - } - pad := C.gst_ghost_pad_new_from_template( - cName, - target.Instance(), - tmpl.Instance(), - ) - if pad == nil { - return nil - } - return FromGstGhostPadUnsafeNone(unsafe.Pointer(pad)) -} - -// NewGhostPadNoTarget creates a new ghostpad without a target with the given direction. A target can be set on the -// ghostpad later with the SetTarget function. If name is empty, one will be selected. -// -// The created ghostpad will not have a padtemplate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewGhostPadNoTarget(name string, direction PadDirection) *GhostPad { - var cName *C.gchar - if name != "" { - cStr := C.CString(name) - defer C.free(unsafe.Pointer(cStr)) - cName = (*C.gchar)(unsafe.Pointer(cStr)) - } - pad := C.gst_ghost_pad_new_no_target( - cName, - C.GstPadDirection(direction), - ) - if pad == nil { - return nil - } - return FromGstGhostPadUnsafeNone(unsafe.Pointer(pad)) -} - -// NewGhostPadNoTargetFromTemplate creates a new ghostpad based on templ, without setting a target. The direction will be taken -// from the templ. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewGhostPadNoTargetFromTemplate(name string, tmpl *PadTemplate) *GhostPad { - var cName *C.gchar - if name != "" { - cStr := C.CString(name) - defer C.free(unsafe.Pointer(cStr)) - cName = (*C.gchar)(unsafe.Pointer(cStr)) - } - pad := C.gst_ghost_pad_new_no_target_from_template( - cName, - tmpl.Instance(), - ) - if pad == nil { - return nil - } - return FromGstGhostPadUnsafeNone(unsafe.Pointer(pad)) -} - -// Instance returns the underlying ghost pad instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GhostPad) Instance() *C.GstGhostPad { return C.toGstGhostPad(g.Unsafe()) } - -// GetTarget gets the target pad of gpad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GhostPad) GetTarget() *Pad { - pad := C.gst_ghost_pad_get_target(g.Instance()) - if pad == nil { - return nil - } - return FromGstPadUnsafeFull(unsafe.Pointer(pad)) -} - -// SetTarget sets the new target of the ghostpad gpad. Any existing target is unlinked and links to the new target are -// established. if newtarget is nil the target will be cleared. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GhostPad) SetTarget(target *Pad) bool { - var ctarget *C.GstPad - - if target != nil { - ctarget = target.Instance() - } - - return gobool(C.gst_ghost_pad_set_target( - g.Instance(), ctarget, - )) -} - -// ActivateModeDefault invokes the default activate mode function of a ghost pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GhostPad) ActivateModeDefault(parent *Object, mode PadMode, active bool) bool { - if parent == nil { - return gobool(C.gst_ghost_pad_activate_mode_default( - C.toGstPad(g.Unsafe()), nil, C.GstPadMode(mode), gboolean(active), - )) - } - return gobool(C.gst_ghost_pad_activate_mode_default( - C.toGstPad(g.Unsafe()), parent.Instance(), C.GstPadMode(mode), gboolean(active), - )) -} - -// InternalActivateModeDefault invokes the default activate mode function of a proxy pad that is owned by a ghost pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *GhostPad) InternalActivateModeDefault(parent *Object, mode PadMode, active bool) bool { - if parent == nil { - return gobool(C.gst_ghost_pad_internal_activate_mode_default( - C.toGstPad(g.Unsafe()), nil, C.GstPadMode(mode), gboolean(active), - )) - } - return gobool(C.gst_ghost_pad_internal_activate_mode_default( - C.toGstPad(g.Unsafe()), parent.Instance(), C.GstPadMode(mode), gboolean(active), - )) -} - -// ProxyPad is a go representation of a GstProxyPad. -type ProxyPad struct{ *Pad } - -// toPad returns the underling GstPad of this ProxyPad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) toPad() *C.GstPad { return C.toGstPad(p.Unsafe()) } - -// Instance returns the underlying GstProxyPad instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) Instance() *C.GstProxyPad { return C.toGstProxyPad(p.Unsafe()) } - -// GetInternal gets the internal pad of pad. -// -// The internal pad of a GhostPad is the internally used pad of opposite direction, which is used to link to the target. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) GetInternal() *ProxyPad { - pad := C.gst_proxy_pad_get_internal(p.Instance()) - proxyPad := wrapProxyPad(toGObject(unsafe.Pointer(pad))) - runtime.SetFinalizer(proxyPad, (*ProxyPad).Unref) - return proxyPad -} - -// ChainDefault invokes the default chain function of the proxy pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) ChainDefault(parent *Object, buffer *Buffer) FlowReturn { - return FlowReturn(C.gst_proxy_pad_chain_default(p.toPad(), parent.Instance(), buffer.Instance())) -} - -// ChainListDefault invokes the default chain list function of the proxy pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) ChainListDefault(parent *Object, bufferList *BufferList) FlowReturn { - return FlowReturn(C.gst_proxy_pad_chain_list_default(p.toPad(), parent.Instance(), bufferList.Instance())) -} - -// GetRangeDefault invokes the default getrange function of the proxy pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) GetRangeDefault(parent *Object, offset uint64, size uint) (FlowReturn, *Buffer) { - var buf *C.GstBuffer - ret := FlowReturn(C.gst_proxy_pad_getrange_default(p.toPad(), parent.Instance(), C.guint64(offset), C.guint(size), &buf)) - if ret != FlowError { - return ret, FromGstBufferUnsafeFull(unsafe.Pointer(buf)) - } - return ret, nil -} - -// GetInternalLinksDefault invokes the default iterate internal links function of the proxy pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *ProxyPad) GetInternalLinksDefault(parent *Object) ([]*Pad, error) { - iterator := C.gst_proxy_pad_iterate_internal_links_default(p.toPad(), parent.Instance()) - return iteratorToPadSlice(iterator) -} diff --git a/gst/gst_init.go b/gst/gst_init.go deleted file mode 100644 index c67fadd..0000000 --- a/gst/gst_init.go +++ /dev/null @@ -1,58 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -static void* allocArgv(int argc) { - return malloc(sizeof(char *) * argc); -} -*/ -import "C" -import "unsafe" - -// CAT is the global DebugCategory used for logging from the bindings. It is okay to use -// it from applications, but plugins should use their own. -var CAT *DebugCategory - -// Init is a wrapper around gst_init() and must be called before any -// other gstreamer calls and is used to initialize everything necessary. -// In addition to setting up gstreamer for usage, a pointer to a slice of -// strings may be passed in to parse standard gst command line arguments. -// args will be modified to remove any flags that were handled. -// Alternatively, nil may be passed in to not perform any command line -// parsing. -// -// The bindings will also set up their own internal DebugCategory for logging -// than can be invoked from applications or plugins as well. However, for -// plugins it is generally better to initialize your own DebugCategory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Init(args *[]string) { - if args != nil { - cargc := C.int(len(*args)) - cargv := (*[0xfff]*C.char)(C.allocArgv(cargc)) - defer C.free(unsafe.Pointer(cargv)) - for i, arg := range *args { - cargv[i] = C.CString(arg) - defer C.free(unsafe.Pointer(cargv[i])) - } - C.gst_init(&cargc, (***C.char)(unsafe.Pointer(&cargv))) - unhandled := make([]string, cargc) - for i := 0; i < int(cargc); i++ { - unhandled[i] = C.GoString(cargv[i]) - } - *args = unhandled - } else { - C.gst_init(nil, nil) - } - CAT = NewDebugCategory("GST_GO", DebugColorFgCyan, "GStreamer Go Bindings") -} - -// Deinit is a wrapper for gst_deinit Clean up any resources created by GStreamer in gst_init(). -// It is normally not needed to call this function in a normal application as the resources will automatically be freed -// when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Deinit() { - C.gst_deinit() -} diff --git a/gst/gst_mapinfo.go b/gst/gst_mapinfo.go deleted file mode 100644 index d1b6d86..0000000 --- a/gst/gst_mapinfo.go +++ /dev/null @@ -1,411 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -void memcpy_offset (void * dest, guint offset, const void * src, size_t n) { memcpy(dest + offset, src, n); } - - -GstByteReader * newByteReader (const guint8 * data, guint size) -{ - GstByteReader *ret = g_slice_new0 (GstByteReader); - - ret->data = data; - ret->size = size; - - return ret; -} - -void freeByteReader (GstByteReader * reader) -{ - g_return_if_fail (reader != NULL); - g_slice_free (GstByteReader, reader); -} - - -*/ -import "C" - -import ( - "bytes" - "errors" - "io" - "unsafe" -) - -// MapInfo is a go representation of a GstMapInfo. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type MapInfo struct { - ptr *C.GstMapInfo -} - -// Instance returns the underlying GstMapInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Instance() *C.GstMapInfo { - return m.ptr -} - -// Reader returns a Reader for the contents of this map's memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Reader() io.Reader { - return bytes.NewReader(m.Bytes()) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type mapInfoWriter struct { - mapInfo *MapInfo - wsize int -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *mapInfoWriter) Write(p []byte) (int, error) { - if m.wsize+len(p) > int(m.mapInfo.Size()) { - return 0, errors.New("attempt to write more data than allocated to MapInfo") - } - m.mapInfo.WriteAt(m.wsize, p) - m.wsize += len(p) - return len(p), nil -} - -// Writer returns a writer that will copy the contents passed to Write directly to the -// map's memory sequentially. An error will be returned if an attempt is made to write -// more data than the map can hold. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Writer() io.Writer { - return &mapInfoWriter{ - mapInfo: m, - wsize: 0, - } -} - -// WriteData writes the given sequence directly to the map's memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) WriteData(data []byte) { - C.memcpy(unsafe.Pointer(m.ptr.data), unsafe.Pointer(&data[0]), C.gsize(len(data))) -} - -// WriteAt writes the given data sequence directly to the map's memory at the given offset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) WriteAt(offset int, data []byte) { - C.memcpy_offset(unsafe.Pointer(m.ptr.data), C.guint(offset), unsafe.Pointer(&data[0]), C.gsize(len(data))) -} - -// Memory returns the underlying memory object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Memory() *Memory { - return wrapMemory(m.ptr.memory) -} - -// Data returns a pointer to the raw data inside this map. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Data() unsafe.Pointer { - return unsafe.Pointer(m.ptr.data) -} - -// Flags returns the flags set on this map. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Flags() MapFlags { - return MapFlags(m.ptr.flags) -} - -// Size returrns the size of this map. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Size() int64 { - return int64(m.ptr.size) -} - -// MaxSize returns the maximum size of this map. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) MaxSize() int64 { - return int64(m.ptr.maxsize) -} - -// Bytes returns a byte slice of the data inside this map info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) Bytes() []byte { - return C.GoBytes(m.Data(), (C.int)(m.Size())) -} - -// AsInt8Slice returns the contents of this map as a slice of signed 8-bit integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt8Slice() []int8 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int8, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint8 - C.gst_byte_reader_get_int8(br, &gint) - out = append(out, int8(gint)) - } - return out -} - -// AsInt16BESlice returns the contents of this map as a slice of signed 16-bit big-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt16BESlice() []int16 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int16, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint16 - C.gst_byte_reader_get_int16_be(br, &gint) - out = append(out, int16(gint)) - } - return out -} - -// AsInt16LESlice returns the contents of this map as a slice of signed 16-bit little-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt16LESlice() []int16 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int16, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint16 - C.gst_byte_reader_get_int16_le(br, &gint) - out = append(out, int16(gint)) - } - return out -} - -// AsInt32BESlice returns the contents of this map as a slice of signed 32-bit big-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt32BESlice() []int32 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int32, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint32 - C.gst_byte_reader_get_int32_be(br, &gint) - out = append(out, int32(gint)) - } - return out -} - -// AsInt32LESlice returns the contents of this map as a slice of signed 32-bit little-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt32LESlice() []int32 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int32, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint32 - C.gst_byte_reader_get_int32_le(br, &gint) - out = append(out, int32(gint)) - } - return out -} - -// AsInt64BESlice returns the contents of this map as a slice of signed 64-bit big-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt64BESlice() []int64 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int64, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint64 - C.gst_byte_reader_get_int64_be(br, &gint) - out = append(out, int64(gint)) - } - return out -} - -// AsInt64LESlice returns the contents of this map as a slice of signed 64-bit little-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsInt64LESlice() []int64 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]int64, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gint64 - C.gst_byte_reader_get_int64_le(br, &gint) - out = append(out, int64(gint)) - } - return out -} - -// AsUint8Slice returns the contents of this map as a slice of unsigned 8-bit integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint8Slice() []uint8 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint8, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint8 - C.gst_byte_reader_get_uint8(br, &gint) - out = append(out, uint8(gint)) - } - return out -} - -// AsUint16BESlice returns the contents of this map as a slice of unsigned 16-bit big-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint16BESlice() []uint16 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint16, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint16 - C.gst_byte_reader_get_uint16_be(br, &gint) - out = append(out, uint16(gint)) - } - return out -} - -// AsUint16LESlice returns the contents of this map as a slice of unsigned 16-bit little-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint16LESlice() []uint16 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint16, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint16 - C.gst_byte_reader_get_uint16_le(br, &gint) - out = append(out, uint16(gint)) - } - return out -} - -// AsUint32BESlice returns the contents of this map as a slice of unsigned 32-bit big-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint32BESlice() []uint32 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint32, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint32 - C.gst_byte_reader_get_uint32_be(br, &gint) - out = append(out, uint32(gint)) - } - return out -} - -// AsUint32LESlice returns the contents of this map as a slice of unsigned 32-bit little-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint32LESlice() []uint32 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint32, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint32 - C.gst_byte_reader_get_uint32_le(br, &gint) - out = append(out, uint32(gint)) - } - return out -} - -// AsUint64BESlice returns the contents of this map as a slice of unsigned 64-bit big-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint64BESlice() []uint64 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint64, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint64 - C.gst_byte_reader_get_uint64_be(br, &gint) - out = append(out, uint64(gint)) - } - return out -} - -// AsUint64LESlice returns the contents of this map as a slice of unsigned 64-bit little-endian integers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsUint64LESlice() []uint64 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]uint64, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.guint64 - C.gst_byte_reader_get_uint64_le(br, &gint) - out = append(out, uint64(gint)) - } - return out -} - -// AsFloat32BESlice returns the contents of this map as a slice of 32-bit big-endian floats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsFloat32BESlice() []float32 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]float32, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gfloat - C.gst_byte_reader_get_float32_be(br, &gint) - out = append(out, float32(gint)) - } - return out -} - -// AsFloat32LESlice returns the contents of this map as a slice of 32-bit little-endian floats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsFloat32LESlice() []float32 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]float32, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gfloat - C.gst_byte_reader_get_float32_le(br, &gint) - out = append(out, float32(gint)) - } - return out -} - -// AsFloat64BESlice returns the contents of this map as a slice of 64-bit big-endian floats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsFloat64BESlice() []float64 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]float64, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gdouble - C.gst_byte_reader_get_float64_be(br, &gint) - out = append(out, float64(gint)) - } - return out -} - -// AsFloat64LESlice returns the contents of this map as a slice of 64-bit little-endian floats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MapInfo) AsFloat64LESlice() []float64 { - br := C.newByteReader(m.Instance().data, C.guint(m.Instance().size)) - defer C.freeByteReader(br) - out := make([]float64, 0) - for C.gst_byte_reader_get_remaining(br) != C.guint(0) { - var gint C.gdouble - C.gst_byte_reader_get_float64_le(br, &gint) - out = append(out, float64(gint)) - } - return out -} diff --git a/gst/gst_memory.go b/gst/gst_memory.go deleted file mode 100644 index 0362cb2..0000000 --- a/gst/gst_memory.go +++ /dev/null @@ -1,179 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Memory is a go representation of GstMemory. This object is implemented in a read-only fashion -// currently primarily for reference, and as such you should not really use it. You can create new -// memory blocks, but there are no methods implemented yet for modifying ones already in existence. -// -// Use the Buffer and its Map methods to interact with memory in both a read and writable way. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Memory struct { - ptr *C.GstMemory - mapInfo *MapInfo -} - -// FromGstMemoryUnsafe wraps the given C GstMemory in the go type. It is meant for internal usage -// and exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMemoryUnsafe(mem unsafe.Pointer) *Memory { - wrapped := wrapMemory((*C.GstMemory)(mem)) - wrapped.Ref() - runtime.SetFinalizer(wrapped, (*Memory).Unref) - return wrapped -} - -// FromGstMemoryUnsafeNone is an alias to FromGstMemoryUnsafe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMemoryUnsafeNone(mem unsafe.Pointer) *Memory { - return FromGstMemoryUnsafe(mem) -} - -// FromGstMemoryUnsafeFull wraps the given memory without taking an additional reference. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMemoryUnsafeFull(mem unsafe.Pointer) *Memory { - wrapped := wrapMemory((*C.GstMemory)(mem)) - runtime.SetFinalizer(wrapped, (*Memory).Unref) - return wrapped -} - -// NewMemoryWrapped allocates a new memory block that wraps the given data. -// -// The prefix/padding must be filled with 0 if flags contains MemoryFlagZeroPrefixed -// and MemoryFlagZeroPadded respectively. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewMemoryWrapped(flags MemoryFlags, data []byte, maxSize, offset int64) *Memory { - mem := C.gst_memory_new_wrapped( - C.GstMemoryFlags(flags), - (C.gpointer)(unsafe.Pointer(&data[0])), - C.gsize(maxSize), - C.gsize(offset), - C.gsize(len(data)), - nil, // TODO: Allow user to set userdata for destroy notify function - nil, // TODO: Allow user to set destroy notify function - ) - return FromGstMemoryUnsafeFull(unsafe.Pointer(mem)) -} - -// Instance returns the underlying GstMemory instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Instance() *C.GstMemory { return C.toGstMemory(unsafe.Pointer(m.ptr)) } - -// Ref increases the ref count on this memory block by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Ref() *Memory { - return wrapMemory(C.gst_memory_ref(m.Instance())) -} - -// Unref decreases the ref count on this memory block by one. When the refcount reaches -// zero the memory is freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Unref() { C.gst_memory_unref(m.Instance()) } - -// Allocator returns the allocator for this memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Allocator() *Allocator { - return wrapAllocator(&glib.Object{GObject: glib.ToGObject(unsafe.Pointer(m.Instance().allocator))}) -} - -// Parent returns this memory block's parent. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Parent() *Memory { return wrapMemory(m.Instance().parent) } - -// MaxSize returns the maximum size allocated for this memory block. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) MaxSize() int64 { return int64(m.Instance().maxsize) } - -// Alignment returns the alignment of the memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Alignment() int64 { return int64(m.Instance().align) } - -// Offset returns the offset where valid data starts. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Offset() int64 { return int64(m.Instance().offset) } - -// Size returns the size of valid data. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Size() int64 { return int64(m.Instance().size) } - -// Copy returns a copy of size bytes from mem starting from offset. This copy is -// guaranteed to be writable. size can be set to -1 to return a copy from offset -// to the end of the memory region. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Copy(offset, size int64) *Memory { - mem := C.gst_memory_copy(m.Instance(), C.gssize(offset), C.gssize(size)) - return FromGstMemoryUnsafeFull(unsafe.Pointer(mem)) -} - -// Map the data inside the memory. This function can return nil if the memory is not read or writable. -// It is safe to call this function multiple times on the same Memory, however it will retain the flags -// used when mapping the first time. To change between read and write access first unmap and then remap the -// memory with the appropriate flags, or map initially with both read/write access. -// -// Unmap the Memory after usage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Map(flags MapFlags) *MapInfo { - if m.mapInfo != nil { - return m.mapInfo - } - mapInfo := C.malloc(C.sizeof_GstMapInfo) - C.gst_memory_map( - (*C.GstMemory)(m.Instance()), - (*C.GstMapInfo)(mapInfo), - C.GstMapFlags(flags), - ) - if mapInfo == C.NULL { - return nil - } - m.mapInfo = wrapMapInfo((*C.GstMapInfo)(mapInfo)) - return m.mapInfo -} - -// Unmap will unmap the data inside this memory. Use this after calling Map on the Memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Unmap() { - if m.mapInfo == nil { - return - } - C.gst_memory_unmap(m.Instance(), (*C.GstMapInfo)(m.mapInfo.Instance())) - C.free(unsafe.Pointer(m.mapInfo.Instance())) -} - -// Bytes will return a byte slice of the data inside this memory if it is readable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Memory) Bytes() []byte { - mapInfo := m.Map(MapRead) - if mapInfo == nil { - return nil - } - defer m.Unmap() - return mapInfo.Bytes() -} diff --git a/gst/gst_message.go b/gst/gst_message.go deleted file mode 100644 index 7062373..0000000 --- a/gst/gst_message.go +++ /dev/null @@ -1,609 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "runtime" - "strings" - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Message is a Go wrapper around a GstMessage. It provides convenience methods for -// unref-ing and parsing the underlying messages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Message struct { - msg *C.GstMessage -} - -// FromGstMessageUnsafeNone wraps the given unsafe.Pointer in a message. A ref is taken -// on the message and a runtime finalizer placed on the object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMessageUnsafeNone(msg unsafe.Pointer) *Message { - gomsg := ToGstMessage(msg) - gomsg.Ref() - runtime.SetFinalizer(gomsg, (*Message).Unref) - return gomsg -} - -// FromGstMessageUnsafeFull wraps the given unsafe.Pointer in a message. No ref is taken -// and a finalizer is placed on the resulting object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMessageUnsafeFull(msg unsafe.Pointer) *Message { - gomsg := ToGstMessage(msg) - runtime.SetFinalizer(gomsg, (*Message).Unref) - return gomsg -} - -// ToGstMessage converts the given pointer into a Message without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstMessage(msg unsafe.Pointer) *Message { return wrapMessage((*C.GstMessage)(msg)) } - -// Instance returns the underlying GstMessage object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) Instance() *C.GstMessage { return C.toGstMessage(unsafe.Pointer(m.msg)) } - -// Unref will call `gst_message_unref` on the underlying GstMessage, freeing it from memory. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) Unref() { C.gst_message_unref(m.Instance()) } - -// Ref will increase the ref count on this message. This increases the total amount of times -// Unref needs to be called before the object is freed from memory. It returns the underlying -// message object for convenience. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) Ref() *Message { - C.gst_message_ref(m.Instance()) - return m -} - -// Copy will copy this object into a new Message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) Copy() *Message { - newNative := C.gst_message_copy(m.Instance()) - return FromGstMessageUnsafeFull(unsafe.Pointer(newNative)) -} - -// Source returns name of the source of the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) Source() string { return C.GoString(m.Instance().src.name) } - -// Source returns object of the source of the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) SourceObject() *Object { - return wrapObject(glib.Take(unsafe.Pointer(m.Instance().src))) -} - -// Type returns the MessageType of the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) Type() MessageType { - return MessageType(m.Instance()._type) -} - -// TypeName returns a Go string of the GstMessageType name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) TypeName() string { - return C.GoString(C.gst_message_type_get_name((C.GstMessageType)(m.Type()))) -} - -// GetStructure returns the GstStructure of this message, using the type of the message -// to determine the method to use. The returned structure must not be freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) GetStructure() *Structure { - var st *C.GstStructure - - switch m.Type() { - case MessageError: - C.gst_message_parse_error_details(m.Instance(), (**C.GstStructure)(unsafe.Pointer(&st))) - case MessageInfo: - C.gst_message_parse_info_details(m.Instance(), (**C.GstStructure)(unsafe.Pointer(&st))) - case MessageWarning: - C.gst_message_parse_warning_details(m.Instance(), (**C.GstStructure)(unsafe.Pointer(&st))) - case MessageElement: - st = C.gst_message_get_structure(m.Instance()) - case MessageApplication: - st = C.gst_message_get_structure(m.Instance()) - } - - // if no structure was returned, immediately return nil - if st == nil { - return nil - } - - return structureFromGlibNone(st) -} - -// parseToError returns a new GError from this message instance. There are multiple -// message types that parse to this interface. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) parseToError() *GError { - var gerr *C.GError - var debugInfo *C.gchar - - switch m.Type() { - case MessageError: - C.gst_message_parse_error(m.Instance(), (**C.GError)(unsafe.Pointer(&gerr)), (**C.gchar)(unsafe.Pointer(&debugInfo))) - case MessageInfo: - C.gst_message_parse_info(m.Instance(), (**C.GError)(unsafe.Pointer(&gerr)), (**C.gchar)(unsafe.Pointer(&debugInfo))) - case MessageWarning: - C.gst_message_parse_warning(m.Instance(), (**C.GError)(unsafe.Pointer(&gerr)), (**C.gchar)(unsafe.Pointer(&debugInfo))) - } - - // if error was nil return immediately - if gerr == nil { - return nil - } - - // cleanup the C error immediately and let the garbage collector - // take over from here. - defer C.g_error_free((*C.GError)(gerr)) - defer C.g_free((C.gpointer)(debugInfo)) - return &GError{ - errMsg: C.GoString(gerr.message), - structure: m.GetStructure(), - debugStr: strings.TrimSpace(C.GoString((*C.gchar)(debugInfo))), - } -} - -// ParseInfo is identical to ParseError. The returned types are the same. However, -// this is intended for use with GstMessageType `GST_MESSAGE_INFO`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseInfo() *GError { - return m.parseToError() -} - -// ParseWarning is identical to ParseError. The returned types are the same. However, -// this is intended for use with GstMessageType `GST_MESSAGE_WARNING`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseWarning() *GError { - return m.parseToError() -} - -// ParseError will return a GError from the contents of this message. This will only work -// if the GstMessageType is `GST_MESSAGE_ERROR`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseError() *GError { - return m.parseToError() -} - -// ParseStateChanged will return the old and new states as Go strings. This will only work -// if the GstMessageType is `GST_MESSAGE_STATE_CHANGED`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStateChanged() (oldState, newState State) { - var gOldState, gNewState C.GstState - C.gst_message_parse_state_changed(m.Instance(), (*C.GstState)(unsafe.Pointer(&gOldState)), (*C.GstState)(unsafe.Pointer(&gNewState)), nil) - oldState = State(gOldState) - newState = State(gNewState) - return -} - -// ParseTags extracts the tag list from the GstMessage. Tags are copied. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseTags() *TagList { - var tagList *C.GstTagList - C.gst_message_parse_tag(m.Instance(), &tagList) - if tagList == nil { - return nil - } - return FromGstTagListUnsafeFull(unsafe.Pointer(tagList)) -} - -// ParseTOC extracts the TOC from the GstMessage. The TOC returned in the output argument is -// a copy. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseTOC() (toc *TOC, updated bool) { - var gtoc *C.GstToc - var gupdated C.gboolean - C.gst_message_parse_toc(m.Instance(), >oc, &gupdated) - return FromGstTOCUnsafeFull(unsafe.Pointer(gtoc)), gobool(gupdated) -} - -// ParseStreamStatus parses the stream status type of the message as well as the element -// that produced it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStreamStatus() (StreamStatusType, *Element) { - var cElem *C.GstElement - var cStatusType C.GstStreamStatusType - C.gst_message_parse_stream_status( - m.Instance(), - (*C.GstStreamStatusType)(&cStatusType), - (**C.GstElement)(&cElem), - ) - return StreamStatusType(cStatusType), FromGstElementUnsafeNone(unsafe.Pointer(cElem)) -} - -// ParseAsyncDone extracts the running time from the async task done message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseAsyncDone() ClockTime { - var clockTime C.GstClockTime - C.gst_message_parse_async_done(m.Instance(), &clockTime) - return ClockTime(clockTime) -} - -// BufferingStats represents the buffering stats as retrieved from a GST_MESSAGE_TYPE_BUFFERING. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type BufferingStats struct { - // The buffering mode - BufferingMode BufferingMode - // The average input rate - AverageIn int - // The average output rate - AverageOut int - // Amount of time until buffering is complete - BufferingLeft time.Duration -} - -// ParseBuffering extracts the buffering percent from the GstMessage. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseBuffering() int { - var cInt C.gint - C.gst_message_parse_buffering(m.Instance(), &cInt) - return int(cInt) -} - -// ParseBufferingStats extracts the buffering stats values from message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseBufferingStats() *BufferingStats { - var mode C.GstBufferingMode - var avgIn, avgOut C.gint - var bufLeft C.gint64 - C.gst_message_parse_buffering_stats( - m.Instance(), - &mode, &avgIn, &avgOut, &bufLeft, - ) - return &BufferingStats{ - BufferingMode: BufferingMode(mode), - AverageIn: int(avgIn), - AverageOut: int(avgOut), - BufferingLeft: time.Duration(int64(bufLeft)) * time.Millisecond, - } -} - -// StepStartValues represents the values inside a StepStart message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type StepStartValues struct { - Active bool - Format Format - Amount uint64 - Rate float64 - Flush bool - Intermediate bool -} - -// ParseStepStart extracts the values for the StepStart message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStepStart() *StepStartValues { - var active, flush, intermediate C.gboolean - var amount C.guint64 - var rate C.gdouble - var format C.GstFormat - C.gst_message_parse_step_start( - m.Instance(), - &active, &format, &amount, &rate, &flush, &intermediate, - ) - return &StepStartValues{ - Active: gobool(active), - Format: Format(format), - Amount: uint64(amount), - Rate: float64(rate), - Flush: gobool(flush), - Intermediate: gobool(intermediate), - } -} - -// StepDoneValues represents the values inside a StepDone message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type StepDoneValues struct { - Format Format - Amount uint64 - Rate float64 - Flush bool - Intermediate bool - Duration time.Duration - EOS bool -} - -// ParseStepDone extracts the values for the StepDone message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStepDone() *StepDoneValues { - var format C.GstFormat - var amount, duration C.guint64 - var rate C.gdouble - var flush, intermediate, eos C.gboolean - C.gst_message_parse_step_done( - m.Instance(), - &format, - &amount, - &rate, - &flush, - &intermediate, - &duration, - &eos, - ) - return &StepDoneValues{ - Format: Format(format), - Amount: uint64(amount), - Rate: float64(rate), - Flush: gobool(flush), - Intermediate: gobool(intermediate), - Duration: time.Duration(uint64(duration)) * time.Nanosecond, - EOS: gobool(eos), - } -} - -// ParseNewClock parses the new Clock in the message. The clock object returned -// remains valid until the message is freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseNewClock() *Clock { - var clock *C.GstClock - C.gst_message_parse_new_clock(m.Instance(), &clock) - return FromGstClockUnsafeNone(unsafe.Pointer(clock)) -} - -// ParseClockProvide extracts the clock and ready flag from the GstMessage. -// The clock object returned remains valid until the message is freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseClockProvide() (clock *Clock, ready bool) { - var gclock *C.GstClock - var gready C.gboolean - C.gst_message_parse_clock_provide(m.Instance(), &gclock, &gready) - return FromGstClockUnsafeNone(unsafe.Pointer(clock)), gobool(gready) -} - -// ParseStructureChange extracts the change type and completion status from the GstMessage. -// If the returned bool is true, the change is still in progress. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStructureChange() (chgType StructureChangeType, owner *Element, busy bool) { - var gElem *C.GstElement - var gbusy C.gboolean - var gchgType C.GstStructureChangeType - C.gst_message_parse_structure_change( - m.Instance(), - &gchgType, &gElem, &gbusy, - ) - return StructureChangeType(gchgType), wrapElement(toGObject(unsafe.Pointer(gElem))), gobool(gbusy) -} - -// ParseSegmentStart extracts the position and format of the SegmentStart message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseSegmentStart() (Format, int64) { - var format C.GstFormat - var position C.gint64 - C.gst_message_parse_segment_start(m.Instance(), &format, &position) - return Format(format), int64(position) -} - -// ParseSegmentDone extracts the position and format of the SegmentDone message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseSegmentDone() (Format, int64) { - var format C.GstFormat - var position C.gint64 - C.gst_message_parse_segment_done(m.Instance(), &format, &position) - return Format(format), int64(position) -} - -// ParseRequestState parses the requests state from the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseRequestState() State { - var state C.GstState - C.gst_message_parse_request_state(m.Instance(), &state) - return State(state) -} - -// QoSValues represents the values inside a QoS message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type QoSValues struct { - // If the message was generated by a live element - Live bool - // The running time of the buffer that generated the message - RunningTime time.Duration // should this be a uint64? - // The stream time of the buffer that generated the message - StreamTime time.Duration // should this be a uint64? - // The timestamps of the buffer that generated the message - Timestamp time.Duration // should this be a uint64? - // The duration of the buffer that generated the message - Duration time.Duration // should this be a uint64? -} - -// ParseQoS extracts the timestamps and live status from the QoS message. -// The values reflect those of the dropped buffer. Values of ClockTimeNone -// or -1 mean unknown values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseQoS() *QoSValues { - var live C.gboolean - var runningTime, streamTime, timestamp, duration C.guint64 - C.gst_message_parse_qos( - m.Instance(), - &live, &runningTime, &streamTime, ×tamp, &duration, - ) - return &QoSValues{ - Live: gobool(live), - RunningTime: time.Duration(runningTime), - StreamTime: time.Duration(streamTime), - Timestamp: time.Duration(timestamp), - Duration: time.Duration(duration), - } -} - -// ParseProgress parses the progress type, code and text. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseProgress() (progressType ProgressType, code, text string) { - codePtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(codePtr)) - textPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(textPtr)) - var gpType C.GstProgressType - C.gst_message_parse_progress( - m.Instance(), - &gpType, - (**C.gchar)(unsafe.Pointer(codePtr)), - (**C.gchar)(unsafe.Pointer(textPtr)), - ) - return ProgressType(gpType), - string(C.GoBytes(codePtr, C.sizeOfGCharArray((**C.gchar)(codePtr)))), - string(C.GoBytes(textPtr, C.sizeOfGCharArray((**C.gchar)(textPtr)))) -} - -// ParseResetTime extracts the running-time from the ResetTime message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseResetTime() ClockTime { - var clockTime C.GstClockTime - C.gst_message_parse_reset_time(m.Instance(), &clockTime) - return ClockTime(clockTime) -} - -// ParseDeviceAdded parses a device-added message. The device-added message is -// produced by GstDeviceProvider or a GstDeviceMonitor. It announces the appearance -// of monitored devices. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseDeviceAdded() *Device { - var device *C.GstDevice - C.gst_message_parse_device_added(m.Instance(), &device) - return FromGstDeviceUnsafeFull(unsafe.Pointer(device)) -} - -// ParseDeviceRemoved parses a device-removed message. The device-removed message -// is produced by GstDeviceProvider or a GstDeviceMonitor. It announces the disappearance -// of monitored devices. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseDeviceRemoved() *Device { - var device *C.GstDevice - C.gst_message_parse_device_removed(m.Instance(), &device) - return FromGstDeviceUnsafeFull(unsafe.Pointer(device)) -} - -// ParseDeviceChanged Parses a device-changed message. The device-changed message is -// produced by GstDeviceProvider or a GstDeviceMonitor. It announces that a device's properties -// have changed. -// The first device returned is the updated Device, and the second changedDevice represents -// the old state of the device. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseDeviceChanged() (newDevice, oldDevice *Device) { - var gstNewDevice, gstOldDevice *C.GstDevice - C.gst_message_parse_device_changed(m.Instance(), &gstNewDevice, &gstOldDevice) - return FromGstDeviceUnsafeFull(unsafe.Pointer(gstNewDevice)), - FromGstDeviceUnsafeFull(unsafe.Pointer(gstOldDevice)) -} - -// ParsePropertyNotify parses a property-notify message. These will be posted on the bus only -// when set up with Element.AddPropertyNotifyWatch (TODO) or Element.AddPropertyDeepNotifyWatch (TODO). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParsePropertyNotify() (obj *Object, propertName string, propertyValue *glib.Value) { - var gstobj *C.GstObject - var gval *C.GValue - namePtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(namePtr)) - C.gst_message_parse_property_notify( - m.Instance(), - &gstobj, (**C.gchar)(unsafe.Pointer(namePtr)), &gval, - ) - return wrapObject(toGObject(unsafe.Pointer(gstobj))), - string(C.GoBytes(namePtr, C.sizeOfGCharArray((**C.gchar)(namePtr)))), - glib.ValueFromNative(unsafe.Pointer(gval)) -} - -// ParseStreamCollection parses a stream-collection message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStreamCollection() *StreamCollection { - var collection *C.GstStreamCollection - C.gst_message_parse_stream_collection( - m.Instance(), - &collection, - ) - return FromGstStreamCollectionUnsafeFull(unsafe.Pointer(collection)) -} - -// ParseStreamsSelected parses a streams-selected message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseStreamsSelected() *StreamCollection { - var collection *C.GstStreamCollection - C.gst_message_parse_streams_selected( - m.Instance(), - &collection, - ) - return FromGstStreamCollectionUnsafeFull(unsafe.Pointer(collection)) -} - -// NumRedirectEntries returns the number of redirect entries in a MessageRedirect. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) NumRedirectEntries() int64 { - return int64(C.gst_message_get_num_redirect_entries(m.Instance())) -} - -// ParseRedirectEntryAt parses the redirect entry at the given index. Total indices can be retrieved -// with NumRedirectEntries(). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseRedirectEntryAt(idx int64) (location string, tags *TagList, structure *Structure) { - locPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(locPtr)) - var tagList *C.GstTagList - var entryStruct *C.GstStructure - C.gst_message_parse_redirect_entry( - m.Instance(), - C.gsize(idx), - (**C.char)(locPtr), - &tagList, - &entryStruct, - ) - return string(C.GoBytes(locPtr, C.sizeOfGCharArray((**C.gchar)(locPtr)))), - FromGstTagListUnsafeNone(unsafe.Pointer(tagList)), wrapStructure(entryStruct) -} - -// ParseHaveContext parses the context from a HaveContext message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) ParseHaveContext() *Context { - var ctx *C.GstContext - C.gst_message_parse_have_context(m.Instance(), &ctx) - return FromGstContextUnsafeFull(unsafe.Pointer(ctx)) -} diff --git a/gst/gst_message_constructors.go b/gst/gst_message_constructors.go deleted file mode 100644 index 0ac58f7..0000000 --- a/gst/gst_message_constructors.go +++ /dev/null @@ -1,729 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// GstObjectHolder interface is used as a go representation of the GLib check -// for an input type to be derived from the GstObject. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type GstObjectHolder interface { - GstObject() *C.GstObject -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getMessageSourceObj(src GstObjectHolder) *C.GstObject { - if src == nil { - return nil - } - - return src.GstObject() -} - -// NewApplicationMessage creates a new application-typed message. GStreamer will never -// create these messages; they are a gift from them to you. Enjoy. -// -// The source of all message constructors must be a valid Object or descendant, specifically -// one created from the go runtime. If not the message returned will be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewApplicationMessage(src GstObjectHolder, structure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_application(srcObj, structure.Instance()))) -} - -// NewAsyncDoneMessage builds a message that is posted when elements completed an ASYNC state change. -// RunningTime contains the time of the desired running time when this elements goes to PLAYING. -// A value less than 0 for runningTime means that the element has no clock interaction and thus doesn't -// care about the running time of the pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAsyncDoneMessage(src GstObjectHolder, runningTime ClockTime) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_async_done( - srcObj, - C.GstClockTime(runningTime), - ))) -} - -// NewAsyncStartMessage returns a message that is posted by elements when they start an ASYNC state change. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAsyncStartMessage(src GstObjectHolder) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_async_start(srcObj))) -} - -// NewBufferingMessage returns a message that can be posted by an element that needs to buffer data before it -// can continue processing. percent should be a value between 0 and 100. A value of 100 means that the buffering completed. -// -// When percent is < 100 the application should PAUSE a PLAYING pipeline. When percent is 100, the application can set the -// pipeline (back) to PLAYING. The application must be prepared to receive BUFFERING messages in the PREROLLING state and -// may only set the pipeline to PLAYING after receiving a message with percent set to 100, which can happen after the pipeline -// completed prerolling. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferingMessage(src GstObjectHolder, percent int) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_buffering(srcObj, C.gint(percent)))) -} - -// NewClockLostMessage creates a clock lost message. This message is posted whenever the clock is not valid anymore. -// -// If this message is posted by the pipeline, the pipeline will select a new clock again when it goes to PLAYING. It might -// therefore be needed to set the pipeline to PAUSED and PLAYING again. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewClockLostMessage(src GstObjectHolder, clock *Clock) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_clock_lost(srcObj, clock.Instance()))) -} - -// NewClockProvideMessage creates a clock provide message. This message is posted whenever an element is ready to provide a -// clock or lost its ability to provide a clock (maybe because it paused or became EOS). -// -// This message is mainly used internally to manage the clock selection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewClockProvideMessage(src GstObjectHolder, clock *Clock, ready bool) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_clock_provide(srcObj, clock.Instance(), gboolean(ready)))) -} - -// NewCustomMessage creates a new custom-typed message. This can be used for anything not handled by other message-specific -// functions to pass a message to the app. The structure field can be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCustomMessage(src GstObjectHolder, msgType MessageType, structure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - if structure == nil { - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_custom(C.GstMessageType(msgType), srcObj, nil))) - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_custom(C.GstMessageType(msgType), srcObj, structure.Instance()))) -} - -// NewDeviceAddedMessage creates a new device-added message. The device-added message is produced by a DeviceProvider or a DeviceMonitor. -// They announce the appearance of monitored devices. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDeviceAddedMessage(src GstObjectHolder, device *Device) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_device_added(srcObj, device.Instance()))) -} - -// NewDeviceChangedMessage creates a new device-changed message. The device-changed message is produced by a DeviceProvider or a DeviceMonitor. -// They announce that a device properties has changed and device represent the new modified version of changed_device. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDeviceChangedMessage(src GstObjectHolder, device, changedDevice *Device) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_device_changed(srcObj, device.Instance(), changedDevice.Instance()))) -} - -// NewDeviceRemovedMessage creates a new device-removed message. The device-removed message is produced by a DeviceProvider or a DeviceMonitor. -// They announce the disappearance of monitored devices. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDeviceRemovedMessage(src GstObjectHolder, device *Device) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_device_removed(srcObj, device.Instance()))) -} - -// NewDurationChangedMessage creates a new duration changed message. This message is posted by elements that know the duration of a -// stream when the duration changes. This message is received by bins and is used to calculate the total duration of a pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDurationChangedMessage(src GstObjectHolder) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_duration_changed(srcObj))) -} - -// NewElementMessage creates a new element-specific message. This is meant as a generic way of allowing one-way communication from an -// element to an application, for example "the firewire cable was unplugged". The format of the message should be documented in the -// element's documentation. The structure field can be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewElementMessage(src GstObjectHolder, structure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - if structure == nil { - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_element(srcObj, nil))) - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_element(srcObj, structure.Instance()))) -} - -// NewEOSMessage creates a new eos message. This message is generated and posted in the sink elements of a Bin. The bin will only forward -// the EOS message to the application if all sinks have posted an EOS message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewEOSMessage(src GstObjectHolder) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_eos(srcObj))) -} - -// NewErrorMessage creates a new error message. The message will copy error and debug. This message is posted by element when a fatal event -// occurred. The pipeline will probably (partially) stop. The application receiving this message should stop the pipeline. -// Structure can be nil to not add a structure to the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewErrorMessage(src GstObjectHolder, err error, debugStr string, structure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - - errmsg := C.CString(err.Error()) - gerr := C.g_error_new_literal(DomainLibrary.toQuark(), C.gint(LibraryErrorFailed), (*C.gchar)(errmsg)) - defer C.free(unsafe.Pointer(errmsg)) - defer C.g_error_free(gerr) - - gdebugStr := C.CString(debugStr) - defer C.free(unsafe.Pointer(gdebugStr)) - - if structure != nil { - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_error_with_details( - srcObj, - gerr, - gdebugStr, - structure.Instance(), - ))) - } - - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_error( - srcObj, - gerr, - gdebugStr, - ))) -} - -// NewHaveContextMessage creates a message that is posted when an element has a new local Context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewHaveContextMessage(src GstObjectHolder, ctx *Context) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_have_context( - srcObj, - ctx.Ref().Instance(), - ))) -} - -// NewInfoMessage creates a new info message. Structure can be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewInfoMessage(src GstObjectHolder, msg string, debugStr string, structure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - - errmsg := C.CString(msg) - gerr := C.g_error_new_literal(DomainLibrary.toQuark(), C.gint(0), (*C.gchar)(errmsg)) - defer C.free(unsafe.Pointer(errmsg)) - defer C.g_error_free(gerr) - - gdebugStr := C.CString(debugStr) - defer C.free(unsafe.Pointer(gdebugStr)) - - if structure != nil { - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_info_with_details( - srcObj, - gerr, - gdebugStr, - structure.Instance(), - ))) - } - - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_info( - srcObj, - gerr, - gdebugStr, - ))) -} - -// NewLatencyMessage creates a message that can be posted by elements when their latency requirements have changed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewLatencyMessage(src GstObjectHolder) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_latency(srcObj))) -} - -// NewNeedContextMessage creates a message that is posted when an element needs a specific Context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewNeedContextMessage(src GstObjectHolder, ctxType string) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - cStr := C.CString(ctxType) - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_need_context(srcObj, (*C.gchar)(unsafe.Pointer(cStr))))) -} - -// NewNewClockMessage creates a new clock message. This message is posted whenever the pipeline selects a new clock for the pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewNewClockMessage(src GstObjectHolder, clock *Clock) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_new_clock(srcObj, clock.Instance()))) -} - -// NewProgressMessage creates messages that are posted by elements when they use an asynchronous task to perform actions triggered by a state change. -// -// Code contains a well defined string describing the action. Text should contain a user visible string detailing the current action. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewProgressMessage(src GstObjectHolder, progressType ProgressType, code, text string) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - cCode := (*C.gchar)(unsafe.Pointer(C.CString(code))) - cText := (*C.gchar)(unsafe.Pointer(C.CString(text))) - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_progress(srcObj, C.GstProgressType(progressType), cCode, cText))) -} - -// NewPropertyNotifyMessage creates a new message notifying an object's properties have changed. If the -// source OR the value cannot be coereced to C types, the function will return nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPropertyNotifyMessage(src GstObjectHolder, propName string, val interface{}) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - gVal, err := glib.GValue(val) - if err != nil { - return nil - } - cName := (*C.gchar)(unsafe.Pointer(C.CString(propName))) - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_property_notify( - srcObj, - cName, - (*C.GValue)(unsafe.Pointer(gVal.GValue)), - ))) -} - -// NewQoSMessage creates a message that is posted on the bus whenever an element decides to drop a buffer because of -// QoS reasons or whenever it changes its processing strategy because of QoS reasons (quality adjustments such as processing at lower accuracy). -// -// This message can be posted by an element that performs synchronization against the clock (live) or it could be dropped by an element that performs -// QoS because of QOS events received from a downstream element (!live). -// -// running_time, stream_time, timestamp, duration should be set to the respective running-time, stream-time, timestamp and duration of the (dropped) buffer -// that generated the QoS event. Values can be left to less than zero when unknown. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewQoSMessage(src GstObjectHolder, live bool, runningTime, streamTime, timestamp, duration uint64) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_qos( - srcObj, - gboolean(live), - C.guint64(runningTime), - C.guint64(streamTime), - C.guint64(timestamp), - C.guint64(duration), - ))) -} - -// NewRedirectMessage creates a new redirect message and adds a new entry to it. Redirect messages are posted when an element detects that the actual -// data has to be retrieved from a different location. This is useful if such a redirection cannot be handled inside a source element, for example when -// HTTP 302/303 redirects return a non-HTTP URL. -// -// The redirect message can hold multiple entries. The first one is added when the redirect message is created, with the given location, tag_list, entry_struct -// arguments. Use AddRedirectEntry to add more entries. -// -// Each entry has a location, a tag list, and a structure. All of these are optional. The tag list and structure are useful for additional metadata, such as -// bitrate statistics for the given location. -// -// By default, message recipients should treat entries in the order they are stored. The recipient should therefore try entry #0 first, and if this entry is not -// acceptable or working, try entry #1 etc. Senders must make sure that they add entries in this order. However, recipients are free to ignore the order and pick -// an entry that is "best" for them. One example would be a recipient that scans the entries for the one with the highest bitrate tag. -// -// The specified location string is copied. However, ownership over the tag list and structure are transferred to the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewRedirectMessage(src GstObjectHolder, location string, tagList *TagList, entryStructure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - var loc *C.gchar - var tl *C.GstTagList - var st *C.GstStructure - if location != "" { - locc := C.CString(location) - defer C.free(unsafe.Pointer(locc)) - loc = (*C.gchar)(unsafe.Pointer(locc)) - } - if tagList != nil { - tl = tagList.Ref().Instance() - } - if entryStructure != nil { - st = entryStructure.Instance() - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_redirect( - srcObj, - loc, tl, st, - ))) -} - -// AddRedirectEntry creates and appends a new entry to the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) AddRedirectEntry(location string, tagList *TagList, entryStructure *Structure) { - var loc *C.gchar - var tl *C.GstTagList - var st *C.GstStructure - if location != "" { - locc := C.CString(location) - defer C.free(unsafe.Pointer(locc)) - loc = (*C.gchar)(unsafe.Pointer(locc)) - } - if tagList != nil { - tl = tagList.Ref().Instance() - } - if entryStructure != nil { - st = entryStructure.Instance() - } - C.gst_message_add_redirect_entry(m.Instance(), loc, tl, st) -} - -// NewRequestStateMessage creates a message that can be posted by elements when they want to have their state changed. -// A typical use case would be an audio server that wants to pause the pipeline because a higher priority stream is being played. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewRequestStateMessage(src GstObjectHolder, state State) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_request_state(srcObj, C.GstState(state)))) -} - -// NewResetTimeMessage creates a message that is posted when the pipeline running-time should be reset to running_time, like after a flushing seek. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewResetTimeMessage(src GstObjectHolder, runningTime ClockTime) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_reset_time(srcObj, C.GstClockTime(runningTime)))) -} - -// NewSegmentDoneMessage creates a new segment done message. This message is posted by elements that finish playback of a segment as a result of a -// segment seek. This message is received by the application after all elements that posted a segment_start have posted the segment_done. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSegmentDoneMessage(src GstObjectHolder, format Format, position int64) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_segment_done( - srcObj, - C.GstFormat(format), - C.gint64(position), - ))) -} - -// NewSegmentStartMessage creates a new segment message. This message is posted by elements that start playback of a segment as a result of a segment seek. -// This message is not received by the application but is used for maintenance reasons in container elements. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSegmentStartMessage(src GstObjectHolder, format Format, position int64) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_segment_start( - srcObj, - C.GstFormat(format), - C.gint64(position), - ))) -} - -// NewStateChangedMessage creates a state change message. This message is posted whenever an element changed its state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStateChangedMessage(src GstObjectHolder, oldState, newState, pendingState State) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_state_changed( - srcObj, - C.GstState(oldState), C.GstState(newState), C.GstState(pendingState), - ))) -} - -// NewStateDirtyMessage creates a state dirty message. This message is posted whenever an element changed its state asynchronously -// and is used internally to update the states of container objects. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStateDirtyMessage(src GstObjectHolder) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_state_dirty(srcObj))) -} - -// NewStepDoneMessage creates a message that is posted by elements when they complete a part, when intermediate set to TRUE, or a -// complete step operation. -// -// Duration will contain the amount of time of the stepped amount of media in format format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStepDoneMessage(src GstObjectHolder, format Format, amount uint64, rate float64, flush, intermediate bool, duration uint64, eos bool) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_step_done( - srcObj, - C.GstFormat(format), - C.guint64(amount), - C.gdouble(rate), - gboolean(flush), - gboolean(intermediate), - C.guint64(duration), - gboolean(eos), - ))) -} - -// NewStepStartMessage creates a message that is posted by elements when they accept or activate a new step event for amount in format. -// -// Active is set to FALSE when the element accepted the new step event and has queued it for execution in the streaming threads. -// -// Active is set to TRUE when the element has activated the step operation and is now ready to start executing the step in the streaming thread. -// After this message is emitted, the application can queue a new step operation in the element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStepStartMessage(src GstObjectHolder, active bool, format Format, amount uint64, rate float64, flush, intermediate bool) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_step_start( - srcObj, - gboolean(active), - C.GstFormat(format), - C.guint64(amount), - C.gdouble(rate), - gboolean(flush), - gboolean(intermediate), - ))) -} - -// NewStreamCollectionMessage creates a new stream-collection message. The message is used to announce new StreamCollections. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamCollectionMessage(src GstObjectHolder, collection *StreamCollection) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_stream_collection(srcObj, collection.Instance()))) -} - -// NewStreamStartMessage creates a new stream_start message. This message is generated and posted in the sink elements of a Bin. -// The bin will only forward the StreamStart message to the application if all sinks have posted a StreamStart message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamStartMessage(src GstObjectHolder) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_stream_start(srcObj))) -} - -// NewStreamStatusMessage creates a new stream status message. This message is posted when a streaming thread is created/destroyed or -// when the state changed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamStatusMessage(src GstObjectHolder, stType StreamStatusType, owner *Element) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_stream_status(srcObj, C.GstStreamStatusType(stType), owner.Instance()))) -} - -// NewStreamSelectedMessage creates a new steams-selected message. The message is used to announce that an array of streams has been selected. -// This is generally in response to a GST_EVENT_SELECT_STREAMS event, or when an element (such as decodebin3) makes an initial selection of streams. -// -// The message also contains the StreamCollection to which the various streams belong to. -// -// Users of this constructor can add the selected streams with StreamsSelectedAdd. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamSelectedMessage(src GstObjectHolder, collection *StreamCollection) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_streams_selected(srcObj, collection.Instance()))) -} - -// StreamsSelectedAdd adds the stream to the message -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) StreamsSelectedAdd(stream *Stream) { - C.gst_message_streams_selected_add(m.Instance(), stream.Instance()) -} - -// StreamsSelectedSize returns the number of streams contained in the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) StreamsSelectedSize() uint { - return uint(C.gst_message_streams_selected_get_size(m.Instance())) -} - -// StreamsSelectedGetStream retrieves the Stream with index index from the message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) StreamsSelectedGetStream(index uint) *Stream { - stream := C.gst_message_streams_selected_get_stream(m.Instance(), C.guint(index)) - if stream == nil { - return nil - } - return wrapStream(glib.TransferFull(unsafe.Pointer(stream))) -} - -// NewStructureChangeMessage creates a new structure change message. This message is posted when the structure of a pipeline is in the process -// of being changed, for example when pads are linked or unlinked. -// -// Src should be the sinkpad that unlinked or linked. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStructureChangeMessage(src GstObjectHolder, chgType StructureChangeType, owner *Element, busy bool) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_structure_change( - srcObj, - C.GstStructureChangeType(chgType), - owner.Instance(), - gboolean(busy), - ))) -} - -// NewTagMessage creates a new tag message. The message will take ownership of the tag list. The message is posted by elements that discovered a new taglist. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTagMessage(src GstObjectHolder, tagList *TagList) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_tag(srcObj, tagList.Ref().Instance()))) -} - -// NewTOCMessage creates a new TOC message. The message is posted by elements that discovered or updated a TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTOCMessage(src GstObjectHolder, toc *TOC, updated bool) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_toc( - srcObj, - toc.Instance(), - gboolean(updated), - ))) -} - -// NewWarningMessage creates a new warning message. Structure can be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewWarningMessage(src GstObjectHolder, msg string, debugStr string, structure *Structure) *Message { - srcObj := getMessageSourceObj(src) - if srcObj == nil { - return nil - } - - errmsg := C.CString(msg) - gerr := C.g_error_new_literal(DomainLibrary.toQuark(), C.gint(0), (*C.gchar)(errmsg)) - defer C.free(unsafe.Pointer(errmsg)) - defer C.g_error_free(gerr) - - gdebugStr := C.CString(debugStr) - defer C.free(unsafe.Pointer(gdebugStr)) - - if structure != nil { - return wrapMessage(C.gst_message_new_warning_with_details( - srcObj, - gerr, - gdebugStr, - structure.Instance(), - )) - } - - return FromGstMessageUnsafeFull(unsafe.Pointer(C.gst_message_new_warning( - srcObj, - gerr, - gdebugStr, - ))) -} diff --git a/gst/gst_message_stringer.go b/gst/gst_message_stringer.go deleted file mode 100644 index eb0c18d..0000000 --- a/gst/gst_message_stringer.go +++ /dev/null @@ -1,191 +0,0 @@ -package gst - -import ( - "encoding/json" - "fmt" - "strings" -) - -// String implements a stringer on the message. It iterates over the type of the message -// and applies the correct parser, then dumps a string of the basic contents of the -// message. This function can be expensive and should only be used for debugging purposes -// or in routines where latency is not a concern. -// -// This stringer really just helps in keeping track of making sure all message types are -// accounted for in some way. It's the devil, writing it was the devil, and I hope you -// enjoy being able to `fmt.Println(msg)`. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Message) String() string { - msg := fmt.Sprintf("[%s] %s - ", m.Source(), strings.ToUpper(m.TypeName())) - switch m.Type() { - - case MessageEOS: - msg += "End-of-stream reached in the pipeline" - - case MessageInfo: - msg += m.parseToError().Message() - - case MessageWarning: - msg += m.parseToError().Message() - - case MessageError: - msg += m.parseToError().Message() - - case MessageTag: - tags := m.ParseTags() - if tags != nil { - msg += tags.String() - } - - case MessageBuffering: - stats := m.ParseBufferingStats() - msg += fmt.Sprintf( - "Buffering %s - %d%% complete (avg in %d/sec, avg out %d/sec, time left %s)", - stats.BufferingMode.String(), - m.ParseBuffering(), - stats.AverageIn, - stats.AverageOut, - stats.BufferingLeft.String(), - ) - - case MessageStateChanged: - oldState, newState := m.ParseStateChanged() - msg += fmt.Sprintf("State changed from %s to %s", oldState.String(), newState.String()) - - case MessageStateDirty: - msg += "(DEPRECATED MESSAGE) An element changed state in a streaming thread" - - case MessageStepDone: - out, err := json.Marshal(m.ParseStepDone()) - if err == nil { - msg += string(out) - } - - case MessageClockProvide: - msg += "Element has clock provide capability" - - case MessageClockLost: - msg += "Lost a clock" - - case MessageNewClock: - msg += "Got a new clock" - - case MessageStructureChange: - chgType, elem, busy := m.ParseStructureChange() - msg += fmt.Sprintf("Structure change of type %s from %s. (in progress: %v)", chgType.String(), elem.GetName(), busy) - - case MessageStreamStatus: - statusType, elem := m.ParseStreamStatus() - msg += fmt.Sprintf("Stream status from %s: %s", elem.GetName(), statusType.String()) - - case MessageApplication: - msg += "Message posted by the application, possibly via an application-specific element." - - case MessageElement: - msg += "Internal element message posted" - - case MessageSegmentStart: - format, pos := m.ParseSegmentStart() - msg += fmt.Sprintf("Segment started at %d %s", pos, format.String()) - - case MessageSegmentDone: - format, pos := m.ParseSegmentDone() - msg += fmt.Sprintf("Segment started at %d %s", pos, format.String()) - - case MessageDurationChanged: - msg += "The duration of the pipeline changed" - - case MessageLatency: - msg += "Element's latency has changed" - - case MessageAsyncStart: - msg += "Async task started" - - case MessageAsyncDone: - msg += "Async task completed" - if dur := m.ParseAsyncDone(); dur > 0 { - msg += fmt.Sprintf(" in %s", dur.String()) - } - - case MessageRequestState: - msg += fmt.Sprintf("State chnage request to %s", m.ParseRequestState().String()) - - case MessageStepStart: - out, err := json.Marshal(m.ParseStepStart()) - if err == nil { - msg += string(out) - } - - case MessageQoS: - out, err := json.Marshal(m.ParseQoS()) - if err == nil { - msg += string(out) - } - - case MessageProgress: - progressType, code, text := m.ParseProgress() - msg += fmt.Sprintf("%s - %s - %s", strings.ToUpper(progressType.String()), code, text) - - case MessageTOC: - // TODO - - case MessageResetTime: - msg += fmt.Sprintf("Running time: %s", m.ParseResetTime().String()) - - case MessageStreamStart: - msg += "Pipeline stream is starting" - - case MessageNeedContext: - msg += "Element needs context" - - case MessageHaveContext: - ctx := m.ParseHaveContext() - msg += fmt.Sprintf("Received context of type %s", ctx.GetType()) - - case MessageExtended: - msg += "Extended message type" - - case MessageDeviceAdded: - if device := m.ParseDeviceAdded(); device != nil { - msg += fmt.Sprintf("Device %s added", device.GetDisplayName()) - } - - case MessageDeviceRemoved: - if device := m.ParseDeviceRemoved(); device != nil { - msg += fmt.Sprintf("Device %s removed", device.GetDisplayName()) - } - - case MessageDeviceChanged: - if device, _ := m.ParseDeviceChanged(); device != nil { - msg += fmt.Sprintf("Device %s had its properties updated", device.GetDisplayName()) - } - - case MessagePropertyNotify: - obj, propName, propVal := m.ParsePropertyNotify() - if obj != nil && propVal != nil { - goval, err := propVal.GoValue() - if err != nil { - msg += fmt.Sprintf("Object %s had property '%s' changed to %+v", obj.GetName(), propName, goval) - } - } - - case MessageStreamCollection: - collection := m.ParseStreamCollection() - msg += fmt.Sprintf("New stream collection with upstream id: %s", collection.GetUpstreamID()) - - case MessageStreamsSelected: - collection := m.ParseStreamsSelected() - msg += fmt.Sprintf("Stream with upstream id '%s' has selected new streams", collection.GetUpstreamID()) - - case MessageRedirect: - msg += fmt.Sprintf("Received redirect message with %d entries", m.NumRedirectEntries()) - - case MessageUnknown: - msg += "Unknown message type" - - case MessageAny: - msg += "Message did not match any known types" - } - return msg -} diff --git a/gst/gst_meta.go b/gst/gst_meta.go deleted file mode 100644 index c755cea..0000000 --- a/gst/gst_meta.go +++ /dev/null @@ -1,221 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goMetaFreeFunc (GstMeta * meta, GstBuffer * buffer); -extern gboolean goMetaInitFunc (GstMeta *meta, gpointer params, GstBuffer * buffer); -extern gboolean goMetaTransformFunc (GstBuffer * transBuf, GstMeta * meta, GstBuffer * buffer, GQuark type, gpointer data); - -void cgoMetaFreeFunc (GstMeta * meta, GstBuffer * buffer) -{ - goMetaFreeFunc(meta, buffer); -} - -gboolean cgoMetaInitFunc (GstMeta * meta, gpointer params, GstBuffer * buffer) -{ - return goMetaInitFunc(meta, params, buffer); -} - -gboolean cgoMetaTransformFunc (GstBuffer * transBuf, GstMeta * meta, GstBuffer * buffer, GQuark type, gpointer data) -{ - return goMetaTransformFunc(transBuf, meta, buffer, type, data); -} - -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Meta is a go representation of GstMeta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Meta struct { - ptr *C.GstMeta -} - -// FromGstMetaUnsafe wraps the pointer to the given C GstMeta with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMetaUnsafe(ptr unsafe.Pointer) *Meta { return wrapMeta(C.toGstMeta(ptr)) } - -// Instance returns the underlying GstMeta instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Meta) Instance() *C.GstMeta { return C.toGstMeta(unsafe.Pointer(m.ptr)) } - -// Flags returns the flags on this Meta instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Meta) Flags() MetaFlags { return MetaFlags(m.Instance().flags) } - -// SetFlags sets the flags on this Meta instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Meta) SetFlags(flags MetaFlags) { m.Instance().flags = C.GstMetaFlags(flags) } - -// Info returns the extra info with this metadata. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Meta) Info() *MetaInfo { return wrapMetaInfo(m.Instance().info) } - -// SetInfo sets the info on this metadata. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Meta) SetInfo(info *MetaInfo) { m.Instance().info = info.Instance() } - -// MetaInfo is a go representation of GstMetaInfo -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type MetaInfo struct { - ptr *C.GstMetaInfo -} - -// FromGstMetaInfoUnsafe wraps the given unsafe pointer in a MetaInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstMetaInfoUnsafe(ptr unsafe.Pointer) *MetaInfo { - if ptr == nil { - return nil - } - return &MetaInfo{ptr: (*C.GstMetaInfo)(ptr)} -} - -// RegisterAPIType registers and returns a GType for the given api name and associates it with tags. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func RegisterAPIType(name string, tags []string) glib.Type { - cTags := gcharStrings(tags) - defer C.g_free((C.gpointer)(unsafe.Pointer(cTags))) - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - newType := C.gst_meta_api_type_register((*C.gchar)(cName), cTags) - return glib.Type(newType) -} - -// GetAPIInfo gets the MetaInfo for the given api type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetAPIInfo(name string) *MetaInfo { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - return wrapMetaInfo(C.gst_meta_get_info((*C.gchar)(cName))) -} - -// GetAPITags retrieves the tags for the given api type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetAPITags(apiType glib.Type) []string { - tags := C.gst_meta_api_type_get_tags(C.GType(apiType)) - return goStrings(C.sizeOfGCharArray(tags), tags) -} - -// APIHasTag returns true if the given api has the given tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func APIHasTag(api glib.Type, tag string) bool { - q := newQuarkFromString(tag) - return gobool(C.gst_meta_api_type_has_tag(C.GType(api), q)) -} - -// MetaInitFunc is a function called when meta is initialized in buffer. -type MetaInitFunc func(params interface{}, buffer *Buffer) bool - -// MetaFreeFunc is a function called when meta is freed in buffer. -type MetaFreeFunc func(buffer *Buffer) - -// MetaTransformFunc is a function called for each meta in buf as a result -// of performing a transformation on transbuf. Additional type specific transform -// data is passed to the function as data. -type MetaTransformFunc func(transBuf, buf *Buffer, mType string, data *MetaTransformCopy) bool - -// MetaTransformCopy is extra data passed to a MetaTransformFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type MetaTransformCopy struct { - // true if only region is copied - Region bool - // the offset to copy, 0 if region is FALSE, otherwise > 0 - Offset int64 - // the size to copy, -1 or the buffer size when region is FALSE - Size int64 -} - -// MetaInfoCallbackFuncs represents callback functions to include when registering a new -// meta type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type MetaInfoCallbackFuncs struct { - InitFunc MetaInitFunc - FreeFunc MetaFreeFunc - TransformFunc MetaTransformFunc -} - -// Register meta callbacks internally as well so we can track them. Not all -// GstMeta callbacks include userdata. -var registeredMetas = make(map[glib.Type]map[string]*MetaInfoCallbackFuncs) - -// RegisterMeta registers and returns a new MetaInfo instance denoting the -// given type, name, and size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func RegisterMeta(api glib.Type, name string, size int64, cbFuncs *MetaInfoCallbackFuncs) *MetaInfo { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - metaInfo := C.gst_meta_register( - C.GType(api), - (*C.gchar)(unsafe.Pointer(cName)), - C.gsize(size), - C.GstMetaInitFunction(C.cgoMetaInitFunc), - C.GstMetaFreeFunction(C.cgoMetaFreeFunc), - C.GstMetaTransformFunction(C.cgoMetaTransformFunc), - ) - if metaInfo == nil { - return nil - } - wrapped := wrapMetaInfo(metaInfo) - if registeredMetas[api] == nil { - registeredMetas[api] = make(map[string]*MetaInfoCallbackFuncs) - } - registeredMetas[api][name] = cbFuncs - return wrapped -} - -// Instance returns the underlying GstMetaInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) Instance() *C.GstMetaInfo { return m.ptr } - -// API returns the tag identifying the metadata structure and api. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) API() glib.Type { return glib.Type(m.Instance().api) } - -// SetAPI sets the API tag identifying the metadata structure and api. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) SetAPI(t glib.Type) { m.Instance().api = C.GType(t) } - -// Type returns the type identifying the implementor of the api. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) Type() glib.Type { return glib.Type(m.Instance()._type) } - -// SetType sets the type identifying the implementor of the api. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) SetType(t glib.Type) { m.Instance()._type = C.GType(t) } - -// Size returns the size of the metadata. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) Size() int64 { return int64(m.Instance().size) } - -// SetSize sets the size on the metadata. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MetaInfo) SetSize(size int64) { m.Instance().size = C.gsize(size) } diff --git a/gst/gst_mini_object.go b/gst/gst_mini_object.go deleted file mode 100644 index 8a0ee7b..0000000 --- a/gst/gst_mini_object.go +++ /dev/null @@ -1,109 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// MiniObject is an opaque struct meant to form the base of gstreamer -// classes extending the GstMiniObject. -// This object is a WIP and is intended primarily for forming the base of extending classes. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type MiniObject struct { - ptr unsafe.Pointer - parent *MiniObject -} - -// NewMiniObject initializes a new mini object with the desired flags, types, and callbacks. -// If you don't need any callbacks you can specify nil. -// TODO: This is more for reference and is not fully implemented. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewMiniObject(flags MiniObjectFlags, gtype glib.Type) *MiniObject { - var cMiniObj C.GstMiniObject - C.gst_mini_object_init( - C.toGstMiniObject(unsafe.Pointer(&cMiniObj)), - C.uint(flags), - C.gsize(gtype), - nil, nil, nil, - ) - return wrapMiniObject(&cMiniObj) -} - -// native returns the pointer to the underlying object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) unsafe() unsafe.Pointer { return m.ptr } - -// Parent returns the parent of this MiniObject -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) Parent() *MiniObject { return m.parent } - -// Instance returns the native GstMiniObject instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) Instance() *C.GstMiniObject { return C.toGstMiniObject(m.unsafe()) } - -// Ref increases the ref count on this object by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) Ref() { C.gst_mini_object_ref(m.Instance()) } - -// Unref decreases the ref count on this object by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) Unref() { C.gst_mini_object_unref(m.Instance()) } - -// AddParent adds the given object as a parent of this object. -// See https://gstreamer.freedesktop.org/documentation/gstreamer/gstminiobject.html?gi-language=c#gst_mini_object_add_parent. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) AddParent(parent *MiniObject) { - C.gst_mini_object_add_parent(m.Instance(), parent.Instance()) -} - -// Copy creates a copy of this object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) Copy() *MiniObject { - return wrapMiniObject(C.gst_mini_object_copy(m.Instance())) -} - -// Type returns the type of this mini object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) Type() glib.Type { - return glib.Type(m.Instance()._type) -} - -// GetData returns the userdata pointer associated with this object at the given key, -// or nil if none exists. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) GetData(name string) unsafe.Pointer { - data := C.gst_mini_object_get_qdata(m.Instance(), newQuarkFromString(name)) - if data == nil { - return nil - } - return unsafe.Pointer(data) -} - -// SetData sets a userdata pointer associated with this object at the given key, -// Use nil to delete an existing key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *MiniObject) SetData(name string, ptr unsafe.Pointer) { - C.gst_mini_object_set_qdata(m.Instance(), newQuarkFromString(name), (C.gpointer)(ptr), nil) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapMiniObject(p *C.GstMiniObject) *MiniObject { - return &MiniObject{ptr: unsafe.Pointer(p)} -} diff --git a/gst/gst_object.go b/gst/gst_object.go deleted file mode 100644 index 0cb1a36..0000000 --- a/gst/gst_object.go +++ /dev/null @@ -1,181 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Object is a go representation of a GstObject. -type Object struct{ *glib.InitiallyUnowned } - -// FromGstObjectUnsafeNone returns an Object wrapping the given pointer. It meant for internal -// usage and exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstObjectUnsafeNone(ptr unsafe.Pointer) *Object { return wrapObject(glib.TransferNone(ptr)) } - -// FromGstObjectUnsafeFull returns an Object wrapping the given pointer. It meant for internal -// usage and exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstObjectUnsafeFull(ptr unsafe.Pointer) *Object { return wrapObject(glib.TransferFull(ptr)) } - -// Instance returns the native C GstObject. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) Instance() *C.GstObject { return C.toGstObject(o.Unsafe()) } - -// BaseObject is a convenience method for retrieving this object from embedded structs. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) BaseObject() *Object { return o } - -// GstObject is an alias to Instance on the underlying GstObject of any extending struct. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) GstObject() *C.GstObject { return C.toGstObject(o.Unsafe()) } - -// GObject returns the underlying GObject instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) GObject() *glib.Object { return o.InitiallyUnowned.Object } - -// GetName returns the name of this object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) GetName() string { - cName := C.gst_object_get_name((*C.GstObject)(o.Instance())) - //cName could be NULL which needs to be freed using - defer C.g_free((C.gpointer)(unsafe.Pointer(cName))) - return C.GoString(cName) -} - -// GetParent retrieves the parent of this object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) GetParent() *Object { - return wrapObject(glib.Take(unsafe.Pointer(C.gst_object_get_parent(o.Instance())))) -} - -// GetValue retrieves the value for the given controlled property at the given timestamp. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) GetValue(property string, timestamp ClockTime) *glib.Value { - cprop := C.CString(property) - defer C.free(unsafe.Pointer(cprop)) - gval := C.gst_object_get_value(o.Instance(), (*C.gchar)(cprop), C.GstClockTime(timestamp)) - if gval == nil { - return nil - } - return glib.ValueFromNative(unsafe.Pointer(gval)) -} - -// SetName sets the name of this object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) SetName(name string) bool { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - return gobool(C.gst_object_set_name((*C.GstObject)(o.Instance()), (*C.gchar)(cName))) -} - -// SetParent sets the parent of this object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) SetParent(parent *Object) bool { - return gobool(C.gst_object_set_parent(o.Instance(), parent.Instance())) -} - -// SetArg sets the argument name to value on this object. Note that function silently returns -// if object has no property named name or when value cannot be converted to the type for this -// property. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) SetArg(name, value string) { - cName := C.CString(name) - cValue := C.CString(value) - defer C.free(unsafe.Pointer(cName)) - defer C.free(unsafe.Pointer(cValue)) - C.gst_util_set_object_arg( - (*C.GObject)(o.Unsafe()), - (*C.gchar)(unsafe.Pointer(cName)), - (*C.gchar)(unsafe.Pointer(cValue)), - ) -} - -// Log logs a message to the given category from this object using the currently registered -// debugging handlers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) Log(cat *DebugCategory, level DebugLevel, message string) { - cat.logDepth(level, message, 2, (*C.GObject)(o.Unsafe())) -} - -// Clear will will clear all references to this object. If the reference is already null -// the the function does nothing. Otherwise the reference count is decreased and the pointer -// set to null. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) Clear() { - if ptr := o.Unsafe(); ptr != nil { - C.gst_clear_object((**C.GstObject)(unsafe.Pointer(&ptr))) - } -} - -// Ref increments the reference count on object. This function does not take the lock on object -// because it relies on atomic refcounting. For convenience the same object is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) Ref() *Object { - C.gst_object_ref((C.gpointer)(o.Unsafe())) - return o -} - -// Unref decrements the reference count on object. If reference count hits zero, destroy object. -// This function does not take the lock on object as it relies on atomic refcounting. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) Unref() { - C.gst_object_unref((C.gpointer)(o.Unsafe())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) AddControlBinding(binding *ControlBinding) { - C.gst_object_add_control_binding(o.Instance(), binding.Instance()) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) RemoveControlBinding(binding *ControlBinding) { - C.gst_object_remove_control_binding(o.Instance(), binding.Instance()) -} - -// TODO: Consider wrapping GstObject GST_OBJECT_LOCK/GST_OBJECT_UNLOCK functionality -// due to following flags related functionality is based on a regular uint32 field -// and is not considered thread safe - -// Has returns true if this GstObject has the given flags. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) hasFlags(flags uint32) bool { - return gobool(C.gstObjectFlagIsSet(o.Instance(), C.guint32(flags))) -} - -// SetFlags sets the flags -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) setFlags(flags uint32) { - C.gstObjectFlagSet(o.Instance(), C.guint32(flags)) -} - -// SetFlags unsets the flags -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (o *Object) unsetFlags(flags uint32) { - C.gstObjectFlagUnset(o.Instance(), C.guint32(flags)) -} diff --git a/gst/gst_pad.go b/gst/gst_pad.go deleted file mode 100644 index 2099a34..0000000 --- a/gst/gst_pad.go +++ /dev/null @@ -1,1384 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean goPadStickyEventForEachFunc (GstPad * pad, GstEvent ** event, gpointer user_data); -extern GstPadProbeReturn goPadProbeFunc (GstPad * pad, GstPadProbeInfo * info, gpointer user_data); -extern gboolean goPadForwardFunc (GstPad * pad, gpointer user_data); -extern void goGDestroyNotifyFuncNoRun (gpointer user_data); - -extern void goGstPadFuncDestroyNotify (PadDestroyNotifyInfo *info); -extern gboolean goGstPadActivateFunction (GstPad * pad, GstObject * parent); -extern gboolean goGstPadActivateModeFunction (GstPad * pad, GstObject * parent, GstPadMode mode, gboolean active); -extern GstFlowReturn goGstPadChainFunction (GstPad * pad, GstObject * parent, GstBuffer * buffer); -extern GstFlowReturn goGstPadChainListFunction (GstPad * pad, GstObject * parent, GstBufferList * list); -extern GstFlowReturn goGstPadEventFullFunction (GstPad * pad, GstObject * parent, GstEvent * event); -extern gboolean goGstPadEventFunction (GstPad * pad, GstObject * parent, GstEvent * event); -extern GstFlowReturn goGstPadGetRangeFunction (GstPad * pad, GstObject * parent, guint64 offset, guint length, GstBuffer ** buffer); -extern GstIterator * goGstPadIterIntLinkFunction (GstPad * pad, GstObject * parent); -extern GstPadLinkReturn goGstPadLinkFunction (GstPad * pad, GstObject * parent, GstPad * peer); -extern gboolean goGstPadQueryFunction (GstPad * pad, GstObject * parent, GstQuery * query); -extern void goGstPadUnlinkFunction (GstPad * pad, GstObject * parent); - -gboolean -padsAreEqual(void * pad1, void * pad2) { return pad1 == pad2; } - -void -cgoPadFuncDestroyNotify (gpointer notify_info) -{ - goGstPadFuncDestroyNotify((PadDestroyNotifyInfo *)notify_info); - free(notify_info); -} - -gboolean -cgoGstPadActivateFunction(GstPad * pad, GstObject * parent) { return goGstPadActivateFunction(pad, parent); } - -gboolean -cgoGstPadActivateModeFunction (GstPad * pad, GstObject * parent, GstPadMode mode, gboolean active) { return goGstPadActivateModeFunction(pad, parent, mode, active); } - -GstFlowReturn -cgoGstPadChainFunction (GstPad * pad, GstObject * parent, GstBuffer * buffer) { return goGstPadChainFunction(pad, parent, buffer); } - -GstFlowReturn -cgoGstPadChainListFunction (GstPad * pad, GstObject * parent, GstBufferList * list) { return goGstPadChainListFunction(pad, parent, list); } - -gboolean -cgoGstPadEventFunction (GstPad * pad, GstObject * parent, GstEvent * event) { return goGstPadEventFunction(pad, parent, event); } - -GstFlowReturn -cgoGstPadEventFullFunction (GstPad * pad, GstObject * parent, GstEvent * event) { return goGstPadEventFullFunction(pad, parent, event); } - -GstFlowReturn -cgoGstPadGetRangeFunction (GstPad * pad, GstObject * parent, guint64 offset, guint length, GstBuffer ** buffer) { return goGstPadGetRangeFunction(pad, parent, offset, length, buffer); } - -GstIterator * -cgoGstPadIterIntLinkFunction (GstPad * pad, GstObject * parent) { return goGstPadIterIntLinkFunction(pad, parent); } - -GstPadLinkReturn -cgoGstPadLinkFunction (GstPad * pad, GstObject * parent, GstPad * peer) { return goGstPadLinkFunction(pad, parent, peer); } - -gboolean -cgoGstPadQueryFunction (GstPad * pad, GstObject * parent, GstQuery * query) { return goGstPadQueryFunction(pad, parent, query); } - -void -cgoGstPadUnlinkFunction (GstPad * pad, GstObject * parent) { return goGstPadUnlinkFunction(pad, parent); } - -GstPadProbeReturn -cgoPadProbeFunc (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) { return goPadProbeFunc(pad, info, user_data); } - -gboolean -cgoPadForwardFunc (GstPad * pad, gpointer user_data) { return goPadForwardFunc(pad, user_data); } - -gboolean -cgoPadStickyEventForEachFunc (GstPad * pad, GstEvent ** event, gpointer user_data) { return goPadStickyEventForEachFunc(pad, event, user_data); } - -void -cgoGDestroyNotifyFuncNoRun (gpointer user_data) { goGDestroyNotifyFuncNoRun(user_data); } - -*/ -import "C" - -import ( - "errors" - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// PadFuncMap is an type of map for registering callbacks to a pad instance. -// It compensates for the lack of userdata in pad callbacks by providing a FuncForPad -// method that will return the function matching the Pad at the given address. -type PadFuncMap map[unsafe.Pointer]interface{} - -// FuncForPad will return the function in this map for the given pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p PadFuncMap) FuncForPad(pad unsafe.Pointer) interface{} { - for k, v := range p { - if gobool(C.padsAreEqual(k, pad)) { - return v - } - } - return nil -} - -// RemoveFuncForPad will remove the function for the given pad from this map. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p PadFuncMap) RemoveFuncForPad(pad unsafe.Pointer) { - for k := range p { - if gobool(C.padsAreEqual(k, pad)) { - delete(p, k) - } - } -} - -// Pad is a go representation of a GstPad -type Pad struct{ *Object } - -// FromGstPadUnsafeFull wraps the given pad in a reference and finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPadUnsafeFull(pad unsafe.Pointer) *Pad { - return &Pad{wrapObject(glib.TransferFull(pad))} -} - -// FromGstPadUnsafeNone wraps the given pad in a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPadUnsafeNone(pad unsafe.Pointer) *Pad { - return &Pad{wrapObject(glib.TransferNone(pad))} -} - -// NewPad returns a new pad with the given direction. If name is empty, one will be generated for you. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPad(name string, direction PadDirection) *Pad { - var cName *C.gchar - if name != "" { - cStr := C.CString(name) - defer C.free(unsafe.Pointer(cStr)) - cName = (*C.gchar)(unsafe.Pointer(cStr)) - } - pad := C.gst_pad_new(cName, C.GstPadDirection(direction)) - if pad == nil { - return nil - } - return FromGstPadUnsafeNone(unsafe.Pointer(pad)) -} - -// NewPadFromTemplate creates a new pad with the given name from the given template. If name is empty, one will -// be generated for you. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPadFromTemplate(tmpl *PadTemplate, name string) *Pad { - var cName *C.gchar - if name != "" { - cStr := C.CString(name) - defer C.free(unsafe.Pointer(cStr)) - cName = (*C.gchar)(unsafe.Pointer(cStr)) - } - pad := C.gst_pad_new_from_template(tmpl.Instance(), cName) - if pad == nil { - return nil - } - return FromGstPadUnsafeNone(unsafe.Pointer(pad)) -} - -// Instance returns the underlying C GstPad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Instance() *C.GstPad { return C.toGstPad(p.Unsafe()) } - -// Direction returns the direction of this pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Direction() PadDirection { - return PadDirection(C.gst_pad_get_direction((*C.GstPad)(p.Instance()))) -} - -// Template returns the template for this pad or nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Template() *PadTemplate { - return wrapPadTemplate(toGObject(unsafe.Pointer(p.Instance().padtemplate))) -} - -// CurrentCaps returns the caps for this Pad or nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) CurrentCaps() *Caps { - caps := C.gst_pad_get_current_caps((*C.GstPad)(p.Instance())) - if caps == nil { - return nil - } - return FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// ActivateMode activates or deactivates the given pad in mode via dispatching to the pad's activatemodefunc. -// For use from within pad activation functions only. -// -// If you don't know what this is, you probably don't want to call it. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) ActivateMode(mode PadMode, active bool) { - C.gst_pad_activate_mode(p.Instance(), C.GstPadMode(mode), gboolean(active)) -} - -// PadProbeCallback is a callback used by Pad AddProbe. It gets called to notify about the current blocking type. -type PadProbeCallback func(*Pad, *PadProbeInfo) PadProbeReturn - -// AddProbe adds a callback to be notified of different states of pads. The provided callback is called for every state that matches mask. -// -// Probes are called in groups: First GST_PAD_PROBE_TYPE_BLOCK probes are called, then others, then finally GST_PAD_PROBE_TYPE_IDLE. The only -// exception here are GST_PAD_PROBE_TYPE_IDLE probes that are called immediately if the pad is already idle while calling gst_pad_add_probe. -// In each of the groups, probes are called in the order in which they were added. -// -// A probe ID is returned that can be used to remove the probe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) AddProbe(mask PadProbeType, f PadProbeCallback) uint64 { - ptr := gopointer.Save(f) - - padprobesProfile.Add(ptr, 1) - - ret := C.gst_pad_add_probe( - p.Instance(), - C.GstPadProbeType(mask), - C.GstPadProbeCallback(C.cgoPadProbeFunc), - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.cgoGDestroyNotifyFuncNoRun), - ) - return uint64(ret) -} - -// CanLink checks if this pad is compatible with the given sink pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) CanLink(sink *Pad) bool { - return gobool(C.gst_pad_can_link(p.Instance(), sink.Instance())) -} - -// Chain a buffer to pad. -// -// The function returns FlowFlushing if the pad was flushing. -// -// If the buffer type is not acceptable for pad (as negotiated with a preceding EventCaps event), this function returns FlowNotNegotiated. -// -// The function proceeds calling the chain function installed on pad (see SetChainFunction) and the return value of that function is returned to -// the caller. FlowNotSupported is returned if pad has no chain function. -// -// In all cases, success or failure, the caller loses its reference to buffer after calling this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Chain(buffer *Buffer) FlowReturn { - return FlowReturn(C.gst_pad_chain(p.Instance(), buffer.Ref().Instance())) -} - -// ChainList chains a bufferlist to pad. -// -// The function returns FlowFlushing if the pad was flushing. -// -// If pad was not negotiated properly with a CAPS event, this function returns FlowNotNegotiated. -// -// The function proceeds calling the chainlist function installed on pad (see SetChainListFunction) and the return value of that function is returned -// to the caller. FlowNotSupported is returned if pad has no chainlist function. -// -// In all cases, success or failure, the caller loses its reference to list after calling this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) ChainList(bufferList *BufferList) FlowReturn { - return FlowReturn(C.gst_pad_chain_list(p.Instance(), bufferList.Ref().Instance())) -} - -// CheckReconfigure checks and clear the PadFlagNeedReconfigure flag on pad and return TRUE if the flag was set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) CheckReconfigure() bool { - return gobool(C.gst_pad_check_reconfigure(p.Instance())) -} - -// CreateStreamID creates a stream-id for the source GstPad pad by combining the upstream information with the optional stream_id of the stream of pad. -// Pad must have a parent GstElement and which must have zero or one sinkpad. stream_id can only be NULL if the parent element of pad has only a single -// source pad. -// -// This function generates an unique stream-id by getting the upstream stream-start event stream ID and appending stream_id to it. If the element has no -// sinkpad it will generate an upstream stream-id by doing an URI query on the element and in the worst case just uses a random number. Source elements -// that don't implement the URI handler interface should ideally generate a unique, deterministic stream-id manually instead. -// -// Since stream IDs are sorted alphabetically, any numbers in the stream ID should be printed with a fixed number of characters, preceded by 0's, such as -// by using the format %03u instead of %u. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) CreateStreamID(parent *Element, streamID string) string { - var gstreamID *C.gchar - if streamID != "" { - ptr := C.CString(streamID) - defer C.free(unsafe.Pointer(ptr)) - gstreamID = (*C.gchar)(unsafe.Pointer(ptr)) - } - ret := C.gst_pad_create_stream_id(p.Instance(), parent.Instance(), gstreamID) - if ret == nil { - return "" - } - defer C.g_free((C.gpointer)(unsafe.Pointer(ret))) - return C.GoString(ret) -} - -// EventDefault invokes the default event handler for the given pad. -// -// The EOS event will pause the task associated with pad before it is forwarded to all internally linked pads, -// -// The event is sent to all pads internally linked to pad. This function takes ownership of event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) EventDefault(parent *Object, event *Event) bool { - if parent == nil { - return gobool(C.gst_pad_event_default(p.Instance(), nil, event.Ref().Instance())) - } - return gobool(C.gst_pad_event_default(p.Instance(), parent.Instance(), event.Ref().Instance())) -} - -// PadForwardFunc is called for all internally linked pads, see Pad Forward(). -// If the function returns true, the procedure is stopped. -type PadForwardFunc func(pad *Pad) bool - -// Forward calls the given function for all internally linked pads of pad. This function deals with dynamically changing internal pads and will make sure -// that the forward function is only called once for each pad. -// -// When forward returns TRUE, no further pads will be processed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Forward(f PadForwardFunc) bool { - ptr := gopointer.Save(f) - defer gopointer.Unref(ptr) - return gobool(C.gst_pad_forward( - p.Instance(), - C.GstPadForwardFunction(C.cgoPadForwardFunc), - (C.gpointer)(unsafe.Pointer(ptr)), - )) -} - -// GetAllowedCaps getss the capabilities of the allowed media types that can flow through pad and its peer. -// -// The allowed capabilities is calculated as the intersection of the results of calling QueryCaps on pad and its peer. The caller owns a reference on the -// resulting caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetAllowedCaps() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_pad_get_allowed_caps( - p.Instance(), - ))) -} - -// GetCurrentCaps gets the capabilities currently configured on pad with the last EventCaps event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetCurrentCaps() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_pad_get_current_caps( - p.Instance(), - ))) -} - -// GetDirection gets the direction of the pad. The direction of the pad is decided at construction time so this function does not take the LOCK. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetDirection() PadDirection { - return PadDirection(C.gst_pad_get_direction(p.Instance())) -} - -// GetElementPrivate gets the private data of a pad. No locking is performed in this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetElementPrivate() interface{} { - ptr := C.gst_pad_get_element_private(p.Instance()) - return gopointer.Restore(unsafe.Pointer(ptr)) -} - -// GetLastFlowReturn gets the FlowReturn return from the last data passed by this pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetLastFlowReturn() FlowReturn { - return FlowReturn(C.gst_pad_get_last_flow_return( - p.Instance(), - )) -} - -// GetOffset gets the offset applied to the running time of pad. pad has to be a source pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetOffset() int64 { - return int64(C.gst_pad_get_offset(p.Instance())) -} - -// GetPadTemplate gets the template for this pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetPadTemplate() *PadTemplate { - tmpl := C.gst_pad_get_pad_template(p.Instance()) - if tmpl == nil { - return nil - } - return FromGstPadTemplateUnsafeFull(unsafe.Pointer(tmpl)) -} - -// GetPadTemplateCaps gets the capabilities for pad's template. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetPadTemplateCaps() *Caps { - caps := C.gst_pad_get_pad_template_caps(p.Instance()) - if caps == nil { - return nil - } - return FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// GetParentElement gets the parent of pad, cast to a Element. If a pad has no parent or its -// parent is not an element, return nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetParentElement() *Element { - elem := C.gst_pad_get_parent_element(p.Instance()) - if elem == nil { - return nil - } - return FromGstElementUnsafeFull(unsafe.Pointer(elem)) -} - -// GetPeer gets the peer of pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetPeer() *Pad { - peer := C.gst_pad_get_peer(p.Instance()) - if peer == nil { - return nil - } - return FromGstPadUnsafeFull(unsafe.Pointer(peer)) -} - -// GetRange calls the getrange function of pad, see PadGetRangeFunc for a description of a getrange function. -// If pad has no getrange function installed (see SetGetRangeFunction) this function returns FlowNotSupported. -// -// If buffer points to a variable holding nil, a valid new GstBuffer will be placed in buffer when this function -// returns FlowOK. The new buffer must be freed with -// -// When buffer points to a variable that points to a valid Buffer, the buffer will be filled with the result data -// when this function returns FlowOK. If the provided buffer is larger than size, only size bytes will be filled -// in the result buffer and its size will be updated accordingly. -// -// Note that less than size bytes can be returned in buffer when, for example, an EOS condition is near or when -// buffer is not large enough to hold size bytes. The caller should check the result buffer size to get the result -// size. -// -// When this function returns any other result value than FlowOK, buffer will be unchanged. -// -// This is a lowlevel function. Usually PullRange is used. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetRange(offset uint64, size uint, buffer *Buffer) (FlowReturn, *Buffer) { - var buf *C.GstBuffer - if buffer != nil { - buf = buffer.Instance() - } - ret := C.gst_pad_get_range(p.Instance(), C.guint64(offset), C.guint(size), &buf) - var newBuf *Buffer - if buf != nil { - newBuf = wrapBuffer(buf) - } else { - newBuf = nil - } - return FlowReturn(ret), newBuf -} - -// GetStickyEvent returns a new reference of the sticky event of type event_type from the event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetStickyEvent(eventType EventType, idx uint) *Event { - ev := C.gst_pad_get_sticky_event(p.Instance(), C.GstEventType(eventType), C.guint(idx)) - if ev == nil { - return nil - } - return FromGstEventUnsafeFull(unsafe.Pointer(ev)) -} - -// GetStream returns the current Stream for the pad, or nil if none has been set yet, i.e. the pad has not received a -// stream-start event yet. -// -// This is a convenience wrapper around GetStickyEvent and Event ParseStream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetStream() *Stream { - st := C.gst_pad_get_stream(p.Instance()) - if st == nil { - return nil - } - return FromGstStreamUnsafeFull(unsafe.Pointer(st)) -} - -// GetStreamID returns the current stream-id for the pad, or an empty string if none has been set yet, i.e. the pad has not received -// a stream-start event yet. -// -// This is a convenience wrapper around gst_pad_get_sticky_event and gst_event_parse_stream_start. -// -// The returned stream-id string should be treated as an opaque string, its contents should not be interpreted. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetStreamID() string { - id := C.gst_pad_get_stream_id(p.Instance()) - if id == nil { - return "" - } - defer C.g_free((C.gpointer)(unsafe.Pointer(id))) - return C.GoString(id) -} - -// GetTaskState gets the pad task state. If no task is currently set, TaskStopped is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetTaskState() TaskState { - return TaskState(C.gst_pad_get_task_state(p.Instance())) -} - -// HasCurrentCaps checks if pad has caps set on it with a GST_EVENT_CAPS event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) HasCurrentCaps() bool { - return gobool(C.gst_pad_has_current_caps(p.Instance())) -} - -// IsActive queries if a pad is active -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) IsActive() bool { - return gobool(C.gst_pad_is_active(p.Instance())) -} - -// IsBlocked checks if the pad is blocked or not. This function returns the last requested state of the pad. It is not certain that -// the pad is actually blocking at this point (see IsBlocking). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) IsBlocked() bool { - return gobool(C.gst_pad_is_blocked(p.Instance())) -} - -// IsBlocking checks if the pad is blocking or not. This is a guaranteed state of whether the pad is actually blocking on a GstBuffer -// or a GstEvent. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) IsBlocking() bool { - return gobool(C.gst_pad_is_blocking(p.Instance())) -} - -// IsLinked checks if a pad is linked to another pad or not. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) IsLinked() bool { - return gobool(C.gst_pad_is_linked(p.Instance())) -} - -// GetInternalLinks gets the pads to which the given pad is linked to inside of the parent element. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetInternalLinks() ([]*Pad, error) { - iterator := C.gst_pad_iterate_internal_links(p.Instance()) - if iterator == nil { - return nil, nil - } - return iteratorToPadSlice(iterator) -} - -// GetInternalLinksDefault gets the list of pads to which the given pad is linked to inside of the parent element. This is the default -// handler, and thus returns all of the pads inside the parent element with opposite direction. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) GetInternalLinksDefault(parent *Object) ([]*Pad, error) { - iterator := C.gst_pad_iterate_internal_links_default(p.Instance(), parent.Instance()) - if iterator == nil { - return nil, nil - } - return iteratorToPadSlice(iterator) -} - -// Link links a sink pad to this source pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Link(sink *Pad) PadLinkReturn { - return PadLinkReturn(C.gst_pad_link(p.Instance(), sink.Instance())) -} - -// LinkFull links this source pad and the sink pad. -// -// This variant of Link provides a more granular control on the checks being done when linking. While providing some considerable speedups -// the caller of this method must be aware that wrong usage of those flags can cause severe issues. Refer to the documentation of GstPadLinkCheck -// for more information. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) LinkFull(sink *Pad, flags PadLinkCheck) PadLinkReturn { - return PadLinkReturn(C.gst_pad_link_full(p.Instance(), sink.Instance(), C.GstPadLinkCheck(flags))) -} - -// LinkMaybeGhosting links this src to sink, creating any GstGhostPad's in between as necessary. -// -// This is a convenience function to save having to create and add intermediate GstGhostPad's as required for linking across GstBin boundaries. -// -// If src or sink pads don't have parent elements or do not share a common ancestor, the link will fail. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) LinkMaybeGhosting(sink *Pad) bool { - return gobool(C.gst_pad_link_maybe_ghosting(p.Instance(), sink.Instance())) -} - -// LinkMaybeGhostingFull links this src to sink, creating any GstGhostPad's in between as necessary. -// -// This is a convenience function to save having to create and add intermediate GstGhostPad's as required for linking across GstBin boundaries. -// -// If src or sink pads don't have parent elements or do not share a common ancestor, the link will fail. -// -// Calling LinkMaybeGhostingFull with flags == PadLinkCheckDefault is the recommended way of linking pads with safety checks applied. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) LinkMaybeGhostingFull(sink *Pad, flags PadLinkCheck) bool { - return gobool(C.gst_pad_link_maybe_ghosting_full(p.Instance(), sink.Instance(), C.GstPadLinkCheck(flags))) -} - -// MarkReconfigure marks this pad for needing reconfiguration. The next call to CheckReconfigure will return TRUE after this call. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) MarkReconfigure() { - C.gst_pad_mark_reconfigure(p.Instance()) -} - -// NeedsReconfigure checks the GST_PAD_FLAG_NEED_RECONFIGURE flag on pad and return TRUE if the flag was set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) NeedsReconfigure() bool { - return gobool(C.gst_pad_needs_reconfigure(p.Instance())) -} - -// PauseTask pauses the task of pad. This function will also wait until the function executed by the task is finished if this function is not called -// from the task function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PauseTask() bool { - return gobool(C.gst_pad_pause_task(p.Instance())) -} - -// PeerQuery performs PadQuery on the peer of pad. -// -// The caller is responsible for both the allocation and deallocation of the query structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PeerQuery(query *Query) bool { - return gobool(C.gst_pad_peer_query(p.Instance(), query.Instance())) -} - -// PeerQueryAcceptCaps checks if the peer of pad accepts caps. If pad has no peer, this function returns TRUE. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PeerQueryAcceptCaps(caps *Caps) bool { - return gobool(C.gst_pad_peer_query_accept_caps(p.Instance(), caps.Instance())) -} - -// PeerQueryCaps gets the capabilities of the peer connected to this pad. Similar to QueryCaps. -// -// When called on srcpads filter contains the caps that upstream could produce in the order preferred by upstream. -// When called on sinkpads filter contains the caps accepted by downstream in the preferred order. filter might be nil but if it is not nil -// the returned caps will be a subset of filter. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PeerQueryCaps(filter *Caps) *Caps { - var caps *C.GstCaps - if filter == nil { - caps = C.gst_pad_peer_query_caps(p.Instance(), nil) - } else { - caps = C.gst_pad_peer_query_caps(p.Instance(), filter.Instance()) - } - if caps == nil { - return nil - } - return FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// PeerQueryConvert queries the peer pad of a given sink pad to convert src_val in src_format to dest_format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PeerQueryConvert(srcFormat, destFormat Format, srcVal int64) (bool, int64) { - var out C.gint64 - gok := C.gst_pad_peer_query_convert(p.Instance(), C.GstFormat(srcFormat), C.gint64(srcVal), C.GstFormat(destFormat), &out) - return gobool(gok), int64(out) -} - -// PeerQueryDuration queries the peer pad of a given sink pad for the total stream duration. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PeerQueryDuration(format Format) (bool, int64) { - var out C.gint64 - gok := C.gst_pad_peer_query_duration(p.Instance(), C.GstFormat(format), &out) - return gobool(gok), int64(out) -} - -// PeerQueryPosition queries the peer of a given sink pad for the stream position. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PeerQueryPosition(format Format) (bool, int64) { - var out C.gint64 - gok := C.gst_pad_peer_query_position(p.Instance(), C.GstFormat(format), &out) - return gobool(gok), int64(out) -} - -// ProxyQueryAcceptCaps checks if all internally linked pads of pad accepts the caps in query and returns the intersection of the results. -// -// This function is useful as a default accept caps query function for an element that can handle any stream format, but requires caps that -// are acceptable for all opposite pads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) ProxyQueryAcceptCaps(query *Query) bool { - return gobool(C.gst_pad_proxy_query_accept_caps(p.Instance(), query.Instance())) -} - -// ProxyQueryCaps calls QueryCaps for all internally linked pads of pad and returns the intersection of the results. -// -// This function is useful as a default caps query function for an element that can handle any stream format, but requires all its pads to have -// the same caps. Two such elements are tee and adder. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) ProxyQueryCaps(query *Query) bool { - return gobool(C.gst_pad_proxy_query_caps(p.Instance(), query.Instance())) -} - -// PullRange pulls a buffer from the peer pad or fills up a provided buffer. -// -// This function will first trigger the pad block signal if it was installed. -// -// When pad is not linked GST_FLOW_NOT_LINKED is returned else this function returns the result of GetRange on the peer pad. See GetRange for a list -// of return values and for the semantics of the arguments of this function. -// -// If buffer points to a variable holding nil, a valid new GstBuffer will be placed in buffer when this function returns GST_FLOW_OK. The new buffer -// must be freed with When this function returns any other result value, buffer will still point to NULL. -// -// When buffer points to a variable that points to a valid GstBuffer, the buffer will be filled with the result data when this function returns GST_FLOW_OK. -// When this function returns any other result value, buffer will be unchanged. If the provided buffer is larger than size, only size bytes will be filled -// in the result buffer and its size will be updated accordingly. -// -// Note that less than size bytes can be returned in buffer when, for example, an EOS condition is near or when buffer is not large enough to hold size bytes. -// The caller should check the result buffer size to get the result size. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PullRange(offset uint64, size uint, buffer *Buffer) (FlowReturn, *Buffer) { - var buf *C.GstBuffer - if buffer != nil { - buf = buffer.Instance() - } - ret := C.gst_pad_pull_range(p.Instance(), C.guint64(offset), C.guint(size), &buf) - var newBuf *Buffer - if buf != nil { - newBuf = FromGstBufferUnsafeFull(unsafe.Pointer(buf)) - } else { - newBuf = nil - } - return FlowReturn(ret), newBuf -} - -// Push pushes a buffer to the peer of pad. -// -// This function will call installed block probes before triggering any installed data probes. -// -// The function proceeds calling Chain on the peer pad and returns the value from that function. If pad has no peer, GST_FLOW_NOT_LINKED will be returned. -// -// In all cases, success or failure, the caller loses its reference to buffer after calling this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Push(buf *Buffer) FlowReturn { - return FlowReturn(C.gst_pad_push(p.Instance(), buf.Ref().Instance())) -} - -// PushEvent sends the event to the peer of the given pad. This function is mainly used by elements to send events to their peer elements. -// -// This function takes ownership of the provided event so you should Ref it if you want to reuse the event after this call. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PushEvent(ev *Event) bool { - return gobool(C.gst_pad_push_event(p.Instance(), ev.Ref().Instance())) -} - -// PushList pushes a buffer list to the peer of pad. -// -// This function will call installed block probes before triggering any installed data probes. -// -// The function proceeds calling the chain function on the peer pad and returns the value from that function. If pad has no peer, GST_FLOW_NOT_LINKED will be -// returned. If the peer pad does not have any installed chainlist function every group buffer of the list will be merged into a normal GstBuffer and chained via -// Chain. -// -// In all cases, success or failure, the caller loses its reference to list after calling this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) PushList(bufList *BufferList) FlowReturn { - return FlowReturn(C.gst_pad_push_list(p.Instance(), bufList.Ref().Instance())) -} - -// Query dispatches a query to a pad. The query should have been allocated by the caller via one of the type-specific allocation functions. The element that the -// pad belongs to is responsible for filling the query with an appropriate response, which should then be parsed with a type-specific query parsing function. -// -// Again, the caller is responsible for both the allocation and deallocation of the query structure. -// -// Please also note that some queries might need a running pipeline to work. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Query(query *Query) bool { - return gobool(C.gst_pad_query(p.Instance(), query.Instance())) -} - -// QueryAcceptCaps checks if the given pad accepts the caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) QueryAcceptCaps(caps *Caps) bool { - return gobool(C.gst_pad_query_accept_caps(p.Instance(), caps.Instance())) -} - -// QueryCaps gets the capabilities this pad can produce or consume. Note that this method doesn't necessarily return the caps set by sending a NewCapsEvent - use GetCurrentCaps -// for that instead. QueryCaps returns all possible caps a pad can operate with, using the pad's CAPS query function, If the query fails, this function will return filter, if not -// NULL, otherwise ANY. -// -// When called on sinkpads filter contains the caps that upstream could produce in the order preferred by upstream. When called on srcpads filter contains the caps accepted by -// downstream in the preferred order. filter might be NULL but if it is not NULL the returned caps will be a subset of filter. -// -// Note that this function does not return writable GstCaps, use gst_caps_make_writable before modifying the caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) QueryCaps(filter *Caps) *Caps { - var caps *C.GstCaps - if filter == nil { - caps = C.gst_pad_query_caps(p.Instance(), nil) - } else { - caps = C.gst_pad_query_caps(p.Instance(), filter.Instance()) - } - if caps == nil { - return nil - } - return FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// QueryConvert queries a pad to convert src_val in src_format to dest_format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) QueryConvert(srcFormat, destFormat Format, srcVal int64) (bool, int64) { - var out C.gint64 - gok := C.gst_pad_query_convert(p.Instance(), C.GstFormat(srcFormat), C.gint64(srcVal), C.GstFormat(destFormat), &out) - return gobool(gok), int64(out) -} - -// QueryDefault invokes the default query handler for the given pad. The query is sent to all pads internally linked to pad. Note that if there are many possible sink pads that are -// internally linked to pad, only one will be sent the query. Multi-sinkpad elements should implement custom query handlers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) QueryDefault(parent *Object, query *Query) bool { - return gobool(C.gst_pad_query_default(p.Instance(), parent.Instance(), query.Instance())) -} - -// QueryDuration queries a pad for the total stream duration. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) QueryDuration(format Format) (bool, int64) { - var out C.gint64 - gok := C.gst_pad_query_duration(p.Instance(), C.GstFormat(format), &out) - return gobool(gok), int64(out) -} - -// QueryPosition queries a pad for the stream position. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) QueryPosition(format Format) (bool, int64) { - var out C.gint64 - gok := C.gst_pad_query_position(p.Instance(), C.GstFormat(format), &out) - return gobool(gok), int64(out) -} - -// RemoveProbe removes the probe with id from pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) RemoveProbe(id uint64) { - C.gst_pad_remove_probe(p.Instance(), C.gulong(id)) -} - -// SendEvent sends the event to the pad. This function can be used by applications to send events in the pipeline. -// -// If pad is a source pad, event should be an upstream event. If pad is a sink pad, event should be a downstream event. -// For example, you would not send a GST_EVENT_EOS on a src pad; EOS events only propagate downstream. Furthermore, some -// downstream events have to be serialized with data flow, like EOS, while some can travel out-of-band, like GST_EVENT_FLUSH_START. -// If the event needs to be serialized with data flow, this function will take the pad's stream lock while calling its event function. -// -// To find out whether an event type is upstream, downstream, or downstream and serialized, see GstEventTypeFlags, gst_event_type_get_flags, -// GST_EVENT_IS_UPSTREAM, GST_EVENT_IS_DOWNSTREAM, and GST_EVENT_IS_SERIALIZED. Note that in practice that an application or plugin doesn't -// need to bother itself with this information; the core handles all necessary locks and checks. -// -// This function takes ownership of the provided event so you should gst_event_ref it if you want to reuse the event after this call. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SendEvent(ev *Event) bool { - return gobool(C.gst_pad_send_event(p.Instance(), ev.Ref().Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) registerCallback(f interface{}, fmap PadFuncMap) *C.PadDestroyNotifyInfo { - selfPtr := p.Unsafe() - - fmap[selfPtr] = f - - notifyInfo := (*C.PadDestroyNotifyInfo)(C.malloc(C.sizeof_PadDestroyNotifyInfo)) - notifyInfo.pad_ptr = (C.gpointer)(gopointer.Save(selfPtr)) - notifyInfo.func_map_ptr = (C.gpointer)(gopointer.Save(fmap)) - - return notifyInfo -} - -// PadActivateFunc is called when the pad is activated during the element READY to PAUSED state change. By default -// this function will call the activate function that puts the pad in push mode but elements can override this -// function to activate the pad in pull mode if they wish. -type PadActivateFunc func(self *Pad, parent *Object) bool - -var padActivateFuncs PadFuncMap = make(PadFuncMap) - -// SetActivateFunction sets the given active function on the pad. The activate function will dispatch to ActivateMode to perform -// the actual activation. Only makes sense to set on sink pads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetActivateFunction(f PadActivateFunc) { - notifyInfo := p.registerCallback(f, padActivateFuncs) - C.gst_pad_set_activate_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadActivateFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadActivateModeFunc is the prototype of the push and pull activate functions. -type PadActivateModeFunc func(self *Pad, parent *Object, mode PadMode, active bool) bool - -var padActivateModeFuncs PadFuncMap = make(PadFuncMap) - -// SetActivateModeFunction sets the given activate_mode function for the pad. An activate_mode function prepares -// the element for data passing. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetActivateModeFunction(f PadActivateModeFunc) { - notifyInfo := p.registerCallback(f, padActivateModeFuncs) - C.gst_pad_set_activatemode_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadActivateModeFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// SetActive activates or deactivates the given pad. Normally called from within core state change functions. -// -// If active, makes sure the pad is active. If it is already active, either in push or pull mode, just return. Otherwise dispatches to the -// pad's activate function to perform the actual activation. -// -// If not active, calls ActivateMode with the pad's current mode and a FALSE argument. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetActive(active bool) bool { - return gobool(C.gst_pad_set_active(p.Instance(), gboolean(active))) -} - -// PadChainFunc is a function that will be called on sinkpads when chaining buffers. The function typically -// processes the data contained in the buffer and either consumes the data or passes it on to the internally -// linked pad(s). -// -// The GStreamer API will produce a refcount to buffer, and the bindings will automatically call Unref after the -// function returns. If you'd like to hold on to the buffer longer, add an additional ref yourself or create a copy. -// -// When a chain function detects an error in the data stream, it must post an error on the bus and return an -// appropriate FlowReturn value. -type PadChainFunc func(self *Pad, parent *Object, buffer *Buffer) FlowReturn - -var padChainFuncs PadFuncMap = make(PadFuncMap) - -// SetChainFunction sets the given chain function for the pad. The chain function is called to process an input buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetChainFunction(f PadChainFunc) { - notifyInfo := p.registerCallback(f, padChainFuncs) - C.gst_pad_set_chain_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadChainFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadChainListFunc is a function that will be called on sinkpads when chaining buffer lists. The function typically -// processes the data contained in the buffer list and either consumes the data or passes it on to the internally -// linked pad(s). -// -// The GStreamer API will produce a refcount to list, and the bindings will automatically call Unref after the -// function returns. If you'd like to hold on to the list longer, add an additional ref yourself or create a copy. -// -// When a chainlist function detects an error in the data stream, it must post an error on the bus and return an -// appropriate FlowReturn value. -type PadChainListFunc func(self *Pad, parent *Object, list *BufferList) FlowReturn - -var padChainListFuncs PadFuncMap = make(PadFuncMap) - -// SetChainListFunction sets the given chain function for the pad. The chain function is called to process an input buffer list. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetChainListFunction(f PadChainListFunc) { - notifyInfo := p.registerCallback(f, padChainListFuncs) - C.gst_pad_set_chain_list_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadChainListFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// SetElementPrivate sets the given private data pointer on the pad. This function can only be used by the element that owns the pad. -// No locking is performed in this function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetElementPrivate(data interface{}) { - ptr := gopointer.Save(data) - C.gst_pad_set_element_private(p.Instance(), (C.gpointer)(unsafe.Pointer(ptr))) -} - -// PadEventFullFunc is the function signature to handle an event for the pad. This variant is for specific elements that -// will take into account the last downstream flow return (from a pad push), in which case they can return it. -type PadEventFullFunc func(self *Pad, parent *Object, event *Event) FlowReturn - -var padEventFullFuncs PadFuncMap = make(PadFuncMap) - -// SetEventFullFunction sets the given event handler for the pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetEventFullFunction(f PadEventFullFunc) { - notifyInfo := p.registerCallback(f, padEventFullFuncs) - C.gst_pad_set_event_full_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadEventFullFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadEventFunc is the function signature to handle an event for the pad -type PadEventFunc func(self *Pad, parent *Object, event *Event) bool - -var padEventFuncs PadFuncMap = make(PadFuncMap) - -// SetEventFunction sets the given event handler for the pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetEventFunction(f PadEventFunc) { - notifyInfo := p.registerCallback(f, padEventFuncs) - C.gst_pad_set_event_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadEventFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadGetRangeFunc will be called on source pads when a peer element request a buffer at the specified offset and length. -// If this function returns FlowOK it must also return a valid buffer. -// -// This function is installed on a source pad with SetGetRangeFunction and can only be called on source pads after they are -// successfully activated with ActivateMode with the PadModePull. -// -// offset and length are always given in byte units. offset must normally be a value between 0 and the length in bytes of -// the data available on pad. The length (duration in bytes) can be retrieved with a GST_QUERY_DURATION or with a -// GST_QUERY_SEEKING. -// -// Any offset larger or equal than the length will make the function return FlowEOS, which corresponds to EOS. In this case -// buffer does not contain a valid buffer. -// -// The buffer size of buffer will only be smaller than length when offset is near the end of the stream. In all other cases, -// the size of buffer must be exactly the requested size. -// -// It is allowed to call this function with a 0 length and valid offset, in which case buffer will contain a 0-sized buffer -// and the function returns FlowOK. -// -// When this function is called with a -1 offset, the sequentially next buffer of length length in the stream is returned. -// -// When this function is called with a -1 length, a buffer with a default optimal length is returned in buffer. The length -// might depend on the value of offset. -type PadGetRangeFunc func(self *Pad, parent *Object, offset uint64, length uint) (FlowReturn, *Buffer) - -var padGetRangeFuncs PadFuncMap = make(PadFuncMap) - -// SetGetRangeFunction sets the given getrange function for the pad. The getrange function is called to produce a new Buffer -// to start the processing pipeline. see PadGetRangeFunc for a description of the getrange function. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetGetRangeFunction(f PadGetRangeFunc) { - notifyInfo := p.registerCallback(f, padGetRangeFuncs) - C.gst_pad_set_getrange_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadGetRangeFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadIterIntLinkFunc is the signature of the internal pad link iterator function. It should return a slice of pads that are -// linked to the given pad on the inside of the parent element. Currently the function only supports returning -// a single pad until GstIterator is implemented fully in the bindings. -type PadIterIntLinkFunc func(self *Pad, parent *Object) []*Pad - -var padIterIntLinkFuncs PadFuncMap = make(PadFuncMap) - -// SetIterIntLinkFunction sets the given internal link iterator function for the pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetIterIntLinkFunction(f PadIterIntLinkFunc) { - notifyInfo := p.registerCallback(f, padIterIntLinkFuncs) - C.gst_pad_set_iterate_internal_links_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadIterIntLinkFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadLinkFunc is the function signature to handle a new link on a pad. -type PadLinkFunc func(self *Pad, parent *Object, peer *Pad) PadLinkReturn - -var padLinkFuncs PadFuncMap = make(PadFuncMap) - -// SetLinkFunction sets the given link function for the pad. It will be called when the pad is linked with another pad. -// -// The return value PadLinkOK should be used when the connection can be made. -// -// The return value PadLinkRefused should be used when the connection cannot be made for some reason. -// -// If link is installed on a source pad, it should call the Link of the peer sink pad, if present. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetLinkFunction(f PadLinkFunc) { - notifyInfo := p.registerCallback(f, padLinkFuncs) - C.gst_pad_set_link_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadLinkFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// SetOffset sets the offset that will be applied to the running time of pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetOffset(offset int64) { - C.gst_pad_set_offset(p.Instance(), C.gint64(offset)) -} - -// PadQueryFunc is a function for performing queries on a pad. It should return true if it could handle the query. -type PadQueryFunc func(self *Pad, parent *Object, query *Query) bool - -var padQueryFuncs PadFuncMap = make(PadFuncMap) - -// SetQueryFunction sets the query handler for the pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetQueryFunction(f PadQueryFunc) { - notifyInfo := p.registerCallback(f, padQueryFuncs) - C.gst_pad_set_query_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadQueryFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// PadUnlinkFunc is the function signature to handle a unlinking the pad from its peer. -// -// The pad's lock is already held when the unlink function is called, so most pad functions cannot be called from within -// the callback. -type PadUnlinkFunc func(self *Pad, parent *Object) - -var padUnlinkFuncs PadFuncMap = make(PadFuncMap) - -// SetUnlinkFunction sets the given unlink function for the pad. It will be called when the pad is unlinked. -// -// Note that the pad's lock is already held when the unlink function is called, so most pad functions cannot be called -// from within the callback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetUnlinkFunction(f PadUnlinkFunc) { - notifyInfo := p.registerCallback(f, padUnlinkFuncs) - C.gst_pad_set_unlink_function_full( - p.Instance(), - C.GstPadActivateFunction(C.cgoGstPadUnlinkFunction), - (C.gpointer)(unsafe.Pointer(notifyInfo)), - C.GDestroyNotify(C.cgoPadFuncDestroyNotify), - ) -} - -// StickyEventsForEachFunc is a callback used by StickyEventsForEach. When this function returns TRUE, the next event will be returned. -// When FALSE is returned, gst_pad_sticky_events_foreach will return. -// -// When event is set to NULL, the item will be removed from the list of sticky events. event can be replaced by assigning a new reference to it. -// This function is responsible for unreffing the old event when removing or modifying. -type StickyEventsForEachFunc func(pad *Pad, event *Event) bool - -// StickyEventsForEach iterates all sticky events on pad and calls foreach_func for every event. If foreach_func returns FALSE the iteration is -// immediately stopped. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) StickyEventsForEach(f StickyEventsForEachFunc) { - ptr := gopointer.Save(f) - defer gopointer.Unref(ptr) - C.gst_pad_sticky_events_foreach( - p.Instance(), - C.GstPadStickyEventsForeachFunction(C.cgoPadStickyEventForEachFunc), - (C.gpointer)(unsafe.Pointer(ptr)), - ) -} - -// StoreStickyEvent stores the sticky event on pad -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) StoreStickyEvent(ev *Event) FlowReturn { - return FlowReturn(C.gst_pad_store_sticky_event(p.Instance(), ev.Instance())) -} - -// Unlink unlinks this source pad from the sink pad. Will emit the unlinked signal on both pads. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Unlink(pad *Pad) bool { - return gobool(C.gst_pad_unlink(p.Instance(), pad.Instance())) -} - -// UseFixedCaps is a helper function you can use that sets the FIXED_CAPS flag This way the default CAPS query will always return the negotiated caps -// or in case the pad is not negotiated, the padtemplate caps. -// -// The negotiated caps are the caps of the last CAPS event that passed on the pad. Use this function on a pad that, once it negotiated to a CAPS, cannot -// be renegotiated to something else. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) UseFixedCaps() { C.gst_pad_use_fixed_caps(p.Instance()) } - -// this prevents go pointers in cgo when setting a gst.Pad to a property -// see (https://github.com/go-gst/go-gst/issues/117) -// ToGValue implements glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(glib.Type(C.gst_pad_get_type())) - if err != nil { - return nil, err - } - val.SetInstance(unsafe.Pointer(p.Instance())) - return val, nil -} - -// Has returns true if this pad has the given flags. -// Non MT safe -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) Has(flags PadFlags) bool { - return p.hasFlags(uint32(flags)) -} - -// Sets pad flags -// Non MT safe -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) SetFlags(flags PadFlags) { - p.setFlags(uint32(flags)) -} - -// Unsets pad flags -// Non MT safe -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pad) UnsetFlags(flags PadFlags) { - p.unsetFlags(uint32(flags)) -} - -// PadProbeInfo represents the info passed to a PadProbeCallback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type PadProbeInfo struct { - ptr *C.GstPadProbeInfo -} - -// ID returns the id of the probe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) ID() uint32 { return uint32(p.ptr.id) } - -// Type returns the type of the probe. The type indicates the type of data that can be expected -// with the probe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) Type() PadProbeType { return PadProbeType(p.ptr._type) } - -// Offset returns the offset of pull probe, this field is valid when type contains PadProbeTypePull. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) Offset() uint64 { return uint64(p.ptr.offset) } - -// Size returns the size of pull probe, this field is valid when type contains PadProbeTypePull. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) Size() uint64 { return uint64(p.ptr.size) } - -// GetBuffer returns the buffer, if any, inside this probe info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) GetBuffer() *Buffer { - buf := C.gst_pad_probe_info_get_buffer(p.ptr) - if buf == nil { - return nil - } - return wrapBuffer(buf) -} - -// GetBufferList returns the buffer list, if any, inside this probe info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) GetBufferList() *BufferList { - bufList := C.gst_pad_probe_info_get_buffer_list(p.ptr) - if bufList == nil { - return nil - } - return wrapBufferList(bufList) -} - -// GetEvent returns the event, if any, inside this probe info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) GetEvent() *Event { - ev := C.gst_pad_probe_info_get_event(p.ptr) - if ev == nil { - return nil - } - - event := wrapEvent(ev) - - event.Ref() - runtime.SetFinalizer(event, (*Event).Unref) - - return event -} - -// GetQuery returns the query, if any, inside this probe info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadProbeInfo) GetQuery() *Query { - q := C.gst_pad_probe_info_get_query(p.ptr) - if q == nil { - return nil - } - return wrapQuery(q) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func iteratorToPadSlice(iterator *C.GstIterator) ([]*Pad, error) { - pads := make([]*Pad, 0) - gval := new(C.GValue) - - for { - switch C.gst_iterator_next((*C.GstIterator)(iterator), (*C.GValue)(unsafe.Pointer(gval))) { - case C.GST_ITERATOR_DONE: - C.gst_iterator_free((*C.GstIterator)(iterator)) - return pads, nil - case C.GST_ITERATOR_RESYNC: - C.gst_iterator_resync((*C.GstIterator)(iterator)) - case C.GST_ITERATOR_OK: - cPadVoid := C.g_value_get_object((*C.GValue)(gval)) - cPad := (*C.GstPad)(cPadVoid) - pads = append(pads, FromGstPadUnsafeNone(unsafe.Pointer(cPad))) - C.g_value_unset((*C.GValue)(gval)) - default: - return nil, errors.New("pad iterator failed") - } - } -} diff --git a/gst/gst_pad_exports.go b/gst/gst_pad_exports.go deleted file mode 100644 index 7364a59..0000000 --- a/gst/gst_pad_exports.go +++ /dev/null @@ -1,192 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func getParent(parent *C.GstObject) *Object { - if parent == nil { - return nil - } - return wrapObject(toGObject(unsafe.Pointer(parent))) -} - -//export goGstPadFuncDestroyNotify -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadFuncDestroyNotify(notifyInfo *C.PadDestroyNotifyInfo) { - padPtr := unsafe.Pointer(notifyInfo.pad_ptr) - funcMapPtr := unsafe.Pointer(notifyInfo.func_map_ptr) - - defer gopointer.Unref(padPtr) - defer gopointer.Unref(funcMapPtr) - - pad := gopointer.Restore(padPtr).(unsafe.Pointer) - funcMap := gopointer.Restore(funcMapPtr).(PadFuncMap) - - funcMap.RemoveFuncForPad(pad) -} - -//export goGstPadActivateFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadActivateFunction(pad *C.GstPad, parent *C.GstObject) C.gboolean { - f := padActivateFuncs.FuncForPad(unsafe.Pointer(pad)).(PadActivateFunc) - return gboolean(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - )) -} - -//export goGstPadActivateModeFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadActivateModeFunction(pad *C.GstPad, parent *C.GstObject, mode C.GstPadMode, active C.gboolean) C.gboolean { - f := padActivateModeFuncs.FuncForPad(unsafe.Pointer(pad)).(PadActivateModeFunc) - return gboolean(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - PadMode(mode), - gobool(active), - )) -} - -//export goGstPadChainFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadChainFunction(pad *C.GstPad, parent *C.GstObject, buffer *C.GstBuffer) C.GstFlowReturn { - f := padChainFuncs.FuncForPad(unsafe.Pointer(pad)).(PadChainFunc) - buf := FromGstBufferUnsafeFull(unsafe.Pointer(buffer)) - defer buf.Unref() - return C.GstFlowReturn(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - buf, - )) -} - -//export goGstPadChainListFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadChainListFunction(pad *C.GstPad, parent *C.GstObject, list *C.GstBufferList) C.GstFlowReturn { - f := padChainListFuncs.FuncForPad(unsafe.Pointer(pad)).(PadChainListFunc) - buflist := FromGstBufferListUnsafeFull(unsafe.Pointer(list)) - defer buflist.Unref() - return C.GstFlowReturn(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - buflist, - )) -} - -//export goGstPadEventFullFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadEventFullFunction(pad *C.GstPad, parent *C.GstObject, event *C.GstEvent) C.GstFlowReturn { - f := padEventFullFuncs.FuncForPad(unsafe.Pointer(pad)).(PadEventFullFunc) - ev := FromGstEventUnsafeFull(unsafe.Pointer(event)) - defer ev.Unref() - return C.GstFlowReturn(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - ev, - )) -} - -//export goGstPadEventFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadEventFunction(pad *C.GstPad, parent *C.GstObject, event *C.GstEvent) C.gboolean { - f := padEventFuncs.FuncForPad(unsafe.Pointer(pad)).(PadEventFunc) - ev := FromGstEventUnsafeFull(unsafe.Pointer(event)) - defer ev.Unref() - return gboolean(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - ev, - )) -} - -//export goGstPadGetRangeFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadGetRangeFunction(pad *C.GstPad, parent *C.GstObject, offset C.guint64, length C.guint, buffer **C.GstBuffer) C.GstFlowReturn { - f := padGetRangeFuncs.FuncForPad(unsafe.Pointer(pad)).(PadGetRangeFunc) - ret, buf := f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - uint64(offset), - uint(length), - ) - if ret == FlowOK { - C.memcpy(unsafe.Pointer(*buffer), unsafe.Pointer(buf.Instance()), C.sizeof_GstBuffer) - } - return C.GstFlowReturn(ret) -} - -//export goGstPadIterIntLinkFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadIterIntLinkFunction(pad *C.GstPad, parent *C.GstObject) *C.GstIterator { - f := padIterIntLinkFuncs.FuncForPad(unsafe.Pointer(pad)).(PadIterIntLinkFunc) - pads := f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - ) - if len(pads) == 0 { - return nil - } - if len(pads) == 1 { - val, err := glib.ValueInit(glib.Type(C.gst_pad_get_type())) - if err != nil { - return nil - } - val.SetInstance(unsafe.Pointer(pads[0].Instance())) - return C.gst_iterator_new_single(C.gst_pad_get_type(), (*C.GValue)(unsafe.Pointer(val.GValue))) - } - return nil -} - -//export goGstPadLinkFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadLinkFunction(pad *C.GstPad, parent *C.GstObject, peer *C.GstPad) C.GstPadLinkReturn { - f := padLinkFuncs.FuncForPad(unsafe.Pointer(pad)).(PadLinkFunc) - return C.GstPadLinkReturn(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - wrapPad(toGObject(unsafe.Pointer(peer))), - )) -} - -//export goGstPadQueryFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadQueryFunction(pad *C.GstPad, parent *C.GstObject, query *C.GstQuery) C.gboolean { - f := padQueryFuncs.FuncForPad(unsafe.Pointer(pad)).(PadQueryFunc) - return gboolean(f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - wrapQuery(query), - )) -} - -//export goGstPadUnlinkFunction -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goGstPadUnlinkFunction(pad *C.GstPad, parent *C.GstObject) { - f := padUnlinkFuncs.FuncForPad(unsafe.Pointer(pad)).(PadUnlinkFunc) - f( - wrapPad(toGObject(unsafe.Pointer(pad))), - getParent(parent), - ) -} diff --git a/gst/gst_pad_template.go b/gst/gst_pad_template.go deleted file mode 100644 index f5fe66d..0000000 --- a/gst/gst_pad_template.go +++ /dev/null @@ -1,109 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// PadTemplate is a go representation of a GstPadTemplate -type PadTemplate struct{ *Object } - -// FromGstPadTemplateUnsafeNone wraps the given GstPadTemplate in a ref and a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPadTemplateUnsafeNone(tmpl unsafe.Pointer) *PadTemplate { - return &PadTemplate{wrapObject(glib.TransferNone(tmpl))} -} - -// FromGstPadTemplateUnsafeFull wraps the given GstPadTemplate in a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPadTemplateUnsafeFull(tmpl unsafe.Pointer) *PadTemplate { - return &PadTemplate{wrapObject(glib.TransferFull(tmpl))} -} - -// NewPadTemplate creates a new pad template with a name according to the given template and with the given arguments. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPadTemplate(nameTemplate string, direction PadDirection, presence PadPresence, caps *Caps) *PadTemplate { - cName := C.CString(nameTemplate) - defer C.free(unsafe.Pointer(cName)) - tmpl := C.gst_pad_template_new( - (*C.gchar)(cName), - C.GstPadDirection(direction), - C.GstPadPresence(presence), - caps.Instance(), - ) - if tmpl == nil { - return nil - } - return wrapPadTemplate(glib.TransferNone(unsafe.Pointer(tmpl))) -} - -// NewPadTemplateWithGType creates a new pad template with a name according to the given template and with the given arguments. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPadTemplateWithGType(nameTemplate string, direction PadDirection, presence PadPresence, caps *Caps, gType glib.Type) *PadTemplate { - cName := C.CString(nameTemplate) - defer C.free(unsafe.Pointer(cName)) - tmpl := C.gst_pad_template_new_with_gtype( - (*C.gchar)(cName), - C.GstPadDirection(direction), - C.GstPadPresence(presence), - caps.Instance(), - (C.GType)(gType), - ) - if tmpl == nil { - return nil - } - return wrapPadTemplate(glib.TransferNone(unsafe.Pointer(tmpl))) -} - -// Instance returns the underlying C GstPadTemplate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadTemplate) Instance() *C.GstPadTemplate { return C.toGstPadTemplate(p.Unsafe()) } - -// Name returns the name of the pad template. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadTemplate) Name() string { return C.GoString(p.Instance().name_template) } - -// Direction returns the direction of the pad template. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadTemplate) Direction() PadDirection { return PadDirection(p.Instance().direction) } - -// Presence returns the presence of the pad template. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadTemplate) Presence() PadPresence { return PadPresence(p.Instance().presence) } - -// Caps returns the caps of the pad template. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadTemplate) Caps() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_pad_template_get_caps(p.Instance()))) -} - -// PadCreated emits the pad-created signal for this template when created by this pad. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PadTemplate) PadCreated(pad *Pad) { - C.gst_pad_template_pad_created(p.Instance(), pad.Instance()) -} - -// // GetDocumentationCaps gets the documentation caps for the template. See SetDocumentationCaps for more information. -// func (p *PadTemplate) GetDocumentationCaps() *Caps { -// return wrapCaps(C.gst_pad_template_get_documentation_caps(p.Instance())) -// } - -// // SetDocumentationCaps sets caps to be exposed to a user. Certain elements will dynamically construct the caps of -// // their pad templates. In order not to let environment-specific information into the documentation, element authors -// // should use this method to expose "stable" caps to the reader. -// func (p *PadTemplate) SetDocumentationCaps(caps *Caps) { -// C.gst_pad_template_set_documentation_caps(p.Instance(), caps.Instance()) -// } diff --git a/gst/gst_param_flags.go b/gst/gst_param_flags.go deleted file mode 100644 index df58004..0000000 --- a/gst/gst_param_flags.go +++ /dev/null @@ -1,12 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -// Additional GStreamer ParamSpec flags -const ( - ParameterControllable = C.GST_PARAM_CONTROLLABLE - ParameterMutablePlaying = C.GST_PARAM_MUTABLE_PLAYING - ParameterMutablePaused = C.GST_PARAM_MUTABLE_PAUSED - ParameterMutableReady = C.GST_PARAM_MUTABLE_READY -) diff --git a/gst/gst_pipeline.go b/gst/gst_pipeline.go deleted file mode 100644 index 4a06411..0000000 --- a/gst/gst_pipeline.go +++ /dev/null @@ -1,135 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "errors" - "fmt" - "strings" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Pipeline is a go implementation of a GstPipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Pipeline struct { - *Bin - bus *Bus -} - -// FromGstPipelineUnsafeFull wraps the given pipeline pointer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPipelineUnsafeFull(pipeline unsafe.Pointer) *Pipeline { - return &Pipeline{Bin: &Bin{&Element{wrapObject(glib.TransferFull(pipeline))}}} -} - -// FromGstPipelineUnsafeNone wraps the given pipeline pointer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPipelineUnsafeNone(pipeline unsafe.Pointer) *Pipeline { - return &Pipeline{Bin: &Bin{&Element{wrapObject(glib.TransferNone(pipeline))}}} -} - -// NewPipeline allocates and returns a new empty pipeline. If name is empty, one -// is generated by gstreamer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPipeline(name string) (*Pipeline, error) { - var cChar *C.char - if name != "" { - cChar = C.CString(name) - defer C.free(unsafe.Pointer(cChar)) - } - pipeline := C.gst_pipeline_new((*C.gchar)(cChar)) - if pipeline == nil { - return nil, errors.New("could not create new pipeline") - } - return FromGstPipelineUnsafeNone(unsafe.Pointer(pipeline)), nil -} - -// NewPipelineFromString creates a new gstreamer pipeline from the given launch string. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPipelineFromString(launchv string) (*Pipeline, error) { - if len(strings.Split(launchv, "!")) < 2 { - return nil, fmt.Errorf("given string is too short for a pipeline: %s", launchv) - } - cLaunchv := C.CString(launchv) - defer C.free(unsafe.Pointer(cLaunchv)) - var gerr *C.GError - pipeline := C.gst_parse_launch((*C.gchar)(cLaunchv), (**C.GError)(&gerr)) - if gerr != nil { - defer C.g_error_free((*C.GError)(gerr)) - errMsg := C.GoString(gerr.message) - return nil, errors.New(errMsg) - } - return FromGstPipelineUnsafeNone(unsafe.Pointer(pipeline)), nil -} - -// Instance returns the native GstPipeline instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pipeline) Instance() *C.GstPipeline { return C.toGstPipeline(p.Unsafe()) } - -// GetPipelineBus returns the message bus for this pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pipeline) GetPipelineBus() *Bus { - if p.bus == nil { - cBus := C.gst_pipeline_get_bus((*C.GstPipeline)(p.Instance())) - p.bus = FromGstBusUnsafeFull(unsafe.Pointer(cBus)) - } - return p.bus -} - -// GetPipelineClock returns the global clock for this pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pipeline) GetPipelineClock() *Clock { - cClock := C.gst_pipeline_get_pipeline_clock((*C.GstPipeline)(p.Instance())) - return FromGstClockUnsafeFull(unsafe.Pointer(cClock)) -} - -// Force pipeline to use the given clock. The pipeline will always use the given clock even if new clock providers are added to this pipeline. -// -// If clock is NULL all clocking will be disabled which will make the pipeline run as fast as possible. -// -// MT safe. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pipeline) ForceClock(clock *Clock) { - C.gst_pipeline_use_clock(p.Instance(), clock.Instance()) -} - -/* -SetAutoFlushBus can be used to disable automatically flushing the message bus -when a pipeline goes to StateNull. - -Usually, when a pipeline goes from READY to NULL state, it automatically flushes -all pending messages on the bus, which is done for refcounting purposes, to break -circular references. - -This means that applications that update state using (async) bus messages (e.g. do -certain things when a pipeline goes from PAUSED to READY) might not get to see -messages when the pipeline is shut down, because they might be flushed before they -can be dispatched in the main thread. This behavior can be disabled using this function. - -It is important that all messages on the bus are handled when the automatic flushing -is disabled else memory leaks will be introduced. -*/ -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pipeline) SetAutoFlushBus(b bool) { - C.gst_pipeline_set_auto_flush_bus(p.Instance(), gboolean(b)) -} - -// Start is the equivalent to calling SetState(StatePlaying) on the underlying GstElement. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Pipeline) Start() error { - return p.SetState(StatePlaying) -} diff --git a/gst/gst_plugin.go b/gst/gst_plugin.go deleted file mode 100644 index 47068c0..0000000 --- a/gst/gst_plugin.go +++ /dev/null @@ -1,273 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean goPluginInit (GstPlugin * plugin, gpointer user_data); -extern gboolean goGlobalPluginInit (GstPlugin * plugin); - -gboolean cgoPluginInit (GstPlugin * plugin, gpointer user_data) -{ - return goPluginInit(plugin, user_data); -} - -gboolean cgoGlobalPluginInit(GstPlugin * plugin) -{ - return goGlobalPluginInit(plugin); -} - -GstPluginDesc * getPluginMeta (gint major, - gint minor, - gchar * name, - gchar * description, - GstPluginInitFunc init, - gchar * version, - gchar * license, - gchar * source, - gchar * package, - gchar * origin, - gchar * release_datetime) -{ - - GstPluginDesc * desc = malloc ( sizeof (GstPluginDesc) ); - - desc->major_version = major; - desc->minor_version = minor; - desc->name = name; - desc->description = description; - desc->plugin_init = init; - desc->version = version; - desc->license = license; - desc->source = source; - desc->package = package; - desc->origin = origin; - desc->release_datetime = release_datetime; - - return desc; -} - -*/ -import "C" - -import ( - "errors" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// PluginMetadata represents the information to include when registering a new plugin -// with gstreamer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type PluginMetadata struct { - // The major version number of the GStreamer core that the plugin was compiled for, you can just use VersionMajor here - MajorVersion Version - // The minor version number of the GStreamer core that the plugin was compiled for, you can just use VersionMinor here - MinorVersion Version - // A unique name of the plugin (ideally prefixed with an application- or library-specific namespace prefix in order to - // avoid name conflicts in case a similar plugin with the same name ever gets added to GStreamer) - Name string - // A description of the plugin - Description string - // The function to call when initiliazing the plugin - Init PluginInitFunc - // The version of the plugin - Version string - // The license for the plugin, must match one of the license constants in this package - License License - // The source module the plugin belongs to - Source string - // The shipped package the plugin belongs to - Package string - // The URL to the provider of the plugin - Origin string - // The date of release in ISO 8601 format. - // See https://gstreamer.freedesktop.org/documentation/gstreamer/gstplugin.html?gi-language=c#GstPluginDesc for more details. - ReleaseDate string -} - -var globalPluginInit PluginInitFunc - -// Export will export the PluginMetadata to an unsafe pointer to a GstPluginDesc. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PluginMetadata) Export() unsafe.Pointer { - globalPluginInit = p.Init - desc := C.getPluginMeta( - C.gint(p.MajorVersion), - C.gint(p.MinorVersion), - (*C.gchar)(unsafe.Pointer(&[]byte(p.Name)[0])), - (*C.gchar)(C.CString(p.Description)), - (C.GstPluginInitFunc(C.cgoGlobalPluginInit)), - (*C.gchar)(C.CString(p.Version)), - (*C.gchar)(C.CString(string(p.License))), - (*C.gchar)(C.CString(p.Source)), - (*C.gchar)(C.CString(p.Package)), - (*C.gchar)(C.CString(p.Origin)), - (*C.gchar)(C.CString(p.ReleaseDate)), - ) - return unsafe.Pointer(desc) -} - -// PluginInitFunc is a function called by the plugin loader at startup. This function should register -// all the features of the plugin. The function should return true if the plugin is initialized successfully. -type PluginInitFunc func(*Plugin) bool - -// Plugin is a go representation of a GstPlugin. -type Plugin struct{ *Object } - -// FromGstPluginUnsafeNone wraps the given pointer in a Plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPluginUnsafeNone(plugin unsafe.Pointer) *Plugin { - return &Plugin{wrapObject(glib.TransferNone(plugin))} -} - -// FromGstPluginUnsafeFull wraps the given pointer in a Plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstPluginUnsafeFull(plugin unsafe.Pointer) *Plugin { - return &Plugin{wrapObject(glib.TransferFull(plugin))} -} - -// RegisterPlugin will register a static plugin, i.e. a plugin which is private to an application -// or library and contained within the application or library (as opposed to being shipped as a -// separate module file). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func RegisterPlugin(desc *PluginMetadata, initFunc PluginInitFunc) bool { - cName := C.CString(desc.Name) - cDesc := C.CString(desc.Description) - cVers := C.CString(desc.Version) - cLics := C.CString(string(desc.License)) - cSrc := C.CString(desc.Source) - cPkg := C.CString(desc.Package) - cOrg := C.CString(desc.Origin) - defer func() { - for _, ptr := range []*C.char{cName, cDesc, cVers, cLics, cSrc, cPkg, cOrg} { - C.free(unsafe.Pointer(ptr)) - } - }() - fPtr := gopointer.Save(initFunc) - return gobool(C.gst_plugin_register_static_full( - C.gint(desc.MajorVersion), C.gint(desc.MinorVersion), - (*C.gchar)(cName), (*C.gchar)(cDesc), - C.GstPluginInitFullFunc(C.cgoPluginInit), - (*C.gchar)(cVers), (*C.gchar)(cLics), - (*C.gchar)(cSrc), (*C.gchar)(cPkg), - (*C.gchar)(cOrg), (C.gpointer)(unsafe.Pointer(fPtr)), - )) -} - -// LoadPluginByName loads the named plugin and places a ref count on it. The function -// returns nil if the plugin could not be loaded. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func LoadPluginByName(name string) *Plugin { - cstr := C.CString(name) - defer C.free(unsafe.Pointer(cstr)) - plugin := C.gst_plugin_load_by_name((*C.gchar)(unsafe.Pointer(cstr))) - if plugin == nil { - return nil - } - return FromGstPluginUnsafeFull(unsafe.Pointer(plugin)) -} - -// LoadPluginFile loads the given plugin and refs it. If an error is returned Plugin will be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func LoadPluginFile(fpath string) (*Plugin, error) { - cstr := C.CString(fpath) - defer C.free(unsafe.Pointer(cstr)) - var gerr *C.GError - plugin := C.gst_plugin_load_file((*C.gchar)(unsafe.Pointer(cstr)), (**C.GError)(&gerr)) - if gerr != nil { - defer C.g_free((C.gpointer)(gerr)) - return nil, errors.New(C.GoString(gerr.message)) - } - return FromGstPluginUnsafeFull(unsafe.Pointer(plugin)), nil -} - -// Instance returns the underlying GstPlugin instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Instance() *C.GstPlugin { return C.toGstPlugin(p.Unsafe()) } - -// Description returns the description for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Description() string { - ret := C.gst_plugin_get_description((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return C.GoString(ret) -} - -// Filename returns the filename for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Filename() string { - ret := C.gst_plugin_get_filename((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return C.GoString(ret) -} - -// Version returns the version for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Version() string { - ret := C.gst_plugin_get_version((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return C.GoString(ret) -} - -// License returns the license for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) License() License { - ret := C.gst_plugin_get_license((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return License(C.GoString(ret)) -} - -// Source returns the source module for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Source() string { - ret := C.gst_plugin_get_source((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return C.GoString(ret) -} - -// Package returns the binary package for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Package() string { - ret := C.gst_plugin_get_package((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return C.GoString(ret) -} - -// Origin returns the origin URL for this plugin. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Plugin) Origin() string { - ret := C.gst_plugin_get_origin((*C.GstPlugin)(p.Instance())) - if ret == nil { - return "" - } - return C.GoString(ret) -} diff --git a/gst/gst_plugin_feature.go b/gst/gst_plugin_feature.go deleted file mode 100644 index 7b2516d..0000000 --- a/gst/gst_plugin_feature.go +++ /dev/null @@ -1,51 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" -) - -// PluginFeature wraps the C GstPluginFeature. -type PluginFeature struct{ *Object } - -// Instance returns the underlying GstPluginFeature instance -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PluginFeature) Instance() *C.GstPluginFeature { return C.toGstPluginFeature(p.Unsafe()) } - -// GetPlugin returns the plugin that provides this feature or nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PluginFeature) GetPlugin() *Plugin { - plugin := C.gst_plugin_feature_get_plugin((*C.GstPluginFeature)(p.Instance())) - if plugin == nil { - return nil - } - return FromGstPluginUnsafeFull(unsafe.Pointer(plugin)) -} - -// GetPluginName returns the name of the plugin that provides this feature. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PluginFeature) GetPluginName() string { - pluginName := C.gst_plugin_feature_get_plugin_name((*C.GstPluginFeature)(p.Instance())) - if pluginName == nil { - return "" - } - return C.GoString(pluginName) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PluginFeature) SetPluginRank(rank Rank) { - C.gst_plugin_feature_set_rank((*C.GstPluginFeature)(p.Instance()), C.guint(rank)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *PluginFeature) GetPluginRank() int { - rank := C.gst_plugin_feature_get_rank((*C.GstPluginFeature)(p.Instance())) - return int(rank) -} diff --git a/gst/gst_promise.go b/gst/gst_promise.go deleted file mode 100644 index df31716..0000000 --- a/gst/gst_promise.go +++ /dev/null @@ -1,241 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goPromiseChangeFunc (GstPromise*, gpointer user_data); -extern void cgoUnrefGopointerUserData (gpointer); - -void cgoPromiseChangeFunc (GstPromise *promise, gpointer data) -{ - goPromiseChangeFunc(promise, data); -} -*/ -import "C" -import ( - "context" - "errors" - "fmt" - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -type PromiseResult int - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (pr PromiseResult) String() string { - switch pr { - case PromiseResultPending: - return "PENDING" - case PromiseResultInterrupted: - return "INTERRUPTED" - case PromiseResultReplied: - return "REPLIED" - case PromiseResultExpired: - return "EXPIRED" - default: - return "UNKNOWN" - } -} - -const ( - //Initial state. Waiting for transition to any other state. - PromiseResultPending = C.GST_PROMISE_RESULT_PENDING - // Interrupted by the consumer as it doesn't want the value anymore. - PromiseResultInterrupted = C.GST_PROMISE_RESULT_INTERRUPTED - // A producer marked a reply - PromiseResultReplied = C.GST_PROMISE_RESULT_REPLIED - // The promise expired (the carrying object lost all refs) and the promise will never be fulfilled. - PromiseResultExpired = C.GST_PROMISE_RESULT_EXPIRED -) - -// Promise is a go wrapper around a GstPromise. -// See: https://gstreamer.freedesktop.org/documentation/gstreamer/gstpromise.html -// -// it can be awaited on-blocking using Await, given the promise was constructed in go and not received from FFI. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Promise struct { - ptr *C.GstPromise - - // done will be closed when the GstPromise has changed state - done <-chan struct{} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPromise() *Promise { - done := make(chan struct{}) - - fPtr := gopointer.Save(func() { - close(done) - }) - - cprom := C.gst_promise_new_with_change_func( - C.GstPromiseChangeFunc(C.cgoPromiseChangeFunc), - C.gpointer(fPtr), - C.GDestroyNotify(C.cgoUnrefGopointerUserData), - ) - - prom := &Promise{ - ptr: cprom, - done: done, - } - - runtime.SetFinalizer(prom, func(prom *Promise) { - prom.Unref() - }) - - return prom -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Instance() *C.GstPromise { - if p == nil { - return nil - } - - return p.ptr -} - -// Ref increases the ref count on the promise. Exposed for completeness sake. Should not be called -// by application code -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Ref() { - C.gst_promise_ref(p.ptr) -} - -// Unref decreases the ref count on the promise. Exposed for completeness sake. Should not be called -// by application code -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Unref() { - C.gst_promise_unref(p.ptr) -} - -var ErrPromiseNotReplied = errors.New("promise was not replied") -var ErrNilPromiseReply = errors.New("promise returned a nil reply") - -// ErrCannotAwaitPromise signifies that we do not have a channel that we can await. -// -// this happens if the promise was marshaled from a GValue coming from C -var ErrCannotAwaitPromise = errors.New("promises received from FFI cannot be awaited") - -// Await awaits the promise without blocking the thread. It returns the reply returned by the GstPromise -// -// its implementation is preferred over the blocking gst_promise_wait, which would lock a thread until the -// promise has changed state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Await(ctx context.Context) (*Structure, error) { - if p.done == nil { - return nil, ErrCannotAwaitPromise - } - - select { - case <-ctx.Done(): - return nil, ctx.Err() - case <-p.done: - } - - // gst_promise_wait will not block here, because the promise has already changed state - result := PromiseResult(C.gst_promise_wait(p.ptr)) - - if result != PromiseResultReplied { - return nil, fmt.Errorf("%w: got %s", ErrPromiseNotReplied, result) - } - - structure := p.GetReply() - - if structure == nil { - return nil, ErrNilPromiseReply - } - - return structure, nil -} - -// GetReply wraps gst_promise_get_reply and returns the structure, which can be nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) GetReply() *Structure { - cstruct := C.gst_promise_get_reply(p.ptr) - - if cstruct == nil { - return nil - } - - structure := wrapStructure(cstruct) - - // the structure is owned by the promise, so we keep the promise alive - // until the structure gets GC'ed - runtime.SetFinalizer(structure, func(_ *Structure) { - runtime.KeepAlive(p) - }) - - return structure -} - -// Expire wraps gst_promise_expire -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Expire() { - C.gst_promise_expire(p.ptr) -} - -// Interrupt wraps gst_promise_interrupt -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Interrupt() { - C.gst_promise_interrupt(p.ptr) -} - -// Reply wraps gst_promise_reply -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) Reply(answer *Structure) { - C.gst_promise_reply(p.ptr, answer.Instance()) -} - -var TypePromise = glib.Type(C.GST_TYPE_PROMISE) - -// ToGValue implements glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (p *Promise) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypePromise) - if err != nil { - return nil, err - } - val.SetBoxed(unsafe.Pointer(p.Instance())) - return val, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalPromise(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_boxed(toGValue(p)) - obj := (*C.GstPromise)(unsafe.Pointer(c)) - - if obj == nil { - return (*Promise)(nil), nil - } - - prom := &Promise{ - ptr: obj, - done: nil, // cannot be awaited if received from FFI - } - - prom.Ref() - - runtime.SetFinalizer(prom, func(p *Promise) { - p.Unref() - }) - - return prom, nil -} diff --git a/gst/gst_promise_test.go b/gst/gst_promise_test.go deleted file mode 100644 index 607d409..0000000 --- a/gst/gst_promise_test.go +++ /dev/null @@ -1,121 +0,0 @@ -package gst - -import ( - "context" - "errors" - "runtime" - "testing" - "time" -) - -//go:noinline -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func awaitGC() { - type tmp struct{ v string } - - setup := make(chan struct{}) - done := make(chan struct{}) - - go func() { - v := &tmp{"foo"} - - runtime.SetFinalizer(v, func(v *tmp) { - close(done) - }) - - close(setup) - }() - - <-setup - runtime.GC() - <-done - runtime.GC() - time.Sleep(1 * time.Second) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestPromise(t *testing.T) { - Init(nil) - - prom := NewPromise() - cprom := prom.Instance() - - reply := NewStructure("foo/bar") - errchan := make(chan error) - - go func() { - res, err := prom.Await(context.Background()) - - if err != nil { - errchan <- err - } - - // even though we don't use the promise, the result structure should be still accessible. - // the returned structure is owned by the promise, so the promise must not get GC'ed until - // we don't use the structure anymore - awaitGC() - - if res.Name() != reply.Name() { - errchan <- errors.New("name mismatch") - } - - runtime.GC() - runtime.GC() - runtime.GC() - - close(errchan) - }() - - prom.Reply(reply) - - err := <-errchan - - if err != nil { - t.FailNow() - } - - awaitGC() - - if cprom.parent.refcount != 1 { - panic("refcount too high") - } - - runtime.KeepAlive(prom) - - awaitGC() -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestPromiseMarshal(t *testing.T) { - Init(nil) - - prom := NewPromise() - - gv, err := prom.ToGValue() - - if err != nil { - t.Fatal(err) - } - - receivedPromI, err := gv.GoValue() - - if err != nil { - t.Fatal(err) - } - - receivedProm, ok := receivedPromI.(*Promise) - - if !ok { - t.Fatal("could not cast") - } - - // Awaiting received promise should error immediately - _, err = receivedProm.Await(context.Background()) - - if err == nil { - t.FailNow() - } -} diff --git a/gst/gst_protection.go b/gst/gst_protection.go deleted file mode 100644 index 37ca372..0000000 --- a/gst/gst_protection.go +++ /dev/null @@ -1,50 +0,0 @@ -package gst - -//#include "gst.go.h" -import "C" - -// ProtectionMeta is a go wrapper around C GstProtectionMeta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ProtectionMeta struct { - Meta *Meta - Info *Structure -} - -// GetProtectionMetaInfo retrieves global ProtectionMetaInfo. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetProtectionMetaInfo() *MetaInfo { - return wrapMetaInfo(C.gst_protection_meta_get_info()) -} - -// FilterProtectionSystemByDecryptors tterates the supplied list of UUIDs -// and checks the GstRegistry for all the decryptors supporting one of the supplied UUIDs. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FilterProtectionSystemByDecryptors(decryptors []string) []string { - gArr := gcharStrings(decryptors) - defer C.g_free((C.gpointer)(gArr)) - avail := C.gst_protection_filter_systems_by_available_decryptors(gArr) - if avail == nil { - return nil - } - defer C.g_free((C.gpointer)(avail)) - return goStrings(C.sizeOfGCharArray(avail), avail) -} - -// SelectProtectionSystem iterates the supplied list of UUIDs and checks the GstRegistry for -// an element that supports one of the supplied UUIDs. If more than one element matches, the -// system ID of the highest ranked element is selected. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SelectProtectionSystem(decryptors []string) string { - gArr := gcharStrings(decryptors) - defer C.g_free((C.gpointer)(gArr)) - avail := C.gst_protection_select_system(gArr) - if avail == nil { - return "" - } - defer C.g_free((C.gpointer)(avail)) - return C.GoString(avail) -} diff --git a/gst/gst_query.go b/gst/gst_query.go deleted file mode 100644 index 04c0e0a..0000000 --- a/gst/gst_query.go +++ /dev/null @@ -1,795 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Query is a go wrapper around a GstQuery. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Query struct { - ptr *C.GstQuery -} - -// Type returns the type of the Query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) Type() QueryType { return QueryType(q.ptr._type) } - -// FromGstQueryUnsafeNone wraps the pointer to the given C GstQuery with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstQueryUnsafeNone(query unsafe.Pointer) *Query { - q := ToGstQuery(query) - q.Ref() - runtime.SetFinalizer(q, (*Query).Unref) - return q -} - -// FromGstQueryUnsafeFull wraps the pointer to the given C GstQuery with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstQueryUnsafeFull(query unsafe.Pointer) *Query { - q := ToGstQuery(query) - runtime.SetFinalizer(q, (*Query).Unref) - return q -} - -// ToGstQuery converts the given pointer into a Message without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstQuery(query unsafe.Pointer) *Query { return wrapQuery((*C.GstQuery)(query)) } - -// NewAcceptCapsQuery constructs a new query object for querying if caps are accepted. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAcceptCapsQuery(caps *Caps) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_accept_caps(caps.Instance()))) -} - -// NewAllocationQuery constructs a new query object for querying the allocation properties. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewAllocationQuery(caps *Caps, needPool bool) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_allocation( - caps.Instance(), gboolean(needPool), - ))) -} - -// NewBitrateQuery constructs a new query object for querying the bitrate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBitrateQuery() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_bitrate())) -} - -// NewBufferingQuery constructs a new query object for querying the buffering status of a stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewBufferingQuery(format Format) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_buffering( - C.GstFormat(format), - ))) -} - -// NewCapsQuery constructs a new query object for querying the caps. -// -// The CAPS query should return the allowable caps for a pad in the context of the element's state, its link to -// other elements, and the devices or files it has opened. These caps must be a subset of the pad template caps. -// In the NULL state with no links, the CAPS query should ideally return the same caps as the pad template. In -// rare circumstances, an object property can affect the caps returned by the CAPS query, but this is discouraged. -// -// For most filters, the caps returned by CAPS query is directly affected by the allowed caps on other pads. For -// demuxers and decoders, the caps returned by the srcpad's getcaps function is directly related to the stream data. -// Again, the CAPS query should return the most specific caps it reasonably can, since this helps with autoplugging. -// -// The filter is used to restrict the result caps, only the caps matching filter should be returned from the CAPS -// query. Specifying a filter might greatly reduce the amount of processing an element needs to do. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCapsQuery(caps *Caps) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_caps(caps.Instance()))) -} - -// NewContextQuery constructs a new query object for querying the pipeline-local context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewContextQuery(ctxType string) *Query { - cName := C.CString(ctxType) - defer C.free(unsafe.Pointer(cName)) - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_context( - (*C.gchar)(unsafe.Pointer(cName)), - ))) -} - -// NewConvertQuery constructs a new convert query object. A convert query is used to ask for a conversion between one -// format and another. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewConvertQuery(srcFormat, destFormat Format, value int64) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_convert( - C.GstFormat(srcFormat), C.gint64(value), C.GstFormat(destFormat), - ))) -} - -// NewCustomQuery constructs a new custom query object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewCustomQuery(queryType QueryType, structure *Structure) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_custom( - C.GstQueryType(queryType), - structure.Instance(), - ))) -} - -// NewDrainQuery constructs a new query object for querying the drain state. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDrainQuery() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_drain())) -} - -// NewDurationQuery constructs a new stream duration query object to query in the given format. A duration query will give the -// total length of the stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDurationQuery(format Format) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_duration(C.GstFormat(format)))) -} - -// NewFormatsQuery constructs a new query object for querying formats of the stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewFormatsQuery() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_formats())) -} - -// NewLatencyQuery constructs a new latency query object. A latency query is usually performed by sinks to compensate for additional -// latency introduced by elements in the pipeline. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewLatencyQuery() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_latency())) -} - -// NewPositionQuery constructs a new query stream position query object. A position query is used to query the current position of playback -// in the streams, in some format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewPositionQuery(format Format) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_position(C.GstFormat(format)))) -} - -// NewSchedulingQuery constructs a new query object for querying the scheduling properties. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSchedulingQuery() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_scheduling())) -} - -// NewSeekingQuery constructs a new query object for querying seeking properties of the stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSeekingQuery(format Format) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_seeking(C.GstFormat(format)))) -} - -// NewSegmentQuery constructs a new segment query object. A segment query is used to discover information about the currently configured segment -// for playback. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSegmentQuery(format Format) *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_segment(C.GstFormat(format)))) -} - -// NewURIQuery constructs a new query URI query object. An URI query is used to query the current URI that is used by the source or sink. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewURIQuery() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_new_uri())) -} - -// Instance returns the underlying GstQuery instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) Instance() *C.GstQuery { return C.toGstQuery(unsafe.Pointer(q.ptr)) } - -// AddAllocationMeta adds api with params as one of the supported metadata API to query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) AddAllocationMeta(api glib.Type, structure *Structure) { - C.gst_query_add_allocation_meta(q.Instance(), (C.GType)(api), structure.Instance()) -} - -// AddAllocationParam adds allocator and its params as a supported memory allocator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) AddAllocationParam(allocator *Allocator, params *AllocationParams) { - C.gst_query_add_allocation_param(q.Instance(), allocator.Instance(), params.Instance()) -} - -// AddAllocationPool sets the pool parameters in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) AddAllocationPool(pool *BufferPool, size, minBuffers, maxBuffers uint) { - C.gst_query_add_allocation_pool( - q.Instance(), - pool.Instance(), - C.guint(size), - C.guint(minBuffers), - C.guint(maxBuffers), - ) -} - -// AddBufferingRange sets the buffering-ranges array field in query. The current last start position of the array should be inferior to start. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) AddBufferingRange(start, stop int64) (ok bool) { - return gobool(C.gst_query_add_buffering_range(q.Instance(), C.gint64(start), C.gint64(stop))) -} - -// AddSchedulingMode adds mode as one of the supported scheduling modes to query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) AddSchedulingMode(mode PadMode) { - C.gst_query_add_scheduling_mode(q.Instance(), C.GstPadMode(mode)) -} - -// Copy copies the given query using the copy function of the parent GstStructure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) Copy() *Query { - return FromGstQueryUnsafeFull(unsafe.Pointer(C.gst_query_copy(q.Instance()))) -} - -// FindAllocationMeta checks if query has metadata api set. When this function returns TRUE, index will contain the index where the requested -// API and the parameters can be found. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) FindAllocationMeta(api glib.Type) (ok bool, index uint) { - var out C.guint - gok := C.gst_query_find_allocation_meta(q.Instance(), C.GType(api), &out) - return gobool(gok), uint(out) -} - -// GetNumAllocationMetas retrieves the number of values currently stored in the meta API array of the query's structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) GetNumAllocationMetas() uint { - return uint(C.gst_query_get_n_allocation_metas(q.Instance())) -} - -// GetNumAllocationParams retrieves the number of values currently stored in the allocator params array of the query's structure. -// -// If no memory allocator is specified, the downstream element can handle the default memory allocator. The first memory allocator in the query -// should be generic and allow mapping to system memory, all following allocators should be ordered by preference with the preferred one first. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) GetNumAllocationParams() uint { - return uint(C.gst_query_get_n_allocation_params(q.Instance())) -} - -// GetNumAllocationPools retrieves the number of values currently stored in the pool array of the query's structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) GetNumAllocationPools() uint { - return uint(C.gst_query_get_n_allocation_pools(q.Instance())) -} - -// GetNumBufferingRanges retrieves the number of values currently stored in the buffered-ranges array of the query's structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) GetNumBufferingRanges() uint { - return uint(C.gst_query_get_n_buffering_ranges(q.Instance())) -} - -// GetNumSchedulingModes retrieves the number of values currently stored in the scheduling mode array of the query's structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) GetNumSchedulingModes() uint { - return uint(C.gst_query_get_n_scheduling_modes(q.Instance())) -} - -// GetStructure retrieves the structure of a query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) GetStructure() *Structure { - return wrapStructure(C.gst_query_get_structure(q.Instance())) -} - -// HasSchedulingMode checks if query has scheduling mode set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) HasSchedulingMode(mode PadMode) bool { - return gobool(C.gst_query_has_scheduling_mode(q.Instance(), C.GstPadMode(mode))) -} - -// HasSchedulingModeWithFlags checks if query has scheduling mode set and flags is set in query scheduling flags. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) HasSchedulingModeWithFlags(mode PadMode, flags SchedulingFlags) bool { - return gobool(C.gst_query_has_scheduling_mode_with_flags(q.Instance(), C.GstPadMode(mode), C.GstSchedulingFlags(flags))) -} - -// ParseAcceptCaps gets the caps from query. The caps remains valid as long as query remains valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseAcceptCaps() *Caps { - caps := (*C.GstCaps)(C.malloc(C.sizeof_GstCaps)) - C.gst_query_parse_accept_caps(q.Instance(), &caps) - return FromGstCapsUnsafeNone(unsafe.Pointer(caps)) -} - -// ParseAcceptCapsResult parses the result from the caps query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseAcceptCapsResult() bool { - var out C.gboolean - C.gst_query_parse_accept_caps_result(q.Instance(), &out) - return gobool(out) -} - -// ParseAllocation parses an allocation query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseAllocation() (caps *Caps, needPool bool) { - gcaps := (*C.GstCaps)(C.malloc(C.sizeof_GstCaps)) - var needz C.gboolean - C.gst_query_parse_allocation(q.Instance(), &gcaps, &needz) - return FromGstCapsUnsafeNone(unsafe.Pointer(gcaps)), gobool(needz) -} - -// ParseBitrate gets the results of a bitrate query. See also SetBitrate. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseBitrate() uint { - var out C.guint - C.gst_query_parse_bitrate(q.Instance(), &out) - return uint(out) -} - -// ParseBufferingPercent gets the percentage of buffered data. This is a value between 0 and 100. The busy indicator is TRUE when -// the buffering is in progress. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseBufferingPercent() (busy bool, percent int) { - var gb C.gboolean - var gp C.gint - C.gst_query_parse_buffering_percent(q.Instance(), &gb, &gp) - return gobool(gb), int(gp) -} - -// ParseBufferingRange parses a buffering range query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseBufferingRange() (format Format, start, stop, estimatedTotal int64) { - var gformat C.GstFormat - var gstart, gstop, gestimated C.gint64 - C.gst_query_parse_buffering_range(q.Instance(), &gformat, &gstart, &gstop, &gestimated) - return Format(gformat), int64(gstart), int64(gstop), int64(gestimated) -} - -// ParseBufferingStats extracts the buffering stats values from query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseBufferingStats() (mode BufferingMode, avgIn, avgOut int, bufLeft int64) { - var gmode C.GstBufferingMode - var avgi, avgo C.gint - var gbufleft C.gint64 - C.gst_query_parse_buffering_stats(q.Instance(), &gmode, &avgi, &avgo, &gbufleft) - return BufferingMode(gmode), int(avgi), int(avgo), int64(gbufleft) -} - -// ParseCaps gets the filter from the caps query. The caps remains valid as long as query remains valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseCaps() *Caps { - caps := (*C.GstCaps)(C.malloc(C.sizeof_GstCaps)) - C.gst_query_parse_caps(q.Instance(), &caps) - return FromGstCapsUnsafeNone(unsafe.Pointer(caps)) -} - -// ParseCapsResult gets the caps result from query. The caps remains valid as long as query remains valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseCapsResult() *Caps { - caps := (*C.GstCaps)(C.malloc(C.sizeof_GstCaps)) - C.gst_query_parse_caps_result(q.Instance(), &caps) - return FromGstCapsUnsafeNone(unsafe.Pointer(caps)) -} - -// ParseContext gets the context from the context query. The context remains valid as long as query remains valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseContext() *Context { - var _ctx *C.GstContext - ctx := C.makeContextWritable(_ctx) - C.gst_query_parse_context(q.Instance(), &ctx) - return FromGstContextUnsafeNone(unsafe.Pointer(ctx)) -} - -// ParseContextType parses a context type from an existing GST_QUERY_CONTEXT query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseContextType() (ok bool, ctxType string) { - tPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(tPtr)) - gok := C.gst_query_parse_context_type(q.Instance(), (**C.gchar)(unsafe.Pointer(&tPtr))) - if gobool(gok) { - return true, C.GoString((*C.char)(unsafe.Pointer(tPtr))) - } - return false, "" -} - -// ParseConvert parses a convert query answer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseConvert() (srcformat, destFormat Format, srcValue, destValue int64) { - var gsrcf, gdestf C.GstFormat - var gsval, gdval C.gint64 - C.gst_query_parse_convert(q.Instance(), &gsrcf, &gsval, &gdestf, &gdval) - return Format(gsrcf), Format(gdestf), int64(gsval), int64(gdval) -} - -// ParseDuration parses a duration query answer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseDuration() (format Format, duration int64) { - var gf C.GstFormat - var gd C.gint64 - C.gst_query_parse_duration(q.Instance(), &gf, &gd) - return Format(gf), int64(gd) -} - -// ParseLatency parses a latency query answer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseLatency() (live bool, minLatency, maxLatency ClockTime) { - var min, max C.GstClockTime - var gl C.gboolean - C.gst_query_parse_latency(q.Instance(), &gl, &min, &max) - return gobool(gl), ClockTime(min), ClockTime(max) -} - -// ParseNumFormats parses the number of formats in the formats query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseNumFormats() uint { - var out C.guint - C.gst_query_parse_n_formats(q.Instance(), &out) - return uint(out) -} - -// ParseAllocationMetaAt parses an available query and get the metadata API at index of the metadata API array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseAllocationMetaAt(idx uint) (api glib.Type, st *Structure) { - var gs *C.GstStructure - gtype := C.gst_query_parse_nth_allocation_meta(q.Instance(), C.guint(idx), &gs) - return glib.Type(gtype), wrapStructure(gs) -} - -// ParseAllocationParamAt parses an available query and get the allocator and its params at index of the allocator array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseAllocationParamAt(idx uint) (*Allocator, *AllocationParams) { - var alloc *C.GstAllocator - var params C.GstAllocationParams - C.gst_query_parse_nth_allocation_param(q.Instance(), C.guint(idx), &alloc, ¶ms) - return FromGstAllocatorUnsafeFull(unsafe.Pointer(alloc)), wrapAllocationParams(¶ms) -} - -// ParseAllocationPoolAt gets the pool parameters in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseAllocationPoolAt(idx uint) (pool *BufferPool, size, minBuffers, maxBuffers uint) { - var gpool *C.GstBufferPool - var gs, gmin, gmax C.guint - C.gst_query_parse_nth_allocation_pool(q.Instance(), C.guint(idx), &gpool, &gs, &gmin, &gmax) - return FromGstBufferPoolUnsafeFull(unsafe.Pointer(gpool)), uint(gs), uint(gmin), uint(gmax) -} - -// ParseBufferingRangeAt parses an available query and get the start and stop values stored at the index of the buffered ranges array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseBufferingRangeAt(idx uint) (start, stop int64) { - var gstart, gstop C.gint64 - C.gst_query_parse_nth_buffering_range(q.Instance(), C.guint(idx), &gstart, &gstop) - return int64(gstart), int64(gstop) -} - -// ParseFormatAt parses the format query and retrieve the nth format from it into format. If the list contains less elements than nth, -// format will be set to GST_FORMAT_UNDEFINED. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseFormatAt(idx uint) Format { - var out C.GstFormat - C.gst_query_parse_nth_format(q.Instance(), C.guint(idx), &out) - return Format(out) -} - -// ParseSchedulingModeAt parses an available query and get the scheduling mode at index of the scheduling modes array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseSchedulingModeAt(idx uint) PadMode { - return PadMode(C.gst_query_parse_nth_scheduling_mode(q.Instance(), C.guint(idx))) -} - -// ParsePosition parses a position query, writing the format into format, and the position into cur, if the respective parameters are non-%NULL. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParsePosition() (format Format, cur int64) { - var gf C.GstFormat - var out C.gint64 - C.gst_query_parse_position(q.Instance(), &gf, &out) - return Format(gf), int64(out) -} - -// ParseScheduling sets the scheduling properties. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseScheduling() (flags SchedulingFlags, minSize, maxSize, align int) { - var gf C.GstSchedulingFlags - var gmin, gmax, galign C.gint - C.gst_query_parse_scheduling(q.Instance(), &gf, &gmin, &gmax, &galign) - return SchedulingFlags(gf), int(gmin), int(gmax), int(galign) -} - -// ParseSeeking parses a seeking query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseSeeking() (format Format, seekable bool, start, end int64) { - var gs, ge C.gint64 - var seek C.gboolean - var f C.GstFormat - C.gst_query_parse_seeking(q.Instance(), &f, &seek, &gs, &ge) - return Format(f), gobool(seek), int64(gs), int64(ge) -} - -// ParseSegment parses a segment query answer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseSegment() (rate float64, format Format, start, stop int64) { - var gs, ge C.gint64 - var f C.GstFormat - var grate C.gdouble - C.gst_query_parse_segment(q.Instance(), &grate, &f, &gs, &ge) - return float64(grate), Format(f), int64(gs), int64(ge) -} - -// ParseURI parses a URI query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseURI() string { - tPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(tPtr)) - C.gst_query_parse_uri(q.Instance(), (**C.gchar)(unsafe.Pointer(&tPtr))) - return C.GoString((*C.char)(unsafe.Pointer(tPtr))) -} - -// ParseURIRedirection parses a URI query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseURIRedirection() string { - tPtr := C.malloc(C.sizeof_char * 1024) - defer C.free(unsafe.Pointer(tPtr)) - C.gst_query_parse_uri_redirection(q.Instance(), (**C.gchar)(unsafe.Pointer(&tPtr))) - return C.GoString((*C.char)(unsafe.Pointer(tPtr))) -} - -// ParseURIRedirectionPermanent parses an URI query, and set permanent to TRUE if there is a redirection and it should be considered permanent. -// If a redirection is permanent, applications should update their internal storage of the URI, otherwise they should make all future requests -// to the original URI. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) ParseURIRedirectionPermanent() bool { - var out C.gboolean - C.gst_query_parse_uri_redirection_permanent(q.Instance(), &out) - return gobool(out) -} - -// RemoveAllocationMetaAt removes the metadata API at index of the metadata API array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) RemoveAllocationMetaAt(idx uint) { - C.gst_query_remove_nth_allocation_meta(q.Instance(), C.guint(idx)) -} - -// RemoveAllocationParamAt removes the allocation param at index of the allocation param array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) RemoveAllocationParamAt(idx uint) { - C.gst_query_remove_nth_allocation_param(q.Instance(), C.guint(idx)) -} - -// RemoveAllocationPoolAt removes the allocation pool at index of the allocation pool array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) RemoveAllocationPoolAt(idx uint) { - C.gst_query_remove_nth_allocation_pool(q.Instance(), C.guint(idx)) -} - -// SetAcceptCapsResult sets result as the result for the query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetAcceptCapsResult(result bool) { - C.gst_query_set_accept_caps_result(q.Instance(), gboolean(result)) -} - -// SetBitrate sets the results of a bitrate query. The nominal bitrate is the average bitrate expected over the length of the stream as advertised -// in file headers (or similar). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetBitrate(nominal uint) { - C.gst_query_set_bitrate(q.Instance(), C.guint(nominal)) -} - -// SetBufferingPercent sets the percentage of buffered data. This is a value between 0 and 100. The busy indicator is TRUE when the buffering is -// in progress. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetBufferingPercent(busy bool, percent int) { - C.gst_query_set_buffering_percent(q.Instance(), gboolean(busy), C.gint(percent)) -} - -// SetBufferingRange sets the available query result fields in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetBufferingRange(format Format, start, stop, estimatedTotal int64) { - C.gst_query_set_buffering_range(q.Instance(), C.GstFormat(format), C.gint64(start), C.gint64(stop), C.gint64(estimatedTotal)) -} - -// SetBufferingStats configures the buffering stats values in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetBufferingStats(mode BufferingMode, avgIn, avgOut int, bufferingLeft int64) { - C.gst_query_set_buffering_stats(q.Instance(), C.GstBufferingMode(mode), C.gint(avgIn), C.gint(avgOut), C.gint64(bufferingLeft)) -} - -// SetCapsResult sets the caps result in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetCapsResult(caps *Caps) { - C.gst_query_set_caps_result(q.Instance(), caps.Instance()) -} - -// SetContext answers a context query by setting the requested context. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetContext(ctx *Context) { - C.gst_query_set_context(q.Instance(), ctx.Instance()) -} - -// SetConvert answers a convert query by setting the requested values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetConvert(srcFormat, destFormat Format, srcValue, destValue int64) { - C.gst_query_set_convert(q.Instance(), C.GstFormat(srcFormat), C.gint64(srcValue), C.GstFormat(destFormat), C.gint64(destValue)) -} - -// SetDuration answers a duration query by setting the requested value in the given format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetDuration(format Format, duration int64) { - C.gst_query_set_duration(q.Instance(), C.GstFormat(format), C.gint64(duration)) -} - -// SetFormats sets the formats query result fields in query. The number of formats passed must be equal to n_formats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetFormats(formats ...Format) { - gstFormats := make([]C.GstFormat, len(formats)) - for _, f := range formats { - gstFormats = append(gstFormats, C.GstFormat(f)) - } - C.gst_query_set_formatsv(q.Instance(), C.gint(len(formats)), (*C.GstFormat)(unsafe.Pointer(&gstFormats[0]))) -} - -// SetLatency answers a latency query by setting the requested values in the given format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetLatency(live bool, minLatency, maxLatency ClockTime) { - C.gst_query_set_latency(q.Instance(), gboolean(live), C.guint64(minLatency), C.guint64(maxLatency)) -} - -// SetAllocationParamAt sets allocation params in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetAllocationParamAt(idx uint, allocator *Allocator, params *AllocationParams) { - C.gst_query_set_nth_allocation_param(q.Instance(), C.guint(idx), allocator.Instance(), params.Instance()) -} - -// SetAllocationPoolAt sets the pool parameters in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetAllocationPoolAt(idx uint, pool *BufferPool, size, minBuffers, maxBuffers uint) { - C.gst_query_set_nth_allocation_pool(q.Instance(), C.guint(idx), pool.Instance(), C.guint(size), C.guint(minBuffers), C.guint(maxBuffers)) -} - -// SetPosition answers a position query by setting the requested value in the given format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetPosition(format Format, cur int64) { - C.gst_query_set_position(q.Instance(), C.GstFormat(format), C.gint64(cur)) -} - -// SetScheduling sets the scheduling properties. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetScheduling(flags SchedulingFlags, minSize, maxSize, align int) { - C.gst_query_set_scheduling(q.Instance(), C.GstSchedulingFlags(flags), C.gint(minSize), C.gint(maxSize), C.gint(align)) -} - -// SetSeeking sets the seeking query result fields in query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetSeeking(format Format, seekable bool, segmentStart, segmentEnd int64) { - C.gst_query_set_seeking(q.Instance(), C.GstFormat(format), gboolean(seekable), C.gint64(segmentStart), C.gint64(segmentEnd)) -} - -// SetSegment answers a segment query by setting the requested values. The normal playback segment of a pipeline is 0 to duration at the default rate of 1.0. -// If a seek was performed on the pipeline to play a different segment, this query will return the range specified in the last seek. -// -// start_value and stop_value will respectively contain the configured playback range start and stop values expressed in format. The values are always between -// 0 and the duration of the media and start_value <= stop_value. rate will contain the playback rate. For negative rates, playback will actually happen from -// stop_value to start_value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetSegment(rate float64, format Format, startValue, stopValue int64) { - C.gst_query_set_segment(q.Instance(), C.gdouble(rate), C.GstFormat(format), C.gint64(startValue), C.gint64(stopValue)) -} - -// SetURI answers a URI query by setting the requested URI. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetURI(uri string) { - curi := C.CString(uri) - defer C.free(unsafe.Pointer(curi)) - C.gst_query_set_uri(q.Instance(), (*C.gchar)(unsafe.Pointer(curi))) -} - -// SetURIRedirection answers a URI query by setting the requested URI redirection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetURIRedirection(uri string) { - curi := C.CString(uri) - defer C.free(unsafe.Pointer(curi)) - C.gst_query_set_uri_redirection(q.Instance(), (*C.gchar)(unsafe.Pointer(curi))) -} - -// SetURIRedirectionPermanent answers a URI query by setting the requested URI redirection to permanent or not. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) SetURIRedirectionPermanent(permanent bool) { - C.gst_query_set_uri_redirection_permanent(q.Instance(), gboolean(permanent)) -} - -// Ref increases the query ref count by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) Ref() *Query { - C.gst_query_ref(q.Instance()) - return q -} - -// Unref decreases the refcount of the query. If the refcount reaches 0, the query will be freed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) Unref() { - C.gst_query_unref(q.Instance()) -} - -// WritableStructure gets the structure of a query. This method should be called with a writable query so that the returned structure is guaranteed to be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *Query) WritableStructure() *Structure { - return wrapStructure(C.gst_query_writable_structure(q.Instance())) -} diff --git a/gst/gst_registry.go b/gst/gst_registry.go deleted file mode 100644 index d161035..0000000 --- a/gst/gst_registry.go +++ /dev/null @@ -1,67 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "fmt" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Registry is a go representation of a GstRegistry. -type Registry struct{ *Object } - -// FromGstRegistryUnsafeNone wraps the given GstRegistry pointer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstRegistryUnsafeNone(registry unsafe.Pointer) *Registry { - return &Registry{wrapObject(glib.TransferNone(registry))} -} - -// FromGstRegistryUnsafeFull wraps the given GstRegistry pointer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstRegistryUnsafeFull(registry unsafe.Pointer) *Registry { - return &Registry{wrapObject(glib.TransferFull(registry))} -} - -// GetRegistry returns the default global GstRegistry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetRegistry() *Registry { - registry := C.gst_registry_get() - return FromGstRegistryUnsafeNone(unsafe.Pointer(registry)) -} - -// Instance returns the underlying GstRegistry instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (r *Registry) Instance() *C.GstRegistry { return C.toGstRegistry(r.Unsafe()) } - -// FindPlugin retrieves the plugin by the given name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (r *Registry) FindPlugin(name string) (*Plugin, error) { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - plugin := C.gst_registry_find_plugin((*C.GstRegistry)(r.Instance()), (*C.gchar)(cName)) - if plugin == nil { - return nil, fmt.Errorf("no plugin named %s found", name) - } - return FromGstPluginUnsafeFull(unsafe.Pointer(plugin)), nil -} - -// LookupFeature looks up the given plugin feature by name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (r *Registry) LookupFeature(name string) (*PluginFeature, error) { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - feat := C.gst_registry_lookup_feature((*C.GstRegistry)(r.Instance()), (*C.gchar)(cName)) - if feat == nil { - return nil, fmt.Errorf("no feature named %s found", name) - } - return wrapPluginFeature(glib.TransferFull(unsafe.Pointer(feat))), nil -} diff --git a/gst/gst_sample.go b/gst/gst_sample.go deleted file mode 100644 index 0c7bf82..0000000 --- a/gst/gst_sample.go +++ /dev/null @@ -1,125 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "runtime" - "unsafe" -) - -// Sample is a go wrapper around a GstSample object. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Sample struct { - sample *C.GstSample -} - -// FromGstSampleUnsafeNone wraps the pointer to the given C GstSample with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstSampleUnsafeNone(sample unsafe.Pointer) *Sample { - s := wrapSample(C.toGstSample(sample)) - s.Ref() - runtime.SetFinalizer(s, (*Sample).Unref) - return s -} - -// FromGstSampleUnsafeFull wraps the pointer to the given C GstSample with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstSampleUnsafeFull(sample unsafe.Pointer) *Sample { - s := wrapSample(C.toGstSample(sample)) - runtime.SetFinalizer(s, (*Sample).Unref) - return s -} - -// Instance returns the underlying *GstSample instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) Instance() *C.GstSample { return C.toGstSample(unsafe.Pointer(s.sample)) } - -// Ref increases the ref count on the sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) Ref() *Sample { - return wrapSample(C.gst_sample_ref(s.Instance())) -} - -// Copy creates a copy of the given sample. This will also make a newly allocated copy of the data -// the source sample contains. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) Copy() *Sample { - return FromGstSampleUnsafeFull(unsafe.Pointer(C.gst_sample_copy(s.Instance()))) -} - -// GetBuffer returns the buffer inside this sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) GetBuffer() *Buffer { - return FromGstBufferUnsafeNone(unsafe.Pointer(C.gst_sample_get_buffer((*C.GstSample)(s.Instance())))) -} - -// GetBufferList gets the buffer list associated with this sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) GetBufferList() *BufferList { - return FromGstBufferListUnsafeNone(unsafe.Pointer(C.gst_sample_get_buffer_list(s.Instance()))) -} - -// GetCaps returns the caps associated with this sample. Take a ref if you need to hold on to them -// longer then the life of the sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) GetCaps() *Caps { - return FromGstCapsUnsafeNone(unsafe.Pointer(C.gst_sample_get_caps(s.Instance()))) -} - -// GetInfo gets extra information about this sample. The structure remains valid as long as sample is valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) GetInfo() *Structure { return wrapStructure(C.gst_sample_get_info(s.Instance())) } - -// GetSegment gets the segment associated with the sample. The segmenr remains valid as long as sample is valid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) GetSegment() *Segment { return wrapSegment(C.gst_sample_get_segment(s.Instance())) } - -// SetBuffer sets the buffer inside this sample. The sample must be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) SetBuffer(buf *Buffer) { C.gst_sample_set_buffer(s.Instance(), buf.Instance()) } - -// SetBufferList sets the buffer list for this sample. The sample must be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) SetBufferList(buf *BufferList) { - C.gst_sample_set_buffer_list(s.Instance(), buf.Instance()) -} - -// SetCaps sets the caps on this sample. The sample must be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) SetCaps(caps *Caps) { C.gst_sample_set_caps(s.Instance(), caps.Instance()) } - -// SetInfo sets the info on this sample. The sample must be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) SetInfo(st *Structure) bool { - return gobool(C.gst_sample_set_info(s.Instance(), st.Instance())) -} - -// SetSegment sets the segment on this sample. The sample must be writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) SetSegment(segment *Segment) { - C.gst_sample_set_segment(s.Instance(), segment.Instance()) -} - -// Unref calls gst_sample_unref on the sample. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Sample) Unref() { C.gst_sample_unref((*C.GstSample)(s.Instance())) } diff --git a/gst/gst_segment.go b/gst/gst_segment.go deleted file mode 100644 index da37041..0000000 --- a/gst/gst_segment.go +++ /dev/null @@ -1,347 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import "unsafe" - -// Segment is a go wrapper around a GstSegment. -// See: https://gstreamer.freedesktop.org/documentation/gstreamer/gstsegment.html?gi-language=c#GstSegment -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Segment struct { - ptr *C.GstSegment -} - -// FromGstSegmentUnsafe wraps the GstSegment pointer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstSegmentUnsafe(segment unsafe.Pointer) *Segment { - return wrapSegment((*C.GstSegment)(segment)) -} - -// ToGstSegment converts the given pointer into a Segment without affecting the ref count or -// placing finalizers. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToGstSegment(segment unsafe.Pointer) *Segment { - return wrapSegment((*C.GstSegment)(segment)) -} - -// NewSegment allocates and initializes a new Segment. Free when you are finished. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSegment() *Segment { - return wrapSegment(C.gst_segment_new()) -} - -// NewFormattedSegment returns a new Segment with the given format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewFormattedSegment(f Format) *Segment { - segment := NewSegment() - segment.SetFormat(f) - return segment -} - -// Instance returns the underlying GstSegment instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) Instance() *C.GstSegment { return s.ptr } - -// GetFlags returns the flags on this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetFlags() SegmentFlags { return SegmentFlags(s.Instance().flags) } - -// SetFlags sets the flags on this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) SetFlags(flags SegmentFlags) { s.Instance().flags = C.GstSegmentFlags(flags) } - -// GetRate returns the rate for this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetRate() float64 { return float64(s.Instance().rate) } - -// SetRate sets the rate for this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) SetRate(rate float64) { s.Instance().rate = C.gdouble(rate) } - -// GetAppliedRate returns the applied rate for this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetAppliedRate() float64 { return float64(s.Instance().applied_rate) } - -// SetAppliedRate sets the applied rate for this segment -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) SetAppliedRate(rate float64) { s.Instance().applied_rate = C.gdouble(rate) } - -// GetFormat returns the format for this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetFormat() Format { return Format(s.Instance().format) } - -// SetFormat sets the format on this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) SetFormat(f Format) { s.Instance().format = C.GstFormat(f) } - -// GetBase returns the base for this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetBase() uint64 { return uint64(s.Instance().base) } - -// GetOffset returns the offset for this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetOffset() uint64 { return uint64(s.Instance().offset) } - -// GetStart returns the start of this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetStart() uint64 { return uint64(s.Instance().start) } - -// GetStop returns the stop of this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetStop() uint64 { return uint64(s.Instance().stop) } - -// GetTime returns the time of this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetTime() uint64 { return uint64(s.Instance().time) } - -// GetPosition returns the position of this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetPosition() uint64 { return uint64(s.Instance().position) } - -// GetDuration gets the duration of this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) GetDuration() uint64 { return uint64(s.Instance().duration) } - -// Clip clips the given start and stop values to the segment boundaries given in segment. start and stop are compared and clipped -// to segment start and stop values. -// -// If the function returns FALSE, start and stop are known to fall outside of segment and clip_start and clip_stop are not updated. -// -// When the function returns TRUE, clip_start and clip_stop will be updated. If clip_start or clip_stop are different from start or stop -// respectively, the region fell partially in the segment. -// -// Note that when stop is -1, clip_stop will be set to the end of the segment. Depending on the use case, this may or may not be what you want. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) Clip(format Format, start, stop uint64) (ok bool, clipStart, clipStop uint64) { - var gclipStart, gclipStop C.guint64 - gok := C.gst_segment_clip( - s.Instance(), - C.GstFormat(format), - C.guint64(start), - C.guint64(stop), - &gclipStart, &gclipStop, - ) - return gobool(gok), uint64(gclipStart), uint64(gclipStop) -} - -// Copy creates a copy of this segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) Copy() *Segment { return wrapSegment(C.gst_segment_copy(s.Instance())) } - -// CopyInto copies the contents of this segment into the given one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) CopyInto(segment *Segment) { - C.gst_segment_copy_into(s.Instance(), segment.Instance()) -} - -// DoSeek updates the segment structure with the field values of a seek event (see NewSeekEvent). -// -// After calling this method, the segment field position and time will contain the requested new position in the segment. -// The new requested position in the segment depends on rate and start_type and stop_type. -// -// For positive rate, the new position in the segment is the new segment start field when it was updated with a start_type -// different from SeekTypeNone. If no update was performed on segment start position (#SeekTypeNone), start is ignored and -// segment position is unmodified. -// -// For negative rate, the new position in the segment is the new segment stop field when it was updated with a stop_type different -// from SeekTypeNone. If no stop was previously configured in the segment, the duration of the segment will be used to update the -// stop position. If no update was performed on segment stop position (#SeekTypeNone), stop is ignored and segment position -// is unmodified. -// -// The applied rate of the segment will be set to 1.0 by default. If the caller can apply a rate change, it should update segment -// rate and applied_rate after calling this function. -// -// update will be set to TRUE if a seek should be performed to the segment position field. This field can be FALSE if, for example, -// only the rate has been changed but not the playback position. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) DoSeek(rate float64, format Format, flags SeekFlags, startType SeekType, start uint64, stopType SeekType, stop uint64) (ok, update bool) { - var gupdate C.gboolean - gok := C.gst_segment_do_seek( - s.Instance(), - C.gdouble(rate), - C.GstFormat(format), - C.GstSeekFlags(flags), - C.GstSeekType(startType), - C.guint64(start), - C.GstSeekType(stopType), - C.guint64(stop), - &gupdate, - ) - return gobool(gok), gobool(gupdate) -} - -// Free frees the allocated segment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) Free() { C.gst_segment_free(s.Instance()) } - -// Init reinitializes a segment to its default values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) Init(format Format) { - C.gst_segment_init(s.Instance(), C.GstFormat(format)) -} - -// IsEqual checks for two segments being equal. Equality here is defined as perfect equality, including floating point values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) IsEqual(segment *Segment) bool { - return gobool(C.gst_segment_is_equal( - s.Instance(), segment.Instance(), - )) -} - -// OffsetRunningTime adjusts the values in segment so that offset is applied to all future running-time calculations. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) OffsetRunningTime(format Format, offset int64) bool { - return gobool(C.gst_segment_offset_running_time( - s.Instance(), - C.GstFormat(format), - C.gint64(offset), - )) -} - -// PositionFromRunningTime converts running_time into a position in the segment so that ToRunningTime with that position returns -// running_time. The position in the segment for runningTime is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) PositionFromRunningTime(format Format, runningTime uint64) uint64 { - return uint64(C.gst_segment_position_from_running_time(s.Instance(), C.GstFormat(format), C.guint64(runningTime))) -} - -// PositionFromRunningTimeFull translates running_time to the segment position using the currently configured segment. Compared to -// PositionFromRunningTime this function can return negative segment position. -// -// This function is typically used by elements that need to synchronize buffers against the clock or each other. -// -// running_time can be any value and the result of this function for values outside of the segment is extrapolated. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) PositionFromRunningTimeFull(format Format, runningTime uint64) int64 { - var position C.guint64 - ret := C.gst_segment_position_from_running_time_full(s.Instance(), C.GstFormat(format), C.guint64(runningTime), &position) - if int(ret) > 0 { - return int64(position) - } - return int64(position) * -1 -} - -// PositionFromStreamTime converts stream_time into a position in the segment so that ToStreamTime with that position returns stream_time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) PositionFromStreamTime(format Format, streamTime uint64) uint64 { - return uint64(C.gst_segment_position_from_stream_time(s.Instance(), C.GstFormat(format), C.guint64(streamTime))) -} - -// PositionFromStreamTimeFull translates stream_time to the segment position using the currently configured segment. Compared to PositionFromStreamTime -// this function can return negative segment position. -// -// This function is typically used by elements that need to synchronize buffers against the clock or each other. -// -// stream_time can be any value and the result of this function for values outside of the segment is extrapolated. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) PositionFromStreamTimeFull(format Format, streamTime uint64) int64 { - var position C.guint64 - ret := C.gst_segment_position_from_stream_time_full(s.Instance(), C.GstFormat(format), C.guint64(streamTime), &position) - if int(ret) > 0 { - return int64(position) - } - return int64(position) * -1 -} - -// SetRunningTime adjusts the start/stop and base values of segment such that the next valid buffer will be one with running_time. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) SetRunningTime(format Format, runningTime uint64) bool { - return gobool(C.gst_segment_set_running_time( - s.Instance(), - C.GstFormat(format), - C.guint64(runningTime), - )) -} - -// ToRunningTime translates position to the total running time using the currently configured segment. Position is a value between -// segment start and stop time. -// -// This function is typically used by elements that need to synchronize to the global clock in a pipeline. The running time is a -// constantly increasing value starting from 0. When segment Init is called, this value will reset to 0. -// -// This function returns -1 if the position is outside of segment start and stop. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) ToRunningTime(format Format, position uint64) uint64 { - return uint64(C.gst_segment_to_running_time(s.Instance(), C.GstFormat(format), C.guint64(position))) -} - -// ToRunningTimeFull translates position to the total running time using the currently configured segment. Compared to ToRunningTime -// this function can return negative running-time. -// -// This function is typically used by elements that need to synchronize buffers against the clock or each other. -// -// position can be any value and the result of this function for values outside of the segment is extrapolated. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) ToRunningTimeFull(format Format, position uint64) int64 { - var runningTime C.guint64 - ret := C.gst_segment_to_running_time_full(s.Instance(), C.GstFormat(format), C.guint64(position), &runningTime) - if int(ret) > 0 { - return int64(runningTime) - } - return int64(runningTime) * -1 -} - -// ToStreamTime translates position to stream time using the currently configured segment. The position value must be between segment -// start and stop value. -// -// This function is typically used by elements that need to operate on the stream time of the buffers it receives, such as effect -// plugins. In those use cases, position is typically the buffer timestamp or clock time that one wants to convert to the stream time. -// The stream time is always between 0 and the total duration of the media stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) ToStreamTime(format Format, position uint64) uint64 { - return uint64(C.gst_segment_to_stream_time(s.Instance(), C.GstFormat(format), C.guint64(position))) -} - -// ToStreamTimeFull translates position to the total stream time using the currently configured segment. Compared to ToStreamTime this -// function can return negative stream-time. -// -// This function is typically used by elements that need to synchronize buffers against the clock or each other. -// -// position can be any value and the result of this function for values outside of the segment is extrapolated. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Segment) ToStreamTimeFull(format Format, position uint64) int64 { - var streamTime C.guint64 - ret := C.gst_segment_to_running_time_full(s.Instance(), C.GstFormat(format), C.guint64(position), &streamTime) - if int(ret) > 0 { - return int64(streamTime) - } - return int64(streamTime) * -1 -} diff --git a/gst/gst_stream.go b/gst/gst_stream.go deleted file mode 100644 index 8b1f9f1..0000000 --- a/gst/gst_stream.go +++ /dev/null @@ -1,111 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// Stream is a Go representation of a GstStream. -type Stream struct{ *Object } - -// FromGstStreamUnsafeNone captures a pointer with a ref and finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstStreamUnsafeNone(stream unsafe.Pointer) *Stream { - return &Stream{wrapObject(glib.TransferNone(stream))} -} - -// FromGstStreamUnsafeFull captures a pointer with just a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstStreamUnsafeFull(stream unsafe.Pointer) *Stream { - return &Stream{wrapObject(glib.TransferNone(stream))} -} - -// NewStream returns a new Stream with the given ID, caps, type, and flags. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStream(id string, caps *Caps, sType StreamType, flags StreamFlags) *Stream { - cID := C.CString(id) - defer C.free(unsafe.Pointer(cID)) - stream := C.gst_stream_new(cID, caps.Instance(), C.GstStreamType(sType), C.GstStreamFlags(flags)) - return FromGstStreamUnsafeFull(unsafe.Pointer(stream)) -} - -// Instance returns the underlying GstStream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) Instance() *C.GstStream { - return C.toGstStream(s.Unsafe()) -} - -// Caps returns the caps for this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) Caps() *Caps { - return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_stream_get_caps(s.Instance()))) -} - -// StreamFlags returns the flags for this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) StreamFlags() StreamFlags { - return StreamFlags(C.gst_stream_get_stream_flags(s.Instance())) -} - -// StreamID returns the id of this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) StreamID() string { - return C.GoString(C.gst_stream_get_stream_id(s.Instance())) -} - -// StreamType returns the type of this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) StreamType() StreamType { - return StreamType(C.gst_stream_get_stream_type(s.Instance())) -} - -// Tags returns the tag list for this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) Tags() *TagList { - tags := C.gst_stream_get_tags(s.Instance()) - if tags == nil { - return nil - } - return FromGstTagListUnsafeFull(unsafe.Pointer(tags)) -} - -// SetCaps sets the caps for this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) SetCaps(caps *Caps) { - C.gst_stream_set_caps(s.Instance(), caps.Instance()) -} - -// SetStreamFlags sets the flags for this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) SetStreamFlags(flags StreamFlags) { - C.gst_stream_set_stream_flags(s.Instance(), C.GstStreamFlags(flags)) -} - -// SetStreamType sets the type of this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) SetStreamType(sType StreamType) { - C.gst_stream_set_stream_type(s.Instance(), C.GstStreamType(sType)) -} - -// SetTags sets the tags for this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Stream) SetTags(tags *TagList) { - C.gst_stream_set_tags(s.Instance(), tags.Instance()) -} diff --git a/gst/gst_stream_collection.go b/gst/gst_stream_collection.go deleted file mode 100644 index 20e56a8..0000000 --- a/gst/gst_stream_collection.go +++ /dev/null @@ -1,78 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" - -import ( - "fmt" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// StreamCollection is a Go representation of a GstStreamCollection. -type StreamCollection struct{ *Object } - -// FromGstStreamCollectionUnsafeNone captures a pointer with a ref and finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstStreamCollectionUnsafeNone(stream unsafe.Pointer) *StreamCollection { - return &StreamCollection{wrapObject(glib.TransferNone(stream))} -} - -// FromGstStreamCollectionUnsafeFull captures a pointer with just a finalizer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstStreamCollectionUnsafeFull(stream unsafe.Pointer) *StreamCollection { - return &StreamCollection{wrapObject(glib.TransferFull(stream))} -} - -// NewStreamCollection returns a new StreamCollection with an upstream parent -// of the given stream ID. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStreamCollection(upstreamID string) *StreamCollection { - cID := C.CString(upstreamID) - defer C.free(unsafe.Pointer(cID)) - collection := C.gst_stream_collection_new(cID) - return FromGstStreamCollectionUnsafeFull(unsafe.Pointer(collection)) -} - -// Instance returns the underlying GstStreamCollection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *StreamCollection) Instance() *C.GstStreamCollection { - return C.toGstStreamCollection(s.Unsafe()) -} - -// AddStream adds the given stream to this collection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *StreamCollection) AddStream(stream *Stream) error { - if ok := gobool(C.gst_stream_collection_add_stream(s.Instance(), stream.Instance())); !ok { - return fmt.Errorf("failed to add stream %s to collection", stream.StreamID()) - } - return nil -} - -// GetSize returns the size of this stream collection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *StreamCollection) GetSize() uint { - return uint(C.gst_stream_collection_get_size(s.Instance())) -} - -// GetStreamAt returns the stream at the given index in this collection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *StreamCollection) GetStreamAt(idx uint) *Stream { - stream := C.gst_stream_collection_get_stream(s.Instance(), C.guint(idx)) - return FromGstStreamUnsafeNone(unsafe.Pointer(stream)) -} - -// GetUpstreamID retrieves the upstream ID for this collection. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *StreamCollection) GetUpstreamID() string { - return C.GoString(C.gst_stream_collection_get_upstream_id(s.Instance())) -} diff --git a/gst/gst_structure.go b/gst/gst_structure.go deleted file mode 100644 index d0ea9ec..0000000 --- a/gst/gst_structure.go +++ /dev/null @@ -1,288 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern gboolean structForEachCb (GQuark field_id, GValue * value, gpointer user_data); - -gboolean structureForEach (GQuark field_id, GValue * value, gpointer user_data) -{ - return structForEachCb(field_id, value, user_data); -} -*/ -import "C" - -import ( - "errors" - "fmt" - "os" - "reflect" - "runtime" - "sync" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// Structure is a go implementation of a C GstStructure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Structure struct { - ptr unsafe.Pointer - gType glib.Type -} - -// NewStructure returns a new empty structure with the given name. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStructure(name string) *Structure { - cName := C.CString(name) - defer C.free(unsafe.Pointer(cName)) - structure := C.gst_structure_new_empty(cName) - return structureFromGlibFull(structure) -} - -// NewStructureFromString builds a new GstStructure from the given string. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewStructureFromString(stStr string) *Structure { - cStr := C.CString(stStr) - defer C.free(unsafe.Pointer(cStr)) - structure := C.gst_structure_from_string(cStr, nil) - if structure == nil { - return nil - } - return structureFromGlibFull(structure) -} - -// MarshalStructure will convert the given go struct into a GstStructure. Currently nested -// structs are not supported. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func MarshalStructure(data interface{}) *Structure { - typeOf := reflect.TypeOf(data) - valsOf := reflect.ValueOf(data) - st := NewStructure(typeOf.Name()) - for i := 0; i < valsOf.NumField(); i++ { - gval := valsOf.Field(i).Interface() - fieldName := typeOf.Field(i).Name - if err := st.SetValue(fieldName, gval); err != nil { - fmt.Fprintf(os.Stderr, "Failed to set %v for %s", gval, fieldName) - } - } - return st -} - -// FromGstStructureUnsafe wraps the given unsafe.Pointer in a Structure. This is meant for internal usage -// and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstStructureUnsafe(st unsafe.Pointer) *Structure { - return wrapStructure((*C.GstStructure)(st)) -} - -// UnmarshalInto will unmarshal this structure into the given pointer. The object -// reflected by the pointer must be non-nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) UnmarshalInto(data interface{}) error { - rv := reflect.ValueOf(data) - if rv.Kind() != reflect.Ptr || rv.IsNil() { - return errors.New("data is invalid (nil or non-pointer)") - } - - val := reflect.ValueOf(data).Elem() - nVal := rv.Elem() - for i := 0; i < val.NumField(); i++ { - nvField := nVal.Field(i) - - fieldName, ok := val.Type().Field(i).Tag.Lookup("gst") - - if !ok { - fieldName = val.Type().Field(i).Name - } - - val, err := s.GetValue(fieldName) - if err == nil { - nvField.Set(reflect.ValueOf(val)) - } - } - - return nil -} - -// Instance returns the native GstStructure instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) Instance() *C.GstStructure { - if s == nil { - return nil - } - - return C.toGstStructure(s.ptr) -} - -// Free frees the memory for the underlying GstStructure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) Free() { C.gst_structure_free(s.Instance()) } - -// String implement a stringer on a GstStructure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) String() string { - str := C.gst_structure_to_string(s.Instance()) - defer C.g_free((C.gpointer)(str)) - return C.GoString(str) -} - -// Name returns the name of this structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) Name() string { - return C.GoString(C.gst_structure_get_name(s.Instance())) -} - -// Size returns the number of fields inside this structure. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) Size() int { - return int(C.gst_structure_n_fields(s.Instance())) -} - -// SetValue sets the data at key to the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) SetValue(key string, value interface{}) error { - gVal, err := glib.GValue(value) - if err != nil { - return err - } - cKey := C.CString(key) - defer C.free(unsafe.Pointer(cKey)) - C.gst_structure_set_value(s.Instance(), cKey, (*C.GValue)(unsafe.Pointer(gVal.GValue))) - return nil -} - -// GetValue retrieves the value at key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) GetValue(key string) (interface{}, error) { - cKey := C.CString(key) - defer C.free(unsafe.Pointer(cKey)) - gVal := C.gst_structure_get_value(s.Instance(), cKey) - if gVal == nil { - return nil, fmt.Errorf("no value exists at %s", key) - } - return glib.ValueFromNative(unsafe.Pointer(gVal)).GoValue() -} - -// RemoveValue removes the value at the given key. If the key does not exist, -// the structure is unchanged. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) RemoveValue(key string) { - cKey := C.CString(key) - defer C.free(unsafe.Pointer(cKey)) - C.gst_structure_remove_field(s.Instance(), cKey) -} - -// Values returns a map of all the values inside this structure. If values cannot be -// converted to an equivalent go type, they are serialized to a string. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) Values() map[string]interface{} { - out := make(map[string]interface{}) - resCh := make(chan interface{}) - chPtr := gopointer.Save(resCh) - defer gopointer.Unref(chPtr) - - var wg sync.WaitGroup - wg.Add(1) - go func() { - defer wg.Done() - for i := 0; i < s.Size(); i++ { - nameIface := <-resCh - valIface := <-resCh - fieldName := nameIface.(string) - out[fieldName] = valIface - } - }() - - C.gst_structure_foreach(s.Instance(), C.GstStructureForeachFunc(C.structureForEach), (C.gpointer)(unsafe.Pointer(chPtr))) - wg.Wait() - - return out -} - -// TypeStructure is the glib.Type for a Structure. -var TypeStructure = glib.Type(C.gst_structure_get_type()) - -var _ glib.ValueTransformer = &Structure{} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) copy() *C.GstStructure { - return C.gst_structure_copy(s.Instance()) -} - -// ToGValue implements a glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *Structure) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeStructure) - if err != nil { - return nil, err - } - - if s != nil { - C.gst_value_set_structure( - (*C.GValue)(unsafe.Pointer(val.GValue)), - s.copy(), - ) - } - - return val, nil -} - -// marshalStructure is used to extract the GstStructure from a GValue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalStructure(p unsafe.Pointer) (interface{}, error) { - c := C.gst_value_get_structure(toGValue(p)) - return structureFromGlibNone(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapStructure(st *C.GstStructure) *Structure { - return &Structure{ - ptr: unsafe.Pointer(st), - gType: glib.Type(st._type), - } -} - -// structureFromGlibNone wraps a *C.GstStructure in a Structure after copying it. -// this is needed when the structure is returned from a function that does not transfer ownership. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func structureFromGlibNone(st *C.GstStructure) *Structure { - copy := C.gst_structure_copy(st) - - return structureFromGlibFull(copy) -} - -// structureFromGlibFull wraps a *C.GstStructure in a Structure. This is used when the structure -// is returned by a function that transfers ownership to the caller. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func structureFromGlibFull(st *C.GstStructure) *Structure { - s := wrapStructure(st) - - runtime.SetFinalizer(s, func(s *Structure) { - s.Free() - }) - - return s -} diff --git a/gst/gst_system_clock.go b/gst/gst_system_clock.go deleted file mode 100644 index f51c24e..0000000 --- a/gst/gst_system_clock.go +++ /dev/null @@ -1,52 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// SystemClock wraps GstSystemClock -type SystemClock struct{ *Clock } - -var TYPE_SYSTEM_CLOCK = glib.Type(C.GST_TYPE_SYSTEM_CLOCK) - -// ClockType represents GstClockType -type ClockType int - -const ( - //time since Epoch - ClockTypeRealtime = C.GST_CLOCK_TYPE_REALTIME - //monotonic time since some unspecified starting point - ClockTypeMonotonic = C.GST_CLOCK_TYPE_MONOTONIC - // some other time source is used (Since: 1.0.5) - ClockTypeOther = C.GST_CLOCK_TYPE_OTHER - // time since Epoch, but using International Atomic Time as reference (Since: 1.18) - ClockTypeTAI = C.GST_CLOCK_TYPE_TAI -) - -// ObtainSystemClock returns the default SystemClock. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ObtainSystemClock() *SystemClock { - return &SystemClock{FromGstClockUnsafeFull(unsafe.Pointer(C.gst_system_clock_obtain()))} -} - -// NewSystemClock creates a new instance of a SystemClock, with the given clock type parameter -// -// This is only a convenience wrapper for glib.NewObjectWithProperties -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSystemClock(clockType ClockType) (*SystemClock, error) { - clockObj, err := glib.NewObjectWithProperties(TYPE_SYSTEM_CLOCK, map[string]any{ - "clock-type": clockType, - }) - - if err != nil { - return nil, err - } - - return &SystemClock{ToGstClock(clockObj)}, nil -} diff --git a/gst/gst_tag_list.go b/gst/gst_tag_list.go deleted file mode 100644 index dfe5054..0000000 --- a/gst/gst_tag_list.go +++ /dev/null @@ -1,699 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern void goTagForEachFunc (const GstTagList * tagList, const gchar * tag, gpointer user_data); - -void cgoTagForEachFunc (const GstTagList * tagList, const gchar * tag, gpointer user_data) -{ - goTagForEachFunc(tagList, tag, user_data); -} - -*/ -import "C" - -import ( - "runtime" - "time" - "unsafe" - - "github.com/go-gst/go-glib/glib" - gopointer "github.com/go-gst/go-pointer" -) - -// TagList is a go wrapper around a GstTagList. For now, until the rest of the methods are -// implemnented, this struct is primarily used for retrieving serialized copies of the tags. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type TagList struct { - ptr *C.GstTagList -} - -// FromGstTagListUnsafeNone wraps the pointer to the given C GstTagList with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstTagListUnsafeNone(tags unsafe.Pointer) *TagList { - tl := wrapTagList(C.toGstTagList(tags)) - tl.Ref() - runtime.SetFinalizer(tl, (*TagList).Unref) - return tl -} - -// FromGstTagListUnsafeFull wraps the pointer to the given C GstTagList with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstTagListUnsafeFull(tags unsafe.Pointer) *TagList { - tl := wrapTagList(C.toGstTagList(tags)) - runtime.SetFinalizer(tl, (*TagList).Unref) - return tl -} - -// NewEmptyTagList returns a new empty tag list. -// -// tagList := gst.NewEmptyTagList() -// fmt.Println(tagList.IsEmpty()) -// // true -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewEmptyTagList() *TagList { - return FromGstTagListUnsafeFull(unsafe.Pointer(C.gst_tag_list_new_empty())) -} - -// NewTagListFromString creates a new tag list from the given string. This is the same format produced -// by the stringer interface on the TagList. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTagListFromString(tags string) *TagList { - ctags := C.CString(tags) - defer C.free(unsafe.Pointer(ctags)) - tagList := C.gst_tag_list_new_from_string((*C.gchar)(unsafe.Pointer(ctags))) - if tagList == nil { - return nil - } - return FromGstTagListUnsafeFull(unsafe.Pointer(tagList)) -} - -// Instance returns the underlying GstTagList instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) Instance() *C.GstTagList { return C.toGstTagList(unsafe.Pointer(t.ptr)) } - -// String implements a stringer on the TagList and serializes it to a string. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) String() string { - cStr := C.gst_tag_list_to_string(t.Instance()) - defer C.g_free((C.gpointer)(unsafe.Pointer(cStr))) - return C.GoString(cStr) -} - -// Ref increases the ref count on this TagList by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) Ref() *TagList { return wrapTagList(C.gst_tag_list_ref(t.Instance())) } - -// Unref decreses the ref count on this TagList by one. When the ref count reaches zero, the object -// is destroyed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) Unref() { C.gst_tag_list_unref(t.Instance()) } - -// AddValue adds a value to a given tag using the given merge mode. If the value provided -// cannot be coerced to a GValue, nothing will happen. -// -// tagList := gst.NewEmptyTagList() -// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbum, "MyNewAlbum") -// myAlbum, _ := tagList.GetString(gst.TagAlbum) -// fmt.Println(myAlbum) -// // MyNewAlbum -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) AddValue(mergeMode TagMergeMode, tag Tag, value interface{}) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - gVal, err := glib.GValue(value) - if err != nil { - return - } - C.gst_tag_list_add_value( - t.Instance(), - C.GstTagMergeMode(mergeMode), - (*C.gchar)(ctag), - (*C.GValue)(unsafe.Pointer(gVal.GValue)), - ) -} - -// AddValues can be used to add multiple values to a tag with the given merge mode. -// Values that cannot be coerced to C types will be ignored. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) AddValues(mergeMode TagMergeMode, tag Tag, vals ...interface{}) { - for _, val := range vals { - t.AddValue(mergeMode, tag, val) - } -} - -// Copy creates a new TagList as a copy of the old taglist. The new taglist will have a refcount of 1, -// owned by the caller, and will be writable as a result. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) Copy() *TagList { - return FromGstTagListUnsafeFull(unsafe.Pointer(C.gst_tag_list_copy(t.Instance()))) -} - -// TagListForEachFunc is a function that will be called in ForEach. The function may not modify the tag list. -type TagListForEachFunc func(tagList *TagList, tag Tag) - -// ForEach calls the given function for each tag inside the tag list. Note that if there is no tag, -// the function won't be called at all. -// -// tagList := gst.NewEmptyTagList() -// -// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbumArtist, "tinyzimmer") -// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbum, "GstreamerInGo") -// -// tagList.ForEach(func(_ *gst.TagList, tag gst.Tag) { -// val, _ := tagList.GetString(tag) -// fmt.Println(tag, ":", val) -// }) -// -// // album-artist : tinyzimmer -// // album : GstreamerInGo -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) ForEach(f TagListForEachFunc) { - ptr := gopointer.Save(f) - defer gopointer.Unref(ptr) - C.gst_tag_list_foreach( - t.Instance(), - C.GstTagForeachFunc(C.cgoTagForEachFunc), - (C.gpointer)(ptr), - ) -} - -// GetBool returns the boolean value at the given tag key. If multiple values are associated with the tag they -// are merged. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetBool(tag Tag) (value, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gboolean - gok := C.gst_tag_list_get_boolean( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return gobool(gout), gobool(gok) -} - -// GetBoolIndex retrieves the bool at the given index in the tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetBoolIndex(tag Tag, idx uint) (value, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gboolean - gok := C.gst_tag_list_get_boolean_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - return gobool(gout), gobool(gok) -} - -// GetDate returns the date stored at the given tag key. If there are multiple values, the first one -// is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetDate(tag Tag) (value time.Time, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.GDate - gok := C.gst_tag_list_get_date( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - if gobool(gok) { - defer C.g_date_free(gout) - return gdateToTime(gout), true - } - return time.Time{}, false -} - -// GetDateIndex returns the date stored at the given index in tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetDateIndex(tag Tag, idx uint) (value time.Time, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.GDate - gok := C.gst_tag_list_get_date_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - if gobool(gok) { - defer C.g_date_free(gout) - return gdateToTime(gout), true - } - return time.Time{}, false -} - -// GetDateTime returns the date and time stored at the given tag key. If there are multiple values, the first one -// is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetDateTime(tag Tag) (value time.Time, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.GstDateTime - gok := C.gst_tag_list_get_date_time( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - if gobool(gok) { - defer C.gst_date_time_unref(gout) - return gstDateTimeToTime(gout), true - } - return time.Time{}, false -} - -// GetDateTimeIndex returns the date and time stored at the given tag key at the given index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetDateTimeIndex(tag Tag, idx uint) (value time.Time, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.GstDateTime - gok := C.gst_tag_list_get_date_time_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - if gobool(gok) { - defer C.gst_date_time_unref(gout) - return gstDateTimeToTime(gout), true - } - return time.Time{}, false -} - -// GetFloat64 returns the float at the given tag key, merging multiple values into one if multiple values -// are associated with the tag. This is the equivalent of a C double stored in the tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetFloat64(tag Tag) (value float64, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gdouble - gok := C.gst_tag_list_get_double( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return float64(gout), gobool(gok) -} - -// GetFloat64Index returns the float at the index of the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetFloat64Index(tag Tag, idx uint) (value float64, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gdouble - gok := C.gst_tag_list_get_double_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.uint(idx), - &gout, - ) - return float64(gout), gobool(gok) -} - -// GetFloat32 returns the float at the given tag key, merging multiple values into one if multiple values -// are associated with the tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetFloat32(tag Tag) (value float32, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gfloat - gok := C.gst_tag_list_get_float( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return float32(gout), gobool(gok) -} - -// GetFloat32Index returns the float at the index of the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetFloat32Index(tag Tag, idx uint) (value float32, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gfloat - gok := C.gst_tag_list_get_float_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.uint(idx), - &gout, - ) - return float32(gout), gobool(gok) -} - -// GetInt32 returns the integer at the given tag key, merging multiple values into one if multiple values -// are associated with the tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetInt32(tag Tag) (value int32, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gint - gok := C.gst_tag_list_get_int( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return int32(gout), gobool(gok) -} - -// GetInt32Index returns the integer at the index of the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetInt32Index(tag Tag, idx uint) (value int32, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gint - gok := C.gst_tag_list_get_int_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.uint(idx), - &gout, - ) - return int32(gout), gobool(gok) -} - -// GetInt64 returns the integer at the given tag key, merging multiple values into one if multiple values -// are associated with the tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetInt64(tag Tag) (value int64, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gint64 - gok := C.gst_tag_list_get_int64( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return int64(gout), gobool(gok) -} - -// GetInt64Index returns the integer at the index of the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetInt64Index(tag Tag, idx uint) (value int64, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gint64 - gok := C.gst_tag_list_get_int64_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.uint(idx), - &gout, - ) - return int64(gout), gobool(gok) -} - -// GetPointer returns the C pointer stored at the given tag key, merging values if there are multiple. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetPointer(tag Tag) (value unsafe.Pointer, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gpointer - gok := C.gst_tag_list_get_pointer( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return unsafe.Pointer(gout), gobool(gok) -} - -// GetPointerIndex returns the C pointer stored at the given tag key index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetPointerIndex(tag Tag, idx uint) (value unsafe.Pointer, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.gpointer - gok := C.gst_tag_list_get_pointer_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - return unsafe.Pointer(gout), gobool(gok) -} - -// GetSample copies the first sample for the given tag in the taglist. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetSample(tag Tag) (value *Sample, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.GstSample - gok := C.gst_tag_list_get_sample( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - if gobool(gok) { - return FromGstSampleUnsafeFull(unsafe.Pointer(gout)), true - } - return nil, false -} - -// GetSampleIndex copies the sample for the given index in tag in the taglist. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetSampleIndex(tag Tag, idx uint) (value *Sample, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.GstSample - gok := C.gst_tag_list_get_sample_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - if gobool(gok) { - return FromGstSampleUnsafeFull(unsafe.Pointer(gout)), true - } - return nil, false -} - -// GetString returns the string for the given tag, possibly merging multiple values into one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetString(tag Tag) (value string, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.gchar - gok := C.gst_tag_list_get_string( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - defer C.g_free((C.gpointer)(unsafe.Pointer(gout))) - return C.GoString(gout), gobool(gok) -} - -// GetStringIndex returns the string for the given index in tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetStringIndex(tag Tag, idx uint) (value string, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.gchar - gok := C.gst_tag_list_get_string_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - defer C.g_free((C.gpointer)(unsafe.Pointer(gout))) - return C.GoString(gout), gobool(gok) -} - -// GetUint32 returns the unsigned integer at the given tag key, merging multiple values into one if multiple values -// are associated with the tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetUint32(tag Tag) (value uint32, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.guint - gok := C.gst_tag_list_get_uint( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return uint32(gout), gobool(gok) -} - -// GetUint32Index returns the unsigned integer at the index of the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetUint32Index(tag Tag, idx uint) (value uint32, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.guint - gok := C.gst_tag_list_get_uint_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.uint(idx), - &gout, - ) - return uint32(gout), gobool(gok) -} - -// GetUint64 returns the unsigned integer at the given tag key, merging multiple values into one if multiple values -// are associated with the tag. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetUint64(tag Tag) (value uint64, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.guint64 - gok := C.gst_tag_list_get_uint64( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - &gout, - ) - return uint64(gout), gobool(gok) -} - -// GetUint64Index returns the unsigned integer at the index of the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetUint64Index(tag Tag, idx uint) (value uint64, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout C.guint64 - gok := C.gst_tag_list_get_uint64_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.uint(idx), - &gout, - ) - return uint64(gout), gobool(gok) -} - -// GetValueIndex retrieves the GValue at the given index in tag, or nil if none exists. -// Note that this function can also return nil if the stored value cannot be cleanly coerced -// to a go type. It is safer to use the other functions provided when you know the expected -// return type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetValueIndex(tag Tag, idx uint) interface{} { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - gval := C.gst_tag_list_get_value_index(t.Instance(), (*C.gchar)(unsafe.Pointer(ctag)), C.guint(idx)) - if gval == nil { - return nil - } - val := glib.ValueFromNative(unsafe.Pointer(gval)) - iface, _ := val.GoValue() - return iface -} - -// GetScope returns the scope for this TagList. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetScope() TagScope { return TagScope(C.gst_tag_list_get_scope(t.Instance())) } - -// GetTagSize returns the number of tag values at the given tag key. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) GetTagSize(tagKey string) int { - cStr := C.CString(tagKey) - defer C.free(unsafe.Pointer(cStr)) - return int(C.gst_tag_list_get_tag_size(t.Instance(), (*C.gchar)(cStr))) -} - -// Insert inserts the tags from the provided list using the given merge mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) Insert(tagList *TagList, mergeMode TagMergeMode) { - C.gst_tag_list_insert(t.Instance(), tagList.Instance(), C.GstTagMergeMode(mergeMode)) -} - -// IsEmpty returns true if this tag list is empty. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) IsEmpty() bool { return gobool(C.gst_tag_list_is_empty(t.Instance())) } - -// IsEqual checks if the two tag lists are equal. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) IsEqual(tagList *TagList) bool { - return gobool(C.gst_tag_list_is_equal(t.Instance(), tagList.Instance())) -} - -// IsWritable returns true if this TagList is writable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) IsWritable() bool { return gobool(C.tagListIsWritable(t.Instance())) } - -// MakeWritable will return a writable copy of the tag list if it is not already so. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) MakeWritable() *TagList { - return FromGstTagListUnsafeFull(unsafe.Pointer(C.makeTagListWritable(t.Instance()))) -} - -// Merge merges the two tag lists with the given mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) Merge(tagList *TagList, mergeMode TagMergeMode) *TagList { - return FromGstTagListUnsafeFull(unsafe.Pointer(C.gst_tag_list_merge( - t.Instance(), - tagList.Instance(), - C.GstTagMergeMode(mergeMode), - ))) -} - -// NumTags returns the number of key/value pairs in ths TagList -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) NumTags() int { return int(C.gst_tag_list_n_tags(t.Instance())) } - -// TagNameAt returns the tag name at the given index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) TagNameAt(idx int) string { - return C.GoString(C.gst_tag_list_nth_tag_name(t.Instance(), C.guint(idx))) -} - -// PeekStringIndex peeks at the value that is at the given index for the given tag in the given list. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) PeekStringIndex(tag Tag, idx uint) (value string, ok bool) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - var gout *C.gchar - gok := C.gst_tag_list_peek_string_index( - t.Instance(), - (*C.gchar)(unsafe.Pointer(ctag)), - C.guint(idx), - &gout, - ) - defer C.g_free((C.gpointer)(unsafe.Pointer(gout))) - return C.GoString(gout), gobool(gok) -} - -// RemoveTag removes the values for the given tag in this list. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) RemoveTag(tag Tag) { - ctag := C.CString(string(tag)) - defer C.free(unsafe.Pointer(ctag)) - C.gst_tag_list_remove_tag(t.Instance(), (*C.gchar)(unsafe.Pointer(ctag))) -} - -// SetScope sets the scope of this TagList. By default, the scope of a tag list is stream scope. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TagList) SetScope(scope TagScope) { - C.gst_tag_list_set_scope(t.Instance(), C.GstTagScope(scope)) -} diff --git a/gst/gst_tag_setter.go b/gst/gst_tag_setter.go deleted file mode 100644 index 8dcb6f8..0000000 --- a/gst/gst_tag_setter.go +++ /dev/null @@ -1,105 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// InterfaceTagSetter represents the GstTagsetter interface GType. Use this when querying bins -// for elements that implement a TagSetter. Extending this interface is not yet implemented. -var InterfaceTagSetter glib.Interface = &interfaceTagSetter{} - -type interfaceTagSetter struct{} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *interfaceTagSetter) Type() glib.Type { return glib.Type(C.GST_TYPE_TAG_SETTER) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *interfaceTagSetter) Init(instance *glib.TypeInstance) {} - -// TagSetter is an interface that elements can implement to provide Tag writing capabilities. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type TagSetter interface { - // Returns the current list of tags the setter uses. The list should not be modified or freed. - GetTagList() *TagList - // Adds the given tag/value pair using the given merge mode. If the tag value cannot be coerced - // to a GValue when dealing with C elements, nothing will happen. - AddTagValue(mergeMode TagMergeMode, tagKey Tag, tagValue interface{}) - // Merges a tag list with the given merge mode - MergeTags(*TagList, TagMergeMode) - // Resets the internal tag list. Elements should call this from within the state-change handler. - ResetTags() - // Queries the mode by which tags inside the setter are overwritten by tags from events - GetTagMergeMode() TagMergeMode - // Sets the given merge mode that is used for adding tags from events to tags specified by this interface. - // The default is TagMergeKeep, which keeps the tags set with this interface and discards tags from events. - SetTagMergeMode(TagMergeMode) -} - -// gstTocSetter implements a TagSetter that is backed by an Element from the C runtime. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type gstTagSetter struct { - ptr *C.GstElement -} - -// Instance returns the underlying TagSetter instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) Instance() *C.GstTagSetter { return C.toTagSetter(t.ptr) } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) GetTagList() *TagList { - tagList := C.gst_tag_setter_get_tag_list(t.Instance()) - if tagList == nil { - return nil - } - return FromGstTagListUnsafeNone(unsafe.Pointer(tagList)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) AddTagValue(mergeMode TagMergeMode, tagKey Tag, tagValue interface{}) { - ckey := C.CString(string(tagKey)) - defer C.free(unsafe.Pointer(ckey)) - gVal, err := glib.GValue(tagValue) - if err != nil { - return - } - C.gst_tag_setter_add_tag_value( - t.Instance(), - C.GstTagMergeMode(mergeMode), - (*C.gchar)(unsafe.Pointer(ckey)), - (*C.GValue)(unsafe.Pointer(gVal.GValue)), - ) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) MergeTags(tagList *TagList, mergeMode TagMergeMode) { - C.gst_tag_setter_merge_tags(t.Instance(), tagList.Instance(), C.GstTagMergeMode(mergeMode)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) ResetTags() { - C.gst_tag_setter_reset_tags(t.Instance()) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) GetTagMergeMode() TagMergeMode { - return TagMergeMode(C.gst_tag_setter_get_tag_merge_mode(t.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *gstTagSetter) SetTagMergeMode(mergeMode TagMergeMode) { - C.gst_tag_setter_set_tag_merge_mode(t.Instance(), C.GstTagMergeMode(mergeMode)) -} diff --git a/gst/gst_toc.go b/gst/gst_toc.go deleted file mode 100644 index 1e36f4c..0000000 --- a/gst/gst_toc.go +++ /dev/null @@ -1,380 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "runtime" - "unsafe" -) - -// TOC is a go representation of a GstToc. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type TOC struct { - ptr *C.GstToc -} - -// FromGstTOCUnsafeNone wraps the pointer to the given C GstToc with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstTOCUnsafeNone(toc unsafe.Pointer) *TOC { - gotoc := wrapTOC((*C.GstToc)(toc)) - gotoc.Ref() - runtime.SetFinalizer(gotoc, (*TOC).Unref) - return gotoc -} - -// FromGstTOCUnsafeFull wraps the pointer to the given C GstToc with the go type. -// This is meant for internal usage and is exported for visibility to other packages. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstTOCUnsafeFull(toc unsafe.Pointer) *TOC { - gotoc := wrapTOC((*C.GstToc)(toc)) - runtime.SetFinalizer(gotoc, (*TOC).Unref) - return gotoc -} - -// NewTOC returns a new TOC with the given scope. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTOC(scope TOCScope) *TOC { - toc := C.gst_toc_new(C.GstTocScope(scope)) - if toc == nil { - return nil - } - return FromGstTOCUnsafeFull(unsafe.Pointer(toc)) -} - -// Instance returns the underlying GstToc instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) Instance() *C.GstToc { return t.ptr } - -// Ref increases the ref count on the TOC by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) Ref() *TOC { - C.tocRef(t.Instance()) - return t -} - -// Unref decreases the ref count on the TOC by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) Unref() { - C.tocUnref(t.Instance()) -} - -// MakeWritable returns a writable copy of the TOC if it isn't already, -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) MakeWritable() *TOC { - return FromGstTOCUnsafeFull(unsafe.Pointer(C.makeTocWritable(t.Instance()))) -} - -// Copy creates a copy of the TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) Copy() *TOC { - return FromGstTOCUnsafeFull(unsafe.Pointer(C.copyToc(t.Instance()))) -} - -// AppendEntry appends the given TOCEntry to this TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) AppendEntry(entry *TOCEntry) { - C.gst_toc_append_entry(t.Instance(), entry.Instance()) -} - -// Dump dumps the TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) Dump() { - C.gst_toc_dump(t.Instance()) -} - -// FindEntry finds the entry with the given uid. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) FindEntry(uid string) *TOCEntry { - cuid := C.CString(uid) - defer C.free(unsafe.Pointer(cuid)) - entry := C.gst_toc_find_entry(t.Instance(), (*C.gchar)(cuid)) - if entry == nil { - return nil - } - return FromGstTocEntryUnsafeNone(unsafe.Pointer(entry)) -} - -// GetEntries returns a list of all TOCEntries. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) GetEntries() []*TOCEntry { - gList := C.gst_toc_get_entries(t.Instance()) - - defer C.g_list_free(gList) - out := make([]*TOCEntry, 0) - - for { - entry := C.glistNext(gList) - if entry == nil { - break - } - out = append(out, FromGstTocEntryUnsafeNone(unsafe.Pointer(entry))) - } - return out -} - -// GetScope returns the scope of this TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) GetScope() TOCScope { - return TOCScope(C.gst_toc_get_scope(t.Instance())) -} - -// GetTags returns the TagList for this TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) GetTags() *TagList { - tagList := C.gst_toc_get_tags(t.Instance()) - if tagList == nil { - return nil - } - return FromGstTagListUnsafeNone(unsafe.Pointer(tagList)) -} - -// MergeTags merges the given tags into this TOC's TagList. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) MergeTags(tagList *TagList, mergeMode TagMergeMode) { - C.gst_toc_merge_tags(t.Instance(), tagList.Instance(), C.GstTagMergeMode(mergeMode)) -} - -// SetTags sets tags for the entire TOC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOC) SetTags(tagList *TagList) { - C.gst_toc_set_tags(t.Instance(), tagList.Ref().Instance()) -} - -// TOCEntry is a go representation of a GstTocEntry, -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type TOCEntry struct { - ptr *C.GstTocEntry -} - -// FromGstTocEntryUnsafeNone wraps the given TOCEntry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstTocEntryUnsafeNone(entry unsafe.Pointer) *TOCEntry { - t := wrapTOCEntry((*C.GstTocEntry)(entry)) - t.Ref() - runtime.SetFinalizer(t, (*TOCEntry).Unref) - return t -} - -// FromGstTocEntryUnsafeFull wraps the given TOCEntry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FromGstTocEntryUnsafeFull(entry unsafe.Pointer) *TOCEntry { - t := wrapTOCEntry((*C.GstTocEntry)(entry)) - runtime.SetFinalizer(t, (*TOCEntry).Unref) - return t -} - -// NewTOCEntry creates a new TOCEntry with the given UID and type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewTOCEntry(entryType TOCEntryType, uid string) *TOCEntry { - cuid := C.CString(uid) - defer C.free(unsafe.Pointer(cuid)) - entry := C.gst_toc_entry_new( - C.GstTocEntryType(entryType), - (*C.gchar)(unsafe.Pointer(cuid)), - ) - if entry == nil { - return nil - } - return FromGstTocEntryUnsafeFull(unsafe.Pointer(entry)) -} - -// Instance returns the underlying GstTocEntry instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) Instance() *C.GstTocEntry { return t.ptr } - -// Ref increases the ref count on the TOCEntry by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) Ref() *TOCEntry { - C.tocEntryRef(t.Instance()) - return t -} - -// Unref decreases the ref count on the TOCEntry by one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) Unref() { - C.tocEntryUnref(t.Instance()) -} - -// MakeWritable returns a writable copy of the TOCEntry if it is not already so. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) MakeWritable() *TOCEntry { - return FromGstTocEntryUnsafeFull(unsafe.Pointer(C.makeTocEntryWritable(t.Instance()))) -} - -// Copy creates a copy of the TOCEntry -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) Copy() *TOCEntry { - return FromGstTocEntryUnsafeFull(unsafe.Pointer(C.copyTocEntry(t.Instance()))) -} - -// AppendSubEntry appends the given entry as a subentry to this one. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) AppendSubEntry(subEntry *TOCEntry) { - C.gst_toc_entry_append_sub_entry(t.Instance(), subEntry.Ref().Instance()) -} - -// GetEntryType returns the type of this TOCEntry -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetEntryType() TOCEntryType { - return TOCEntryType(C.gst_toc_entry_get_entry_type(t.Instance())) -} - -// GetEntryTypeString returns a string representation of the entry type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetEntryTypeString() string { - return C.GoString(C.gst_toc_entry_type_get_nick(C.GstTocEntryType(t.GetEntryType()))) -} - -// GetLoop gets the loop type and repeat count for the TOC entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetLoop() (bool, TOCLoopType, int) { - var loopType C.GstTocLoopType - var repeatCount C.gint - ok := C.gst_toc_entry_get_loop(t.Instance(), &loopType, &repeatCount) - return gobool(ok), TOCLoopType(loopType), int(repeatCount) -} - -// GetParent gets the parent of this TOCEntry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetParent() *TOCEntry { - parent := C.gst_toc_entry_get_parent(t.Instance()) - if parent == nil { - return nil - } - return FromGstTocEntryUnsafeNone(unsafe.Pointer(parent)) -} - -// GetStartStopTimes gets the start and stop times for the TOCEntry if available. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetStartStopTimes() (ok bool, startTime, stopTime int64) { - var start, stop C.gint64 - gok := C.gst_toc_entry_get_start_stop_times(t.Instance(), &start, &stop) - return gobool(gok), int64(start), int64(stop) -} - -// GetSubEntries gets all the subentries for this TOCEntry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetSubEntries() []*TOCEntry { - gList := C.gst_toc_entry_get_sub_entries(t.Instance()) - - defer C.g_list_free(gList) - out := make([]*TOCEntry, 0) - - for { - entry := C.glistNext(gList) - if entry == nil { - break - } - out = append(out, FromGstTocEntryUnsafeNone(unsafe.Pointer(entry))) - } - return out -} - -// GetTags gets the tags for this entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetTags() *TagList { - tagList := C.gst_toc_entry_get_tags(t.Instance()) - if tagList == nil { - return nil - } - return FromGstTagListUnsafeNone(unsafe.Pointer(tagList)) -} - -// GetTOC returns the parent TOC of this entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetTOC() *TOC { - toc := C.gst_toc_entry_get_toc(t.Instance()) - if toc == nil { - return nil - } - return FromGstTOCUnsafeNone(unsafe.Pointer(toc)) -} - -// GetUID returns the uid of this entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) GetUID() string { - return C.GoString(C.gst_toc_entry_get_uid(t.Instance())) -} - -// IsAlternative returns true if this is an alternative entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) IsAlternative() bool { - return gobool(C.gst_toc_entry_is_alternative(t.Instance())) -} - -// IsSequence returns true if this is a sequence entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) IsSequence() bool { - return gobool(C.gst_toc_entry_is_sequence(t.Instance())) -} - -// MergeTags merges the given tags with the given mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) MergeTags(tagList *TagList, mergeMode TagMergeMode) { - if tagList == nil { - C.gst_toc_entry_merge_tags(t.Instance(), nil, C.GstTagMergeMode(mergeMode)) - return - } - C.gst_toc_entry_merge_tags(t.Instance(), tagList.Instance(), C.GstTagMergeMode(mergeMode)) -} - -// SetLoop sets the loop type and repeat counts for the entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) SetLoop(loopType TOCLoopType, repeatCount int) { - C.gst_toc_entry_set_loop(t.Instance(), C.GstTocLoopType(loopType), C.gint(repeatCount)) -} - -// SetStartStopTimes sets the start and stop times for the TOC entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) SetStartStopTimes(startTime, stopTime int64) { - C.gst_toc_entry_set_start_stop_times(t.Instance(), C.gint64(startTime), C.gint64(stopTime)) -} - -// SetTags sets the tags on the TOC entry. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (t *TOCEntry) SetTags(tagList *TagList) { - C.gst_toc_entry_set_tags(t.Instance(), tagList.Ref().Instance()) -} diff --git a/gst/gst_toc_setter.go b/gst/gst_toc_setter.go deleted file mode 100644 index b3b1bf0..0000000 --- a/gst/gst_toc_setter.go +++ /dev/null @@ -1,55 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// InterfaceTOCSetter represents the GstTocSetter interface GType. Use this when querying bins -// for elements that implement a TOCSetter. -var InterfaceTOCSetter = glib.Type(C.GST_TYPE_TOC_SETTER) - -// TOCSetter is an interface that elements can implement to provide TOC writing capabilities. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type TOCSetter interface { - // Return current TOC the setter uses. The TOC should not be modified without making it writable first. - GetTOC() *TOC - // Set the given TOC on the setter. Previously set TOC will be unreffed before setting a new one. - SetTOC(*TOC) - // Reset the internal TOC. Elements should call this from within the state-change handler. - Reset() -} - -// gstTocSetter implements a TOCSetter that is backed by an Element from the C runtime. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type gstTOCSetter struct { - ptr *C.GstElement -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstTOCSetter) Instance() *C.GstTocSetter { - return C.toTocSetter(g.ptr) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstTOCSetter) GetTOC() *TOC { - toc := C.gst_toc_setter_get_toc(g.Instance()) - if toc == nil { - return nil - } - return FromGstTOCUnsafeFull(unsafe.Pointer(toc)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstTOCSetter) SetTOC(toc *TOC) { C.gst_toc_setter_set_toc(g.Instance(), toc.Instance()) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstTOCSetter) Reset() { C.gst_toc_setter_reset(g.Instance()) } diff --git a/gst/gst_tracer.go b/gst/gst_tracer.go deleted file mode 100644 index 09c1535..0000000 --- a/gst/gst_tracer.go +++ /dev/null @@ -1,33 +0,0 @@ -package gst - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Tracer struct { - *Object -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TracingGetActiveTracers() []*Tracer { - cglist := C.gst_tracing_get_active_tracers() - - wrapped := glib.WrapList(unsafe.Pointer(cglist)) - defer wrapped.Free() - - out := make([]*Tracer, 0) - wrapped.Foreach(func(item interface{}) { - ctracer := item.(unsafe.Pointer) // item is a *C.GstTracer - out = append(out, &Tracer{ - Object: wrapObject(glib.Take(ctracer)), - }) - }) - return out -} diff --git a/gst/gst_uri_handler.go b/gst/gst_uri_handler.go deleted file mode 100644 index f232676..0000000 --- a/gst/gst_uri_handler.go +++ /dev/null @@ -1,125 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -extern GstURIType goURIHdlrGetURIType (GType type); -extern const gchar * const * goURIHdlrGetProtocols (GType type); -extern gchar * goURIHdlrGetURI (GstURIHandler * handler); -extern gboolean goURIHdlrSetURI (GstURIHandler * handler, - const gchar * uri, - GError ** error); - -void uriHandlerInit (gpointer iface, gpointer iface_data) -{ - ((GstURIHandlerInterface*)iface)->get_type = goURIHdlrGetURIType; - ((GstURIHandlerInterface*)iface)->get_protocols = goURIHdlrGetProtocols; - ((GstURIHandlerInterface*)iface)->get_uri = goURIHdlrGetURI; - ((GstURIHandlerInterface*)iface)->set_uri = goURIHdlrSetURI; -} -*/ -import "C" -import ( - "errors" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -var globalURIHdlr URIHandler - -// InterfaceURIHandler represents the GstURIHandler interface GType. Use this when querying bins -// for elements that implement a URIHandler, or when signaling that a GoObjectSubclass provides this -// interface. Note that the way this interface is implemented, it can only be used once per plugin. -var InterfaceURIHandler glib.Interface = &interfaceURIHandler{} - -type interfaceURIHandler struct{ glib.Interface } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *interfaceURIHandler) Type() glib.Type { return glib.Type(C.GST_TYPE_URI_HANDLER) } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *interfaceURIHandler) Init(instance *glib.TypeInstance) { - globalURIHdlr = instance.GoType.(URIHandler) - C.uriHandlerInit((C.gpointer)(instance.GTypeInstance), nil) -} - -// URIHandler represents an interface that elements can implement to provide URI handling -// capabilities. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type URIHandler interface { - // GetURI gets the currently handled URI. - GetURI() string - // GetURIType returns the type of URI this element can handle. - GetURIType() URIType - // GetProtocols returns the protocols this element can handle. - GetProtocols() []string - // SetURI tries to set the URI of the given handler. - SetURI(string) (bool, error) -} - -// gstURIHandler implements a URIHandler that is backed by an Element from the C API. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type gstURIHandler struct { - ptr *C.GstElement -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstURIHandler) Instance() *C.GstURIHandler { - return C.toGstURIHandler(unsafe.Pointer(g.ptr)) -} - -// GetURI gets the currently handled URI. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstURIHandler) GetURI() string { - ret := C.gst_uri_handler_get_uri(g.Instance()) - if ret == nil { - return "" - } - defer C.g_free((C.gpointer)(unsafe.Pointer(ret))) - return C.GoString(ret) -} - -// GetURIType returns the type of URI this element can handle. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstURIHandler) GetURIType() URIType { - ty := C.gst_uri_handler_get_uri_type((*C.GstURIHandler)(g.Instance())) - return URIType(ty) -} - -// GetProtocols returns the protocols this element can handle. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstURIHandler) GetProtocols() []string { - protocols := C.gst_uri_handler_get_protocols((*C.GstURIHandler)(g.Instance())) - if protocols == nil { - return nil - } - size := C.sizeOfGCharArray(protocols) - return goStrings(size, protocols) -} - -// SetURI tries to set the URI of the given handler. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *gstURIHandler) SetURI(uri string) (bool, error) { - curi := C.CString(uri) - defer C.free(unsafe.Pointer(curi)) - var gerr *C.GError - ret := C.gst_uri_handler_set_uri( - g.Instance(), - (*C.gchar)(unsafe.Pointer(curi)), - &gerr, - ) - if gerr != nil { - defer C.g_error_free(gerr) - return gobool(ret), errors.New(C.GoString(gerr.message)) - } - return gobool(ret), nil -} diff --git a/gst/gst_uri_handler_exports.go b/gst/gst_uri_handler_exports.go deleted file mode 100644 index 33cd60a..0000000 --- a/gst/gst_uri_handler_exports.go +++ /dev/null @@ -1,67 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "math" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -//export goURIHdlrGetURIType -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goURIHdlrGetURIType(gtype C.GType) C.GstURIType { - return C.GstURIType(globalURIHdlr.GetURIType()) -} - -//export goURIHdlrGetProtocols -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goURIHdlrGetProtocols(gtype C.GType) **C.gchar { - protocols := globalURIHdlr.GetProtocols() - size := C.size_t(unsafe.Sizeof((*C.gchar)(nil))) - length := C.size_t(len(protocols)) - arr := (**C.gchar)(C.malloc(length * size)) - view := (*[(math.MaxInt32 - 1) / unsafe.Sizeof((*C.gchar)(nil))]*C.gchar)(unsafe.Pointer(arr))[0:len(protocols):len(protocols)] - for i, proto := range protocols { - view[i] = (*C.gchar)(C.CString(proto)) - } - return arr -} - -//export goURIHdlrGetURI -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goURIHdlrGetURI(hdlr *C.GstURIHandler) *C.gchar { - var uri string - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(hdlr)) - uri = subclass.(URIHandler).GetURI() - - if uri == "" { - return nil - } - return (*C.gchar)(unsafe.Pointer(C.CString(uri))) -} - -//export goURIHdlrSetURI -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goURIHdlrSetURI(hdlr *C.GstURIHandler, uri *C.gchar, gerr **C.GError) C.gboolean { - var ok bool - var err error - subclass := glib.FromObjectUnsafePrivate(unsafe.Pointer(hdlr)) - - ok, err = subclass.(URIHandler).SetURI(C.GoString(uri)) - - if err != nil { - errMsg := C.CString(err.Error()) - defer C.free(unsafe.Pointer(errMsg)) - C.g_set_error_literal(gerr, DomainLibrary.toQuark(), C.gint(LibraryErrorSettings), errMsg) - } - return gboolean(ok) -} diff --git a/gst/gst_values.go b/gst/gst_values.go deleted file mode 100644 index a569877..0000000 --- a/gst/gst_values.go +++ /dev/null @@ -1,847 +0,0 @@ -package gst - -/* -#include "gst.go.h" - -gint -cgoGstValueCompare (const GValue * value1, const GValue * value2) -{ - return 0; -} - -gboolean -cgoGstValueDeserialize (GValue * dest, const gchar * s) -{ - return TRUE; -} - -gchar * -cgoGstValueSerialize (const GValue * value1) -{ - return NULL; -} - -*/ -import "C" -import ( - "fmt" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// ValuesCanCompare determines if val1 and val2 can be compared. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValuesCanCompare(val1, val2 *glib.Value) bool { - return gobool(C.gst_value_can_compare( - (*C.GValue)(unsafe.Pointer(val1.GValue)), - (*C.GValue)(unsafe.Pointer(val2.GValue)), - )) -} - -// ValuesCanIntersect determines if intersecting two values will return -// a valid result. Two values will produce a valid intersection if they -// are the same type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValuesCanIntersect(val1, val2 *glib.Value) bool { - return gobool(C.gst_value_can_intersect( - (*C.GValue)(unsafe.Pointer(val1.GValue)), - (*C.GValue)(unsafe.Pointer(val2.GValue)), - )) -} - -// ValuesCanSubtract checks if it's possible to subtract subtrahend from minuend. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValuesCanSubtract(minuend, subtrahend *glib.Value) bool { - return gobool(C.gst_value_can_intersect( - (*C.GValue)(unsafe.Pointer(minuend.GValue)), - (*C.GValue)(unsafe.Pointer(subtrahend.GValue)), - )) -} - -// ValuesCanUnion determines if val1 and val2 can be non-trivially unioned. Any two -// values can be trivially unioned by adding both of them to a GstValueList. However, -// certain types have the possibility to be unioned in a simpler way. For example, an -// integer range and an integer can be unioned if the integer is a subset of the -// integer range. If there is the possibility that two values can be unioned, this -// function returns TRUE. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValuesCanUnion(val1, val2 *glib.Value) bool { - return gobool(C.gst_value_can_union( - (*C.GValue)(unsafe.Pointer(val1.GValue)), - (*C.GValue)(unsafe.Pointer(val2.GValue)), - )) -} - -// ValueCmp represents the result of comparing two values. -type ValueCmp int - -// ValueCmp castings -const ( - ValueEqual ValueCmp = C.GST_VALUE_EQUAL // Indicates that the first value provided to a comparison function (ValueCompare) is equal to the second one. - ValueGreaterThan ValueCmp = C.GST_VALUE_GREATER_THAN // Indicates that the first value provided to a comparison function (ValueCompare) is greater than the second one. - ValueLessThan ValueCmp = C.GST_VALUE_LESS_THAN // Indicates that the first value provided to a comparison function (ValueCompare) is lesser than the second one. - ValueUnordered ValueCmp = C.GST_VALUE_UNORDERED // Indicates that the comparison function (ValueCompare) can not determine a order for the two provided values. - -) - -// ValueCompare compares value1 and value2. If value1 and value2 cannot be compared, the function -// returns ValueUnordered. Otherwise, if value1 is greater than value2, ValueGreaterThan is returned. -// If value1 is less than value2, ValueLessThan is returned. If the values are equal, ValueEqual is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueCompare(value1, value2 *glib.Value) ValueCmp { - return ValueCmp(C.gst_value_compare( - (*C.GValue)(unsafe.Pointer(value1.GValue)), - (*C.GValue)(unsafe.Pointer(value2.GValue)), - )) -} - -// ValueDeserialize tries to deserialize a string into a glib.Value of the type specified. If the operation succeeds, -// TRUE is returned, FALSE otherwise. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueDeserialize(data string, t glib.Type) (value *glib.Value, ok bool) { - value, err := glib.ValueInit(t) - if err != nil { - return nil, false - } - cdata := C.CString(data) - defer C.free(unsafe.Pointer(cdata)) - return value, gobool(C.gst_value_deserialize( - (*C.GValue)(unsafe.Pointer(value.GValue)), - (*C.gchar)(cdata), - )) -} - -// ValueFixate fixates src into a new value dest. For ranges, the first element is taken. For lists and arrays, the first item -// is fixated and returned. If src is already fixed, this function returns FALSE. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueFixate(src *glib.Value, dest *glib.Value) (ok bool) { - return gobool(C.gst_value_fixate( - (*C.GValue)(unsafe.Pointer(dest.GValue)), - (*C.GValue)(unsafe.Pointer(src.GValue)), - )) -} - -// ValueFractionMultiply multiplies the two GValue items containing a TypeFraction and returns the product. -// This function can return false if any error occurs, such as in memory allocation or an integer overflow. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueFractionMultiply(factor1, factor2 *glib.Value) (product *glib.Value, ok bool) { - out, err := glib.ValueInit(TypeFraction) - if err != nil { - return nil, false - } - return out, gobool(C.gst_value_fraction_multiply( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(factor1.GValue)), - (*C.GValue)(unsafe.Pointer(factor2.GValue)), - )) -} - -// ValueFractionSubtract subtracts the subtrahend from the minuend containing a TypeFraction and returns the result. -// This function can return false if any error occurs, such as in memory allocation or an integer overflow. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueFractionSubtract(minuend, subtrahend *glib.Value) (result *glib.Value, ok bool) { - out, err := glib.ValueInit(TypeFraction) - if err != nil { - return nil, false - } - return out, gobool(C.gst_value_fraction_subtract( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(minuend.GValue)), - (*C.GValue)(unsafe.Pointer(subtrahend.GValue)), - )) -} - -// ValueGetCaps gets the caps from the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetCaps(value *glib.Value) *Caps { - caps := C.gst_value_get_caps((*C.GValue)(unsafe.Pointer(value.GValue))) - if caps == nil { - return nil - } - return FromGstCapsUnsafeNone(unsafe.Pointer(caps)) -} - -// ValueGetCapsFeatures gets the caps features from the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetCapsFeatures(value *glib.Value) *CapsFeatures { - feats := C.gst_value_get_caps_features((*C.GValue)(unsafe.Pointer(value.GValue))) - if feats == nil { - return nil - } - return &CapsFeatures{native: feats} -} - -// ValueIntersect calculates the intersection of two values. If the values have a non-empty intersection, -// the value representing the intersection isreturned. Otherwise this function returns false. This function -// can also return false for any allocation errors. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueIntersect(value1, value2 *glib.Value) (*glib.Value, bool) { - out, err := glib.ValueAlloc() - if err != nil { - return nil, false - } - return out, gobool(C.gst_value_intersect( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(value1.GValue)), - (*C.GValue)(unsafe.Pointer(value2.GValue)), - )) -} - -// ValueIsFixed tests if the given GValue, if available in a Structure (or any other container) contains a "fixed" -// (which means: one value) or an "unfixed" (which means: multiple possible values, such as data lists or data ranges) value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueIsFixed(value *glib.Value) bool { - return gobool(C.gst_value_is_fixed((*C.GValue)(unsafe.Pointer(value.GValue)))) -} - -// ValueIsSubset checks that value1 is a subset of value2. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueIsSubset(value1, value2 *glib.Value) bool { - return gobool(C.gst_value_is_subset( - (*C.GValue)(unsafe.Pointer(value1.GValue)), - (*C.GValue)(unsafe.Pointer(value2.GValue)), - )) -} - -// ValueSerialize attempts to serialize the given value into a string. An empty string is returned if -// no serializer exists. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueSerialize(value *glib.Value) string { - str := C.gst_value_serialize(((*C.GValue)(unsafe.Pointer(value.GValue)))) - if str == nil { - return "" - } - defer C.g_free((C.gpointer)(unsafe.Pointer(str))) - return C.GoString((*C.char)(unsafe.Pointer(str))) -} - -// ValueSubtract subtracts subtrahend from minuend and returns the resule. Note that this means subtraction -// as in sets, not as in mathematics. This function can return false if the subtraction is empty or any error -// occurs. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueSubtract(minuend, subtrahend *glib.Value) (*glib.Value, bool) { - out, err := glib.ValueAlloc() - if err != nil { - return nil, false - } - return out, gobool(C.gst_value_subtract( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(minuend.GValue)), - (*C.GValue)(unsafe.Pointer(subtrahend.GValue)), - )) -} - -// ValueUnion creates a GValue corresponding to the union of value1 and value2. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueUnion(value1, value2 *glib.Value) (*glib.Value, bool) { - out, err := glib.ValueAlloc() - if err != nil { - return nil, false - } - return out, gobool(C.gst_value_union( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(value1.GValue)), - (*C.GValue)(unsafe.Pointer(value2.GValue)), - )) -} - -// TypeBitmask is the GType for a bitmask value. -var TypeBitmask = glib.Type(C.gst_bitmask_get_type()) - -// Bitmask represents a bitmask value. -type Bitmask uint64 - -// ValueGetBitmask gets the bitmask from the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetBitmask(value *glib.Value) Bitmask { - return Bitmask(C.gst_value_get_bitmask((*C.GValue)(unsafe.Pointer(value.GValue)))) -} - -// ToGValue implements a glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (b Bitmask) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeBitmask) - if err != nil { - return nil, err - } - C.gst_value_set_bitmask( - (*C.GValue)(unsafe.Pointer(val.GValue)), - C.guint64(b), - ) - return val, nil -} - -// TypeFraction is the GType for a GstFraction -var TypeFraction = glib.Type(C.gst_fraction_get_type()) - -// FractionValue is a helper structure for building fractions for functions that require them. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type FractionValue struct { - num, denom int -} - -var _ glib.ValueTransformer = &FractionValue{} - -// Fraction returns a new GFraction with the given numerator and denominator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Fraction(numerator, denominator int) *FractionValue { - return &FractionValue{num: numerator, denom: denominator} -} - -// ValueGetFraction returns the fraction inside the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetFraction(value *glib.Value) *FractionValue { - return &FractionValue{ - num: int(C.gst_value_get_fraction_numerator((*C.GValue)(unsafe.Pointer(value.GValue)))), - denom: int(C.gst_value_get_fraction_denominator((*C.GValue)(unsafe.Pointer(value.GValue)))), - } -} - -// Num returns the fraction's numerator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionValue) Num() int { return g.num } - -// Denom returns the fraction's denominator. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionValue) Denom() int { return g.denom } - -// String returns a string representation of the fraction. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionValue) String() string { return fmt.Sprintf("%d/%d", g.num, g.denom) } - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionValue) ToGValue() (*glib.Value, error) { - v, err := glib.ValueInit(TypeFraction) - if err != nil { - return nil, err - } - C.gst_value_set_fraction( - (*C.GValue)(unsafe.Pointer(v.GValue)), - C.gint(g.Num()), C.gint(g.Denom()), - ) - return v, nil -} - -// TypeFractionRange is the GType for a GstFractionRange -var TypeFractionRange = glib.Type(C.gst_fraction_range_get_type()) - -// FractionRangeValue represents a GstFractionRange. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type FractionRangeValue struct { - start, end *FractionValue -} - -var _ glib.ValueTransformer = &FractionRangeValue{} - -// FractionRange returns a new GstFractionRange. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func FractionRange(start, end *FractionValue) *FractionRangeValue { - return &FractionRangeValue{start: start, end: end} -} - -// ValueGetFractionRange returns the range inside the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetFractionRange(value *glib.Value) *FractionRangeValue { - start := C.gst_value_get_fraction_range_min((*C.GValue)(unsafe.Pointer(value.GValue))) - end := C.gst_value_get_fraction_range_max((*C.GValue)(unsafe.Pointer(value.GValue))) - return &FractionRangeValue{ - start: ValueGetFraction(glib.ValueFromNative(unsafe.Pointer(start))), - end: ValueGetFraction(glib.ValueFromNative(unsafe.Pointer(end))), - } -} - -// Start returns the start of the range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionRangeValue) Start() *FractionValue { return g.start } - -// End returns the end of the range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionRangeValue) End() *FractionValue { return g.end } - -// String returns a string representation of the range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionRangeValue) String() string { - return fmt.Sprintf("%s - %s", g.Start().String(), g.End().String()) -} - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (g *FractionRangeValue) ToGValue() (*glib.Value, error) { - v, err := glib.ValueInit(TypeFractionRange) - if err != nil { - return nil, err - } - C.gst_value_set_fraction_range_full( - (*C.GValue)(unsafe.Pointer(v.GValue)), - C.gint(g.Start().Num()), C.gint(g.Start().Denom()), - C.gint(g.End().Num()), C.gint(g.End().Denom()), - ) - return v, nil -} - -// TypeFloat64Range is the GType for a range of 64-bit floating point numbers. -// This is the equivalent of a GstDoubleRange. -var TypeFloat64Range = glib.Type(C.gst_double_range_get_type()) - -// Float64RangeValue is the go wrapper around a GstDoubleRange value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Float64RangeValue struct { - start, end float64 -} - -var _ glib.ValueTransformer = &Float64RangeValue{} - -// ValueGetFloat64Range returns the range from inside this value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetFloat64Range(value *glib.Value) *Float64RangeValue { - return &Float64RangeValue{ - start: float64(C.gst_value_get_double_range_min((*C.GValue)(unsafe.Pointer(value.GValue)))), - end: float64(C.gst_value_get_double_range_max((*C.GValue)(unsafe.Pointer(value.GValue)))), - } -} - -// Float64Range returns a new Float64RangeValue. This is the equivalent of a double range value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Float64Range(start, end float64) *Float64RangeValue { - return &Float64RangeValue{start: start, end: end} -} - -// Start returns the start for this range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *Float64RangeValue) Start() float64 { return f.start } - -// End returns the end for this range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *Float64RangeValue) End() float64 { return f.end } - -// String returns a string representation of the range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *Float64RangeValue) String() string { return fmt.Sprintf("%v - %v", f.Start(), f.End()) } - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *Float64RangeValue) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeFloat64Range) - if err != nil { - return nil, err - } - C.gst_value_set_double_range( - (*C.GValue)(unsafe.Pointer(val.GValue)), - C.gdouble(f.Start()), - C.gdouble(f.End()), - ) - return val, nil -} - -// TypeFlagset is the GType for a Flagset -var TypeFlagset = glib.Type(C.gst_flagset_get_type()) - -// FlagsetValue is the go wrapper around a GstFlagSet value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type FlagsetValue struct { - flags, mask uint -} - -var _ glib.ValueTransformer = &FlagsetValue{} - -// ValueGetFlagset returns the flagset inside his value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetFlagset(value *glib.Value) *FlagsetValue { - return &FlagsetValue{ - flags: uint(C.gst_value_get_flagset_flags((*C.GValue)(unsafe.Pointer(value.GValue)))), - mask: uint(C.gst_value_get_flagset_mask((*C.GValue)(unsafe.Pointer(value.GValue)))), - } -} - -// Flagset returns a new FlagsetValue. The flags value indicates the values of flags, -// the mask represents which bits in the flag value have been set, and which are "don't care". -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Flagset(flags, mask uint) *FlagsetValue { - return &FlagsetValue{flags: flags, mask: mask} -} - -// Flags returns the flags for this flagset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlagsetValue) Flags() uint { return f.flags } - -// Mask returns the mask for this flagset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlagsetValue) Mask() uint { return f.mask } - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FlagsetValue) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeFlagset) - if err != nil { - return nil, err - } - C.gst_value_set_flagset( - (*C.GValue)(unsafe.Pointer(val.GValue)), - C.guint(f.Flags()), - C.guint(f.Mask()), - ) - return val, nil -} - -// TypeInt64Range is the GType for a range of 64-bit integers. -var TypeInt64Range = glib.Type(C.gst_int64_range_get_type()) - -// Int64RangeValue represents a GstInt64Range. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Int64RangeValue struct { - start, end, step int64 -} - -var _ glib.ValueTransformer = &Int64RangeValue{} - -// Int64Range returns a new Int64RangeValue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func Int64Range(start, end, step int64) *Int64RangeValue { - return &Int64RangeValue{ - start: start, end: end, step: step, - } -} - -// ValueGetInt64Range gets the int64 range from the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetInt64Range(value *glib.Value) *Int64RangeValue { - return &Int64RangeValue{ - start: int64(C.gst_value_get_int64_range_min((*C.GValue)(unsafe.Pointer(value.GValue)))), - end: int64(C.gst_value_get_int64_range_max((*C.GValue)(unsafe.Pointer(value.GValue)))), - step: int64(C.gst_value_get_int64_range_step((*C.GValue)(unsafe.Pointer(value.GValue)))), - } -} - -// Start returns the start of the range -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Int64RangeValue) Start() int64 { return i.start } - -// End returns the end of the range -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Int64RangeValue) End() int64 { return i.end } - -// Step returns the step of the range -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Int64RangeValue) Step() int64 { return i.step } - -// String implements a Stringer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Int64RangeValue) String() string { - return fmt.Sprintf("%d - %d (%d)", i.Start(), i.End(), i.Step()) -} - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Int64RangeValue) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeInt64Range) - if err != nil { - return nil, err - } - C.gst_value_set_int64_range_step( - (*C.GValue)(unsafe.Pointer(val.GValue)), - C.gint64(i.Start()), - C.gint64(i.End()), - C.gint64(i.Step()), - ) - return val, nil -} - -// TypeIntRange is the GType for a range of integers. -var TypeIntRange = glib.Type(C.gst_int_range_get_type()) - -// IntRangeValue represents a GstIntRange. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type IntRangeValue struct { - start, end, step int -} - -var _ glib.ValueTransformer = &Int64RangeValue{} - -// IntRange returns a new IntRangeValue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func IntRange(start, end, step int) *IntRangeValue { - return &IntRangeValue{ - start: start, end: end, step: step, - } -} - -// ValueGetIntRange gets the int range from the given value. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueGetIntRange(value *glib.Value) *IntRangeValue { - return &IntRangeValue{ - start: int(C.gst_value_get_int_range_min((*C.GValue)(unsafe.Pointer(value.GValue)))), - end: int(C.gst_value_get_int_range_max((*C.GValue)(unsafe.Pointer(value.GValue)))), - step: int(C.gst_value_get_int_range_step((*C.GValue)(unsafe.Pointer(value.GValue)))), - } -} - -// Start returns the start of the range -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *IntRangeValue) Start() int { return i.start } - -// End returns the end of the range -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *IntRangeValue) End() int { return i.end } - -// Step returns the step of the range -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *IntRangeValue) Step() int { return i.step } - -// String implements a Stringer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *IntRangeValue) String() string { - return fmt.Sprintf("%d - %d (%d)", i.Start(), i.End(), i.Step()) -} - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *IntRangeValue) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeIntRange) - if err != nil { - return nil, err - } - C.gst_value_set_int_range_step( - (*C.GValue)(unsafe.Pointer(val.GValue)), - C.gint(i.Start()), - C.gint(i.End()), - C.gint(i.Step()), - ) - return val, nil -} - -// TypeValueArray is the GType for a GstValueArray -var TypeValueArray = glib.Type(C.gst_value_array_get_type()) - -// ValueArrayValue represets a GstValueArray. -type ValueArrayValue glib.Value - -// ValueArray converts the given slice of Go types into a ValueArrayValue. -// This function can return nil on any conversion or memory allocation errors. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueArray(ss []interface{}) *ValueArrayValue { - v, err := glib.ValueAlloc() - if err != nil { - return nil - } - C.gst_value_array_init( - (*C.GValue)(unsafe.Pointer(v.GValue)), - C.guint(len(ss)), - ) - for _, s := range ss { - val, err := glib.GValue(s) - if err != nil { - return nil - } - C.gst_value_array_append_value( - (*C.GValue)(unsafe.Pointer(v.GValue)), - (*C.GValue)(unsafe.Pointer(val.GValue)), - ) - } - out := ValueArrayValue(*v) - return &out -} - -// Size returns the size of the array. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueArrayValue) Size() uint { - return uint(C.gst_value_array_get_size((*C.GValue)(unsafe.Pointer(v.GValue)))) -} - -// ValueAt returns the value at the index in the array, or nil on any error. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueArrayValue) ValueAt(idx uint) interface{} { - gval := C.gst_value_array_get_value( - (*C.GValue)(unsafe.Pointer(v.GValue)), - C.guint(idx), - ) - if gval == nil { - return nil - } - out, err := glib.ValueFromNative(unsafe.Pointer(gval)).GoValue() - if err != nil { - return nil - } - return out -} - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueArrayValue) ToGValue() (*glib.Value, error) { - out := glib.Value(*v) - return &out, nil -} - -// TypeValueList is the GType for a GstValueList -var TypeValueList = glib.Type(C.gst_value_list_get_type()) - -// ValueListValue represets a GstValueList. -type ValueListValue glib.Value - -// ValueList converts the given slice of Go types into a ValueListValue. -// This function can return nil on any conversion or memory allocation errors. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ValueList(ss []interface{}) *ValueListValue { - v, err := glib.ValueAlloc() - if err != nil { - return nil - } - C.gst_value_list_init( - (*C.GValue)(unsafe.Pointer(v.GValue)), - C.guint(len(ss)), - ) - for _, s := range ss { - val, err := glib.GValue(s) - if err != nil { - return nil - } - C.gst_value_list_append_value( - (*C.GValue)(unsafe.Pointer(v.GValue)), - (*C.GValue)(unsafe.Pointer(val.GValue)), - ) - } - return (*ValueListValue)(v) -} - -// Size returns the size of the list. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueListValue) Size() uint { - return uint(C.gst_value_list_get_size((*C.GValue)(unsafe.Pointer(v.GValue)))) -} - -// ValueAt returns the value at the index in the lise, or nil on any error. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueListValue) ValueAt(idx uint) interface{} { - gval := C.gst_value_list_get_value( - (*C.GValue)(unsafe.Pointer(v.GValue)), - C.guint(idx), - ) - if gval == nil { - return nil - } - out, err := glib.ValueFromNative(unsafe.Pointer(gval)).GoValue() - if err != nil { - return nil - } - return out -} - -// Concat concatenates copies of this list and value into a new list. Values that are not of type -// TypeValueList are treated as if they were lists of length 1. dest will be initialized to the type -// TypeValueList. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueListValue) Concat(value *ValueListValue) *ValueListValue { - out, err := glib.ValueAlloc() - if err != nil { - return nil - } - C.gst_value_list_concat( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(v.GValue)), - (*C.GValue)(unsafe.Pointer(value.GValue)), - ) - - return (*ValueListValue)(out) -} - -// Merge merges copies of value into this list. Values that are not of type TypeValueList are treated as -// if they were lists of length 1. -// -// The result will be put into a new value and will either be a list that will not contain any duplicates, -// or a non-list type (if the lists were equal). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueListValue) Merge(value *ValueListValue) *ValueListValue { - out, err := glib.ValueAlloc() - if err != nil { - return nil - } - C.gst_value_list_merge( - (*C.GValue)(unsafe.Pointer(out.GValue)), - (*C.GValue)(unsafe.Pointer(v.GValue)), - (*C.GValue)(unsafe.Pointer(value.GValue)), - ) - - return (*ValueListValue)(out) -} - -// ToGValue implements a glib.ValueTransformer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (v *ValueListValue) ToGValue() (*glib.Value, error) { - // val := (*glib.Value)(v) - // return val.Copy() - - panic("not implemented yet") -} diff --git a/gst/gst_wrappers.go b/gst/gst_wrappers.go deleted file mode 100644 index bacf8e1..0000000 --- a/gst/gst_wrappers.go +++ /dev/null @@ -1,676 +0,0 @@ -package gst - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { registerMarshalers() } - -// Object wrappers - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapAllocator(obj *glib.Object) *Allocator { return &Allocator{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapBin(obj *glib.Object) *Bin { return &Bin{wrapElement(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapBuffer(buf *C.GstBuffer) *Buffer { return &Buffer{ptr: buf} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapBufferList(bufList *C.GstBufferList) *BufferList { return &BufferList{ptr: bufList} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapBufferPool(obj *glib.Object) *BufferPool { return &BufferPool{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapBus(obj *glib.Object) *Bus { return &Bus{Object: wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCaps(caps *C.GstCaps) *Caps { return &Caps{native: caps} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapClock(obj *glib.Object) *Clock { return &Clock{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapContext(ctx *C.GstContext) *Context { return &Context{ptr: ctx} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapElement(obj *glib.Object) *Element { return &Element{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapEvent(ev *C.GstEvent) *Event { return &Event{ptr: ev} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapGhostPad(obj *glib.Object) *GhostPad { return &GhostPad{wrapProxyPad(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapMapInfo(mapInfo *C.GstMapInfo) *MapInfo { return &MapInfo{ptr: mapInfo} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapMemory(mem *C.GstMemory) *Memory { return &Memory{ptr: mem} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapMessage(msg *C.GstMessage) *Message { return &Message{msg: msg} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapMeta(meta *C.GstMeta) *Meta { return &Meta{ptr: meta} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapMetaInfo(info *C.GstMetaInfo) *MetaInfo { return &MetaInfo{ptr: info} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapPad(obj *glib.Object) *Pad { return &Pad{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapPadTemplate(obj *glib.Object) *PadTemplate { return &PadTemplate{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapPipeline(obj *glib.Object) *Pipeline { return &Pipeline{Bin: wrapBin(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapPluginFeature(obj *glib.Object) *PluginFeature { return &PluginFeature{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapPlugin(obj *glib.Object) *Plugin { return &Plugin{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapProxyPad(obj *glib.Object) *ProxyPad { return &ProxyPad{wrapPad(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapQuery(query *C.GstQuery) *Query { return &Query{ptr: query} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapSample(sample *C.GstSample) *Sample { return &Sample{sample: sample} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapSegment(segment *C.GstSegment) *Segment { return &Segment{ptr: segment} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapStream(obj *glib.Object) *Stream { return &Stream{wrapObject(obj)} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapTagList(tagList *C.GstTagList) *TagList { return &TagList{ptr: tagList} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapTOC(toc *C.GstToc) *TOC { return &TOC{ptr: toc} } -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapTOCEntry(toc *C.GstTocEntry) *TOCEntry { return &TOCEntry{ptr: toc} } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapCapsFeatures(features *C.GstCapsFeatures) *CapsFeatures { - return &CapsFeatures{native: features} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapObject(obj *glib.Object) *Object { - return &Object{InitiallyUnowned: &glib.InitiallyUnowned{Object: obj}} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapElementFactory(obj *glib.Object) *ElementFactory { - return &ElementFactory{wrapPluginFeature(obj)} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapAllocationParams(obj *C.GstAllocationParams) *AllocationParams { - return &AllocationParams{ptr: obj} -} - -// Marshallers - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func registerMarshalers() { - tm := []glib.TypeMarshaler{ - { - T: glib.Type(C.gst_buffering_mode_get_type()), - F: marshalBufferingMode, - }, - { - T: glib.Type(C.gst_format_get_type()), - F: marshalFormat, - }, - { - T: glib.Type(C.gst_message_type_get_type()), - F: marshalMessageType, - }, - { - T: glib.Type(C.gst_pad_link_return_get_type()), - F: marshalPadLinkReturn, - }, - { - T: glib.Type(C.gst_state_get_type()), - F: marshalState, - }, - { - T: glib.Type(C.gst_seek_flags_get_type()), - F: marshalSeekFlags, - }, - { - T: glib.Type(C.gst_seek_type_get_type()), - F: marshalSeekType, - }, - { - T: glib.Type(C.gst_state_change_return_get_type()), - F: marshalStateChangeReturn, - }, - { - T: glib.Type(C.gst_buffer_get_type()), - F: marshalBuffer, - }, - { - T: glib.Type(C.gst_pipeline_get_type()), - F: marshalPipeline, - }, - { - T: glib.Type(C.gst_bin_get_type()), - F: marshalBin, - }, - { - T: glib.Type(C.gst_bus_get_type()), - F: marshalBus, - }, - { - T: glib.Type(C.gst_element_get_type()), - F: marshalElement, - }, - { - T: glib.Type(C.gst_element_factory_get_type()), - F: marshalElementFactory, - }, - { - T: glib.Type(C.gst_proxy_pad_get_type()), - F: marshalProxyPad, - }, - { - T: glib.Type(C.gst_ghost_pad_get_type()), - F: marshalGhostPad, - }, - { - T: glib.Type(C.gst_object_get_type()), - F: marshalObject, - }, - { - T: glib.Type(C.gst_pad_get_type()), - F: marshalPad, - }, - { - T: glib.Type(C.gst_plugin_feature_get_type()), - F: marshalPluginFeature, - }, - { - T: glib.Type(C.gst_allocation_params_get_type()), - F: marshalAllocationParams, - }, - { - T: glib.Type(C.gst_memory_get_type()), - F: marshalMemory, - }, - { - T: glib.Type(C.gst_buffer_list_get_type()), - F: marshalBufferList, - }, - { - T: TypeCaps, - F: marshalCaps, - }, - { - T: TypeCapsFeatures, - F: marshalCapsFeatures, - }, - { - T: glib.Type(C.gst_context_get_type()), - F: marshalContext, - }, - { - T: glib.Type(C.gst_toc_entry_get_type()), - F: marshalTOCEntry, - }, - { - T: glib.Type(C.gst_toc_get_type()), - F: marshalTOC, - }, - { - T: glib.Type(C.gst_tag_list_get_type()), - F: marsalTagList, - }, - { - T: glib.Type(C.gst_event_get_type()), - F: marshalEvent, - }, - { - T: glib.Type(C.gst_segment_get_type()), - F: marshalSegment, - }, - { - T: glib.Type(C.gst_query_get_type()), - F: marshalQuery, - }, - { - T: glib.Type(C.gst_message_get_type()), - F: marshalMessage, - }, - { - T: TypeBitmask, - F: marshalBitmask, - }, - { - T: TypeFraction, - F: marshalFraction, - }, - { - T: TypeFractionRange, - F: marshalFractionRange, - }, - { - T: TypeStructure, - F: marshalStructure, - }, - { - T: TypeFloat64Range, - F: marshalDoubleRange, - }, - { - T: TypeFlagset, - F: marshalFlagset, - }, - { - T: TypeInt64Range, - F: marshalInt64Range, - }, - { - T: TypeIntRange, - F: marshalIntRange, - }, - { - T: TypeValueArray, - F: marshalValueArray, - }, - { - T: TypeValueList, - F: marshalValueList, - }, - { - T: TypePromise, - F: marshalPromise, - }, - { - T: glib.Type(C.gst_sample_get_type()), - F: marshalSample, - }, - } - - glib.RegisterGValueMarshalers(tm) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func toGValue(p unsafe.Pointer) *C.GValue { - return (*C.GValue)(p) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalValueArray(p unsafe.Pointer) (interface{}, error) { - val := toGValue(p) - out := ValueArrayValue(*glib.ValueFromNative(unsafe.Pointer(val))) - return &out, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalValueList(p unsafe.Pointer) (interface{}, error) { - // value := glib.ValueFromNative(p) - - // // must copy since we don't own the gvalue passed into this marshal - // out, err := value.Copy() - - // if err != nil { - // return nil, err - // } - - // return (*ValueListValue)(out), nil - - panic("marshalValueList not implemented") -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalInt64Range(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - return &Int64RangeValue{ - start: int64(C.gst_value_get_int64_range_min(v)), - end: int64(C.gst_value_get_int64_range_max(v)), - step: int64(C.gst_value_get_int64_range_step(v)), - }, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalIntRange(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - return &IntRangeValue{ - start: int(C.gst_value_get_int_range_min(v)), - end: int(C.gst_value_get_int_range_max(v)), - step: int(C.gst_value_get_int_range_step(v)), - }, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalBitmask(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - return Bitmask(C.gst_value_get_bitmask(v)), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalFlagset(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - return &FlagsetValue{ - flags: uint(C.gst_value_get_flagset_flags(v)), - mask: uint(C.gst_value_get_flagset_mask(v)), - }, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalDoubleRange(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - return &Float64RangeValue{ - start: float64(C.gst_value_get_double_range_min(v)), - end: float64(C.gst_value_get_double_range_max(v)), - }, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalFraction(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - out := &FractionValue{ - num: int(C.gst_value_get_fraction_numerator(v)), - denom: int(C.gst_value_get_fraction_denominator(v)), - } - return out, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalFractionRange(p unsafe.Pointer) (interface{}, error) { - v := toGValue(p) - start := C.gst_value_get_fraction_range_min(v) - end := C.gst_value_get_fraction_range_max(v) - return &FractionRangeValue{ - start: ValueGetFraction(glib.ValueFromNative(unsafe.Pointer(start))), - end: ValueGetFraction(glib.ValueFromNative(unsafe.Pointer(end))), - }, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalBufferingMode(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return BufferingMode(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalFormat(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return Format(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalMessageType(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return MessageType(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalPadLinkReturn(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return PadLinkReturn(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalState(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return State(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalSeekFlags(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return SeekFlags(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalSeekType(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return SeekType(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalStateChangeReturn(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum(toGValue(p)) - return StateChangeReturn(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalGhostPad(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapGhostPad(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalProxyPad(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapProxyPad(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalPad(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapPad(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalMessage(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_boxed(toGValue(p)) - return &Message{(*C.GstMessage)(unsafe.Pointer(c))}, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalObject(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapObject(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalBus(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapBus(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalElementFactory(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapElementFactory(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalPipeline(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapPipeline(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalPluginFeature(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapPluginFeature(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalElement(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapElement(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalBin(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} - return wrapBin(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalAllocationParams(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstAllocationParams)(unsafe.Pointer(c)) - return wrapAllocationParams(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalMemory(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstMemory)(unsafe.Pointer(c)) - return wrapMemory(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalBuffer(p unsafe.Pointer) (interface{}, error) { - c := C.getBufferValue(toGValue(p)) - return wrapBuffer(c), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalBufferList(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstBufferList)(unsafe.Pointer(c)) - return wrapBufferList(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalCaps(p unsafe.Pointer) (interface{}, error) { - c := C.gst_value_get_caps(toGValue(p)) - obj := (*C.GstCaps)(unsafe.Pointer(c)) - return wrapCaps(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalCapsFeatures(p unsafe.Pointer) (interface{}, error) { - c := C.gst_value_get_caps_features(toGValue(p)) - obj := (*C.GstCapsFeatures)(unsafe.Pointer(c)) - return wrapCapsFeatures(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalContext(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstContext)(unsafe.Pointer(c)) - return wrapContext(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalTOC(p unsafe.Pointer) (interface{}, error) { - c := C.gst_value_get_structure(toGValue(p)) - obj := (*C.GstToc)(unsafe.Pointer(c)) - return wrapTOC(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalTOCEntry(p unsafe.Pointer) (interface{}, error) { - c := C.gst_value_get_structure(toGValue(p)) - obj := (*C.GstTocEntry)(unsafe.Pointer(c)) - return wrapTOCEntry(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marsalTagList(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstTagList)(unsafe.Pointer(c)) - return wrapTagList(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalEvent(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstEvent)(unsafe.Pointer(c)) - return wrapEvent(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalSegment(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstSegment)(unsafe.Pointer(c)) - return wrapSegment(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalQuery(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(toGValue(p)) - obj := (*C.GstQuery)(unsafe.Pointer(c)) - return wrapQuery(obj), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalSample(p unsafe.Pointer) (interface{}, error) { - c := C.getSampleValue(toGValue(p)) - return FromGstSampleUnsafeNone(unsafe.Pointer(c)), nil -} diff --git a/gst/gstnet/_deprecation.go b/gst/gstnet/_deprecation.go deleted file mode 100644 index 4c22baf..0000000 --- a/gst/gstnet/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstnet instead -package gstnet diff --git a/gst/gstnet/gst.go.h b/gst/gstnet/gst.go.h deleted file mode 100644 index 9def7ec..0000000 --- a/gst/gstnet/gst.go.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef __GST_NET_GO_H__ -#define __GST_NET_GO_H__ - -#include -#include - -#endif \ No newline at end of file diff --git a/gst/gstnet/gst_ntp_clock.go b/gst/gstnet/gst_ntp_clock.go deleted file mode 100644 index 3e01aac..0000000 --- a/gst/gstnet/gst_ntp_clock.go +++ /dev/null @@ -1,71 +0,0 @@ -package gstnet - -// #include "gst.go.h" -import "C" -import ( - "context" - "errors" - "time" - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// NTP timestamps are relative to 1. Jan 1900, so we need an offset for 70 Years to be Unix TS compatible -const NTPTimeToUnixEpoch = gst.ClockTime(2208988800 * time.Second) - -// NTPClock wraps GstClock -type NTPClock struct{ *gst.Clock } - -// ObtainNTPClock returns the default NTPClock. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ObtainNTPClock(ctx context.Context, name, address string, port int) (*NTPClock, error) { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - - caddr := C.CString(address) - defer C.free(unsafe.Pointer(caddr)) - - currentSystemTime := time.Now().UnixNano() + int64(NTPTimeToUnixEpoch) - - ntpC := &NTPClock{gst.FromGstClockUnsafeFull(unsafe.Pointer(C.gst_ntp_clock_new(cname, caddr, C.gint(port), C.GstClockTime(currentSystemTime))))} - - for { - select { - case <-ctx.Done(): - return nil, errors.New("timeout reached while trying to sync") - default: - if ntpC.IsSynced() { - return ntpC, nil - } - time.Sleep(100 * time.Millisecond) - } - } -} - -// get the current time of the clock -// -// if you want to access the clocks actual time value, use the underlying NTPClock.Clock.GetTime() instead -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (ntp *NTPClock) GetTime() time.Time { - // nanos since 1. Jan 1900 - ntpNanos := NTPClockTime(ntp.Clock.GetTime()) - - return ntpNanos.ToDate() -} - -type NTPClockTime gst.ClockTime - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (ct NTPClockTime) ToDate() time.Time { - return time.Unix(0, int64(ct)-int64(NTPTimeToUnixEpoch)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewNTPClockTime(t time.Time) NTPClockTime { - return NTPClockTime(t.UnixNano() + int64(NTPTimeToUnixEpoch)) -} diff --git a/gst/gstnet/net_address_meta.go b/gst/gstnet/net_address_meta.go deleted file mode 100644 index 37d5f29..0000000 --- a/gst/gstnet/net_address_meta.go +++ /dev/null @@ -1,62 +0,0 @@ -package gstnet - -// #include "gst.go.h" -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// NetAddressMeta can be used to store a network address in a GstBuffer so that it network elements -// can track the to and from address of the buffer. -type NetAddressMeta struct{ ptr *C.GstNetAddressMeta } - -// AddNetAddressMeta attaches the given address to a NetAddressMeta on the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func AddNetAddressMeta(buffer *gst.Buffer, address string, port int) *NetAddressMeta { - caddr := C.CString(address) - defer C.free(unsafe.Pointer(caddr)) - gaddr := C.g_inet_socket_address_new_from_string((*C.gchar)(caddr), C.guint(port)) - meta := C.gst_buffer_add_net_address_meta( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - gaddr, - ) - return &NetAddressMeta{meta} -} - -// GetNetAddressMeta retrieves the NetAddressMeta from the given buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetNetAddressMeta(buffer *gst.Buffer) *NetAddressMeta { - meta := C.gst_buffer_get_net_address_meta((*C.GstBuffer)(unsafe.Pointer(buffer.Instance()))) - if meta == nil { - return nil - } - return &NetAddressMeta{meta} -} - -// Meta returns the underlying gst.Meta instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *NetAddressMeta) Meta() *gst.Meta { return gst.FromGstMetaUnsafe(unsafe.Pointer(&n.ptr.meta)) } - -// Addr returns the address included in the meta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *NetAddressMeta) Addr() string { - iaddr := C.g_inet_socket_address_get_address((*C.GInetSocketAddress)(unsafe.Pointer(n.ptr.addr))) - iaddrstr := C.g_inet_address_to_string(iaddr) - defer C.g_free((C.gpointer)(unsafe.Pointer(iaddrstr))) - return C.GoString(iaddrstr) -} - -// Port returns the port included in the meta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *NetAddressMeta) Port() int { - iport := C.g_inet_socket_address_get_port((*C.GInetSocketAddress)(unsafe.Pointer(n.ptr.addr))) - return int(iport) -} diff --git a/gst/gstnet/pkg_config.go b/gst/gstnet/pkg_config.go deleted file mode 100644 index 237ff0f..0000000 --- a/gst/gstnet/pkg_config.go +++ /dev/null @@ -1,7 +0,0 @@ -package gstnet - -/* -#cgo pkg-config: gstreamer-net-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall -*/ -import "C" diff --git a/gst/gstsdp/_deprecation.go b/gst/gstsdp/_deprecation.go deleted file mode 100644 index 99b9419..0000000 --- a/gst/gstsdp/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstsdp instead -package gstsdp diff --git a/gst/gstsdp/doc.go b/gst/gstsdp/doc.go deleted file mode 100644 index 55afb74..0000000 --- a/gst/gstsdp/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// gstsdp contains bindings for the gstreamer sdp library. See also https://gstreamer.freedesktop.org/documentation/sdp/index.html -package gstsdp diff --git a/gst/gstsdp/gst.go.h b/gst/gstsdp/gst.go.h deleted file mode 100644 index 1a7f385..0000000 --- a/gst/gstsdp/gst.go.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __GST_WEBRTC_GO_H__ -#define __GST_WEBRTC_GO_H__ - -#include - -#endif diff --git a/gst/gstsdp/media.go b/gst/gstsdp/media.go deleted file mode 100644 index 3166b97..0000000 --- a/gst/gstsdp/media.go +++ /dev/null @@ -1,57 +0,0 @@ -package gstsdp - -// #include "gst.go.h" -import "C" -import ( - "errors" - "iter" - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Media struct { - ptr *C.GstSDPMedia -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Media) FormatsLen() int { - return int(C.gst_sdp_media_formats_len(m.ptr)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Media) Format(idx int) string { - cstr := C.gst_sdp_media_get_format(m.ptr, C.guint(idx)) - - return C.GoString(cstr) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Media) Formats() iter.Seq2[int, string] { - return func(yield func(int, string) bool) { - for i := 0; i < m.FormatsLen(); i++ { - if !yield(i, m.Format(i)) { - return - } - } - } -} - -var ErrCouldNotGetCaps = errors.New("could not get caps") - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *Media) GetCaps(pt int) (*gst.Caps, error) { - ccaps := C.gst_sdp_media_get_caps_from_media(m.ptr, C.gint(pt)) - - if ccaps == nil { - return nil, ErrCouldNotGetCaps - } - - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(ccaps)), nil -} diff --git a/gst/gstsdp/message.go b/gst/gstsdp/message.go deleted file mode 100644 index 5a4f880..0000000 --- a/gst/gstsdp/message.go +++ /dev/null @@ -1,182 +0,0 @@ -package gstsdp - -// #include "gst.go.h" -import "C" -import ( - "errors" - "iter" - "runtime" - "unsafe" -) - -type SDPResult C.GstSDPResult - -const ( - SDPResultOk SDPResult = C.GST_SDP_OK - SDPEinval SDPResult = C.GST_SDP_EINVAL -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Message struct { - ptr *C.GstSDPMessage -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapSDPMessageAndFinalize(sdp *C.GstSDPMessage) *Message { - msg := &Message{ - ptr: sdp, - } - - // this requires that we copy the SDP message before passing it to any transfer-ownership function - runtime.SetFinalizer(msg, func(msg *Message) { - msg.Free() - }) - - return msg -} - -// NewMessage creates a new empty SDP message -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewMessage() (*Message, error) { - var msg *C.GstSDPMessage - - res := SDPResult(C.gst_sdp_message_new(&msg)) - - if res != SDPResultOk || msg == nil { - return nil, ErrSDPInvalid - } - - return wrapSDPMessageAndFinalize(msg), nil -} - -// NewMessageFromUnsafe creates a new SDP message from a pointer and does not finalize it -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewMessageFromUnsafe(ptr unsafe.Pointer) *Message { - return &Message{ - ptr: (*C.GstSDPMessage)(ptr), - } -} - -var ErrSDPInvalid = errors.New("invalid SDP") - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ParseSDPMessage(sdp string) (*Message, error) { - cstr := C.CString(sdp) - defer C.free(unsafe.Pointer(cstr)) - - var msg *C.GstSDPMessage - - res := SDPResult(C.gst_sdp_message_new_from_text(cstr, &msg)) - - if res != SDPResultOk || msg == nil { - return nil, ErrSDPInvalid - } - - return wrapSDPMessageAndFinalize(msg), nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) String() string { - cstr := C.gst_sdp_message_as_text(msg.native()) - defer C.free(unsafe.Pointer(cstr)) - - return C.GoString(cstr) -} - -// UnownedCopy creates a new copy of the SDP message that will not be finalized -// -// this is needed to pass the message back to C where C takes ownership of the message -// -// the returned SDP message will leak memory if not freed manually -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) UnownedCopy() *Message { - if msg == nil { - return nil - } - - var newMsg *C.GstSDPMessage - res := C.gst_sdp_message_copy(msg.native(), &newMsg) - - if res != C.GST_SDP_OK || newMsg == nil { - return nil - } - - return &Message{ - ptr: newMsg, - } -} - -// Free frees the SDP message. -// -// This is called automatically when the object is garbage collected. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) Free() { - if msg == nil || msg.ptr == nil { - return - } - C.gst_sdp_message_free(msg.ptr) - msg.ptr = nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) native() *C.GstSDPMessage { - if msg == nil { - return nil - } - - return msg.ptr -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) Instance() unsafe.Pointer { - return unsafe.Pointer(msg.native()) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) MediasLen() int { - return int(C.gst_sdp_message_medias_len(msg.native())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) Media(i int) *Media { - cmedia := C.gst_sdp_message_get_media(msg.native(), C.uint(i)) - - if cmedia == nil { - return nil - } - - media := &Media{ - ptr: cmedia, - } - - // keep the Message alive while we are handling the media - runtime.SetFinalizer(media, func(_ *Media) { - runtime.KeepAlive(msg) - }) - - return media -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (msg *Message) Medias() iter.Seq2[int, *Media] { - return func(yield func(int, *Media) bool) { - for i := 0; i < msg.MediasLen(); i++ { - if !yield(i, msg.Media(i)) { - return - } - } - } -} diff --git a/gst/gstsdp/message_test.go b/gst/gstsdp/message_test.go deleted file mode 100644 index ccf96ed..0000000 --- a/gst/gstsdp/message_test.go +++ /dev/null @@ -1,104 +0,0 @@ -package gstsdp_test - -import ( - "fmt" - "runtime" - "strconv" - "testing" - - "github.com/go-gst/go-gst/gst" - "github.com/go-gst/go-gst/gst/gstsdp" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestSessionDescription(t *testing.T) { - gst.Init(nil) - - sdp, err := gstsdp.ParseSDPMessage(testmsg) - - if err != nil { - t.Fatal(err) - } - - for _, media := range sdp.Medias() { - for _, f := range media.Formats() { - fmt.Printf("found format: %s\n", f) - - pt, err := strconv.Atoi(f) - - if err != nil { - t.Fatal(err.Error()) - } - - caps, err := media.GetCaps(pt) - - if err != nil { - t.Fatal(err.Error()) - } - - fmt.Println(caps.String()) - - s := caps.GetStructureAt(0) - - if s == nil { - continue - } - - runtime.GC() - - encname, err := s.GetValue("encoding-name") - - if err != nil { - t.Fatal(err.Error()) - } - - fmt.Println(encname) - } - } -} - -var testmsg = ` -v=0 -o=- 3546004397921447048 1596742744 IN IP4 0.0.0.0 -s=- -t=0 0 -a=fingerprint:sha-256 0F:74:31:25:CB:A2:13:EC:28:6F:6D:2C:61:FF:5D:C2:BC:B9:DB:3D:98:14:8D:1A:BB:EA:33:0C:A4:60:A8:8E -a=group:BUNDLE 0 1 -m=audio 9 UDP/TLS/RTP/SAVPF 111 -c=IN IP4 0.0.0.0 -a=setup:active -a=mid:0 -a=ice-ufrag:CsxzEWmoKpJyscFj -a=ice-pwd:mktpbhgREmjEwUFSIJyPINPUhgDqJlSd -a=rtcp-mux -a=rtcp-rsize -a=rtpmap:111 opus/48000/2 -a=fmtp:111 minptime=10;useinbandfec=1 -a=ssrc:350842737 cname:yvKPspsHcYcwGFTw -a=ssrc:350842737 msid:yvKPspsHcYcwGFTw DfQnKjQQuwceLFdV -a=ssrc:350842737 mslabel:yvKPspsHcYcwGFTw -a=ssrc:350842737 label:DfQnKjQQuwceLFdV -a=msid:yvKPspsHcYcwGFTw DfQnKjQQuwceLFdV -a=sendrecv -a=candidate:foundation 1 udp 2130706431 192.168.1.1 53165 typ host generation 0 -a=candidate:foundation 2 udp 2130706431 192.168.1.1 53165 typ host generation 0 -a=candidate:foundation 1 udp 1694498815 1.2.3.4 57336 typ srflx raddr 0.0.0.0 rport 57336 generation 0 -a=candidate:foundation 2 udp 1694498815 1.2.3.4 57336 typ srflx raddr 0.0.0.0 rport 57336 generation 0 -a=end-of-candidates -m=video 9 UDP/TLS/RTP/SAVPF 96 -c=IN IP4 0.0.0.0 -a=setup:active -a=mid:1 -a=ice-ufrag:CsxzEWmoKpJyscFj -a=ice-pwd:mktpbhgREmjEwUFSIJyPINPUhgDqJlSd -a=rtcp-mux -a=rtcp-rsize -a=rtpmap:96 VP8/90000 -a=ssrc:2180035812 cname:XHbOTNRFnLtesHwJ -a=ssrc:2180035812 msid:XHbOTNRFnLtesHwJ JgtwEhBWNEiOnhuW -a=ssrc:2180035812 mslabel:XHbOTNRFnLtesHwJ -a=ssrc:2180035812 label:JgtwEhBWNEiOnhuW -a=msid:XHbOTNRFnLtesHwJ JgtwEhBWNEiOnhuW -a=sendrecv -` diff --git a/gst/gstsdp/pkg_config.go b/gst/gstsdp/pkg_config.go deleted file mode 100644 index 3226db9..0000000 --- a/gst/gstsdp/pkg_config.go +++ /dev/null @@ -1,7 +0,0 @@ -package gstsdp - -/* -#cgo pkg-config: gstreamer-sdp-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall -*/ -import "C" diff --git a/gst/gstwebrtc/_deprecation.go b/gst/gstwebrtc/_deprecation.go deleted file mode 100644 index 4a6a3a5..0000000 --- a/gst/gstwebrtc/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstwebrtc instead -package gstwebrtc diff --git a/gst/gstwebrtc/data_channel.go b/gst/gstwebrtc/data_channel.go deleted file mode 100644 index bd91eec..0000000 --- a/gst/gstwebrtc/data_channel.go +++ /dev/null @@ -1,79 +0,0 @@ -package gstwebrtc - -// #include "gst.go.h" -import "C" -import ( - "errors" - "unsafe" - - "github.com/go-gst/go-glib/glib" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - - tm := []glib.TypeMarshaler{ - {T: glib.Type(C.GST_TYPE_WEBRTC_DATA_CHANNEL), F: marshalDataChannel}, - } - - glib.RegisterGValueMarshalers(tm) -} - -// DataChannel is a representation of GstWebRTCDataChannel. See https://gstreamer.freedesktop.org/documentation/webrtclib/gstwebrtc-datachannel.html?gi-language=c -// -// there is no constructor for DataChannel, you can get it from webrtcbin signals -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type DataChannel struct { - *glib.Object -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (dc *DataChannel) Close() { - C.gst_webrtc_data_channel_close((*C.GstWebRTCDataChannel)(dc.Native())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (dc *DataChannel) SendData(data []byte) error { - var gerr *C.GError - - addr := unsafe.SliceData(data) - - cbytes := C.g_bytes_new(C.gconstpointer(addr), C.gsize(len(data))) - defer C.g_bytes_unref(cbytes) - - C.gst_webrtc_data_channel_send_data_full((*C.GstWebRTCDataChannel)(dc.Native()), cbytes, &gerr) - - if gerr != nil { - defer C.g_error_free((*C.GError)(gerr)) - errMsg := C.GoString(gerr.message) - return errors.New(errMsg) - } - - return nil -} - -// ToGValue implements glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (dc *DataChannel) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(glib.Type(C.GST_TYPE_WEBRTC_DATA_CHANNEL)) - if err != nil { - return nil, err - } - val.SetInstance(unsafe.Pointer(dc.GObject)) - return val, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalDataChannel(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object((*C.GValue)(p)) - - return &DataChannel{ - Object: glib.Take(unsafe.Pointer(c)), - }, nil -} diff --git a/gst/gstwebrtc/data_channel_test.go b/gst/gstwebrtc/data_channel_test.go deleted file mode 100644 index 3d1f618..0000000 --- a/gst/gstwebrtc/data_channel_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package gstwebrtc - -import ( - "testing" - - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestDataChannelMarshal(t *testing.T) { - gst.Init(nil) - - // hack to get a valid glib.Object - el, err := gst.NewElement("webrtcbin") - - if err != nil { - t.Error(err) - } - - dc := &DataChannel{ - Object: el.Object.Object, - } - - gv, err := dc.ToGValue() - - if err != nil { - t.Error(err) - } - - dcI, err := gv.GoValue() - - if err != nil { - t.Error(err) - } - - dc, ok := dcI.(*DataChannel) - - if !ok { - t.Error("Failed to convert to DataChannel") - } - - _ = dc -} diff --git a/gst/gstwebrtc/doc.go b/gst/gstwebrtc/doc.go deleted file mode 100644 index cecdaeb..0000000 --- a/gst/gstwebrtc/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// gstwebrtc contains bindings for the gstreamer webrtclib. See also https://gstreamer.freedesktop.org/documentation/webrtclib/index.html -package gstwebrtc diff --git a/gst/gstwebrtc/enums.go b/gst/gstwebrtc/enums.go deleted file mode 100644 index b3464af..0000000 --- a/gst/gstwebrtc/enums.go +++ /dev/null @@ -1,547 +0,0 @@ -package gstwebrtc - -// #include "gst.go.h" -import "C" - -type BundlePolicy C.GstWebRTCBundlePolicy - -const ( - BUNDLE_POLICY_NONE BundlePolicy = C.GST_WEBRTC_BUNDLE_POLICY_NONE // none - BUNDLE_POLICY_BALANCED BundlePolicy = C.GST_WEBRTC_BUNDLE_POLICY_BALANCED // balanced - BUNDLE_POLICY_MAX_COMPAT BundlePolicy = C.GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT // max-compat - BUNDLE_POLICY_MAX_BUNDLE BundlePolicy = C.GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE // max-bundle -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e BundlePolicy) String() string { - switch e { - case C.GST_WEBRTC_BUNDLE_POLICY_NONE: - return "none" - case C.GST_WEBRTC_BUNDLE_POLICY_BALANCED: - return "balanced" - case C.GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT: - return "max-compat" - case C.GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE: - return "max-bundle" - } - return "unknown" -} - -type DTLSSetup C.GstWebRTCDTLSSetup - -const ( - DTLS_SETUP_NONE DTLSSetup = C.GST_WEBRTC_DTLS_SETUP_NONE // none - DTLS_SETUP_ACTPASS DTLSSetup = C.GST_WEBRTC_DTLS_SETUP_ACTPASS // actpass - DTLS_SETUP_ACTIVE DTLSSetup = C.GST_WEBRTC_DTLS_SETUP_ACTIVE // sendonly - DTLS_SETUP_PASSIVE DTLSSetup = C.GST_WEBRTC_DTLS_SETUP_PASSIVE // recvonly -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e DTLSSetup) String() string { - switch e { - case C.GST_WEBRTC_DTLS_SETUP_NONE: - return "none" - case C.GST_WEBRTC_DTLS_SETUP_ACTPASS: - return "actpass" - case C.GST_WEBRTC_DTLS_SETUP_ACTIVE: - return "sendonly" - case C.GST_WEBRTC_DTLS_SETUP_PASSIVE: - return "recvonly" - } - return "unknown" -} - -type DTLSTransportState C.GstWebRTCDTLSTransportState - -const ( - DTLS_TRANSPORT_STATE_NEW DTLSTransportState = C.GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW // new - DTLS_TRANSPORT_STATE_CLOSED DTLSTransportState = C.GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED // closed - DTLS_TRANSPORT_STATE_FAILED DTLSTransportState = C.GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED // failed - DTLS_TRANSPORT_STATE_CONNECTING DTLSTransportState = C.GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING // connecting - DTLS_TRANSPORT_STATE_CONNECTED DTLSTransportState = C.GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED // connected -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e DTLSTransportState) String() string { - switch e { - case C.GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW: - return "new" - case C.GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED: - return "closed" - case C.GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED: - return "failed" - case C.GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING: - return "connecting" - case C.GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED: - return "connected" - } - return "unknown" -} - -type DataChannelState C.GstWebRTCDataChannelState - -const ( - DATA_CHANNEL_STATE_CONNECTING DataChannelState = C.GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING // connecting - DATA_CHANNEL_STATE_OPEN DataChannelState = C.GST_WEBRTC_DATA_CHANNEL_STATE_OPEN // open - DATA_CHANNEL_STATE_CLOSING DataChannelState = C.GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING // closing - DATA_CHANNEL_STATE_CLOSED DataChannelState = C.GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED // closed -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e DataChannelState) String() string { - switch e { - case C.GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: - return "connecting" - case C.GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: - return "open" - case C.GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: - return "closing" - case C.GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: - return "closed" - } - return "unknown" -} - -type Error C.GstWebRTCError - -const ( - ERROR_DATA_CHANNEL_FAILURE Error = C.GST_WEBRTC_ERROR_DATA_CHANNEL_FAILURE // data-channel-failure - ERROR_DTLS_FAILURE Error = C.GST_WEBRTC_ERROR_DTLS_FAILURE // dtls-failure - ERROR_FINGERPRINT_FAILURE Error = C.GST_WEBRTC_ERROR_FINGERPRINT_FAILURE // fingerprint-failure - ERROR_SCTP_FAILURE Error = C.GST_WEBRTC_ERROR_SCTP_FAILURE // sctp-failure - ERROR_SDP_SYNTAX_ERROR Error = C.GST_WEBRTC_ERROR_SDP_SYNTAX_ERROR // sdp-syntax-error - ERROR_HARDWARE_ENCODER_NOT_AVAILABLE Error = C.GST_WEBRTC_ERROR_HARDWARE_ENCODER_NOT_AVAILABLE // hardware-encoder-not-available - ERROR_ENCODER_ERROR Error = C.GST_WEBRTC_ERROR_ENCODER_ERROR // encoder-error - ERROR_INVALID_STATE Error = C.GST_WEBRTC_ERROR_INVALID_STATE // invalid-state - ERROR_INTERNAL_FAILURE Error = C.GST_WEBRTC_ERROR_INTERNAL_FAILURE // internal-failure - ERROR_INVALID_MODIFICATION Error = C.GST_WEBRTC_ERROR_INVALID_MODIFICATION // invalid-modification - ERROR_TYPE_ERROR Error = C.GST_WEBRTC_ERROR_TYPE_ERROR // type-error -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e Error) String() string { - switch e { - case C.GST_WEBRTC_ERROR_DATA_CHANNEL_FAILURE: - return "data-channel-failure" - case C.GST_WEBRTC_ERROR_DTLS_FAILURE: - return "dtls-failure" - case C.GST_WEBRTC_ERROR_FINGERPRINT_FAILURE: - return "fingerprint-failure" - case C.GST_WEBRTC_ERROR_SCTP_FAILURE: - return "sctp-failure" - case C.GST_WEBRTC_ERROR_SDP_SYNTAX_ERROR: - return "sdp-syntax-error" - case C.GST_WEBRTC_ERROR_HARDWARE_ENCODER_NOT_AVAILABLE: - return "hardware-encoder-not-available" - case C.GST_WEBRTC_ERROR_ENCODER_ERROR: - return "encoder-error" - case C.GST_WEBRTC_ERROR_INVALID_STATE: - return "invalid-state" - case C.GST_WEBRTC_ERROR_INTERNAL_FAILURE: - return "internal-failure" - case C.GST_WEBRTC_ERROR_INVALID_MODIFICATION: - return "invalid-modification" - case C.GST_WEBRTC_ERROR_TYPE_ERROR: - return "type-error" - } - return "unknown" -} - -type FECType C.GstWebRTCFECType - -const ( - FEC_TYPE_NONE FECType = C.GST_WEBRTC_FEC_TYPE_NONE // none - FEC_TYPE_ULP_RED FECType = C.GST_WEBRTC_FEC_TYPE_ULP_RED // ulpfec + red -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e FECType) String() string { - switch e { - case C.GST_WEBRTC_FEC_TYPE_NONE: - return "none" - case C.GST_WEBRTC_FEC_TYPE_ULP_RED: - return "ulpfec + red" - } - return "unknown" -} - -type ICEComponent C.GstWebRTCICEComponent - -// GST_WEBRTC_ICE_COMPONENT_RTP (0)RTP component -// GST_WEBRTC_ICE_COMPONENT_RTCP (1)RTCP component - -const ( - ICE_COMPONENT_RTP ICEComponent = C.GST_WEBRTC_ICE_COMPONENT_RTP // RTP component - ICE_COMPONENT_RTCP ICEComponent = C.GST_WEBRTC_ICE_COMPONENT_RTCP // RTCP component -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e ICEComponent) String() string { - switch e { - case C.GST_WEBRTC_ICE_COMPONENT_RTP: - return "RTP component" - case C.GST_WEBRTC_ICE_COMPONENT_RTCP: - return "RTCP component" - } - return "unknown" -} - -type ICEConnectionState C.GstWebRTCICEConnectionState - -const ( - ICE_CONNECTION_STATE_NEW ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_NEW // new - ICE_CONNECTION_STATE_CHECKING ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING // checking - ICE_CONNECTION_STATE_CONNECTED ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED // connected - ICE_CONNECTION_STATE_COMPLETED ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED // completed - ICE_CONNECTION_STATE_FAILED ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_FAILED // failed - ICE_CONNECTION_STATE_DISCONNECTED ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED // disconnected - ICE_CONNECTION_STATE_CLOSED ICEConnectionState = C.GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED // closed -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e ICEConnectionState) String() string { - switch e { - case C.GST_WEBRTC_ICE_CONNECTION_STATE_NEW: - return "new" - case C.GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING: - return "checking" - case C.GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED: - return "connected" - case C.GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED: - return "completed" - case C.GST_WEBRTC_ICE_CONNECTION_STATE_FAILED: - return "failed" - case C.GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED: - return "disconnected" - case C.GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED: - return "closed" - } - return "unknown" -} - -type ICEGatheringState C.GstWebRTCICEGatheringState - -const ( - ICE_GATHERING_STATE_NEW ICEGatheringState = C.GST_WEBRTC_ICE_GATHERING_STATE_NEW // new - ICE_GATHERING_STATE_GATHERING ICEGatheringState = C.GST_WEBRTC_ICE_GATHERING_STATE_GATHERING // gathering - ICE_GATHERING_STATE_COMPLETE ICEGatheringState = C.GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE // complete -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e ICEGatheringState) String() string { - switch e { - case C.GST_WEBRTC_ICE_GATHERING_STATE_NEW: - return "new" - case C.GST_WEBRTC_ICE_GATHERING_STATE_GATHERING: - return "gathering" - case C.GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE: - return "complete" - } - return "unknown" -} - -type ICERole C.GstWebRTCICERole - -const ( - ICE_ROLE_CONTROLLED ICERole = C.GST_WEBRTC_ICE_ROLE_CONTROLLED // controlled - ICE_ROLE_CONTROLLING ICERole = C.GST_WEBRTC_ICE_ROLE_CONTROLLING // controlling -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e ICERole) String() string { - switch e { - case C.GST_WEBRTC_ICE_ROLE_CONTROLLED: - return "controlled" - case C.GST_WEBRTC_ICE_ROLE_CONTROLLING: - return "controlling" - } - return "unknown" -} - -type ICETransportPolicy C.GstWebRTCICETransportPolicy - -const ( - ICE_TRANSPORT_POLICY_ALL ICETransportPolicy = C.GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL // all - ICE_TRANSPORT_POLICY_RELAY ICETransportPolicy = C.GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY // relay -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e ICETransportPolicy) String() string { - switch e { - case C.GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL: - return "all" - case C.GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY: - return "relay" - } - return "unknown" -} - -type Kind C.GstWebRTCKind - -const ( - UNKNOWN Kind = C.GST_WEBRTC_KIND_UNKNOWN // unknown - AUDIO Kind = C.GST_WEBRTC_KIND_AUDIO // audio - VIDEO Kind = C.GST_WEBRTC_KIND_VIDEO // video -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e Kind) String() string { - switch e { - case C.GST_WEBRTC_KIND_UNKNOWN: - return "unknown" - case C.GST_WEBRTC_KIND_AUDIO: - return "audio" - case C.GST_WEBRTC_KIND_VIDEO: - return "video" - } - return "unknown" -} - -type PeerConnectionState C.GstWebRTCPeerConnectionState - -// GST_WEBRTC_PEER_CONNECTION_STATE_NEW (0)new -// GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING (1)connecting -// GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED (2)connected -// GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED (3)disconnected -// GST_WEBRTC_PEER_CONNECTION_STATE_FAILED (4)failed -// GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED (5)closed - -const ( - PEER_CONNECTION_STATE_NEW PeerConnectionState = C.GST_WEBRTC_PEER_CONNECTION_STATE_NEW // new - PEER_CONNECTION_STATE_CONNECTING PeerConnectionState = C.GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING // connecting - PEER_CONNECTION_STATE_CONNECTED PeerConnectionState = C.GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED // connected - PEER_CONNECTION_STATE_DISCONNECTED PeerConnectionState = C.GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED // disconnected - PEER_CONNECTION_STATE_FAILED PeerConnectionState = C.GST_WEBRTC_PEER_CONNECTION_STATE_FAILED // failed - PEER_CONNECTION_STATE_CLOSED PeerConnectionState = C.GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED // closed -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e PeerConnectionState) String() string { - switch e { - case C.GST_WEBRTC_PEER_CONNECTION_STATE_NEW: - return "new" - case C.GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING: - return "connecting" - case C.GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED: - return "connected" - case C.GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED: - return "disconnected" - case C.GST_WEBRTC_PEER_CONNECTION_STATE_FAILED: - return "failed" - case C.GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED: - return "closed" - } - return "unknown" -} - -type PriorityType C.GstWebRTCPriorityType - -const ( - PRIORITY_TYPE_VERY_LOW PriorityType = C.GST_WEBRTC_PRIORITY_TYPE_VERY_LOW // very-low - PRIORITY_TYPE_LOW PriorityType = C.GST_WEBRTC_PRIORITY_TYPE_LOW // low - PRIORITY_TYPE_MEDIUM PriorityType = C.GST_WEBRTC_PRIORITY_TYPE_MEDIUM // medium - PRIORITY_TYPE_HIGH PriorityType = C.GST_WEBRTC_PRIORITY_TYPE_HIGH // high -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e PriorityType) String() string { - switch e { - case C.GST_WEBRTC_PRIORITY_TYPE_VERY_LOW: - return "very-low" - case C.GST_WEBRTC_PRIORITY_TYPE_LOW: - return "low" - case C.GST_WEBRTC_PRIORITY_TYPE_MEDIUM: - return "medium" - case C.GST_WEBRTC_PRIORITY_TYPE_HIGH: - return "high" - } - return "unknown" -} - -type RTPTransceiverDirection C.GstWebRTCRTPTransceiverDirection - -const ( - RTP_TRANSCEIVER_DIRECTION_NONE RTPTransceiverDirection = C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE // none - RTP_TRANSCEIVER_DIRECTION_INACTIVE RTPTransceiverDirection = C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE // inactive - RTP_TRANSCEIVER_DIRECTION_SENDONLY RTPTransceiverDirection = C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY // sendonly - RTP_TRANSCEIVER_DIRECTION_RECVONLY RTPTransceiverDirection = C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY // recvonly - RTP_TRANSCEIVER_DIRECTION_SENDRECV RTPTransceiverDirection = C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV // sendrecv -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e RTPTransceiverDirection) String() string { - switch e { - case C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE: - return "none" - case C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE: - return "inactive" - case C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY: - return "sendonly" - case C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY: - return "recvonly" - case C.GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV: - return "sendrecv" - } - return "unknown" -} - -type SCTPTransportState C.GstWebRTCSCTPTransportState - -const ( - SCTP_TRANSPORT_STATE_NEW SCTPTransportState = C.GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW // new - SCTP_TRANSPORT_STATE_CONNECTING SCTPTransportState = C.GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING // connecting - SCTP_TRANSPORT_STATE_CONNECTED SCTPTransportState = C.GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED // connected - SCTP_TRANSPORT_STATE_CLOSED SCTPTransportState = C.GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED // closed -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e SCTPTransportState) String() string { - switch e { - case C.GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW: - return "new" - case C.GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING: - return "connecting" - case C.GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED: - return "connected" - case C.GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED: - return "closed" - } - return "unknown" -} - -type SDPType C.GstWebRTCSDPType - -const ( - SDP_TYPE_OFFER SDPType = C.GST_WEBRTC_SDP_TYPE_OFFER // offer - SDP_TYPE_PRANSWER SDPType = C.GST_WEBRTC_SDP_TYPE_PRANSWER // pranswer - SDP_TYPE_ANSWER SDPType = C.GST_WEBRTC_SDP_TYPE_ANSWER // answer - SDP_TYPE_ROLLBACK SDPType = C.GST_WEBRTC_SDP_TYPE_ROLLBACK // rollback -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e SDPType) String() string { - // returned string is const gchar* and must not be freed - cstring := C.gst_webrtc_sdp_type_to_string(C.GstWebRTCSDPType(e)) - - return C.GoString(cstring) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SDPTypeFromString(s string) SDPType { - switch s { - case "offer": - return SDP_TYPE_OFFER - case "pranswer": - return SDP_TYPE_PRANSWER - case "answer": - return SDP_TYPE_ANSWER - case "rollback": - return SDP_TYPE_ROLLBACK - default: - panic("Unknown SDPType") - } -} - -type SignalingState C.GstWebRTCSignalingState - -const ( - SIGNALING_STATE_STABLE SignalingState = C.GST_WEBRTC_SIGNALING_STATE_STABLE // stable - SIGNALING_STATE_CLOSED SignalingState = C.GST_WEBRTC_SIGNALING_STATE_CLOSED // closed - SIGNALING_STATE_HAVE_LOCAL_OFFER SignalingState = C.GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER // have-local-offer - SIGNALING_STATE_HAVE_REMOTE_OFFER SignalingState = C.GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER // have-remote-offer - SIGNALING_STATE_HAVE_LOCAL_PRANSWER SignalingState = C.GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER // have-local-pranswer - SIGNALING_STATE_HAVE_REMOTE_PRANSWER SignalingState = C.GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER // have-remote-pranswer -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e SignalingState) String() string { - switch e { - case C.GST_WEBRTC_SIGNALING_STATE_STABLE: - return "stable" - case C.GST_WEBRTC_SIGNALING_STATE_CLOSED: - return "closed" - case C.GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER: - return "have-local-offer" - case C.GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER: - return "have-remote-offer" - case C.GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER: - return "have-local-pranswer" - case C.GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER: - return "have-remote-pranswer" - } - return "unknown" -} - -type StatsType C.GstWebRTCStatsType - -const ( - STATS_CODEC StatsType = C.GST_WEBRTC_STATS_CODEC // codec - STATS_INBOUND_RTP StatsType = C.GST_WEBRTC_STATS_INBOUND_RTP // inbound-rtp - STATS_OUTBOUND_RTP StatsType = C.GST_WEBRTC_STATS_OUTBOUND_RTP // outbound-rtp - STATS_REMOTE_INBOUND_RTP StatsType = C.GST_WEBRTC_STATS_REMOTE_INBOUND_RTP // remote-inbound-rtp - STATS_REMOTE_OUTBOUND_RTP StatsType = C.GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP // remote-outbound-rtp - STATS_CSRC StatsType = C.GST_WEBRTC_STATS_CSRC // csrc - STATS_PEER_CONNECTION StatsType = C.GST_WEBRTC_STATS_PEER_CONNECTION // peer-connection - STATS_DATA_CHANNEL StatsType = C.GST_WEBRTC_STATS_DATA_CHANNEL // data-channel - STATS_STREAM StatsType = C.GST_WEBRTC_STATS_STREAM // stream - STATS_TRANSPORT StatsType = C.GST_WEBRTC_STATS_TRANSPORT // transport - STATS_CANDIDATE_PAIR StatsType = C.GST_WEBRTC_STATS_CANDIDATE_PAIR // candidate-pair - STATS_LOCAL_CANDIDATE StatsType = C.GST_WEBRTC_STATS_LOCAL_CANDIDATE // local-candidate - STATS_REMOTE_CANDIDATE StatsType = C.GST_WEBRTC_STATS_REMOTE_CANDIDATE // remote-candidate - STATS_CERTIFICATE StatsType = C.GST_WEBRTC_STATS_CERTIFICATE // certificate -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e StatsType) String() string { - switch e { - case C.GST_WEBRTC_STATS_CODEC: - return "codec" - case C.GST_WEBRTC_STATS_INBOUND_RTP: - return "inbound-rtp" - case C.GST_WEBRTC_STATS_OUTBOUND_RTP: - return "outbound-rtp" - case C.GST_WEBRTC_STATS_REMOTE_INBOUND_RTP: - return "remote-inbound-rtp" - case C.GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP: - return "remote-outbound-rtp" - case C.GST_WEBRTC_STATS_CSRC: - return "csrc" - case C.GST_WEBRTC_STATS_PEER_CONNECTION: - return "peer-connection" - case C.GST_WEBRTC_STATS_DATA_CHANNEL: - return "data-channel" - case C.GST_WEBRTC_STATS_STREAM: - return "stream" - case C.GST_WEBRTC_STATS_TRANSPORT: - return "transport" - case C.GST_WEBRTC_STATS_CANDIDATE_PAIR: - return "candidate-pair" - case C.GST_WEBRTC_STATS_LOCAL_CANDIDATE: - return "local-candidate" - case C.GST_WEBRTC_STATS_REMOTE_CANDIDATE: - return "remote-candidate" - case C.GST_WEBRTC_STATS_CERTIFICATE: - return "certificate" - } - return "unknown" -} diff --git a/gst/gstwebrtc/gst.go.h b/gst/gstwebrtc/gst.go.h deleted file mode 100644 index 913332c..0000000 --- a/gst/gstwebrtc/gst.go.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef __GST_WEBRTC_GO_H__ -#define __GST_WEBRTC_GO_H__ - -#define GST_USE_UNSTABLE_API // webrtc is unstable - -#include - -#endif diff --git a/gst/gstwebrtc/pkg_config.go b/gst/gstwebrtc/pkg_config.go deleted file mode 100644 index c524279..0000000 --- a/gst/gstwebrtc/pkg_config.go +++ /dev/null @@ -1,7 +0,0 @@ -package gstwebrtc - -/* -#cgo pkg-config: gstreamer-webrtc-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall -*/ -import "C" diff --git a/gst/gstwebrtc/rtp_transceiver.go b/gst/gstwebrtc/rtp_transceiver.go deleted file mode 100644 index d0ca16b..0000000 --- a/gst/gstwebrtc/rtp_transceiver.go +++ /dev/null @@ -1,55 +0,0 @@ -package gstwebrtc - -// #include "gst.go.h" -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - - tm := []glib.TypeMarshaler{ - {T: glib.Type(C.GST_TYPE_WEBRTC_RTP_TRANSCEIVER), F: marshalRTPTransceiver}, - } - - glib.RegisterGValueMarshalers(tm) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type RTPTransceiver struct { - *gst.Object -} - -// ToGValue implements glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (tc *RTPTransceiver) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(glib.Type(C.GST_TYPE_WEBRTC_RTP_TRANSCEIVER)) - if err != nil { - return nil, err - } - val.SetInstance(unsafe.Pointer(tc.Instance())) - return val, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapRTPTransceiver(p unsafe.Pointer) *RTPTransceiver { - return &RTPTransceiver{ - Object: gst.FromGstObjectUnsafeNone(p), - } -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalRTPTransceiver(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object((*C.GValue)(p)) - - return wrapRTPTransceiver(unsafe.Pointer(c)), nil -} diff --git a/gst/gstwebrtc/rtp_transceiver_test.go b/gst/gstwebrtc/rtp_transceiver_test.go deleted file mode 100644 index 0fd7ccc..0000000 --- a/gst/gstwebrtc/rtp_transceiver_test.go +++ /dev/null @@ -1,11 +0,0 @@ -package gstwebrtc_test - -import ( - "testing" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestRTPTransceiverGValueMarshal(t *testing.T) { - t.Skip("Not implemented, because we don't have a constructor for RTPTransceiver") -} diff --git a/gst/gstwebrtc/session_description.go b/gst/gstwebrtc/session_description.go deleted file mode 100644 index 5c1c7e8..0000000 --- a/gst/gstwebrtc/session_description.go +++ /dev/null @@ -1,161 +0,0 @@ -package gstwebrtc - -// #include "gst.go.h" -import "C" -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst/gstsdp" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - - tm := []glib.TypeMarshaler{ - {T: glib.Type(C.GST_TYPE_WEBRTC_SESSION_DESCRIPTION), F: marshalSessionDescription}, - } - - glib.RegisterGValueMarshalers(tm) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type SessionDescription struct { - ptr *C.GstWebRTCSessionDescription -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewSessionDescription(t SDPType, sdp *gstsdp.Message) *SessionDescription { - sd := C.gst_webrtc_session_description_new( - C.GstWebRTCSDPType(t), - (*C.GstSDPMessage)(sdp.UnownedCopy().Instance()), - ) - - return wrapSessionDescriptionAndFinalize(sd) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapSessionDescriptionAndFinalize(sdp *C.GstWebRTCSessionDescription) *SessionDescription { - sd := &SessionDescription{ - ptr: sdp, - } - - // this requires that we copy the SDP message before passing it to any transfer-ownership function - runtime.SetFinalizer(sd, func(sd *SessionDescription) { - sd.Free() - }) - - return sd -} - -// W3RTCSessionDescription is used to marshal/unmarshal SessionDescription to/from JSON. -// -// We cannot implement the json.(Un-)Marshaler interfaces on SessionDescription directly because -// the finalizer would run and free the memory, because the value would have to be copied. -// -// it complies with the WebRTC spec for SessionDescription, see https://www.w3.org/TR/webrtc/#rtcsessiondescription-class -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type W3RTCSessionDescription struct { - Type string `json:"type"` - Sdp string `json:"sdp"` -} - -// ToGstSDP converts a W3RTCSessionDescription to a SessionDescription -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (w3SDP *W3RTCSessionDescription) ToGstSDP() (*SessionDescription, error) { - sdp, err := gstsdp.ParseSDPMessage(w3SDP.Sdp) - if err != nil { - return nil, err - } - - return NewSessionDescription(SDPTypeFromString(w3SDP.Type), sdp), nil -} - -// ToW3SDP returns a W3RTCSessionDescription that can be marshaled to JSON -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (sd *SessionDescription) ToW3SDP() W3RTCSessionDescription { - jsonSDP := W3RTCSessionDescription{ - Type: SDPType(sd.ptr._type).String(), - Sdp: sd.SDP().String(), - } - - return jsonSDP -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (sd *SessionDescription) Free() { - C.gst_webrtc_session_description_free(sd.ptr) -} - -// UnownedCopy creates a new copy of the SessionDescription that will not be finalized -// -// this is needed for passing the SessionDescription to other functions that will take ownership of it. -// -// used in the bindings, should not be called by application code -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (sd *SessionDescription) UnownedCopy() *SessionDescription { - newSD := C.gst_webrtc_session_description_copy(sd.ptr) - - return &SessionDescription{ - ptr: newSD, - } -} - -// Copy creates a new copy of the SessionDescription -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (sd *SessionDescription) Copy() *SessionDescription { - return wrapSessionDescriptionAndFinalize(sd.UnownedCopy().ptr) -} - -// ToGValue implements glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (sd *SessionDescription) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(glib.Type(C.GST_TYPE_WEBRTC_SESSION_DESCRIPTION)) - if err != nil { - return nil, err - } - var ptr *C.GstWebRTCSessionDescription - if sd != nil { - ptr = sd.ptr - } - val.SetBoxed(unsafe.Pointer(ptr)) - return val, nil -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func marshalSessionDescription(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_boxed((*C.GValue)(p)) - - // we don't own this memory, so we need to copy it to prevent other code from freeing it - ref := &SessionDescription{ - ptr: (*C.GstWebRTCSessionDescription)(c), - } - - return ref.Copy(), nil -} - -// SDP returns the sdp message from the SessionDescription object -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (sd *SessionDescription) SDP() *gstsdp.Message { - sdp := gstsdp.NewMessageFromUnsafe(unsafe.Pointer(sd.ptr.sdp)) - - runtime.SetFinalizer(sdp, func(sdp *gstsdp.Message) { - runtime.KeepAlive(sd) - }) - - return sdp -} diff --git a/gst/gstwebrtc/session_description_test.go b/gst/gstwebrtc/session_description_test.go deleted file mode 100644 index a817242..0000000 --- a/gst/gstwebrtc/session_description_test.go +++ /dev/null @@ -1,62 +0,0 @@ -package gstwebrtc_test - -import ( - "testing" - - "github.com/go-gst/go-gst/gst/gstsdp" - "github.com/go-gst/go-gst/gst/gstwebrtc" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestSessionDescriptionGValueMarshal(t *testing.T) { - sdp, err := gstsdp.ParseSDPMessage("v=0\nm=audio 4000 RTP/AVP 111\na=rtpmap:111 OPUS/48000/2\nm=video 4000 RTP/AVP 96\na=rtpmap:96 VP8/90000\na=my-sdp-value") - - if err != nil { - t.Fatal(err) - } - - sd := gstwebrtc.NewSessionDescription(gstwebrtc.SDP_TYPE_OFFER, sdp) - - gv, err := sd.ToGValue() - - if err != nil { - t.Fatal(err) - } - - sdI, err := gv.GoValue() - - if err != nil { - t.Fatal(err) - } - - sd, ok := sdI.(*gstwebrtc.SessionDescription) - - if !ok { - t.Fatal("Failed to convert to SessionDescription") - } - - _ = sd -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func TestSessionDescriptionJSONMarshal(t *testing.T) { - sdp, err := gstsdp.ParseSDPMessage("v=0\nm=audio 4000 RTP/AVP 111\na=rtpmap:111 OPUS/48000/2\nm=video 4000 RTP/AVP 96\na=rtpmap:96 VP8/90000\na=my-sdp-value") - - if err != nil { - t.Fatal(err) - } - - sd := gstwebrtc.NewSessionDescription(gstwebrtc.SDP_TYPE_OFFER, sdp) - - w3 := sd.ToW3SDP() - - sd, err = w3.ToGstSDP() - - if err != nil { - t.Fatal(err) - } - - _ = sd -} diff --git a/gst/pbutils/_deprecation.go b/gst/pbutils/_deprecation.go deleted file mode 100644 index e9235ce..0000000 --- a/gst/pbutils/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstpbutils instead -package pbutils diff --git a/gst/pbutils/c_util.go b/gst/pbutils/c_util.go deleted file mode 100644 index 22e6d8b..0000000 --- a/gst/pbutils/c_util.go +++ /dev/null @@ -1,20 +0,0 @@ -package pbutils - -// #include -import "C" -import "errors" - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func initPbUtils() { C.gst_pb_utils_init() } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapGerr(gerr *C.GError) error { - defer C.g_error_free(gerr) - return errors.New(C.GoString(gerr.message)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { return int(b) > 0 } diff --git a/gst/pbutils/discoverer.go b/gst/pbutils/discoverer.go deleted file mode 100644 index 83140f1..0000000 --- a/gst/pbutils/discoverer.go +++ /dev/null @@ -1,630 +0,0 @@ -package pbutils - -/* -#include -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - tm := []glib.TypeMarshaler{ - { - T: glib.Type(C.gst_discoverer_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &Discoverer{toGObject(unsafe.Pointer(c))}, nil - }, - }, - { - T: glib.Type(C.gst_discoverer_info_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &DiscovererInfo{toGObject(unsafe.Pointer(c))}, nil - }, - }, - { - T: glib.Type(C.gst_discoverer_stream_info_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &DiscovererStreamInfo{toGObject(unsafe.Pointer(c))}, nil - }, - }, - { - T: glib.Type(C.gst_discoverer_audio_info_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &DiscovererAudioInfo{&DiscovererStreamInfo{toGObject(unsafe.Pointer(c))}}, nil - }, - }, - { - T: glib.Type(C.gst_discoverer_video_info_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &DiscovererVideoInfo{&DiscovererStreamInfo{toGObject(unsafe.Pointer(c))}}, nil - }, - }, - { - T: glib.Type(C.gst_discoverer_subtitle_info_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &DiscovererSubtitleInfo{&DiscovererStreamInfo{toGObject(unsafe.Pointer(c))}}, nil - }, - }, - { - T: glib.Type(C.gst_discoverer_container_info_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_object(ptrToGVal(p)) - return &DiscovererContainerInfo{&DiscovererStreamInfo{toGObject(unsafe.Pointer(c))}}, nil - }, - }, - } - glib.RegisterGValueMarshalers(tm) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ptrToGVal(p unsafe.Pointer) *C.GValue { - return (*C.GValue)(p) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func toGObject(o unsafe.Pointer) *glib.Object { return &glib.Object{GObject: glib.ToGObject(o)} } - -// Discoverer represents a GstDiscoverer -type Discoverer struct{ *glib.Object } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapDiscovererFull(d *C.GstDiscoverer) *Discoverer { - return &Discoverer{glib.TransferFull(unsafe.Pointer(d))} -} - -// NewDiscoverer creates a new Discoverer with the provided timeout. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewDiscoverer(timeout gst.ClockTime) (*Discoverer, error) { - initPbUtils() - var gerr *C.GError - ret := C.gst_discoverer_new(C.GstClockTime(timeout), &gerr) - if gerr != nil { - return nil, wrapGerr(gerr) - } - return wrapDiscovererFull(ret), nil -} - -// Instance returns the underlying GstDiscoverer instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Discoverer) Instance() *C.GstDiscoverer { - return (*C.GstDiscoverer)(unsafe.Pointer(d.GObject)) -} - -// DiscoverURI synchronously discovers the given uri. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *Discoverer) DiscoverURI(uri string) (*DiscovererInfo, error) { - curi := C.CString(uri) - defer C.free(unsafe.Pointer(curi)) - var err *C.GError - info := C.gst_discoverer_discover_uri(d.Instance(), (*C.gchar)(unsafe.Pointer(curi)), &err) - if err != nil { - return nil, wrapGerr(err) - } - return wrapDiscovererInfoFull(info), nil -} - -// DiscovererInfo represents a GstDiscovererInfo -type DiscovererInfo struct{ *glib.Object } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapDiscovererInfoFull(d *C.GstDiscovererInfo) *DiscovererInfo { - return &DiscovererInfo{glib.TransferFull(unsafe.Pointer(d))} -} - -// Instance returns the underlying GstDiscovererInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) Instance() *C.GstDiscovererInfo { - return (*C.GstDiscovererInfo)(unsafe.Pointer(d.GObject)) -} - -// Copy creates a copy of this instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) Copy() *DiscovererInfo { - return wrapDiscovererInfoFull(C.gst_discoverer_info_copy(d.Instance())) -} - -// GetAudioStreams finds all the DiscovererAudioInfo contained in info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetAudioStreams() []*DiscovererAudioInfo { - gList := C.gst_discoverer_info_get_audio_streams(d.Instance()) - if gList == nil { - return nil - } - return glistToAudioInfoSlice(gList) -} - -// GetContainerStreams finds all the DiscovererContainerInfo contained in info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetContainerStreams() []*DiscovererContainerInfo { - gList := C.gst_discoverer_info_get_container_streams(d.Instance()) - if gList == nil { - return nil - } - return glistToContainerInfoSlice(gList) -} - -// GetDuration returns the duration of the stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetDuration() gst.ClockTime { - dur := C.gst_discoverer_info_get_duration(d.Instance()) - return gst.ClockTime(uint64(dur)) -} - -// GetLive returns whether this is a live stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetLive() bool { - return gobool(C.gst_discoverer_info_get_live(d.Instance())) -} - -// GetResult returns the result type. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetResult() DiscovererResult { - return DiscovererResult(C.gst_discoverer_info_get_result(d.Instance())) -} - -// GetSeekable returns whether the stream is seekable. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetSeekable() bool { - return gobool(C.gst_discoverer_info_get_seekable(d.Instance())) -} - -// GetStreamInfo returns the topology of the URI. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetStreamInfo() *DiscovererStreamInfo { - info := C.gst_discoverer_info_get_stream_info(d.Instance()) - if info == nil { - return nil - } - return wrapDiscovererStreamInfo(info) -} - -// GetStreamList returns the list of all streams contained in the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetStreamList() []*DiscovererStreamInfo { - gList := C.gst_discoverer_info_get_stream_list(d.Instance()) - if gList == nil { - return nil - } - return glistToStreamInfoSlice(gList) -} - -// GetSubtitleStreams returns the info about subtitle streams. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetSubtitleStreams() []*DiscovererSubtitleInfo { - gList := C.gst_discoverer_info_get_subtitle_streams(d.Instance()) - if gList == nil { - return nil - } - return glistToSubtitleInfoSlice(gList) -} - -// GetTags retrieves the tag list for the URI stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetTags() *gst.TagList { - tagList := C.gst_discoverer_info_get_tags(d.Instance()) - if tagList == nil { - return nil - } - return gst.FromGstTagListUnsafeNone(unsafe.Pointer(tagList)) -} - -// GetTOC returns the TOC for the URI stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetTOC() *gst.TOC { - toc := C.gst_discoverer_info_get_toc(d.Instance()) - if toc == nil { - return nil - } - return gst.FromGstTOCUnsafeNone(unsafe.Pointer(toc)) -} - -// GetURI returns the URI for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetURI() string { - return C.GoString(C.gst_discoverer_info_get_uri(d.Instance())) -} - -// GetVideoStreams finds all the DiscovererVideoInfo contained in info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererInfo) GetVideoStreams() []*DiscovererVideoInfo { - gList := C.gst_discoverer_info_get_video_streams(d.Instance()) - if gList == nil { - return nil - } - return glistToVideoInfoSlice(gList) -} - -// DiscovererStreamInfo is the base structure for information concerning a media stream. -type DiscovererStreamInfo struct{ *glib.Object } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapDiscovererStreamInfo(d *C.GstDiscovererStreamInfo) *DiscovererStreamInfo { - return &DiscovererStreamInfo{toGObject(unsafe.Pointer(d))} -} - -// Instance returns the underlying GstDiscovererStreamInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererStreamInfo) Instance() *C.GstDiscovererStreamInfo { - return (*C.GstDiscovererStreamInfo)(unsafe.Pointer(d.GObject)) -} - -// GetCaps returns the caps from the stream info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererStreamInfo) GetCaps() *gst.Caps { - caps := C.gst_discoverer_stream_info_get_caps(d.Instance()) - if caps == nil { - return nil - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// GetStreamID returns the stream ID of this stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererStreamInfo) GetStreamID() string { - return C.GoString(C.gst_discoverer_stream_info_get_stream_id(d.Instance())) -} - -// GetStreamTypeNick returns a human readable name for the stream type -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererStreamInfo) GetStreamTypeNick() string { - return C.GoString(C.gst_discoverer_stream_info_get_stream_type_nick(d.Instance())) -} - -// GetTags gets the tags contained in this stream -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererStreamInfo) GetTags() *gst.TagList { - tagList := C.gst_discoverer_stream_info_get_tags(d.Instance()) - if tagList == nil { - return nil - } - return gst.FromGstTagListUnsafeNone(unsafe.Pointer(tagList)) -} - -// GetTOC gets the TOC contained in this stream -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererStreamInfo) GetTOC() *gst.TOC { - toc := C.gst_discoverer_stream_info_get_toc(d.Instance()) - if toc == nil { - return nil - } - return gst.FromGstTOCUnsafeNone(unsafe.Pointer(toc)) -} - -// DiscovererAudioInfo contains info specific to audio streams. -type DiscovererAudioInfo struct{ *DiscovererStreamInfo } - -// Instance returns the underlying GstDiscovererAudioInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) Instance() *C.GstDiscovererAudioInfo { - return (*C.GstDiscovererAudioInfo)(unsafe.Pointer(d.GObject)) -} - -// GetBitate returns the bitrate for the audio stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetBitate() uint { - return uint(C.gst_discoverer_audio_info_get_bitrate(d.Instance())) -} - -// GetChannelMask returns the channel mask for the audio stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetChannelMask() uint64 { - return uint64(C.gst_discoverer_audio_info_get_channel_mask(d.Instance())) -} - -// GetChannels returns the number of channels in the stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetChannels() uint { - return uint(C.gst_discoverer_audio_info_get_channels(d.Instance())) -} - -// GetDepth returns the number of bits used per sample in each channel. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetDepth() uint { - return uint(C.gst_discoverer_audio_info_get_depth(d.Instance())) -} - -// GetLanguage returns the language of the stream, or an empty string if unknown. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetLanguage() string { - lang := C.gst_discoverer_audio_info_get_language(d.Instance()) - if lang == nil { - return "" - } - return C.GoString(lang) -} - -// GetMaxBitrate returns the maximum bitrate of the stream in bits/second. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetMaxBitrate() uint { - return uint(C.gst_discoverer_audio_info_get_max_bitrate(d.Instance())) -} - -// GetSampleRate returns the sample rate of the stream in Hertz. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererAudioInfo) GetSampleRate() uint { - return uint(C.gst_discoverer_audio_info_get_sample_rate(d.Instance())) -} - -// DiscovererVideoInfo contains info specific to video streams -type DiscovererVideoInfo struct{ *DiscovererStreamInfo } - -// Instance returns the underlying GstDiscovererVideoInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) Instance() *C.GstDiscovererVideoInfo { - return (*C.GstDiscovererVideoInfo)(unsafe.Pointer(d.GObject)) -} - -// GetBitrate returns the average or nominal bitrate of the video stream in bits/second. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetBitrate() uint { - return uint(C.gst_discoverer_video_info_get_bitrate(d.Instance())) -} - -// GetDepth returns the depth in bits of the video stream. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetDepth() uint { - return uint(C.gst_discoverer_video_info_get_depth(d.Instance())) -} - -// GetFramerateDenom returns the framerate of the video stream (denominator). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetFramerateDenom() uint { - return uint(C.gst_discoverer_video_info_get_framerate_denom(d.Instance())) -} - -// GetFramerateNum returns the framerate of the video stream (numerator). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetFramerateNum() uint { - return uint(C.gst_discoverer_video_info_get_framerate_num(d.Instance())) -} - -// GetHeight returns the height of the video stream in pixels. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetHeight() uint { - return uint(C.gst_discoverer_video_info_get_height(d.Instance())) -} - -// GetMaxBitrate returns the maximum bitrate of the video stream in bits/second. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetMaxBitrate() uint { - return uint(C.gst_discoverer_video_info_get_max_bitrate(d.Instance())) -} - -// GetPARDenom returns the Pixel Aspect Ratio (PAR) of the video stream (denominator). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetPARDenom() uint { - return uint(C.gst_discoverer_video_info_get_par_denom(d.Instance())) -} - -// GetPARNum returns the Pixel Aspect Ratio (PAR) of the video stream (numerator). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetPARNum() uint { - return uint(C.gst_discoverer_video_info_get_par_num(d.Instance())) -} - -// GetWidth returns the width of the video stream in pixels. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) GetWidth() uint { - return uint(C.gst_discoverer_video_info_get_width(d.Instance())) -} - -// IsImage returns TRUE if the video stream corresponds to an image (i.e. only contains one frame). -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) IsImage() bool { - return gobool(C.gst_discoverer_video_info_is_image(d.Instance())) -} - -// IsInterlaced returns TRUE if the stream is interlaced. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererVideoInfo) IsInterlaced() bool { - return gobool(C.gst_discoverer_video_info_is_interlaced(d.Instance())) -} - -// DiscovererContainerInfo specific to container streams. -type DiscovererContainerInfo struct{ *DiscovererStreamInfo } - -// Instance returns the underlying GstDiscovererContainerInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererContainerInfo) Instance() *C.GstDiscovererContainerInfo { - return (*C.GstDiscovererContainerInfo)(unsafe.Pointer(d.GObject)) -} - -// GetStreams returns the list of streams inside this container. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererContainerInfo) GetStreams() []*DiscovererStreamInfo { - streams := C.gst_discoverer_container_info_get_streams(d.Instance()) - if streams == nil { - return nil - } - return glistToStreamInfoSlice(streams) -} - -// DiscovererSubtitleInfo contains info specific to subtitle streams -type DiscovererSubtitleInfo struct{ *DiscovererStreamInfo } - -// Instance returns the underlying GstDiscovererSubtitleInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererSubtitleInfo) Instance() *C.GstDiscovererSubtitleInfo { - return (*C.GstDiscovererSubtitleInfo)(unsafe.Pointer(d.GObject)) -} - -// GetLanguage returns the language of the subtitles. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (d *DiscovererSubtitleInfo) GetLanguage() string { - lang := C.gst_discoverer_subtitle_info_get_language(d.Instance()) - if lang == nil { - return "" - } - return C.GoString(lang) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToStreamInfoSlice(glist *C.GList) []*DiscovererStreamInfo { - defer C.gst_discoverer_stream_info_list_free(glist) - l := C.g_list_length(glist) - out := make([]*DiscovererStreamInfo, int(l)) - for i := 0; i < int(l); i++ { - data := C.g_list_nth_data(glist, C.guint(i)) - if data == nil { - return out // safety - } - out[i] = &DiscovererStreamInfo{glib.TransferFull(unsafe.Pointer(data))} - } - return out -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToAudioInfoSlice(glist *C.GList) []*DiscovererAudioInfo { - defer C.gst_discoverer_stream_info_list_free(glist) - l := C.g_list_length(glist) - out := make([]*DiscovererAudioInfo, int(l)) - for i := 0; i < int(l); i++ { - data := C.g_list_nth_data(glist, C.guint(i)) - if data == nil { - return out // safety - } - out[i] = &DiscovererAudioInfo{&DiscovererStreamInfo{glib.TransferFull(unsafe.Pointer(data))}} - } - return out -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToVideoInfoSlice(glist *C.GList) []*DiscovererVideoInfo { - defer C.gst_discoverer_stream_info_list_free(glist) - l := C.g_list_length(glist) - out := make([]*DiscovererVideoInfo, int(l)) - for i := 0; i < int(l); i++ { - data := C.g_list_nth_data(glist, C.guint(i)) - if data == nil { - return out // safety - } - out[i] = &DiscovererVideoInfo{&DiscovererStreamInfo{glib.TransferFull(unsafe.Pointer(data))}} - } - return out -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToContainerInfoSlice(glist *C.GList) []*DiscovererContainerInfo { - defer C.gst_discoverer_stream_info_list_free(glist) - l := C.g_list_length(glist) - out := make([]*DiscovererContainerInfo, int(l)) - for i := 0; i < int(l); i++ { - data := C.g_list_nth_data(glist, C.guint(i)) - if data == nil { - return out // safety - } - out[i] = &DiscovererContainerInfo{&DiscovererStreamInfo{glib.TransferFull(unsafe.Pointer(data))}} - } - return out -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func glistToSubtitleInfoSlice(glist *C.GList) []*DiscovererSubtitleInfo { - defer C.gst_discoverer_stream_info_list_free(glist) - l := C.g_list_length(glist) - out := make([]*DiscovererSubtitleInfo, int(l)) - for i := 0; i < int(l); i++ { - data := C.g_list_nth_data(glist, C.guint(i)) - if data == nil { - return out // safety - } - out[i] = &DiscovererSubtitleInfo{&DiscovererStreamInfo{glib.TransferFull(unsafe.Pointer(data))}} - } - return out -} - -// DiscovererResult casts a GstDiscovererResult -type DiscovererResult int - -// Type castings -const ( - DiscovererResultOK DiscovererResult = C.GST_DISCOVERER_OK // (0) – The discovery was successful - DiscovererResultURIInvalid DiscovererResult = C.GST_DISCOVERER_URI_INVALID // (1) – the URI is invalid - DiscovererResultError DiscovererResult = C.GST_DISCOVERER_ERROR // (2) – an error happened and the GError is set - DiscovererResultTimeout DiscovererResult = C.GST_DISCOVERER_TIMEOUT // (3) – the discovery timed-out - DiscovererResultBusy DiscovererResult = C.GST_DISCOVERER_BUSY // (4) – the discoverer was already discovering a file - DiscovererResultMissingPlugins DiscovererResult = C.GST_DISCOVERER_MISSING_PLUGINS // (5) – Some plugins are missing for full discovery -) - -// DiscovererSerializeFlags casts GstDiscovererSerializeFlags. -type DiscovererSerializeFlags int - -// Type castings -const ( - DiscovererSerializeBasic DiscovererSerializeFlags = C.GST_DISCOVERER_SERIALIZE_BASIC // (0) – Serialize only basic information, excluding caps, tags and miscellaneous information - DiscovererSerializeCaps DiscovererSerializeFlags = C.GST_DISCOVERER_SERIALIZE_CAPS // (1) – Serialize the caps for each stream - DiscovererSerializeTags DiscovererSerializeFlags = C.GST_DISCOVERER_SERIALIZE_TAGS // (2) – Serialize the tags for each stream - DiscovererSerializeMisc DiscovererSerializeFlags = C.GST_DISCOVERER_SERIALIZE_MISC // (4) – Serialize miscellaneous information for each stream - DiscovererSerializeAll DiscovererSerializeFlags = C.GST_DISCOVERER_SERIALIZE_ALL // (7) – Serialize all the available info, including caps, tags and miscellaneous -) diff --git a/gst/pbutils/doc.go b/gst/pbutils/doc.go deleted file mode 100644 index 1d5e95c..0000000 --- a/gst/pbutils/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package pbutils contains bindings for libgstpbutils. -package pbutils diff --git a/gst/pbutils/pkg_config.go b/gst/pbutils/pkg_config.go deleted file mode 100644 index 19bc3b6..0000000 --- a/gst/pbutils/pkg_config.go +++ /dev/null @@ -1,7 +0,0 @@ -package pbutils - -/* -#cgo pkg-config: gstreamer-plugins-base-1.0 gstreamer-pbutils-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -*/ -import "C" diff --git a/gst/pkg_config.go b/gst/pkg_config.go deleted file mode 100644 index 4ffb2d6..0000000 --- a/gst/pkg_config.go +++ /dev/null @@ -1,8 +0,0 @@ -package gst - -/* -#cgo pkg-config: gstreamer-1.0 gstreamer-controller-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -Wno-format-security -g -Wall -Wno-unused-variable -#cgo LDFLAGS: -lm -*/ -import "C" diff --git a/gst/rtp/_deprecation.go b/gst/rtp/_deprecation.go deleted file mode 100644 index 542ca57..0000000 --- a/gst/rtp/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstrtp instead -package rtp diff --git a/gst/rtp/c_util.go b/gst/rtp/c_util.go deleted file mode 100644 index b06bdd7..0000000 --- a/gst/rtp/c_util.go +++ /dev/null @@ -1,21 +0,0 @@ -package rtp - -/* -#include "gst.go.h" -*/ -import "C" - -// gboolean converts a go bool to a C.gboolean. -// func gboolean(b bool) C.gboolean { -// if b { -// return C.gboolean(1) -// } -// return C.gboolean(0) -// } - -// gobool provides an easy type conversion between C.gboolean and a go bool. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { - return int(b) > 0 -} diff --git a/gst/rtp/doc.go b/gst/rtp/doc.go deleted file mode 100644 index 937bcc6..0000000 --- a/gst/rtp/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package rtp contains bindings for the GStreamer RTP library. -package rtp diff --git a/gst/rtp/gst.go.h b/gst/rtp/gst.go.h deleted file mode 100644 index 18478c8..0000000 --- a/gst/rtp/gst.go.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __GST_RTP_GO_H__ -#define __GST_RTP_GO_H__ - -#include - -#endif \ No newline at end of file diff --git a/gst/rtp/gst_rtp_meta.go b/gst/rtp/gst_rtp_meta.go deleted file mode 100644 index dd6cb98..0000000 --- a/gst/rtp/gst_rtp_meta.go +++ /dev/null @@ -1,111 +0,0 @@ -package rtp - -/* -#include "gst.go.h" -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// MaxCSRCCount is the maximum number of elements that can be added to a CSRC. -const MaxCSRCCount uint = C.GST_RTP_SOURCE_META_MAX_CSRC_COUNT // 15 - -// SourceMeta is a wrapper around GstRTPSourceMeta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type SourceMeta struct { - ptr *C.GstRTPSourceMeta -} - -// SourceMetaAPIType returns the GType for GstRTPSourceMeta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SourceMetaAPIType() glib.Type { - return glib.Type(C.gst_rtp_source_meta_api_get_type()) -} - -// SourceMetaInfo returns the MetaInfo for GstRTPSourceMeta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func SourceMetaInfo() *gst.MetaInfo { - return gst.FromGstMetaInfoUnsafe(unsafe.Pointer(C.gst_rtp_source_meta_get_info())) -} - -// AppendCSRC appends the given CSRC to the list of contributing sources in meta. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *SourceMeta) AppendCSRC(csrc []uint32) bool { - return gobool(C.gst_rtp_source_meta_append_csrc( - s.ptr, - (*C.guint32)(unsafe.Pointer(&csrc[0])), - C.guint(len(csrc)), - )) -} - -// GetSourceMeta retrieves the SourceMeta from the given buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetSourceMeta(buffer *gst.Buffer) *SourceMeta { - meta := C.gst_buffer_get_rtp_source_meta((*C.GstBuffer)(unsafe.Pointer(buffer.Instance()))) - if meta == nil { - return nil - } - return &SourceMeta{ptr: meta} -} - -// AddSourceMeta attaches the given RTP source information to the buffer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func AddSourceMeta(buffer *gst.Buffer, ssrc *uint32, csrc []uint32) *SourceMeta { - var meta *C.GstRTPSourceMeta - if ssrc == nil && csrc == nil { - meta = C.gst_buffer_add_rtp_source_meta( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - nil, nil, 0, - ) - } else if ssrc == nil { - meta = C.gst_buffer_add_rtp_source_meta( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - nil, - (*C.guint32)(unsafe.Pointer(&csrc[0])), C.guint(len(csrc)), - ) - } else if csrc == nil { - meta = C.gst_buffer_add_rtp_source_meta( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - (*C.guint32)(unsafe.Pointer(ssrc)), - nil, 0, - ) - } else { - meta = C.gst_buffer_add_rtp_source_meta( - (*C.GstBuffer)(unsafe.Pointer(buffer.Instance())), - (*C.guint32)(unsafe.Pointer(ssrc)), - (*C.guint32)(unsafe.Pointer(&csrc[0])), C.guint(len(csrc)), - ) - } - if meta == nil { - return nil - } - return &SourceMeta{ptr: meta} -} - -// GetSourceCount returns the total number of RTP sources found in this meta, both SSRC and CSRC. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *SourceMeta) GetSourceCount() uint { - return uint(C.gst_rtp_source_meta_get_source_count(s.ptr)) -} - -// SetSSRC sets the SSRC on meta. If ssrc is nil, the SSRC of meta will be unset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (s *SourceMeta) SetSSRC(ssrc *uint32) bool { - if ssrc == nil { - return gobool(C.gst_rtp_source_meta_set_ssrc(s.ptr, nil)) - } - return gobool(C.gst_rtp_source_meta_set_ssrc(s.ptr, (*C.guint32)(unsafe.Pointer(ssrc)))) -} diff --git a/gst/rtp/pkg_config.go b/gst/rtp/pkg_config.go deleted file mode 100644 index 75e8488..0000000 --- a/gst/rtp/pkg_config.go +++ /dev/null @@ -1,8 +0,0 @@ -package rtp - -/* -#cgo pkg-config: gstreamer-plugins-base-1.0 -#cgo LDFLAGS: -lgstrtp-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall -*/ -import "C" diff --git a/gst/staticcheck.conf b/gst/staticcheck.conf deleted file mode 100644 index 6b01e36..0000000 --- a/gst/staticcheck.conf +++ /dev/null @@ -1,3 +0,0 @@ -checks=[ -"-all", # we don't want to lint this package, as it will be phased out -] diff --git a/gst/trace.go b/gst/trace.go deleted file mode 100644 index a4d7bdb..0000000 --- a/gst/trace.go +++ /dev/null @@ -1,15 +0,0 @@ -package gst - -import "runtime/pprof" - -var padprobesProfile *pprof.Profile - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - padprobes := "go-gst-active-pad-probes" - padprobesProfile = pprof.Lookup(padprobes) - if padprobesProfile == nil { - padprobesProfile = pprof.NewProfile(padprobes) - } -} diff --git a/gst/video/_deprecation.go b/gst/video/_deprecation.go deleted file mode 100644 index ea5b317..0000000 --- a/gst/video/_deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: use the autogenerated pkg/gstvideo instead -package video diff --git a/gst/video/c_util.go b/gst/video/c_util.go deleted file mode 100644 index a2805ae..0000000 --- a/gst/video/c_util.go +++ /dev/null @@ -1,72 +0,0 @@ -package video - -/* -#include -*/ -import "C" - -import ( - "errors" - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapGerr(gerr *C.GError) error { - defer C.g_error_free(gerr) - return errors.New(C.GoString(gerr.message)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreCaps(caps *gst.Caps) *C.GstCaps { - return (*C.GstCaps)(unsafe.Pointer(caps.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreCapsFeatures(feats *gst.CapsFeatures) *C.GstCapsFeatures { - return (*C.GstCapsFeatures)(unsafe.Pointer(feats.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreElement(elem *gst.Element) *C.GstElement { - return (*C.GstElement)(unsafe.Pointer(elem.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreEvent(event *gst.Event) *C.GstEvent { - return (*C.GstEvent)(unsafe.Pointer(event.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreMessage(msg *gst.Message) *C.GstMessage { - return (*C.GstMessage)(unsafe.Pointer(msg.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreQuery(query *gst.Query) *C.GstQuery { - return (*C.GstQuery)(unsafe.Pointer(query.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreSample(sample *gst.Sample) *C.GstSample { - return (*C.GstSample)(unsafe.Pointer(sample.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func fromCoreStructure(structure *gst.Structure) *C.GstStructure { - return (*C.GstStructure)(unsafe.Pointer(structure.Instance())) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func gobool(b C.gboolean) bool { return int(b) > 0 } diff --git a/gst/video/cgo_exports.go b/gst/video/cgo_exports.go deleted file mode 100644 index 0dd50ab..0000000 --- a/gst/video/cgo_exports.go +++ /dev/null @@ -1,43 +0,0 @@ -package video - -/* -#include -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" - gopointer "github.com/go-gst/go-pointer" -) - -//export goVideoGDestroyNotifyFunc -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goVideoGDestroyNotifyFunc(ptr C.gpointer) { - gopointer.Unref(unsafe.Pointer(ptr)) -} - -//export goVideoConvertSampleCb -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func goVideoConvertSampleCb(gsample *C.GstSample, gerr *C.GError, userData C.gpointer) { - var sample *gst.Sample - var err error - if gerr != nil { - err = wrapGerr(gerr) - } - if gsample != nil { - sample = gst.FromGstSampleUnsafeFull(unsafe.Pointer(gsample)) - } - iface := gopointer.Restore(unsafe.Pointer(userData)) - if iface == nil { - return - } - cb, ok := iface.(ConvertSampleCallback) - if !ok { - return - } - cb(sample, err) -} diff --git a/gst/video/convert_frame.go b/gst/video/convert_frame.go deleted file mode 100644 index cbcc250..0000000 --- a/gst/video/convert_frame.go +++ /dev/null @@ -1,76 +0,0 @@ -package video - -/* -#include - -extern void goVideoGDestroyNotifyFunc (gpointer user_data); -extern void goVideoConvertSampleCb (GstSample * sample, GError * gerr, gpointer user_data); - -void cgoVideoGDestroyNotifyFunc (gpointer user_data) -{ - goVideoGDestroyNotifyFunc(user_data); -} - -void cgoVideoConvertSampleCb (GstSample * sample, GError * gerr, gpointer user_data) -{ - goVideoConvertSampleCb(sample, gerr, user_data); -} -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" - gopointer "github.com/go-gst/go-pointer" -) - -// ConvertSampleCallback represents a callback from a video convert opereration. -// It contains the converted sample or any error that occurred. -type ConvertSampleCallback func(*gst.Sample, error) - -// ConvertSample converts a raw video buffer into the specified output caps. -// -// The output caps can be any raw video formats or any image formats (jpeg, png, ...). -// -// The width, height and pixel-aspect-ratio can also be specified in the output caps. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ConvertSample(sample *gst.Sample, toCaps *gst.Caps, timeout gst.ClockTime) (*gst.Sample, error) { - var gerr *C.GError - ret := C.gst_video_convert_sample( - fromCoreSample(sample), - fromCoreCaps(toCaps), - C.GstClockTime(timeout), - &gerr, - ) - if gerr != nil { - return nil, wrapGerr(gerr) - } - if ret == nil { - return nil, nil - } - return gst.FromGstSampleUnsafeFull(unsafe.Pointer(ret)), nil -} - -// ConvertSampleAsync converts a raw video buffer into the specified output caps. -// -// The output caps can be any raw video formats or any image formats (jpeg, png, ...). -// -// The width, height and pixel-aspect-ratio can also be specified in the output caps. -// -// The callback will be called after conversion, when an error occurred or if conversion -// didn't finish after timeout. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ConvertSampleAsync(sample *gst.Sample, toCaps *gst.Caps, timeout gst.ClockTime, cb ConvertSampleCallback) { - ptr := gopointer.Save(cb) - C.gst_video_convert_sample_async( - fromCoreSample(sample), - fromCoreCaps(toCaps), - C.GstClockTime(timeout), - C.GstVideoConvertSampleCallback(C.cgoVideoConvertSampleCb), - (C.gpointer)(unsafe.Pointer(ptr)), - C.GDestroyNotify(C.cgoVideoGDestroyNotifyFunc), - ) -} diff --git a/gst/video/doc.go b/gst/video/doc.go deleted file mode 100644 index 3e276a2..0000000 --- a/gst/video/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package video contains bindings for the gstvideo C API. -package video diff --git a/gst/video/gst_color_balance.go b/gst/video/gst_color_balance.go deleted file mode 100644 index 1b1b78f..0000000 --- a/gst/video/gst_color_balance.go +++ /dev/null @@ -1,145 +0,0 @@ -package video - -/* -#include -#include -#include - -GstColorBalance * toGstColorBalance(GstElement * element) -{ - return GST_COLOR_BALANCE(element); -} -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// ColorBalanceType is an enumeration indicating whether an element implements color -// balancing operations in software or in dedicated hardware. In general, dedicated -// hardware implementations (such as those provided by xvimagesink) are preferred. -type ColorBalanceType int - -// Type castings -const ( - ColorBalanceHardware ColorBalanceType = C.GST_COLOR_BALANCE_HARDWARE // (0) – Color balance is implemented with dedicated hardware. - ColorBalanceSoftware ColorBalanceType = C.GST_COLOR_BALANCE_SOFTWARE // (1) – Color balance is implemented via software processing. -) - -// ColorBalanceChannel represents parameters for modifying the color balance implemented by -// an element providing the GstColorBalance interface. For example, Hue or Saturation. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ColorBalanceChannel struct { - // A string containing a descriptive name for this channel - Label string - // The minimum valid value for this channel. - MinValue int - // The maximum valid value for this channel. - MaxValue int -} - -// ColorBalance is an interface implemented by elements which can perform some color balance -// operation on video frames they process. For example, modifying the brightness, contrast, -// hue or saturation. -// -// Example elements are 'xvimagesink' and 'colorbalance' -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ColorBalance interface { - // Get the ColorBalanceType of this implementation. - GetBalanceType() ColorBalanceType - // Retrieve the current value of the indicated channel, between MinValue and MaxValue. - GetValue(*ColorBalanceChannel) int - // Retrieve a list of the available channels. - ListChannels() []*ColorBalanceChannel - // Sets the current value of the channel to the passed value, which must be between MinValue - // and MaxValue. - SetValue(*ColorBalanceChannel, int) -} - -// ColorBalanceFromElement checks if the given element implements the ColorBalance interface, -// and if so, returns a usable interface. This currently only supports elements created from the -// C runtime. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ColorBalanceFromElement(element *gst.Element) ColorBalance { - if C.toGstColorBalance(fromCoreElement(element)) == nil { - return nil - } - return &gstColorBalance{fromCoreElement(element)} -} - -// gstColorBalance implements a ColorBalance interface backed by an element -// from the C runtime. -type gstColorBalance struct{ elem *C.GstElement } - -// Instance returns the C GstColorBalance interface. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *gstColorBalance) Instance() *C.GstColorBalance { - return C.toGstColorBalance(c.elem) -} - -// GetBalanceType gets the ColorBalanceType of this implementation. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *gstColorBalance) GetBalanceType() ColorBalanceType { - return ColorBalanceType(C.gst_color_balance_get_balance_type(c.Instance())) -} - -// GetValue retrieve the current value of the indicated channel, between MinValue and MaxValue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *gstColorBalance) GetValue(channel *ColorBalanceChannel) int { - cLabel := C.CString(channel.Label) - defer C.free(unsafe.Pointer(cLabel)) - gcbc := &C.GstColorBalanceChannel{ - label: (*C.gchar)(cLabel), - min_value: C.gint(channel.MinValue), - max_value: C.gint(channel.MaxValue), - } - defer C.free(unsafe.Pointer(gcbc)) - return int(C.gst_color_balance_get_value(c.Instance(), gcbc)) -} - -// ListChannels retrieves a list of the available channels. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *gstColorBalance) ListChannels() []*ColorBalanceChannel { - gList := C.gst_color_balance_list_channels(c.Instance()) - if gList == nil { - return nil - } - wrapped := glib.WrapList(unsafe.Pointer(gList)) - defer wrapped.Free() - out := make([]*ColorBalanceChannel, 0) - wrapped.Foreach(func(item interface{}) { - channel := (*C.GstColorBalanceChannel)(item.(unsafe.Pointer)) - out = append(out, &ColorBalanceChannel{ - Label: C.GoString(channel.label), - MinValue: int(channel.min_value), - MaxValue: int(channel.max_value), - }) - }) - return out -} - -// SetValue sets the current value of the channel to the passed value, which must be between MinValue -// and MaxValue. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *gstColorBalance) SetValue(channel *ColorBalanceChannel, value int) { - cLabel := C.CString(channel.Label) - defer C.free(unsafe.Pointer(cLabel)) - gcbc := &C.GstColorBalanceChannel{ - label: (*C.gchar)(cLabel), - min_value: C.gint(channel.MinValue), - max_value: C.gint(channel.MaxValue), - } - defer C.free(unsafe.Pointer(gcbc)) - C.gst_color_balance_set_value(c.Instance(), gcbc, C.gint(value)) -} diff --git a/gst/video/gst_meta.go b/gst/video/gst_meta.go deleted file mode 100644 index 8bed6a3..0000000 --- a/gst/video/gst_meta.go +++ /dev/null @@ -1,63 +0,0 @@ -package video - -/* -#include -#include -*/ -import "C" - -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// CropMetaInfo contains extra buffer metadata describing image cropping. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type CropMetaInfo struct { - ptr *C.GstVideoCropMeta -} - -// GetCropMetaInfo returns the default CropMetaInfo. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GetCropMetaInfo() *CropMetaInfo { - meta := C.gst_video_crop_meta_get_info() - return &CropMetaInfo{(*C.GstVideoCropMeta)(unsafe.Pointer(meta))} -} - -// Instance returns the underlying C GstVideoCropMeta instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CropMetaInfo) Instance() *C.GstVideoCropMeta { - return c.ptr -} - -// Meta returns the parent Meta instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CropMetaInfo) Meta() *gst.Meta { - meta := c.Instance().meta - return gst.FromGstMetaUnsafe(unsafe.Pointer(&meta)) -} - -// X returns the horizontal offset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CropMetaInfo) X() uint { return uint(c.Instance().x) } - -// Y returns the vertical offset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CropMetaInfo) Y() uint { return uint(c.Instance().y) } - -// Width returns the cropped width. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CropMetaInfo) Width() uint { return uint(c.Instance().width) } - -// Height returns the cropped height. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *CropMetaInfo) Height() uint { return uint(c.Instance().height) } diff --git a/gst/video/gst_navigation.go b/gst/video/gst_navigation.go deleted file mode 100644 index 30ce0f4..0000000 --- a/gst/video/gst_navigation.go +++ /dev/null @@ -1,314 +0,0 @@ -package video - -/* -#include -#include - -GstNavigation * toGstNavigation (GstElement * element) -{ - return GST_NAVIGATION(element); -} -*/ -import "C" -import ( - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// NavigationCommand is a set of commands that may be issued to an element providing the -// Navigation interface. The available commands can be queried via the QueryNewCommands -// query. -type NavigationCommand int - -// Type castings -const ( - NavigationCommandInvalid NavigationCommand = C.GST_NAVIGATION_COMMAND_INVALID // (0) – An invalid command entry - NavigationCommandMenu1 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU1 // (1) – Execute navigation menu command 1. For DVD, this enters the DVD root menu, or exits back to the title from the menu. - NavigationCommandMenu2 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU2 // (2) – Execute navigation menu command 2. For DVD, this jumps to the DVD title menu. - NavigationCommandMenu3 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU3 // (3) – Execute navigation menu command 3. For DVD, this jumps into the DVD root menu. - NavigationCommandMenu4 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU4 // (4) – Execute navigation menu command 4. For DVD, this jumps to the Subpicture menu. - NavigationCommandMenu5 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU5 // (5) – Execute navigation menu command 5. For DVD, this jumps to the audio menu. - NavigationCommandMenu6 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU6 // (6) – Execute navigation menu command 6. For DVD, this jumps to the angles menu. - NavigationCommandMenu7 NavigationCommand = C.GST_NAVIGATION_COMMAND_MENU7 // (7) – Execute navigation menu command 7. For DVD, this jumps to the chapter menu. - NavigationCommandLeft NavigationCommand = C.GST_NAVIGATION_COMMAND_LEFT // (20) – Select the next button to the left in a menu, if such a button exists. - NavigationCommandRight NavigationCommand = C.GST_NAVIGATION_COMMAND_RIGHT // (21) – Select the next button to the right in a menu, if such a button exists. - NavigationCommandUp NavigationCommand = C.GST_NAVIGATION_COMMAND_UP // (22) – Select the button above the current one in a menu, if such a button exists. - NavigationCommandDown NavigationCommand = C.GST_NAVIGATION_COMMAND_DOWN // (23) – Select the button below the current one in a menu, if such a button exists. - NavigationCommandActivate NavigationCommand = C.GST_NAVIGATION_COMMAND_ACTIVATE // (24) – Activate (click) the currently selected button in a menu, if such a button exists. - NavigationCommandPrevAngle NavigationCommand = C.GST_NAVIGATION_COMMAND_PREV_ANGLE // (30) – Switch to the previous angle in a multiangle feature. - NavigationCommandNextAngle NavigationCommand = C.GST_NAVIGATION_COMMAND_NEXT_ANGLE // (31) – Switch to the next angle in a multiangle feature. -) - -// Extra aliases for convenience in handling DVD navigation, -const ( - NavigationCommandDVDMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_MENU - NavigationCommandDVDTitleMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_TITLE_MENU - NavigationCommandDVDRootMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_ROOT_MENU - NavigationCommandDVDSubpictureMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_SUBPICTURE_MENU - NavigationCommandDVDAudioMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_AUDIO_MENU - NavigationCommandDVDAngleMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_ANGLE_MENU - NavigationCommandDVDChapterMenu NavigationCommand = C.GST_NAVIGATION_COMMAND_DVD_CHAPTER_MENU -) - -// NavigationEventType are enum values for the various events that an element implementing the -// Navigation interface might send up the pipeline. -type NavigationEventType int - -// Type castings -const ( - NavigationEventInvalid NavigationEventType = C.GST_NAVIGATION_EVENT_INVALID // (0) – Returned from gst_navigation_event_get_type when the passed event is not a navigation event. - NavigationEventKeyPress NavigationEventType = C.GST_NAVIGATION_EVENT_KEY_PRESS // (1) – A key press event. Use gst_navigation_event_parse_key_event to extract the details from the event. - NavigationEventKeyRelease NavigationEventType = C.GST_NAVIGATION_EVENT_KEY_RELEASE // (2) – A key release event. Use gst_navigation_event_parse_key_event to extract the details from the event. - NavigationEventMouseButtonPress NavigationEventType = C.GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS // (3) – A mouse button press event. Use gst_navigation_event_parse_mouse_button_event to extract the details from the event. - NavigationEventMouseButtonRelease NavigationEventType = C.GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE // (4) – A mouse button release event. Use gst_navigation_event_parse_mouse_button_event to extract the details from the event. - NavigationEventMouseMove NavigationEventType = C.GST_NAVIGATION_EVENT_MOUSE_MOVE // (5) – A mouse movement event. Use gst_navigation_event_parse_mouse_move_event to extract the details from the event. - NavigationEventCommand NavigationEventType = C.GST_NAVIGATION_EVENT_COMMAND // (6) – A navigation command event. Use gst_navigation_event_parse_command to extract the details from the event. - NavigationEventMouseScroll NavigationEventType = C.GST_NAVIGATION_EVENT_MOUSE_SCROLL // (7) – A mouse scroll event. Use gst_navigation_event_parse_mouse_scroll_event to extract the details from the event. (Since: 1.18) -) - -// NavigationMessageType is a set of notifications that may be received on the bus when navigation -// related status changes. -type NavigationMessageType int - -// Type castings -const ( - NavigationMessageInvalid NavigationMessageType = C.GST_NAVIGATION_MESSAGE_INVALID // (0) – Returned from gst_navigation_message_get_type when the passed message is not a navigation message. - NavigationMessageMouseOver NavigationMessageType = C.GST_NAVIGATION_MESSAGE_MOUSE_OVER // (1) – Sent when the mouse moves over or leaves a clickable region of the output, such as a DVD menu button. - NavigationMessageCommandsChanged NavigationMessageType = C.GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED // (2) – Sent when the set of available commands changes and should re-queried by interested applications. - NavigationMessageAnglesChanged NavigationMessageType = C.GST_NAVIGATION_MESSAGE_ANGLES_CHANGED // (3) – Sent when display angles in a multi-angle feature (such as a multiangle DVD) change - either angles have appeared or disappeared. - NavigationMessageEvent NavigationMessageType = C.GST_NAVIGATION_MESSAGE_EVENT // (4) – Sent when a navigation event was not handled by any element in the pipeline -) - -// NavigationQueryType represents types of navigation interface queries. -type NavigationQueryType int - -// Type castings -const ( - NavigationQueryInvalid NavigationQueryType = C.GST_NAVIGATION_QUERY_INVALID // (0) – invalid query - NavigationQueryCommands NavigationQueryType = C.GST_NAVIGATION_QUERY_COMMANDS // (1) – command query - NavigationQueryAngles NavigationQueryType = C.GST_NAVIGATION_QUERY_ANGLES // (2) – viewing angle query -) - -// KeyEvent represents types of key events. -type KeyEvent string - -// Enums -const ( - KeyPress KeyEvent = "key-press" - KeyRelease KeyEvent = "key-release" -) - -// MouseEvent represents types of mouse events. -type MouseEvent string - -// Enums -const ( - MouseButtonPress MouseEvent = "mouse-button-press" - MouseButtonRelease MouseEvent = "mouse-button-release" - MouseMove MouseEvent = "mouse-move" -) - -/* -Navigation interface is used for creating and injecting navigation related events such as -mouse button presses, cursor motion and key presses. The associated library also provides -methods for parsing received events, and for sending and receiving navigation related bus -events. One main use-case is DVD menu navigation. - - The main parts of the API are: - - - The Navigation interface, implemented by elements which provide an application with - the ability to create and inject navigation events into the pipeline. - - - Navigation event handling API. Navigation events are created in response to calls - on a Navigation interface implementation, and sent in the pipeline. Upstream elements - can use the navigation event API functions to parse the contents of received messages. - - - Navigation message handling API. Navigation messages may be sent on the message bus - to inform applications of navigation related changes in the pipeline, such as the mouse - moving over a clickable region, or the set of available angles changing. - -The Navigation message functions provide functions for creating and parsing custom bus -messages for signaling GstNavigation changes. -*/ -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Navigation interface { - // Sends the indicated command to the navigation interface. - SendCommand(NavigationCommand) - // Sends an event with the given structure. - SendEvent(*gst.Structure) - // Sends the given key event. Recognized values for the event are "key-press" - // and "key-release". The key is the character representation of the key. This is typically - // as produced by XKeysymToString. - SendKeyEvent(event KeyEvent, key string) - // Sends a mouse event to the navigation interface. Mouse event coordinates are sent relative - // to the display space of the related output area. This is usually the size in pixels of the - // window associated with the element implementing the Navigation interface. Use 0 for the - // button when doing mouse move events. - SendMouseEvent(event MouseEvent, button int, x, y float64) - // Sends a mouse scroll event to the navigation interface. Mouse event coordinates are sent - // relative to the display space of the related output area. This is usually the size in pixels - // of the window associated with the element implementing the Navigation interface. - SendMouseScrollEvent(x, y, dX, dY float64) -} - -// NavigationFromElement checks if the given element implements the Navigation interface. If it does, -// a useable interface is returned. Otherwise, it returns nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NavigationFromElement(element *gst.Element) Navigation { - if C.toGstNavigation(fromCoreElement(element)) == nil { - return nil - } - return &gstNavigation{fromCoreElement(element)} -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type gstNavigation struct { - elem *C.GstElement -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *gstNavigation) instance() *C.GstNavigation { - return C.toGstNavigation(n.elem) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *gstNavigation) SendCommand(cmd NavigationCommand) { - C.gst_navigation_send_command(n.instance(), C.GstNavigationCommand(cmd)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *gstNavigation) SendEvent(structure *gst.Structure) { - C.gst_navigation_send_event(n.instance(), fromCoreStructure(structure)) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *gstNavigation) SendKeyEvent(event KeyEvent, key string) { - cEvent := C.CString(string(event)) - cKey := C.CString(key) - defer C.free(unsafe.Pointer(cEvent)) - defer C.free(unsafe.Pointer(cKey)) - C.gst_navigation_send_key_event( - n.instance(), - (*C.gchar)(unsafe.Pointer(cEvent)), - (*C.gchar)(unsafe.Pointer(cKey)), - ) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *gstNavigation) SendMouseEvent(event MouseEvent, button int, x, y float64) { - cEvent := C.CString(string(event)) - defer C.free(unsafe.Pointer(cEvent)) - C.gst_navigation_send_mouse_event( - n.instance(), - (*C.gchar)(unsafe.Pointer(cEvent)), - C.int(button), C.double(x), C.double(y), - ) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (n *gstNavigation) SendMouseScrollEvent(x, y, dX, dY float64) { - C.gst_navigation_send_mouse_scroll_event( - n.instance(), - C.double(x), C.double(y), C.double(dX), C.double(dY), - ) -} - -// NavigationEvent extends the Event from the core library and is used by elements -// implementing the Navigation interface. You can wrap an event in this struct yourself, -// but it is safer to use the ToNavigationEvent method first to check validity. -type NavigationEvent struct{ *gst.Event } - -// ToNavigationEvent checks if the given event is a NavigationEvent, and if so, returrns -// a NavigationEvent instance wrapping the event. If the event is not a NavigationEvent -// this function returns nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToNavigationEvent(event *gst.Event) *NavigationEvent { - evType := NavigationEventType(C.gst_navigation_event_get_type(fromCoreEvent(event))) - if evType == NavigationEventInvalid { - return nil - } - return &NavigationEvent{event} -} - -// GetType returns the type of this event. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *NavigationEvent) GetType() NavigationEventType { - return NavigationEventType(C.gst_navigation_event_get_type(e.instance())) -} - -// instance returns the underlying GstEvent instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (e *NavigationEvent) instance() *C.GstEvent { return fromCoreEvent(e.Event) } - -// NavigationMessage extends the Event from the core library and is used by elements -// implementing the Navigation interface. You can wrap a message in this struct yourself, -// but it is safer to use the ToNavigationMessage method first to check validity. -type NavigationMessage struct{ *gst.Message } - -// ToNavigationMessage checks if the given message is a NavigationMessage, and if so, -// returns a NavigatonMessage instance wrapping the message. If the message is not a -// NavigationMessage, this function returns nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToNavigationMessage(msg *gst.Message) *NavigationMessage { - msgType := NavigationMessageType(C.gst_navigation_message_get_type(fromCoreMessage(msg))) - if msgType == NavigationMessageInvalid { - return nil - } - return &NavigationMessage{msg} -} - -// instance returns the underlying GstMessage instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *NavigationMessage) instance() *C.GstMessage { return fromCoreMessage(m.Message) } - -// GetType returns the type of this message. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (m *NavigationMessage) GetType() NavigationMessageType { - return NavigationMessageType(C.gst_navigation_message_get_type(m.instance())) -} - -// NavigationQuery extends the Query from the core library and is used by elements -// implementing the Navigation interface. You can wrap a query in this struct yourself, -// but it is safer to use the ToNavigationQuery method first to check validity. -type NavigationQuery struct{ *gst.Query } - -// ToNavigationQuery checks if the given query is a NavigationQuery, and if so, returns -// a NavigationQuery instance wrapping the query. If the query is not a NavigationQuery, -// this function returns nil. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func ToNavigationQuery(query *gst.Query) *NavigationQuery { - qType := NavigationQueryType(C.gst_navigation_query_get_type(fromCoreQuery(query))) - if qType == NavigationQueryInvalid { - return nil - } - return &NavigationQuery{query} -} - -// instance returns the underlying GstQuery instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *NavigationQuery) instance() *C.GstQuery { return fromCoreQuery(q.Query) } - -// GetType returns the type of this query. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (q *NavigationQuery) GetType() NavigationQueryType { - return NavigationQueryType(C.gst_navigation_query_get_type(q.instance())) -} diff --git a/gst/video/gst_video.go b/gst/video/gst_video.go deleted file mode 100644 index 49e8e9f..0000000 --- a/gst/video/gst_video.go +++ /dev/null @@ -1,96 +0,0 @@ -package video - -// #include -import "C" - -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// OrientationMethod represents the different video orientation methods. -type OrientationMethod int - -// Type castings -const ( - OrientationMethodIdentity OrientationMethod = C.GST_VIDEO_ORIENTATION_IDENTITY // (0) – Identity (no rotation) - OrientationMethod90R OrientationMethod = C.GST_VIDEO_ORIENTATION_90R // (1) – Rotate clockwise 90 degrees - OrientationMethod180 OrientationMethod = C.GST_VIDEO_ORIENTATION_180 // (2) – Rotate 180 degrees - OrientationMethod90L OrientationMethod = C.GST_VIDEO_ORIENTATION_90L // (3) – Rotate counter-clockwise 90 degrees - OrientationMethodHoriz OrientationMethod = C.GST_VIDEO_ORIENTATION_HORIZ // (4) – Flip horizontally - OrientationMethodVert OrientationMethod = C.GST_VIDEO_ORIENTATION_VERT // (5) – Flip vertically - OrientationMethodULLR OrientationMethod = C.GST_VIDEO_ORIENTATION_UL_LR // (6) – Flip across upper left/lower right diagonal - OrientationMethodURLL OrientationMethod = C.GST_VIDEO_ORIENTATION_UR_LL // (7) – Flip across upper right/lower left diagonal - OrientationMethodAuto OrientationMethod = C.GST_VIDEO_ORIENTATION_AUTO // (8) – Select flip method based on image-orientation tag - OrientationMethodCustom OrientationMethod = C.GST_VIDEO_ORIENTATION_CUSTOM // (9) – Current status depends on plugin internal setup -) - -// Additional video meta tags -const ( - TagVideoColorspage gst.Tag = C.GST_META_TAG_VIDEO_COLORSPACE_STR - TagVideoOrientation gst.Tag = C.GST_META_TAG_VIDEO_ORIENTATION_STR - TagVideoSize gst.Tag = C.GST_META_TAG_VIDEO_SIZE_STR - TagVideo gst.Tag = C.GST_META_TAG_VIDEO_STR -) - -// Alignment represents parameters for the memory of video buffers. This structure is -// usually used to configure the bufferpool if it supports the BufferPoolOptionVideoAlignment. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Alignment struct { - // extra pixels on the top - PaddingTop uint - // extra pixels on bottom - PaddingBottom uint - // extra pixels on the left - PaddingLeft uint - // extra pixels on the right - PaddingRight uint -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (a *Alignment) instance() *C.GstVideoAlignment { - g := &C.GstVideoAlignment{ - padding_top: C.guint(a.PaddingTop), - padding_bottom: C.guint(a.PaddingBottom), - padding_left: C.guint(a.PaddingLeft), - padding_right: C.guint(a.PaddingRight), - } - runtime.SetFinalizer(a, func(_ *Alignment) { C.g_free((C.gpointer)(unsafe.Pointer(g))) }) - return g -} - -// CalculateDisplayRatio will, given the Pixel Aspect Ratio and size of an input video frame, and -// the pixel aspect ratio of the intended display device, calculate the actual display ratio the -// video will be rendered with. -// -// See https://gstreamer.freedesktop.org/documentation/video/gstvideo.html?gi-language=c#gst_video_calculate_display_ratio -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func CalculateDisplayRatio(videoWidth, videoHeight, videoParNum, videoParDenom, displayParNum, displayParDenom uint) (darNum, darDenom uint, ok bool) { - var gNum, gDenom C.guint - gok := C.gst_video_calculate_display_ratio( - &gNum, &gDenom, - C.guint(videoWidth), C.guint(videoHeight), - C.guint(videoParNum), C.guint(videoParDenom), - C.guint(displayParNum), C.guint(displayParDenom), - ) - return uint(gNum), uint(gDenom), gobool(gok) -} - -// GuessFramerate will, given the nominal duration of one video frame, check some standard framerates -// for a close match (within 0.1%) and return one if possible, -// -// It will calculate an arbitrary framerate if no close match was found, and return FALSE. -// -// It returns FALSE if a duration of 0 is passed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func GuessFramerate(dur gst.ClockTime) (destNum, destDenom int, ok bool) { - var num, denom C.gint - gok := C.gst_video_guess_framerate(C.GstClockTime(dur), &num, &denom) - return int(num), int(denom), gobool(gok) -} diff --git a/gst/video/gst_video_chroma_resample.go b/gst/video/gst_video_chroma_resample.go deleted file mode 100644 index f2c0ecf..0000000 --- a/gst/video/gst_video_chroma_resample.go +++ /dev/null @@ -1,93 +0,0 @@ -package video - -// #include -import "C" -import ( - "runtime" - "unsafe" -) - -// ChromaFlags are extra flags that influence the result from NewChromaResample. -type ChromaFlags int - -// Type castings -const ( - ChromaFlagNone ChromaFlags = C.GST_VIDEO_CHROMA_FLAG_NONE // (0) – no flags - ChromaFlagInterlaced ChromaFlags = C.GST_VIDEO_CHROMA_FLAG_INTERLACED // (1) – the input is interlaced -) - -// ChromaMethod represents different subsampling and upsampling methods. -type ChromaMethod int - -// Type castings -const ( - ChromaMethodNearest ChromaMethod = C.GST_VIDEO_CHROMA_METHOD_NEAREST // (0) – Duplicates the chroma samples when upsampling and drops when subsampling - ChromaMethodLinear ChromaMethod = C.GST_VIDEO_CHROMA_METHOD_LINEAR // (1) – Uses linear interpolation to reconstruct missing chroma and averaging to subsample -) - -// ChromaSite represents various Chroma sitings. -type ChromaSite int - -// Type castings -const ( - ChromaSiteUnknown ChromaSite = C.GST_VIDEO_CHROMA_SITE_UNKNOWN // (0) – unknown cositing - ChromaSiteNone ChromaSite = C.GST_VIDEO_CHROMA_SITE_NONE // (1) – no cositing - ChromaSiteHCosited ChromaSite = C.GST_VIDEO_CHROMA_SITE_H_COSITED // (2) – chroma is horizontally cosited - ChromaSiteVCosited ChromaSite = C.GST_VIDEO_CHROMA_SITE_V_COSITED // (4) – chroma is vertically cosited - ChromaSiteAltLine ChromaSite = C.GST_VIDEO_CHROMA_SITE_ALT_LINE // (8) – choma samples are sited on alternate lines - ChromaSiteCosited ChromaSite = C.GST_VIDEO_CHROMA_SITE_COSITED // (6) – chroma samples cosited with luma samples - ChromaSiteJpeg ChromaSite = C.GST_VIDEO_CHROMA_SITE_JPEG // (1) – jpeg style cositing, also for mpeg1 and mjpeg - ChromaSiteMpeg2 ChromaSite = C.GST_VIDEO_CHROMA_SITE_MPEG2 // (2) – mpeg2 style cositing - ChromaSiteDV ChromaSite = C.GST_VIDEO_CHROMA_SITE_DV // (14) – DV style cositing -) - -// String implements a stringer on ChromaSite. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c ChromaSite) String() string { - out := C.gst_video_chroma_to_string(C.GstVideoChromaSite(c)) - defer C.g_free((C.gpointer)(unsafe.Pointer(out))) - return C.GoString(out) -} - -// ChromaResample is a utility object for resampling chroma planes and converting between different chroma sampling sitings. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ChromaResample struct { - ptr *C.GstVideoChromaResample -} - -// NewChromaResample creates a new resampler object for the given parameters. When h_factor or v_factor is > 0, -// upsampling will be used, otherwise subsampling is performed. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewChromaResample(method ChromaMethod, site ChromaSite, flags ChromaFlags, format Format, hFactor, vFactor int) *ChromaResample { - resample := C.gst_video_chroma_resample_new( - C.GstVideoChromaMethod(method), - C.GstVideoChromaSite(site), - C.GstVideoChromaFlags(flags), - C.GstVideoFormat(format), - C.gint(hFactor), C.gint(vFactor), - ) - if resample == nil { - return nil - } - goResample := &ChromaResample{resample} - runtime.SetFinalizer(goResample, func(c *ChromaResample) { C.gst_video_chroma_resample_free(c.instance()) }) - return goResample -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChromaResample) instance() *C.GstVideoChromaResample { return c.ptr } - -// GetInfo returns the info about the Resample. The resampler must be fed n_lines at a time. The first line -// should be at offset. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (c *ChromaResample) GetInfo() (nLines uint, offset int) { - var lines C.guint - var off C.gint - C.gst_video_chroma_resample_get_info(c.instance(), &lines, &off) - return uint(lines), int(off) -} diff --git a/gst/video/gst_video_color.go b/gst/video/gst_video_color.go deleted file mode 100644 index 4e2d6ac..0000000 --- a/gst/video/gst_video_color.go +++ /dev/null @@ -1,151 +0,0 @@ -package video - -// #include -import "C" - -// ColorMatrix is used to convert between Y'PbPr and non-linear RGB (R'G'B') -type ColorMatrix int - -// Type castings -const ( - ColorMatrixUnknown ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_UNKNOWN // (0) – unknown matrix - ColorMatrixRGB ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_RGB // (1) – identity matrix. Order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB) - ColorMatrixFCC ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_FCC // (2) – FCC Title 47 Code of Federal Regulations 73.682 (a)(20) - ColorMatrixBT709 ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_BT709 // (3) – ITU-R BT.709 color matrix, also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B - ColorMatrixBT601 ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_BT601 // (4) – ITU-R BT.601 color matrix, also SMPTE170M / ITU-R BT1358 525 / ITU-R BT1700 NTSC - ColorMatrixSMPTE240M ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_SMPTE240M // (5) – SMPTE 240M color matrix - ColorMatrixBT2020 ColorMatrix = C.GST_VIDEO_COLOR_MATRIX_BT2020 // (6) – ITU-R BT.2020 color matrix. Since: 1.6 -) - -// ColorPrimaries define the how to transform linear RGB values to and from the -// CIE XYZ colorspace. -type ColorPrimaries int - -// Type castings -const ( - ColorPrimariesUnknown ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_UNKNOWN // (0) – unknown color primaries - ColorPrimariesBT709 ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_BT709 // (1) – BT709 primaries, also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B - ColorPrimariesBT470M ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_BT470M // (2) – BT470M primaries, also FCC Title 47 Code of Federal Regulations 73.682 (a)(20) - ColorPrimariesBT470BG ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_BT470BG // (3) – BT470BG primaries, also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM - ColorPrimariesSMPTE170M ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_SMPTE170M // (4) – SMPTE170M primaries, also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC - ColorPrimariesSMPTE240M ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_SMPTE240M // (5) – SMPTE240M primaries - ColorPrimariesFilm ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_FILM // (6) – Generic film (color filters using Illuminant C) - ColorPrimariesBT2020 ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_BT2020 // (7) – ITU-R BT2020 primaries. Since: 1.6 - ColorPrimariesAdobeRGB ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_ADOBERGB // (8) – Adobe RGB primaries. Since: 1.8 - ColorPrimariesSMPTEST428 ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_SMPTEST428 // (9) – SMPTE ST 428 primaries (CIE 1931 XYZ). Since: 1.16 - ColorPrimariesSMPTERP431 ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_SMPTERP431 // (10) – SMPTE RP 431 primaries (ST 431-2 (2011) / DCI P3). Since: 1.16 - ColorPrimariesSMPTEEG432 ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432 // (11) – SMPTE EG 432 primaries (ST 432-1 (2010) / P3 D65). Since: 1.16 - ColorPrimariesEBU3213 ColorPrimaries = C.GST_VIDEO_COLOR_PRIMARIES_EBU3213 // (12) – EBU 3213 primaries (JEDEC P22 phosphors). Since: 1.16 -) - -// ColorRange represents possible color range values. These constants are defined for -// 8 bit color values and can be scaled for other bit depths. -type ColorRange int - -// Type castings -const ( - ColorRangeUnknown ColorRange = C.GST_VIDEO_COLOR_RANGE_UNKNOWN // (0) – unknown range - ColorRange0255 ColorRange = C.GST_VIDEO_COLOR_RANGE_0_255 // (1) – [0..255] for 8 bit components - ColorRange16235 ColorRange = C.GST_VIDEO_COLOR_RANGE_16_235 // (2) – [16..235] for 8 bit components. Chroma has [16..240] range. -) - -// TransferFunction defines the formula for converting between non-linear RGB (R'G'B') -// and linear RGB -type TransferFunction int - -// Type castings -const ( - TransferUnknown TransferFunction = C.GST_VIDEO_TRANSFER_UNKNOWN // (0) – unknown transfer function - TransferGamma10 TransferFunction = C.GST_VIDEO_TRANSFER_GAMMA10 // (1) – linear RGB, gamma 1.0 curve - TransferGamma18 TransferFunction = C.GST_VIDEO_TRANSFER_GAMMA18 // (2) – Gamma 1.8 curve - TransferGamma20 TransferFunction = C.GST_VIDEO_TRANSFER_GAMMA20 // (3) – Gamma 2.0 curve - TransferGamma22 TransferFunction = C.GST_VIDEO_TRANSFER_GAMMA22 // (4) – Gamma 2.2 curve - TransferBT709 TransferFunction = C.GST_VIDEO_TRANSFER_BT709 // (5) – Gamma 2.2 curve with a linear segment in the lower range, also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM / ITU-R BT1361 - TransferSMPTE240M TransferFunction = C.GST_VIDEO_TRANSFER_SMPTE240M // (6) – Gamma 2.2 curve with a linear segment in the lower range - TransferSRGB TransferFunction = C.GST_VIDEO_TRANSFER_SRGB // (7) – Gamma 2.4 curve with a linear segment in the lower range. IEC 61966-2-1 (sRGB or sYCC) - TransferGamma28 TransferFunction = C.GST_VIDEO_TRANSFER_GAMMA28 // (8) – Gamma 2.8 curve, also ITU-R BT470BG - TransferLog100 TransferFunction = C.GST_VIDEO_TRANSFER_LOG100 // (9) – Logarithmic transfer characteristic 100:1 range - TransferLog316 TransferFunction = C.GST_VIDEO_TRANSFER_LOG316 // (10) – Logarithmic transfer characteristic 316.22777:1 range (100 * sqrt(10) : 1) - TransferBT202012 TransferFunction = C.GST_VIDEO_TRANSFER_BT2020_12 // (11) – Gamma 2.2 curve with a linear segment in the lower range. Used for BT.2020 with 12 bits per component. Since: 1.6 - TransferAdobeRGB TransferFunction = C.GST_VIDEO_TRANSFER_ADOBERGB // (12) – Gamma 2.19921875. Since: 1.8 - TransferBT202010 TransferFunction = C.GST_VIDEO_TRANSFER_BT2020_10 // (13) – Rec. ITU-R BT.2020-2 with 10 bits per component. (functionally the same as the values GST_VIDEO_TRANSFER_BT709 and GST_VIDEO_TRANSFER_BT601). Since: 1.18 - TransferSMPTE2084 TransferFunction = C.GST_VIDEO_TRANSFER_SMPTE2084 // (14) – SMPTE ST 2084 for 10, 12, 14, and 16-bit systems. Known as perceptual quantization (PQ) Since: 1.18 - TransferARIBSTDB67 TransferFunction = C.GST_VIDEO_TRANSFER_ARIB_STD_B67 // (15) – Association of Radio Industries and Businesses (ARIB) STD-B67 and Rec. ITU-R BT.2100-1 hybrid loggamma (HLG) system Since: 1.18 - TransferBT601 TransferFunction = C.GST_VIDEO_TRANSFER_BT601 // (16) – also known as SMPTE170M / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC -) - -// Pre-defined colorimetries -const ( - ColorimetryBT2020 string = C.GST_VIDEO_COLORIMETRY_BT2020 - ColorimetryBT202010 string = C.GST_VIDEO_COLORIMETRY_BT2020_10 - ColorimetryBT2100HLG string = C.GST_VIDEO_COLORIMETRY_BT2100_HLG - ColorimetryBT2100PQ string = C.GST_VIDEO_COLORIMETRY_BT2100_PQ - ColorimetryBT601 string = C.GST_VIDEO_COLORIMETRY_BT601 - ColorimetryBT709 string = C.GST_VIDEO_COLORIMETRY_BT709 - ColorimetrySMPTE240M string = C.GST_VIDEO_COLORIMETRY_SMPTE240M - ColorimetrySRRGB string = C.GST_VIDEO_COLORIMETRY_SRGB -) - -// ColorPrimariesInfo is a structure describing the chromaticity coordinates of an RGB system. -// These values can be used to construct a matrix to transform RGB to and from the XYZ colorspace. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type ColorPrimariesInfo struct { - Primaries ColorPrimaries - Wx, Wy float64 // Reference white coordinates - Rx, Ry float64 // Red coordinates - Gx, Gy float64 // Green coordinates - Bx, By float64 // Blue coordinates -} - -// func (c *ColorPrimariesInfo) instance() *C.GstVideoColorPrimariesInfo { -// i := &C.GstVideoColorPrimariesInfo{ -// primaries: C.GstVideoColorPrimaries(c.Primaries), -// Wx: C.gdouble(c.Wx), -// Wy: C.gdouble(c.Wy), -// Rx: C.gdouble(c.Rx), -// Ry: C.gdouble(c.Ry), -// Gx: C.gdouble(c.Gx), -// Gy: C.gdouble(c.Gy), -// Bx: C.gdouble(c.Bx), -// By: C.gdouble(c.By), -// } -// runtime.SetFinalizer(c, func(_ *ColorPrimariesInfo) { C.g_free((C.gpointer)(unsafe.Pointer(i))) }) -// return i -// } - -// Colorimetry is a structure describing the color info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Colorimetry struct { - // The color range. This is the valid range for the samples. It is used to convert the samples to Y'PbPr values. - Range ColorRange - // The color matrix. Used to convert between Y'PbPr and non-linear RGB (R'G'B'). - Matrix ColorMatrix - // The transfer function. used to convert between R'G'B' and RGB. - Transfer TransferFunction - // Color primaries. used to convert between R'G'B' and CIE XYZ. - Primaries ColorPrimaries -} - -// func (c *Colorimetry) instance() *C.GstVideoColorimetry { -// i := &C.GstVideoColorimetry{ -// _range: C.GstVideoColorRange(c.Range), -// matrix: C.GstVideoColorMatrix(c.Matrix), -// transfer: C.GstVideoTransferFunction(c.Transfer), -// primaries: C.GstVideoColorPrimaries(c.Primaries), -// } -// runtime.SetFinalizer(c, func(_ *Colorimetry) { C.g_free((C.gpointer)(unsafe.Pointer(i))) }) -// return i -// } - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func colorimetryFromInstance(c C.GstVideoColorimetry) *Colorimetry { - return &Colorimetry{ - Range: ColorRange(c._range), - Matrix: ColorMatrix(c.matrix), - Transfer: TransferFunction(c.transfer), - Primaries: ColorPrimaries(c.primaries), - } -} diff --git a/gst/video/gst_video_format.go b/gst/video/gst_video_format.go deleted file mode 100644 index da1bd25..0000000 --- a/gst/video/gst_video_format.go +++ /dev/null @@ -1,546 +0,0 @@ -package video - -/* -#include - -const gchar * formatInfoName (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_NAME(info); } - -guint formatInfoBits (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_BITS(info); } -guint formatInfoDepth (GstVideoFormatInfo * info, guint c) { return GST_VIDEO_FORMAT_INFO_DEPTH(info, c); } -GstVideoFormatFlags formatInfoFlags (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_FLAGS(info); } -GstVideoFormat formatInfoFormat (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_FORMAT(info); } -gboolean formatInfoHasAlpha (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_HAS_ALPHA(info); } -gboolean formatInfoHasPalette (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_HAS_PALETTE(info); } -guint formatInfoHSub (GstVideoFormatInfo * info, guint c) { return GST_VIDEO_FORMAT_INFO_H_SUB(info, c); } -gboolean formatInfoIsComplex (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_IS_COMPLEX(info); } -gboolean formatInfoIsGray (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_IS_GRAY(info); } -gboolean formatInfoIsLE (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_IS_LE(info); } -gboolean formatInfoIsRGB (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_IS_RGB(info); } -gboolean formatInfoIsTiled (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_IS_TILED(info); } -gboolean formatInfoIsYUV (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_IS_YUV(info); } -guint formatInfoNComponent (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_N_COMPONENTS(info); } -guint formatInfoNPlanes (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_N_PLANES(info); } -guint formatInfoPlane (GstVideoFormatInfo * info, guint c) { return GST_VIDEO_FORMAT_INFO_PLANE(info, c); } -guint formatInfoPOffset (GstVideoFormatInfo * info, guint c) { return GST_VIDEO_FORMAT_INFO_POFFSET(info, c); } -guint formatInfoPStride (GstVideoFormatInfo * info, guint c) { return GST_VIDEO_FORMAT_INFO_PSTRIDE(info, c); } -guint formatInfoTileHS (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_TILE_HS(info); } -GstVideoTileMode formatInfoTileMode (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_TILE_MODE(info); } -guint formatInfoTileWS (GstVideoFormatInfo * info) { return GST_VIDEO_FORMAT_INFO_TILE_WS(info); } -guint formatInfoWSub (GstVideoFormatInfo * info, guint c) { return GST_VIDEO_FORMAT_INFO_W_SUB(info, c); } - -*/ -import "C" -import ( - "image/color" - "math" - "runtime" - "unsafe" - - "github.com/go-gst/go-glib/glib" - "github.com/go-gst/go-gst/gst" -) - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func init() { - glib.RegisterGValueMarshalers([]glib.TypeMarshaler{ - { - T: glib.Type(C.gst_video_format_get_type()), - F: func(p unsafe.Pointer) (interface{}, error) { - c := C.g_value_get_enum((*C.GValue)(p)) - return Format(c), nil - }, - }, - }) -} - -// Format is an enum value describing the most common video formats. -type Format int - -// Type castings -const ( - FormatUnknown Format = C.GST_VIDEO_FORMAT_UNKNOWN // (0) – Unknown or unset video format id - FormatEncoded Format = C.GST_VIDEO_FORMAT_ENCODED // (1) – Encoded video format. Only ever use that in caps for special video formats in combination with non-system memory GstCapsFeatures where it does not make sense to specify a real video format. - FormatI420 Format = C.GST_VIDEO_FORMAT_I420 // (2) – planar 4:2:0 YUV - FormatYV12 Format = C.GST_VIDEO_FORMAT_YV12 // (3) – planar 4:2:0 YVU (like I420 but UV planes swapped) - FormatYUY2 Format = C.GST_VIDEO_FORMAT_YUY2 // (4) – packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 ...) - FormatUYVY Format = C.GST_VIDEO_FORMAT_UYVY // (5) – packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...) - FormatAYUV Format = C.GST_VIDEO_FORMAT_AYUV // (6) – packed 4:4:4 YUV with alpha channel (A0-Y0-U0-V0 ...) - FormatRGBx Format = C.GST_VIDEO_FORMAT_RGBx // (7) – sparse rgb packed into 32 bit, space last - FormatBGRx Format = C.GST_VIDEO_FORMAT_BGRx // (8) – sparse reverse rgb packed into 32 bit, space last - FormatxRGB Format = C.GST_VIDEO_FORMAT_xRGB // (9) – sparse rgb packed into 32 bit, space first - FormatxBGR Format = C.GST_VIDEO_FORMAT_xBGR // (10) – sparse reverse rgb packed into 32 bit, space first - FormatRGBA Format = C.GST_VIDEO_FORMAT_RGBA // (11) – rgb with alpha channel last - FormatBGRA Format = C.GST_VIDEO_FORMAT_BGRA // (12) – reverse rgb with alpha channel last - FormatARGB Format = C.GST_VIDEO_FORMAT_ARGB // (13) – rgb with alpha channel first - FormatABGR Format = C.GST_VIDEO_FORMAT_ABGR // (14) – reverse rgb with alpha channel first - FormatRGB Format = C.GST_VIDEO_FORMAT_RGB // (15) – RGB packed into 24 bits without padding (R-G-B-R-G-B) - FormatBGR Format = C.GST_VIDEO_FORMAT_BGR // (16) – reverse RGB packed into 24 bits without padding (B-G-R-B-G-R) - FormatY41B Format = C.GST_VIDEO_FORMAT_Y41B // (17) – planar 4:1:1 YUV - FormatY42B Format = C.GST_VIDEO_FORMAT_Y42B // (18) – planar 4:2:2 YUV - FormatYVYU Format = C.GST_VIDEO_FORMAT_YVYU // (19) – packed 4:2:2 YUV (Y0-V0-Y1-U0 Y2-V2-Y3-U2 Y4 ...) - FormatY444 Format = C.GST_VIDEO_FORMAT_Y444 // (20) – planar 4:4:4 YUV - Formatv210 Format = C.GST_VIDEO_FORMAT_v210 // (21) – packed 4:2:2 10-bit YUV, complex format - Formatv216 Format = C.GST_VIDEO_FORMAT_v216 // (22) – packed 4:2:2 16-bit YUV, Y0-U0-Y1-V1 order - FormatNV12 Format = C.GST_VIDEO_FORMAT_NV12 // (23) – planar 4:2:0 YUV with interleaved UV plane - FormatNV21 Format = C.GST_VIDEO_FORMAT_NV21 // (24) – planar 4:2:0 YUV with interleaved VU plane - FormatGray8 Format = C.GST_VIDEO_FORMAT_GRAY8 // (25) – 8-bit grayscale - FormatGray16BE Format = C.GST_VIDEO_FORMAT_GRAY16_BE // (26) – 16-bit grayscale, most significant byte first - FormatGray16LE Format = C.GST_VIDEO_FORMAT_GRAY16_LE // (27) – 16-bit grayscale, least significant byte first - Formatv308 Format = C.GST_VIDEO_FORMAT_v308 // (28) – packed 4:4:4 YUV (Y-U-V ...) - FormatRGB16 Format = C.GST_VIDEO_FORMAT_RGB16 // (29) – rgb 5-6-5 bits per component - FormatBGR16 Format = C.GST_VIDEO_FORMAT_BGR16 // (30) – reverse rgb 5-6-5 bits per component - FormatRGB15 Format = C.GST_VIDEO_FORMAT_RGB15 // (31) – rgb 5-5-5 bits per component - FormatBGR15 Format = C.GST_VIDEO_FORMAT_BGR15 // (32) – reverse rgb 5-5-5 bits per component - FormatUYVP Format = C.GST_VIDEO_FORMAT_UYVP // (33) – packed 10-bit 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...) - FormatA420 Format = C.GST_VIDEO_FORMAT_A420 // (34) – planar 4:4:2:0 AYUV - FormatRGB8P Format = C.GST_VIDEO_FORMAT_RGB8P // (35) – 8-bit paletted RGB - FormatYUV9 Format = C.GST_VIDEO_FORMAT_YUV9 // (36) – planar 4:1:0 YUV - FormatYVU9 Format = C.GST_VIDEO_FORMAT_YVU9 // (37) – planar 4:1:0 YUV (like YUV9 but UV planes swapped) - FormatIYU1 Format = C.GST_VIDEO_FORMAT_IYU1 // (38) – packed 4:1:1 YUV (Cb-Y0-Y1-Cr-Y2-Y3 ...) - FormatARGB64 Format = C.GST_VIDEO_FORMAT_ARGB64 // (39) – rgb with alpha channel first, 16 bits per channel - FormatAYUV64 Format = C.GST_VIDEO_FORMAT_AYUV64 // (40) – packed 4:4:4 YUV with alpha channel, 16 bits per channel (A0-Y0-U0-V0 ...) - Formatr210 Format = C.GST_VIDEO_FORMAT_r210 // (41) – packed 4:4:4 RGB, 10 bits per channel - FormatI42010BE Format = C.GST_VIDEO_FORMAT_I420_10BE // (42) – planar 4:2:0 YUV, 10 bits per channel - FormatI42010LE Format = C.GST_VIDEO_FORMAT_I420_10LE // (43) – planar 4:2:0 YUV, 10 bits per channel - FormatI42210BE Format = C.GST_VIDEO_FORMAT_I422_10BE // (44) – planar 4:2:2 YUV, 10 bits per channel - FormatI42210LE Format = C.GST_VIDEO_FORMAT_I422_10LE // (45) – planar 4:2:2 YUV, 10 bits per channel - FormatY44410BE Format = C.GST_VIDEO_FORMAT_Y444_10BE // (46) – planar 4:4:4 YUV, 10 bits per channel (Since: 1.2) - FormatY44410LE Format = C.GST_VIDEO_FORMAT_Y444_10LE // (47) – planar 4:4:4 YUV, 10 bits per channel (Since: 1.2) - FormatGBR Format = C.GST_VIDEO_FORMAT_GBR // (48) – planar 4:4:4 RGB, 8 bits per channel (Since: 1.2) - FormatGBR10BE Format = C.GST_VIDEO_FORMAT_GBR_10BE // (49) – planar 4:4:4 RGB, 10 bits per channel (Since: 1.2) - FormatGBR10LE Format = C.GST_VIDEO_FORMAT_GBR_10LE // (50) – planar 4:4:4 RGB, 10 bits per channel (Since: 1.2) - FormatNV16 Format = C.GST_VIDEO_FORMAT_NV16 // (51) – planar 4:2:2 YUV with interleaved UV plane (Since: 1.2) - FormatNV24 Format = C.GST_VIDEO_FORMAT_NV24 // (52) – planar 4:4:4 YUV with interleaved UV plane (Since: 1.2) - FormatNV1264Z32 Format = C.GST_VIDEO_FORMAT_NV12_64Z32 // (53) – NV12 with 64x32 tiling in zigzag pattern (Since: 1.4) - FormatA42010BE Format = C.GST_VIDEO_FORMAT_A420_10BE // (54) – planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6) - FormatA42010LE Format = C.GST_VIDEO_FORMAT_A420_10LE // (55) – planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6) - FormatA42210BE Format = C.GST_VIDEO_FORMAT_A422_10BE // (56) – planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6) - FormatA42210LE Format = C.GST_VIDEO_FORMAT_A422_10LE // (57) – planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6) - FormatA44410BE Format = C.GST_VIDEO_FORMAT_A444_10BE // (58) – planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6) - FormatA44410LE Format = C.GST_VIDEO_FORMAT_A444_10LE // (59) – planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6) - FormatNV61 Format = C.GST_VIDEO_FORMAT_NV61 // (60) – planar 4:2:2 YUV with interleaved VU plane (Since: 1.6) - FormatP01010BE Format = C.GST_VIDEO_FORMAT_P010_10BE // (61) – planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10) - FormatP01010LE Format = C.GST_VIDEO_FORMAT_P010_10LE // (62) – planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10) - FormatIYU2 Format = C.GST_VIDEO_FORMAT_IYU2 // (63) – packed 4:4:4 YUV (U-Y-V ...) (Since: 1.10) - FormatVYUY Format = C.GST_VIDEO_FORMAT_VYUY // (64) – packed 4:2:2 YUV (V0-Y0-U0-Y1 V2-Y2-U2-Y3 V4 ...) - FormatGBRA Format = C.GST_VIDEO_FORMAT_GBRA // (65) – planar 4:4:4:4 ARGB, 8 bits per channel (Since: 1.12) - FormatGBRA10BE Format = C.GST_VIDEO_FORMAT_GBRA_10BE // (66) – planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12) - FormatGBRA10LE Format = C.GST_VIDEO_FORMAT_GBRA_10LE // (67) – planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12) - FormatGBR12BE Format = C.GST_VIDEO_FORMAT_GBR_12BE // (68) – planar 4:4:4 RGB, 12 bits per channel (Since: 1.12) - FormatGBR12LE Format = C.GST_VIDEO_FORMAT_GBR_12LE // (69) – planar 4:4:4 RGB, 12 bits per channel (Since: 1.12) - FormatGBRA12BE Format = C.GST_VIDEO_FORMAT_GBRA_12BE // (70) – planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12) - FormatGBRA12LE Format = C.GST_VIDEO_FORMAT_GBRA_12LE // (71) – planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12) - FormatI42012BE Format = C.GST_VIDEO_FORMAT_I420_12BE // (72) – planar 4:2:0 YUV, 12 bits per channel (Since: 1.12) - FormatI42012LE Format = C.GST_VIDEO_FORMAT_I420_12LE // (73) – planar 4:2:0 YUV, 12 bits per channel (Since: 1.12) - FormatI42212BE Format = C.GST_VIDEO_FORMAT_I422_12BE // (74) – planar 4:2:2 YUV, 12 bits per channel (Since: 1.12) - FormatI42212LE Format = C.GST_VIDEO_FORMAT_I422_12LE // (75) – planar 4:2:2 YUV, 12 bits per channel (Since: 1.12) - FormatY44412BE Format = C.GST_VIDEO_FORMAT_Y444_12BE // (76) – planar 4:4:4 YUV, 12 bits per channel (Since: 1.12) - FormatY44412LE Format = C.GST_VIDEO_FORMAT_Y444_12LE // (77) – planar 4:4:4 YUV, 12 bits per channel (Since: 1.12) - FormatGray10LE32 Format = C.GST_VIDEO_FORMAT_GRAY10_LE32 // (78) – 10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14) - FormatNV1210LE32 Format = C.GST_VIDEO_FORMAT_NV12_10LE32 // (79) – 10-bit variant of GST_VIDEO_FORMAT_NV12, packed into 32bit words (MSB 2 bits padding) (Since: 1.14) - FormatNV1610LE32 Format = C.GST_VIDEO_FORMAT_NV16_10LE32 // (80) – 10-bit variant of GST_VIDEO_FORMAT_NV16, packed into 32bit words (MSB 2 bits padding) (Since: 1.14) - FormatNV1210LE40 Format = C.GST_VIDEO_FORMAT_NV12_10LE40 // (81) – Fully packed variant of NV12_10LE32 (Since: 1.16) - FormatY210 Format = C.GST_VIDEO_FORMAT_Y210 // (82) – packed 4:2:2 YUV, 10 bits per channel (Since: 1.16) - FormatY410 Format = C.GST_VIDEO_FORMAT_Y410 // (83) – packed 4:4:4 YUV, 10 bits per channel(A-V-Y-U...) (Since: 1.16) - FormatVUYA Format = C.GST_VIDEO_FORMAT_VUYA // (84) – packed 4:4:4 YUV with alpha channel (V0-U0-Y0-A0...) (Since: 1.16) - FormatBGR10A2LE Format = C.GST_VIDEO_FORMAT_BGR10A2_LE // (85) – packed 4:4:4 RGB with alpha channel(B-G-R-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.16) - FormatRGB10A2LE Format = C.GST_VIDEO_FORMAT_RGB10A2_LE // (86) – packed 4:4:4 RGB with alpha channel(R-G-B-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.18) - FormatY44416BE Format = C.GST_VIDEO_FORMAT_Y444_16BE // (87) – planar 4:4:4 YUV, 16 bits per channel (Since: 1.18) - FormatY44416LE Format = C.GST_VIDEO_FORMAT_Y444_16LE // (88) – planar 4:4:4 YUV, 16 bits per channel (Since: 1.18) - FormatP016BE Format = C.GST_VIDEO_FORMAT_P016_BE // (89) – planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18) - FormatP016LE Format = C.GST_VIDEO_FORMAT_P016_LE // (90) – planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18) - FormatP012BE Format = C.GST_VIDEO_FORMAT_P012_BE // (91) – planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18) - FormatP012LE Format = C.GST_VIDEO_FORMAT_P012_LE // (92) – planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18) - FormatY212BE Format = C.GST_VIDEO_FORMAT_Y212_BE // (93) – packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18) - FormatY212LE Format = C.GST_VIDEO_FORMAT_Y212_LE // (94) – packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18) - FormatY412BE Format = C.GST_VIDEO_FORMAT_Y412_BE // (95) – packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18) - FormatY412LE Format = C.GST_VIDEO_FORMAT_Y412_LE // (96) – packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18) - FormatNV124L4 Format = C.GST_VIDEO_FORMAT_NV12_4L4 // (97) – NV12 with 4x4 tiles in linear order. - FormatNV1232L32 Format = C.GST_VIDEO_FORMAT_NV12_32L32 // (98) – NV12 with 32x32 tiles in linear order. -) - -// AllFormats is a convenience function for retrieving all formats for inspection purposes. -// This is not really intended for use in an application, and more so for debugging. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func AllFormats() []Format { - return []Format{ - FormatI420, - FormatYV12, - FormatYUY2, - FormatUYVY, - FormatAYUV, - FormatRGBx, - FormatBGRx, - FormatxRGB, - FormatxBGR, - FormatRGBA, - FormatBGRA, - FormatARGB, - FormatABGR, - FormatRGB, - FormatBGR, - FormatY41B, - FormatY42B, - FormatYVYU, - FormatY444, - Formatv210, - Formatv216, - FormatNV12, - FormatNV21, - FormatGray8, - FormatGray16BE, - FormatGray16LE, - Formatv308, - FormatRGB16, - FormatBGR16, - FormatRGB15, - FormatBGR15, - FormatUYVP, - FormatA420, - FormatRGB8P, - FormatYUV9, - FormatYVU9, - FormatIYU1, - FormatARGB64, - FormatAYUV64, - Formatr210, - FormatI42010BE, - FormatI42010LE, - FormatI42210BE, - FormatI42210LE, - FormatY44410BE, - FormatY44410LE, - FormatGBR, - FormatGBR10BE, - FormatGBR10LE, - FormatNV16, - FormatNV24, - FormatNV1264Z32, - FormatA42010BE, - FormatA42010LE, - FormatA42210BE, - FormatA42210LE, - FormatA44410BE, - FormatA44410LE, - FormatNV61, - FormatP01010BE, - FormatP01010LE, - FormatIYU2, - FormatVYUY, - FormatGBRA, - FormatGBRA10BE, - FormatGBRA10LE, - FormatGBR12BE, - FormatGBR12LE, - FormatGBRA12BE, - FormatGBRA12LE, - FormatI42012BE, - FormatI42012LE, - FormatI42212BE, - FormatI42212LE, - FormatY44412BE, - FormatY44412LE, - FormatGray10LE32, - FormatNV1210LE32, - FormatNV1610LE32, - FormatNV1210LE40, - FormatY210, - FormatY410, - FormatVUYA, - FormatBGR10A2LE, - FormatRGB10A2LE, - FormatY44416BE, - FormatY44416LE, - FormatP016BE, - FormatP016LE, - FormatP012BE, - FormatP012LE, - FormatY212BE, - FormatY212LE, - FormatY412BE, - FormatY412LE, - FormatNV124L4, - FormatNV1232L32, - } -} - -// RawFormats returns a slice of all the raw video formats supported by GStreamer. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func RawFormats() []Format { - var size C.guint - formats := C.gst_video_formats_raw(&size) - out := make([]Format, uint(size)) - for i, f := range (*[(math.MaxInt32 - 1) / unsafe.Sizeof(C.GST_VIDEO_FORMAT_UNKNOWN)]C.GstVideoFormat)(unsafe.Pointer(formats))[:size:size] { - out[i] = Format(f) - } - return out -} - -// MakeRawCaps returns a generic raw video caps for formats defined in formats. If formats is empty or nil, returns a caps for -// all the supported raw video formats, see RawFormats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func MakeRawCaps(formats []Format) *gst.Caps { - var caps *C.GstCaps - if len(formats) == 0 { - caps = C.gst_video_make_raw_caps(nil, C.guint(0)) - } else { - caps = C.gst_video_make_raw_caps( - (*C.GstVideoFormat)(unsafe.Pointer(&formats[0])), - C.guint(len(formats)), - ) - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// MakeRawCapsWithFeatures returns a generic raw video caps for formats defined in formats with features. If formats is -// empty or nil, returns a caps for all the supported video formats, see RawFormats. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func MakeRawCapsWithFeatures(formats []Format, features *gst.CapsFeatures) *gst.Caps { - var caps *C.GstCaps - if len(formats) == 0 { - caps = C.gst_video_make_raw_caps_with_features(nil, C.guint(0), fromCoreCapsFeatures(features)) - } else { - caps = C.gst_video_make_raw_caps_with_features( - (*C.GstVideoFormat)(unsafe.Pointer(&formats[0])), - C.guint(len(formats)), - fromCoreCapsFeatures(features), - ) - } - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} - -// TypeFormat is the GType for a GstVideoFormat. -var TypeFormat = glib.Type(C.gst_video_format_get_type()) - -// ToGValue implements a glib.ValueTransformer -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) ToGValue() (*glib.Value, error) { - val, err := glib.ValueInit(TypeFormat) - if err != nil { - return nil, err - } - val.SetEnum(int(f)) - return val, nil -} - -// Info returns the FormatInfo for this video format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) Info() *FormatInfo { - finfo := C.gst_video_format_get_info(C.GstVideoFormat(f)) - info := &FormatInfo{ptr: finfo} - runtime.SetFinalizer(info, func(_ *FormatInfo) { C.g_free((C.gpointer)(unsafe.Pointer(finfo))) }) - return info -} - -// Palette returns the color palette for this format, or nil if the format does not have one. -// At time of writing, RGB8P appears to be the only format with it's own palette. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) Palette() color.Palette { - var size C.gsize - ptr := C.gst_video_format_get_palette(C.GstVideoFormat(f), &size) - if ptr == nil { - return nil - } - paletteBytes := make([]uint8, int64(size)) - for i, t := range (*[(math.MaxInt32 - 1) / unsafe.Sizeof(uint8(0))]uint8)(ptr)[:int(size):int(size)] { - paletteBytes[i] = t - } - return bytesToColorPalette(paletteBytes) -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func bytesToColorPalette(in []uint8) color.Palette { - palette := make([]color.Color, len(in)/4) - for i := 0; i < len(in); i += 4 { - palette[i/4] = color.RGBA{in[i], in[i+1], in[i+2], in[i+3]} - } - return color.Palette(palette) -} - -// String implements a stringer on a Format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) String() string { - return C.GoString(C.gst_video_format_to_string(C.GstVideoFormat(f))) -} - -// FOURCC converts this format value into the corresponding FOURCC. Only a few YUV formats have corresponding -// FOURCC values. If format has no corresponding FOURCC value, 0 is returned. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f Format) FOURCC() uint32 { - return uint32(C.gst_video_format_to_fourcc(C.GstVideoFormat(f))) -} - -// FormatFlags are different video flags that a format info can have. -type FormatFlags int - -// Type castings -const ( - FormatFlagYUV FormatFlags = C.GST_VIDEO_FORMAT_FLAG_YUV // (1) – The video format is YUV, components are numbered 0=Y, 1=U, 2=V. - FormatFlagRGB FormatFlags = C.GST_VIDEO_FORMAT_FLAG_RGB // (2) – The video format is RGB, components are numbered 0=R, 1=G, 2=B. - FormatFlagGray FormatFlags = C.GST_VIDEO_FORMAT_FLAG_GRAY // (4) – The video is gray, there is one gray component with index 0. - FormatFlagAlpha FormatFlags = C.GST_VIDEO_FORMAT_FLAG_ALPHA // (8) – The video format has an alpha components with the number 3. - FormatFlagLE FormatFlags = C.GST_VIDEO_FORMAT_FLAG_LE // (16) – The video format has data stored in little endianness. - FormatFlagPalette FormatFlags = C.GST_VIDEO_FORMAT_FLAG_PALETTE // (32) – The video format has a palette. The palette is stored in the second plane and indexes are stored in the first plane. - FormatFlagComplex FormatFlags = C.GST_VIDEO_FORMAT_FLAG_COMPLEX // (64) – The video format has a complex layout that can't be described with the usual information in the GstVideoFormatInfo. - FormatFlagUnpack FormatFlags = C.GST_VIDEO_FORMAT_FLAG_UNPACK // (128) – This format can be used in a GstVideoFormatUnpack and GstVideoFormatPack function. - FormatFlagTiled FormatFlags = C.GST_VIDEO_FORMAT_FLAG_TILED // (256) – The format is tiled, there is tiling information in the last plane. -) - -// PackFlags are different flags that can be used when packing and unpacking. -type PackFlags int - -// Type castings -const ( - PackFlagNone PackFlags = C.GST_VIDEO_PACK_FLAG_NONE // (0) – No flag - PackFlagTruncateRange PackFlags = C.GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE // (1) – When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely slightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination. - PackFlagInterlaced PackFlags = C.GST_VIDEO_PACK_FLAG_INTERLACED // (2) – The source is interlaced. The unpacked format will be interlaced as well with each line containing information from alternating fields. (Since: 1.2) -) - -// FormatInfo contains information for a video format. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type FormatInfo struct { - ptr *C.GstVideoFormatInfo -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) instance() *C.GstVideoFormatInfo { return f.ptr } - -// Bits returns the number of bits used to pack data items. This can be less than 8 when -// multiple pixels are stored in a byte. for values > 8 multiple bytes should be read -// according to the endianness flag before applying the shift and mask. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Bits() uint { return uint(C.formatInfoBits(f.instance())) } - -// ComponentDepth returns the depth in bits for the given component. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) ComponentDepth(component uint) uint { - return uint(C.formatInfoDepth(f.instance(), C.guint(component))) -} - -// ComponentHSub returns the subsampling factor of the height for the component. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) ComponentHSub(component uint) uint { - return uint(C.formatInfoHSub(f.instance(), C.guint(component))) -} - -// ComponentWSub returns the subsampling factor of the width for the component. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) ComponentWSub(n uint) uint { - return uint(C.formatInfoWSub(f.instance(), C.guint(n))) -} - -// Flags returns the flags on this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Flags() FormatFlags { return FormatFlags(C.formatInfoFlags(f.instance())) } - -// Format returns the format for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Format() Format { return Format(C.formatInfoFormat(f.instance())) } - -// HasAlpha returns true if the alpha flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) HasAlpha() bool { return gobool(C.formatInfoHasAlpha(f.instance())) } - -// HasPalette returns true if this info has a palette. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) HasPalette() bool { return gobool(C.formatInfoHasPalette(f.instance())) } - -// IsComplex returns true if the complex flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) IsComplex() bool { return gobool(C.formatInfoIsComplex(f.instance())) } - -// IsGray returns true if the gray flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) IsGray() bool { return gobool(C.formatInfoIsGray(f.instance())) } - -// IsLE returns true if the LE flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) IsLE() bool { return gobool(C.formatInfoIsLE(f.instance())) } - -// IsRGB returns true if the RGB flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) IsRGB() bool { return gobool(C.formatInfoIsRGB(f.instance())) } - -// IsTiled returns true if the tiled flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) IsTiled() bool { return gobool(C.formatInfoIsTiled(f.instance())) } - -// IsYUV returns true if the YUV flag is set. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) IsYUV() bool { return gobool(C.formatInfoIsYUV(f.instance())) } - -// Name returns a human readable name for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Name() string { return C.GoString(C.formatInfoName(f.instance())) } - -// NumComponents returns the number of components in this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) NumComponents() uint { return uint(C.formatInfoNComponent(f.instance())) } - -// NumPlanes returns the number of planes in this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) NumPlanes() uint { return uint(C.formatInfoNPlanes(f.instance())) } - -// Plane returns the given plane index. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) Plane(n uint) uint { return uint(C.formatInfoPlane(f.instance(), C.guint(n))) } - -// PlaneOffset returns the offset for the given plane. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) PlaneOffset(n uint) uint { - return uint(C.formatInfoPOffset(f.instance(), C.guint(n))) -} - -// PlaneStride returns the stride for the given plane. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) PlaneStride(n uint) uint { - return uint(C.formatInfoPStride(f.instance(), C.guint(n))) -} - -// TileHS returns the height of a tile, in bytes, represented as a shift. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) TileHS() uint { return uint(C.formatInfoTileHS(f.instance())) } - -// TileMode returns the tiling mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) TileMode() TileMode { return TileMode(C.formatInfoTileMode(f.instance())) } - -// TileWS returns the width of a tile, in bytes, represented as a shift. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f *FormatInfo) TileWS() uint { return uint(C.formatInfoTileWS(f.instance())) } diff --git a/gst/video/gst_video_info.go b/gst/video/gst_video_info.go deleted file mode 100644 index c877b7f..0000000 --- a/gst/video/gst_video_info.go +++ /dev/null @@ -1,477 +0,0 @@ -package video - -/* -#include - -GstVideoChromaSite infoChromaSite (GstVideoInfo * info) { return GST_VIDEO_INFO_CHROMA_SITE(info); } -GstVideoColorimetry infoColorimetry (GstVideoInfo * info) { return GST_VIDEO_INFO_COLORIMETRY(info); } -gint infoFieldHeight (GstVideoInfo * info) { return GST_VIDEO_INFO_FIELD_HEIGHT(info); } -GstVideoFieldOrder infoFieldOrder (GstVideoInfo * info) { return GST_VIDEO_INFO_FIELD_ORDER(info); } -gint infoFieldRateN (GstVideoInfo * info) { return GST_VIDEO_INFO_FIELD_RATE_N(info); } -GstVideoFlags infoFlags (GstVideoInfo * info) { return GST_VIDEO_INFO_FLAGS(info); } -gboolean infoFlagIsSet (GstVideoInfo * info, GstVideoFlags flag) { return GST_VIDEO_INFO_FLAG_IS_SET(info, flag); } -void infoFlagSet (GstVideoInfo * info, GstVideoFlags flag) { GST_VIDEO_INFO_FLAG_SET(info, flag); } -void infoFlagUnset (GstVideoInfo * info, GstVideoFlags flag) { GST_VIDEO_INFO_FLAG_UNSET(info, flag); } -GstVideoFormat infoFormat (GstVideoInfo * info) { return GST_VIDEO_INFO_FORMAT(info); } -gint infoFPSd (GstVideoInfo * info) { return GST_VIDEO_INFO_FPS_D(info); } -gint infoFPSn (GstVideoInfo * info) { return GST_VIDEO_INFO_FPS_N(info); } -gboolean infoHasAlpha (GstVideoInfo * info) { return GST_VIDEO_INFO_HAS_ALPHA(info); } -gint infoHeight (GstVideoInfo * info) { return GST_VIDEO_INFO_HEIGHT(info); } -GstVideoInterlaceMode infoInterlaceMode (GstVideoInfo * info) { return GST_VIDEO_INFO_INTERLACE_MODE(info); } -gboolean infoIsGray (GstVideoInfo * info) { return GST_VIDEO_INFO_IS_GRAY(info); } -gboolean infoIsInterlaced (GstVideoInfo * info) { return GST_VIDEO_INFO_IS_INTERLACED(info); } -gboolean infoIsRGB (GstVideoInfo * info) { return GST_VIDEO_INFO_IS_RGB(info); } -gboolean infoIsYUV (GstVideoInfo * info) { return GST_VIDEO_INFO_IS_YUV(info); } -GstVideoMultiviewFlags infoMultiviewFlags (GstVideoInfo * info) { return GST_VIDEO_INFO_MULTIVIEW_FLAGS(info); } -GstVideoMultiviewMode infoMultiviewMode (GstVideoInfo * info) { return GST_VIDEO_INFO_MULTIVIEW_MODE(info); } -const gchar * infoName (GstVideoInfo * info) { return GST_VIDEO_INFO_NAME(info); } -guint infoNComponents (GstVideoInfo * info) { return GST_VIDEO_INFO_N_COMPONENTS(info); } -guint infoNPlanes (GstVideoInfo * info) { return GST_VIDEO_INFO_N_PLANES(info); } -gint infoPARd (GstVideoInfo * info) { return GST_VIDEO_INFO_PAR_D(info); } -gint infoPARn (GstVideoInfo * info) { return GST_VIDEO_INFO_PAR_N(info); } -gsize infoSize (GstVideoInfo * info) { return GST_VIDEO_INFO_SIZE(info); } -gint infoViews (GstVideoInfo * info) { return GST_VIDEO_INFO_VIEWS(info); } -gint infoWidth (GstVideoInfo * info) { return GST_VIDEO_INFO_WIDTH(info); } -*/ -import "C" -import ( - "runtime" - "unsafe" - - "github.com/go-gst/go-gst/gst" -) - -// CapsFeatureFormatInterlaced is the name of the caps feature indicating that the stream is interlaced. -// -// Currently it is only used for video with 'interlace-mode=alternate' to ensure backwards compatibility -// for this new mode. In this mode each buffer carries a single field of interlaced video. BufferFlagTopField -// and BufferFlagBottomField indicate whether the buffer carries a top or bottom field. The order of -// buffers/fields in the stream and the timestamps on the buffers indicate the temporal order of the fields. -// Top and bottom fields are expected to alternate in this mode. The frame rate in the caps still signals the -// frame rate, so the notional field rate will be twice the frame rate from the caps. -const CapsFeatureFormatInterlaced string = C.GST_CAPS_FEATURE_FORMAT_INTERLACED - -// FieldOrder is the field order of interlaced content. This is only valid for interlace-mode=interleaved -// and not interlace-mode=mixed. In the case of mixed or FieldOrderrUnknown, the field order is signaled -// via buffer flags. -type FieldOrder int - -// Type castings -const ( - FieldOrderUnknown FieldOrder = C.GST_VIDEO_FIELD_ORDER_UNKNOWN // (0) – unknown field order for interlaced content. The actual field order is signaled via buffer flags. - FieldOrderTopFieldFirst FieldOrder = C.GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST // (1) – top field is first - FieldOrderBottomFieldFirst FieldOrder = C.GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST // (2) – bottom field is first -) - -// String implements a stringer on FieldOrder -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (f FieldOrder) String() string { - cStr := C.gst_video_field_order_to_string(C.GstVideoFieldOrder(f)) - return C.GoString(cStr) -} - -// Flags represents extra video flags -type Flags int - -// Type castings -const ( - FlagNone Flags = C.GST_VIDEO_FLAG_NONE // (0) – no flags - FlagVariableFPS Flags = C.GST_VIDEO_FLAG_VARIABLE_FPS // (1) – a variable fps is selected, fps_n and fps_d denote the maximum fps of the video - FlagPremultipliedAlpha Flags = C.GST_VIDEO_FLAG_PREMULTIPLIED_ALPHA // (2) – Each color has been scaled by the alpha value. -) - -// InterlaceMode is the possible values describing the interlace mode of the stream. -type InterlaceMode int - -// Type castings -const ( - InterlaceModeProgressive InterlaceMode = C.GST_VIDEO_INTERLACE_MODE_PROGRESSIVE // (0) – all frames are progressive - InterlaceModeInterleaved InterlaceMode = C.GST_VIDEO_INTERLACE_MODE_INTERLEAVED // (1) – 2 fields are interleaved in one video frame. Extra buffer flags describe the field order. - InterlaceModeMixed InterlaceMode = C.GST_VIDEO_INTERLACE_MODE_MIXED // (2) – frames contains both interlaced and progressive video, the buffer flags describe the frame and fields. - InterlaceModeFields InterlaceMode = C.GST_VIDEO_INTERLACE_MODE_FIELDS // (3) – 2 fields are stored in one buffer, use the frame ID to get access to the required field. For multiview (the 'views' property > 1) the fields of view N can be found at frame ID (N * 2) and (N * 2) + 1. Each field has only half the amount of lines as noted in the height property. This mode requires multiple GstVideoMeta metadata to describe the fields. - InterlaceModeAlternate InterlaceMode = C.GST_VIDEO_INTERLACE_MODE_ALTERNATE // (4) – 1 field is stored in one buffer, GST_VIDEO_BUFFER_FLAG_TF or GST_VIDEO_BUFFER_FLAG_BF indicates if the buffer is carrying the top or bottom field, respectively. The top and bottom buffers are expected to alternate in the pipeline, with this mode (Since: 1.16). -) - -// String implements a stringer on interlace mode -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i InterlaceMode) String() string { - return C.GoString(C.gst_video_interlace_mode_to_string(C.GstVideoInterlaceMode(i))) -} - -// MultiviewFlags are used to indicate extra properties of a stereo/multiview stream beyond the frame layout -// and buffer mapping that is conveyed in the MultiviewMode. -type MultiviewFlags int - -// Type castings -const ( - MultiviewFlagsNone MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_NONE // (0) – No flags - MultiviewFlagsRightViewFirst MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST // (1) – For stereo streams, the normal arrangement of left and right views is reversed. - MultiviewFlagsLeftFlipped MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED // (2) – The left view is vertically mirrored. - MultiviewFlagsLeftFlopped MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED // (4) – The left view is horizontally mirrored. - MultiviewFlagsRightFlipped MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED // (8) – The right view is vertically mirrored. - MultiviewFlagsRightFlopped MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED // (16) – The right view is horizontally mirrored. - MultiviewFlagsHalfAspect MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT // (16384) – For frame-packed multiview modes, indicates that the individual views have been encoded with half the true width or height and should be scaled back up for display. This flag is used for overriding input layout interpretation by adjusting pixel-aspect-ratio. For side-by-side, column interleaved or checkerboard packings, the pixel width will be doubled. For row interleaved and top-bottom encodings, pixel height will be doubled. - MultiviewFlagsMixedMono MultiviewFlags = C.GST_VIDEO_MULTIVIEW_FLAGS_MIXED_MONO // (32768) – The video stream contains both mono and multiview portions, signaled on each buffer by the absence or presence of the GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW buffer flag. -) - -// MultiviewFramePacking represents the subset of MultiviewMode values that can be applied to any video frame -// without needing extra metadata. It can be used by elements that provide a property to override the multiview -// interpretation of a video stream when the video doesn't contain any markers. -// -// This enum is used (for example) on playbin, to re-interpret a played video stream as a stereoscopic video. -// The individual enum values are equivalent to and have the same value as the matching MultiviewMode. -type MultiviewFramePacking int - -// Type castings -const ( - MultiviewFramePackingNone MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE // (-1) – A special value indicating no frame packing info. - MultiviewFramePackingMono MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO // (0) – All frames are monoscopic. - MultiviewFramePackingLeft MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT // (1) – All frames represent a left-eye view. - MultiviewFramePackingRight MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT // (2) – All frames represent a right-eye view. - MultiviewFramePackingSideBySide MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE // (3) – Left and right eye views are provided in the left and right half of the frame respectively. - MultiviewFramePackingSideBySideQuincunx MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX // (4) – Left and right eye views are provided in the left and right half of the frame, but have been sampled using quincunx method, with half-pixel offset between the 2 views. - MultiviewFramePackingColumnInterleaved MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED // (5) – Alternating vertical columns of pixels represent the left and right eye view respectively. - MultiviewFramePackingRowInterleaved MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED // (6) – Alternating horizontal rows of pixels represent the left and right eye view respectively. - MultiviewFramePackingTopBottom MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM // (7) – The top half of the frame contains the left eye, and the bottom half the right eye. - MultiviewFramePackingCheckerboard MultiviewFramePacking = C.GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD // (8) – Pixels are arranged with alternating pixels representing left and right eye views in a checkerboard fashion. -) - -// MultiviewMode represents all possible stereoscopic 3D and multiview representations. In conjunction with -// MultiviewFlags, describes how multiview content is being transported in the stream. -type MultiviewMode int - -// Type castings -const ( - MultiviewModeNone MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_NONE // (-1) – A special value indicating no multiview information. Used in GstVideoInfo and other places to indicate that no specific multiview handling has been requested or provided. This value is never carried on caps. - MultiviewModeMono MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_MONO // (0) – All frames are monoscopic. - MultiviewModeLeft MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_LEFT // (1) – All frames represent a left-eye view. - MultiviewModeRight MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_RIGHT // (2) – All frames represent a right-eye view. - MultiviewModeSideBySide MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE // (3) – Left and right eye views are provided in the left and right half of the frame respectively. - MultiviewModeSideBySideQuincunx MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX // (4) – Left and right eye views are provided in the left and right half of the frame, but have been sampled using quincunx method, with half-pixel offset between the 2 views. - MultiviewModeColumnInterleaved MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED // (5) – Alternating vertical columns of pixels represent the left and right eye view respectively. - MultiviewModeRowInterleaved MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED // (6) – Alternating horizontal rows of pixels represent the left and right eye view respectively. - MultiviewModeTopBottom MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM // (7) – The top half of the frame contains the left eye, and the bottom half the right eye. - MultiviewModeCheckerboard MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD // (8) – Pixels are arranged with alternating pixels representing left and right eye views in a checkerboard fashion. - MultiviewModeFrameByFrame MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME // (32) – Left and right eye views are provided in separate frames alternately. - MultiviewModeMultiviewFrameByFrame MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME // (33) – Multiple independent views are provided in separate frames in sequence. This method only applies to raw video buffers at the moment. Specific view identification is via the GstVideoMultiviewMeta and GstVideoMeta(s) on raw video buffers. - MultiviewModeSeparated MultiviewMode = C.GST_VIDEO_MULTIVIEW_MODE_SEPARATED // (34) – Multiple views are provided as separate GstMemory framebuffers attached to each GstBuffer, described by the GstVideoMultiviewMeta and GstVideoMeta(s) -) - -// Info describes image properties. This information can be filled in from GstCaps with -// InfoFromCaps. The information is also used to store the specific video info when mapping -// a video frame with FrameMap. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -type Info struct { - ptr *C.GstVideoInfo -} - -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func wrapInfo(vinfo *C.GstVideoInfo) *Info { - info := &Info{vinfo} - runtime.SetFinalizer(info, (*Info).Free) - return info -} - -// Free will free this video info -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Free() { - C.gst_video_info_free(i.instance()) -} - -// instance returns the underlying GstVideoInfo instance. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) instance() *C.GstVideoInfo { return i.ptr } - -// NewInfo returns a new Info instance. You can populate it by chaining builders -// to this constructor. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func NewInfo() *Info { - return wrapInfo(C.gst_video_info_new()) -} - -// FromCaps parses the caps and updates this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FromCaps(caps *gst.Caps) *Info { - C.gst_video_info_from_caps(i.instance(), fromCoreCaps(caps)) - return i -} - -// Convert converts among various gst.Format types. This function handles gst.FormatBytes, gst.FormatTime, -// and gst.FormatDefault. For raw video, gst.FormatDefault corresponds to video frames. This function can -// be used to handle pad queries of the type gst.QueryTypeConvert. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Convert(srcFormat, destFormat gst.Format, srcValue int64) (out int64, ok bool) { - var gout C.gint64 - gok := C.gst_video_info_convert(i.instance(), C.GstFormat(srcFormat), C.gint64(srcValue), C.GstFormat(destFormat), &gout) - return int64(gout), gobool(gok) -} - -// IsEqual compares two GstVideoInfo and returns whether they are equal or not. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) IsEqual(info *Info) bool { - return gobool(C.gst_video_info_is_equal(i.instance(), info.instance())) -} - -// ChromaSite returns the ChromaSite for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) ChromaSite() ChromaSite { - return ChromaSite(C.infoChromaSite(i.instance())) -} - -// Colorimetry returns the colorimetry for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Colorimetry() *Colorimetry { - return colorimetryFromInstance(C.infoColorimetry(i.instance())) -} - -// FieldHeight returns the field height for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FieldHeight() int { - return int(C.infoFieldHeight(i.instance())) -} - -// FieldOrder returns the field order for this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FieldOrder() FieldOrder { - return FieldOrder(C.infoFieldOrder(i.instance())) -} - -// FieldRateN returns the rate numerator depending on the interlace mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FieldRateN() int { - return int(C.infoFieldRateN(i.instance())) -} - -// Flags returns the flags on this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Flags() Flags { - return Flags(C.infoFlags(i.instance())) -} - -// FlagIsSet returns true if the given flag(s) are set on the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FlagIsSet(f Flags) bool { - return gobool(C.infoFlagIsSet(i.instance(), C.GstVideoFlags(f))) -} - -// FlagSet sets the given flag(s) on the info. The underlying info is returned -// for chaining builders. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FlagSet(f Flags) *Info { - C.infoFlagSet(i.instance(), C.GstVideoFlags(f)) - return i -} - -// FlagUnset unsets the given flag(s) on the info. The underlying info is returned -// for chaining builders. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FlagUnset(f Flags) *Info { - C.infoFlagUnset(i.instance(), C.GstVideoFlags(f)) - return i -} - -// Format returns the format for the info. You can call Info() on the return value -// to inspect the properties further. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Format() Format { - return Format(C.infoFormat(i.instance())) -} - -// FPS returns the frames-per-second value for the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) FPS() *gst.FractionValue { - return gst.Fraction( - int(C.infoFPSn(i.instance())), - int(C.infoFPSd(i.instance())), - ) -} - -// HasAlpha returns true if the alpha flag is set on the format info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) HasAlpha() bool { - return gobool(C.infoHasAlpha(i.instance())) -} - -// Height returns the height of the video. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Height() int { return int(C.infoHeight(i.instance())) } - -// InterlaceMode returns the interlace mode of this Info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) InterlaceMode() InterlaceMode { - return InterlaceMode(C.infoInterlaceMode(i.instance())) -} - -// IsInterlaced returns true if the interlace mode is not Progressive. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) IsInterlaced() bool { - return gobool(C.infoIsInterlaced(i.instance())) -} - -// IsGray returns if the format is grayscale. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) IsGray() bool { return gobool(C.infoIsGray(i.instance())) } - -// IsRGB returns if the format is RGB. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) IsRGB() bool { return gobool(C.infoIsRGB(i.instance())) } - -// IsYUV returns if the format is YUV. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) IsYUV() bool { return gobool(C.infoIsYUV(i.instance())) } - -// MultiviewFlags returns the MultiviewFlags on the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) MultiviewFlags() MultiviewFlags { - return MultiviewFlags(C.infoMultiviewFlags(i.instance())) -} - -// MultiviewMode returns the MultiviewMode on thee info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) MultiviewMode() MultiviewMode { - return MultiviewMode(C.infoMultiviewMode(i.instance())) -} - -// Name returns a human readable name forr the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Name() string { - return C.GoString(C.infoName(i.instance())) -} - -// NumComponents returns the number of components in the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) NumComponents() uint { - return uint(C.infoNComponents(i.instance())) -} - -// NumPlanes returns the number of planes in the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) NumPlanes() uint { - return uint(C.infoNPlanes(i.instance())) -} - -// PAR returns the pixel-aspect-ration value for the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) PAR() *gst.FractionValue { - return gst.Fraction( - int(C.infoPARn(i.instance())), - int(C.infoPARd(i.instance())), - ) -} - -// Size returns the size of the info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Size() int64 { - return int64(C.infoSize(i.instance())) -} - -// Views returns the number of views. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Views() int { - return int(C.infoViews(i.instance())) -} - -// Width returns the width of the video. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) Width() int { return int(C.infoWidth(i.instance())) } - -// WithAlign adjusts the offset and stride fields in info so that the padding and stride alignment in -// align is respected. -// -// Extra padding will be added to the right side when stride alignment padding is required and align -// will be updated with the new padding values. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) WithAlign(align *Alignment) *Info { - C.gst_video_info_align(i.instance(), align.instance()) - return i -} - -// WithFormat sets the format on this info. -// -// Note: This initializes info first, no values are preserved. This function does not set the offsets -// correctly for interlaced vertically subsampled formats. If the format is invalid (e.g. because the -// size of a frame can't be represented as a 32 bit integer), nothing will happen. This is is for -// convenience in chaining, but may be changed in the future. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) WithFormat(format Format, width, height uint) *Info { - C.gst_video_info_set_format(i.instance(), C.GstVideoFormat(format), C.guint(width), C.guint(height)) - return i -} - -// WithInterlacedFormat is the same as WithFormat but also allows to set the interlaced mode. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) WithInterlacedFormat(format Format, interlaceMode InterlaceMode, width, height uint) *Info { - C.gst_video_info_set_interlaced_format( - i.instance(), - C.GstVideoFormat(format), - C.GstVideoInterlaceMode(interlaceMode), - C.guint(width), C.guint(height), - ) - return i -} - -// WithFPS sets the FPS on this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) WithFPS(f *gst.FractionValue) *Info { - i.instance().fps_d = C.gint(f.Denom()) - i.instance().fps_n = C.gint(f.Num()) - return i -} - -// WithPAR sets the FPS on this info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) WithPAR(f *gst.FractionValue) *Info { - i.instance().par_d = C.gint(f.Denom()) - i.instance().par_n = C.gint(f.Num()) - return i -} - -// ToCaps returns the caps representation of this video info. -// -// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead. -func (i *Info) ToCaps() *gst.Caps { - caps := C.gst_video_info_to_caps(i.instance()) - return gst.FromGstCapsUnsafeFull(unsafe.Pointer(caps)) -} diff --git a/gst/video/gst_video_tile.go b/gst/video/gst_video_tile.go deleted file mode 100644 index 5334a11..0000000 --- a/gst/video/gst_video_tile.go +++ /dev/null @@ -1,24 +0,0 @@ -package video - -/* -#include -*/ -import "C" - -// TileMode is an enum value describing the available tiling modes. -type TileMode int - -// Type castings -const ( - TileModeUnknown TileMode = C.GST_VIDEO_TILE_MODE_UNKNOWN // (0) – Unknown or unset tile mode - TileModeZFlipZ2X2 TileMode = C.GST_VIDEO_TILE_MODE_ZFLIPZ_2X2 // (65536) – Every four adjacent blocks - two horizontally and two vertically are grouped together and are located in memory in Z or flipped Z order. In case of odd rows, the last row of blocks is arranged in linear order. - TileModeLinear TileMode = C.GST_VIDEO_TILE_MODE_LINEAR // (131072) – Tiles are in row order. -) - -// TileType is an enum value describing the most common tiling types. -type TileType int - -// Type castings -const ( - TileTypeIndexed TileType = C.GST_VIDEO_TILE_TYPE_INDEXED // (0) – Tiles are indexed. Use gst_video_tile_get_index () to retrieve the tile at the requested coordinates. -) diff --git a/gst/video/pkg_config.go b/gst/video/pkg_config.go deleted file mode 100644 index 41edc92..0000000 --- a/gst/video/pkg_config.go +++ /dev/null @@ -1,8 +0,0 @@ -package video - -/* -#cgo pkg-config: gstreamer-plugins-base-1.0 gstreamer-video-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -#cgo LDFLAGS: -lgstvideo-1.0 -*/ -import "C" diff --git a/pkg/gst/bus_manual.go b/pkg/gst/bus_manual.go index 25880bc..301e2f4 100644 --- a/pkg/gst/bus_manual.go +++ b/pkg/gst/bus_manual.go @@ -5,14 +5,14 @@ import ( "iter" "runtime" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/userdata" "github.com/go-gst/go-gst/pkg/gst/internal/channel" ) // #cgo pkg-config: gstreamer-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern GstBusSyncReply _gotk4_gst1_BusSyncHandler(GstBus*, GstMessage*, gpointer); +// extern GstBusSyncReply _gogst_gst1_BusSyncHandler(GstBus*, GstMessage*, gpointer); // extern void destroyUserdata(gpointer); import "C" @@ -99,7 +99,7 @@ func (bus *BusInstance) SetSyncHandler(fn BusSyncHandler) { carg0 = (*C.GstBus)(UnsafeBusToGlibNone(bus)) if fn != nil { - carg1 = (*[0]byte)(C._gotk4_gst1_BusSyncHandler) + carg1 = (*[0]byte)(C._gogst_gst1_BusSyncHandler) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) } diff --git a/pkg/gst/bus_manual_export.go b/pkg/gst/bus_manual_export.go index 6ed0d57..99362a0 100644 --- a/pkg/gst/bus_manual_export.go +++ b/pkg/gst/bus_manual_export.go @@ -3,7 +3,7 @@ package gst import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/userdata" ) // #cgo pkg-config: gstreamer-1.0 @@ -11,8 +11,8 @@ import ( // #include import "C" -//export _gotk4_gst1_BusSyncHandler -func _gotk4_gst1_BusSyncHandler(carg1 *C.GstBus, carg2 *C.GstMessage, carg3 C.gpointer) (cret C.GstBusSyncReply) { +//export _gogst_gst1_BusSyncHandler +func _gogst_gst1_BusSyncHandler(carg1 *C.GstBus, carg2 *C.GstMessage, carg3 C.gpointer) (cret C.GstBusSyncReply) { var fn BusSyncHandler { v := userdata.Load(unsafe.Pointer(carg3)) diff --git a/pkg/gst/childproxy_manual.go b/pkg/gst/childproxy_manual.go index 3b897c9..a8d04c1 100644 --- a/pkg/gst/childproxy_manual.go +++ b/pkg/gst/childproxy_manual.go @@ -4,7 +4,7 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gst/element_factory.go b/pkg/gst/element_factory.go index 0887ab0..9312285 100644 --- a/pkg/gst/element_factory.go +++ b/pkg/gst/element_factory.go @@ -4,7 +4,7 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gst/element_manual.go b/pkg/gst/element_manual.go index 210674b..32e095f 100644 --- a/pkg/gst/element_manual.go +++ b/pkg/gst/element_manual.go @@ -4,7 +4,7 @@ import ( "path" "runtime" - "github.com/diamondburned/gotk4/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gst/gst.gen.go b/pkg/gst/gst.gen.go index 498a7ba..fdd4c84 100644 --- a/pkg/gst/gst.gen.go +++ b/pkg/gst/gst.gen.go @@ -9,266 +9,265 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern GstPadProbeReturn _gotk4_gst1_PadProbeCallback(GstPad*, GstPadProbeInfo*, gpointer); -// extern gboolean _gotk4_gst1_BufferForeachMetaFunc(GstBuffer*, GstMeta*, gpointer); -// extern gboolean _gotk4_gst1_BufferListFunc(GstBuffer*, guint, gpointer); -// extern gboolean _gotk4_gst1_BusFunc(GstBus*, GstMessage*, gpointer); -// extern gboolean _gotk4_gst1_CapsFilterMapFunc(GstCapsFeatures*, GstStructure*, gpointer); -// extern gboolean _gotk4_gst1_CapsForeachFunc(GstCapsFeatures*, GstStructure*, gpointer); -// extern gboolean _gotk4_gst1_CapsMapFunc(GstCapsFeatures*, GstStructure*, gpointer); -// extern gboolean _gotk4_gst1_ClockCallback(GstClock*, GstClockTime, GstClockID, gpointer); -// extern gboolean _gotk4_gst1_ElementForeachPadFunc(GstElement*, GstPad*, gpointer); -// extern gboolean _gotk4_gst1_IteratorFoldFunction(const GValue*, GValue*, gpointer); -// extern gboolean _gotk4_gst1_PadForwardFunction(GstPad*, gpointer); -// extern gboolean _gotk4_gst1_PluginFeatureFilter(GstPluginFeature*, gpointer); -// extern gboolean _gotk4_gst1_PluginFilter(GstPlugin*, gpointer); -// extern gboolean _gotk4_gst1_PluginInitFullFunc(GstPlugin*, gpointer); -// extern gboolean _gotk4_gst1_StructureFilterMapIdStrFunc(const GstIdStr*, GValue*, gpointer); -// extern gboolean _gotk4_gst1_StructureForeachIdStrFunc(const GstIdStr*, const GValue*, gpointer); -// extern gboolean _gotk4_gst1_StructureMapIdStrFunc(const GstIdStr*, GValue*, gpointer); -// extern void _gotk4_gst1_ElementCallAsyncFunc(GstElement*, gpointer); -// extern void _gotk4_gst1_IteratorForeachFunction(const GValue*, gpointer); -// extern void _gotk4_gst1_LogFunction(GstDebugCategory*, GstDebugLevel, const gchar*, const gchar*, gint, GObject*, GstDebugMessage*, gpointer); -// extern void _gotk4_gst1_TagForeachFunc(const GstTagList*, const gchar*, gpointer); -// extern void _gotk4_gst1_TaskFunction(gpointer); -// extern void _gotk4_gst1_TaskThreadFunc(GstTask*, GThread*, gpointer); -// extern void _gotk4_gst1_TypeFindFunction(GstTypeFind*, gpointer); +// extern GstPadProbeReturn _goglib_gst1_PadProbeCallback(GstPad*, GstPadProbeInfo*, gpointer); +// extern gboolean _goglib_gst1_BufferForeachMetaFunc(GstBuffer*, GstMeta*, gpointer); +// extern gboolean _goglib_gst1_BufferListFunc(GstBuffer*, guint, gpointer); +// extern gboolean _goglib_gst1_BusFunc(GstBus*, GstMessage*, gpointer); +// extern gboolean _goglib_gst1_CapsFilterMapFunc(GstCapsFeatures*, GstStructure*, gpointer); +// extern gboolean _goglib_gst1_CapsForeachFunc(GstCapsFeatures*, GstStructure*, gpointer); +// extern gboolean _goglib_gst1_CapsMapFunc(GstCapsFeatures*, GstStructure*, gpointer); +// extern gboolean _goglib_gst1_ClockCallback(GstClock*, GstClockTime, GstClockID, gpointer); +// extern gboolean _goglib_gst1_ElementForeachPadFunc(GstElement*, GstPad*, gpointer); +// extern gboolean _goglib_gst1_IteratorFoldFunction(const GValue*, GValue*, gpointer); +// extern gboolean _goglib_gst1_PadForwardFunction(GstPad*, gpointer); +// extern gboolean _goglib_gst1_PluginFeatureFilter(GstPluginFeature*, gpointer); +// extern gboolean _goglib_gst1_PluginFilter(GstPlugin*, gpointer); +// extern gboolean _goglib_gst1_PluginInitFullFunc(GstPlugin*, gpointer); +// extern gboolean _goglib_gst1_StructureFilterMapIdStrFunc(const GstIdStr*, GValue*, gpointer); +// extern gboolean _goglib_gst1_StructureForeachIdStrFunc(const GstIdStr*, const GValue*, gpointer); +// extern gboolean _goglib_gst1_StructureMapIdStrFunc(const GstIdStr*, GValue*, gpointer); +// extern void _goglib_gst1_ElementCallAsyncFunc(GstElement*, gpointer); +// extern void _goglib_gst1_IteratorForeachFunction(const GValue*, gpointer); +// extern void _goglib_gst1_LogFunction(GstDebugCategory*, GstDebugLevel, const gchar*, const gchar*, gint, GObject*, GstDebugMessage*, gpointer); +// extern void _goglib_gst1_TagForeachFunc(const GstTagList*, const gchar*, gpointer); +// extern void _goglib_gst1_TaskFunction(gpointer); +// extern void _goglib_gst1_TypeFindFunction(GstTypeFind*, gpointer); // extern void destroyUserdata(gpointer); -// extern void _gotk4_gst1_Object_deep_notify(GstObject*, GstObject*, GParamSpec*); -// void _gotk4_gst1_Object_virtual_deep_notify(void* fnptr, GstObject* carg0, GstObject* carg1, GParamSpec* carg2) { +// extern void _goglib_gst1_Object_deep_notify(GstObject*, GstObject*, GParamSpec*); +// void _goglib_gst1_Object_virtual_deep_notify(void* fnptr, GstObject* carg0, GstObject* carg1, GParamSpec* carg2) { // return ((void (*) (GstObject*, GstObject*, GParamSpec*))(fnptr))(carg0, carg1, carg2); // } -// extern void _gotk4_gst1_Pad_linked(GstPad*, GstPad*); -// extern void _gotk4_gst1_Pad_unlinked(GstPad*, GstPad*); -// void _gotk4_gst1_Pad_virtual_linked(void* fnptr, GstPad* carg0, GstPad* carg1) { +// extern void _goglib_gst1_Pad_linked(GstPad*, GstPad*); +// extern void _goglib_gst1_Pad_unlinked(GstPad*, GstPad*); +// void _goglib_gst1_Pad_virtual_linked(void* fnptr, GstPad* carg0, GstPad* carg1) { // return ((void (*) (GstPad*, GstPad*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Pad_virtual_unlinked(void* fnptr, GstPad* carg0, GstPad* carg1) { +// void _goglib_gst1_Pad_virtual_unlinked(void* fnptr, GstPad* carg0, GstPad* carg1) { // return ((void (*) (GstPad*, GstPad*))(fnptr))(carg0, carg1); // } -// extern void _gotk4_gst1_PadTemplate_pad_created(GstPadTemplate*, GstPad*); -// void _gotk4_gst1_PadTemplate_virtual_pad_created(void* fnptr, GstPadTemplate* carg0, GstPad* carg1) { +// extern void _goglib_gst1_PadTemplate_pad_created(GstPadTemplate*, GstPad*); +// void _goglib_gst1_PadTemplate_virtual_pad_created(void* fnptr, GstPadTemplate* carg0, GstPad* carg1) { // return ((void (*) (GstPadTemplate*, GstPad*))(fnptr))(carg0, carg1); // } -// extern void _gotk4_gst1_StreamCollection_stream_notify(GstStreamCollection*, GstStream*, GParamSpec*); -// void _gotk4_gst1_StreamCollection_virtual_stream_notify(void* fnptr, GstStreamCollection* carg0, GstStream* carg1, GParamSpec* carg2) { +// extern void _goglib_gst1_StreamCollection_stream_notify(GstStreamCollection*, GstStream*, GParamSpec*); +// void _goglib_gst1_StreamCollection_virtual_stream_notify(void* fnptr, GstStreamCollection* carg0, GstStream* carg1, GParamSpec* carg2) { // return ((void (*) (GstStreamCollection*, GstStream*, GParamSpec*))(fnptr))(carg0, carg1, carg2); // } -// extern void _gotk4_gst1_TaskPool_cleanup(GstTaskPool*); -// extern void _gotk4_gst1_TaskPool_prepare(GstTaskPool*, GError*); -// void _gotk4_gst1_TaskPool_virtual_cleanup(void* fnptr, GstTaskPool* carg0) { +// extern void _goglib_gst1_TaskPool_cleanup(GstTaskPool*); +// extern void _goglib_gst1_TaskPool_prepare(GstTaskPool*, GError*); +// void _goglib_gst1_TaskPool_virtual_cleanup(void* fnptr, GstTaskPool* carg0) { // return ((void (*) (GstTaskPool*))(fnptr))(carg0); // } -// void _gotk4_gst1_TaskPool_virtual_prepare(void* fnptr, GstTaskPool* carg0, GError** _cerr) { +// void _goglib_gst1_TaskPool_virtual_prepare(void* fnptr, GstTaskPool* carg0, GError** _cerr) { // return ((void (*) (GstTaskPool*, GError**))(fnptr))(carg0, _cerr); // } -// extern GstMemory* _gotk4_gst1_Allocator_alloc(GstAllocator*, gsize, GstAllocationParams*); -// extern void _gotk4_gst1_Allocator_free(GstAllocator*, GstMemory*); -// GstMemory* _gotk4_gst1_Allocator_virtual_alloc(void* fnptr, GstAllocator* carg0, gsize carg1, GstAllocationParams* carg2) { +// extern GstMemory* _goglib_gst1_Allocator_alloc(GstAllocator*, gsize, GstAllocationParams*); +// extern void _goglib_gst1_Allocator_free(GstAllocator*, GstMemory*); +// GstMemory* _goglib_gst1_Allocator_virtual_alloc(void* fnptr, GstAllocator* carg0, gsize carg1, GstAllocationParams* carg2) { // return ((GstMemory* (*) (GstAllocator*, gsize, GstAllocationParams*))(fnptr))(carg0, carg1, carg2); // } -// void _gotk4_gst1_Allocator_virtual_free(void* fnptr, GstAllocator* carg0, GstMemory* carg1) { +// void _goglib_gst1_Allocator_virtual_free(void* fnptr, GstAllocator* carg0, GstMemory* carg1) { // return ((void (*) (GstAllocator*, GstMemory*))(fnptr))(carg0, carg1); // } -// extern GstFlowReturn _gotk4_gst1_BufferPool_acquire_buffer(GstBufferPool*, GstBuffer*, GstBufferPoolAcquireParams*); -// extern GstFlowReturn _gotk4_gst1_BufferPool_alloc_buffer(GstBufferPool*, GstBuffer*, GstBufferPoolAcquireParams*); -// extern void _gotk4_gst1_BufferPool_flush_start(GstBufferPool*); -// extern void _gotk4_gst1_BufferPool_flush_stop(GstBufferPool*); -// extern void _gotk4_gst1_BufferPool_free_buffer(GstBufferPool*, GstBuffer*); -// extern const gchar** _gotk4_gst1_BufferPool_get_options(GstBufferPool*); -// extern void _gotk4_gst1_BufferPool_release_buffer(GstBufferPool*, GstBuffer*); -// extern void _gotk4_gst1_BufferPool_reset_buffer(GstBufferPool*, GstBuffer*); -// extern gboolean _gotk4_gst1_BufferPool_set_config(GstBufferPool*, GstStructure*); -// extern gboolean _gotk4_gst1_BufferPool_start(GstBufferPool*); -// extern gboolean _gotk4_gst1_BufferPool_stop(GstBufferPool*); -// GstFlowReturn _gotk4_gst1_BufferPool_virtual_acquire_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer** carg1, GstBufferPoolAcquireParams* carg2) { +// extern GstFlowReturn _goglib_gst1_BufferPool_acquire_buffer(GstBufferPool*, GstBuffer*, GstBufferPoolAcquireParams*); +// extern GstFlowReturn _goglib_gst1_BufferPool_alloc_buffer(GstBufferPool*, GstBuffer*, GstBufferPoolAcquireParams*); +// extern void _goglib_gst1_BufferPool_flush_start(GstBufferPool*); +// extern void _goglib_gst1_BufferPool_flush_stop(GstBufferPool*); +// extern void _goglib_gst1_BufferPool_free_buffer(GstBufferPool*, GstBuffer*); +// extern const gchar** _goglib_gst1_BufferPool_get_options(GstBufferPool*); +// extern void _goglib_gst1_BufferPool_release_buffer(GstBufferPool*, GstBuffer*); +// extern void _goglib_gst1_BufferPool_reset_buffer(GstBufferPool*, GstBuffer*); +// extern gboolean _goglib_gst1_BufferPool_set_config(GstBufferPool*, GstStructure*); +// extern gboolean _goglib_gst1_BufferPool_start(GstBufferPool*); +// extern gboolean _goglib_gst1_BufferPool_stop(GstBufferPool*); +// GstFlowReturn _goglib_gst1_BufferPool_virtual_acquire_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer** carg1, GstBufferPoolAcquireParams* carg2) { // return ((GstFlowReturn (*) (GstBufferPool*, GstBuffer**, GstBufferPoolAcquireParams*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gst1_BufferPool_virtual_alloc_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer** carg1, GstBufferPoolAcquireParams* carg2) { +// GstFlowReturn _goglib_gst1_BufferPool_virtual_alloc_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer** carg1, GstBufferPoolAcquireParams* carg2) { // return ((GstFlowReturn (*) (GstBufferPool*, GstBuffer**, GstBufferPoolAcquireParams*))(fnptr))(carg0, carg1, carg2); // } -// void _gotk4_gst1_BufferPool_virtual_flush_start(void* fnptr, GstBufferPool* carg0) { +// void _goglib_gst1_BufferPool_virtual_flush_start(void* fnptr, GstBufferPool* carg0) { // return ((void (*) (GstBufferPool*))(fnptr))(carg0); // } -// void _gotk4_gst1_BufferPool_virtual_flush_stop(void* fnptr, GstBufferPool* carg0) { +// void _goglib_gst1_BufferPool_virtual_flush_stop(void* fnptr, GstBufferPool* carg0) { // return ((void (*) (GstBufferPool*))(fnptr))(carg0); // } -// void _gotk4_gst1_BufferPool_virtual_free_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer* carg1) { +// void _goglib_gst1_BufferPool_virtual_free_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer* carg1) { // return ((void (*) (GstBufferPool*, GstBuffer*))(fnptr))(carg0, carg1); // } -// const gchar** _gotk4_gst1_BufferPool_virtual_get_options(void* fnptr, GstBufferPool* carg0) { +// const gchar** _goglib_gst1_BufferPool_virtual_get_options(void* fnptr, GstBufferPool* carg0) { // return ((const gchar** (*) (GstBufferPool*))(fnptr))(carg0); // } -// void _gotk4_gst1_BufferPool_virtual_release_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer* carg1) { +// void _goglib_gst1_BufferPool_virtual_release_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer* carg1) { // return ((void (*) (GstBufferPool*, GstBuffer*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_BufferPool_virtual_reset_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer* carg1) { +// void _goglib_gst1_BufferPool_virtual_reset_buffer(void* fnptr, GstBufferPool* carg0, GstBuffer* carg1) { // return ((void (*) (GstBufferPool*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gst1_BufferPool_virtual_set_config(void* fnptr, GstBufferPool* carg0, GstStructure* carg1) { +// gboolean _goglib_gst1_BufferPool_virtual_set_config(void* fnptr, GstBufferPool* carg0, GstStructure* carg1) { // return ((gboolean (*) (GstBufferPool*, GstStructure*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gst1_BufferPool_virtual_start(void* fnptr, GstBufferPool* carg0) { +// gboolean _goglib_gst1_BufferPool_virtual_start(void* fnptr, GstBufferPool* carg0) { // return ((gboolean (*) (GstBufferPool*))(fnptr))(carg0); // } -// gboolean _gotk4_gst1_BufferPool_virtual_stop(void* fnptr, GstBufferPool* carg0) { +// gboolean _goglib_gst1_BufferPool_virtual_stop(void* fnptr, GstBufferPool* carg0) { // return ((gboolean (*) (GstBufferPool*))(fnptr))(carg0); // } -// extern void _gotk4_gst1_Bus_message(GstBus*, GstMessage*); -// extern void _gotk4_gst1_Bus_sync_message(GstBus*, GstMessage*); -// void _gotk4_gst1_Bus_virtual_message(void* fnptr, GstBus* carg0, GstMessage* carg1) { +// extern void _goglib_gst1_Bus_message(GstBus*, GstMessage*); +// extern void _goglib_gst1_Bus_sync_message(GstBus*, GstMessage*); +// void _goglib_gst1_Bus_virtual_message(void* fnptr, GstBus* carg0, GstMessage* carg1) { // return ((void (*) (GstBus*, GstMessage*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Bus_virtual_sync_message(void* fnptr, GstBus* carg0, GstMessage* carg1) { +// void _goglib_gst1_Bus_virtual_sync_message(void* fnptr, GstBus* carg0, GstMessage* carg1) { // return ((void (*) (GstBus*, GstMessage*))(fnptr))(carg0, carg1); // } -// extern GstClockTime _gotk4_gst1_Clock_change_resolution(GstClock*, GstClockTime, GstClockTime); -// extern GstClockTime _gotk4_gst1_Clock_get_internal_time(GstClock*); -// extern GstClockTime _gotk4_gst1_Clock_get_resolution(GstClock*); -// extern void _gotk4_gst1_Clock_unschedule(GstClock*, GstClockEntry*); -// extern GstClockReturn _gotk4_gst1_Clock_wait(GstClock*, GstClockEntry*, GstClockTimeDiff); -// extern GstClockReturn _gotk4_gst1_Clock_wait_async(GstClock*, GstClockEntry*); -// GstClockTime _gotk4_gst1_Clock_virtual_change_resolution(void* fnptr, GstClock* carg0, GstClockTime carg1, GstClockTime carg2) { +// extern GstClockTime _goglib_gst1_Clock_change_resolution(GstClock*, GstClockTime, GstClockTime); +// extern GstClockTime _goglib_gst1_Clock_get_internal_time(GstClock*); +// extern GstClockTime _goglib_gst1_Clock_get_resolution(GstClock*); +// extern void _goglib_gst1_Clock_unschedule(GstClock*, GstClockEntry*); +// extern GstClockReturn _goglib_gst1_Clock_wait(GstClock*, GstClockEntry*, GstClockTimeDiff); +// extern GstClockReturn _goglib_gst1_Clock_wait_async(GstClock*, GstClockEntry*); +// GstClockTime _goglib_gst1_Clock_virtual_change_resolution(void* fnptr, GstClock* carg0, GstClockTime carg1, GstClockTime carg2) { // return ((GstClockTime (*) (GstClock*, GstClockTime, GstClockTime))(fnptr))(carg0, carg1, carg2); // } -// GstClockTime _gotk4_gst1_Clock_virtual_get_internal_time(void* fnptr, GstClock* carg0) { +// GstClockTime _goglib_gst1_Clock_virtual_get_internal_time(void* fnptr, GstClock* carg0) { // return ((GstClockTime (*) (GstClock*))(fnptr))(carg0); // } -// GstClockTime _gotk4_gst1_Clock_virtual_get_resolution(void* fnptr, GstClock* carg0) { +// GstClockTime _goglib_gst1_Clock_virtual_get_resolution(void* fnptr, GstClock* carg0) { // return ((GstClockTime (*) (GstClock*))(fnptr))(carg0); // } -// void _gotk4_gst1_Clock_virtual_unschedule(void* fnptr, GstClock* carg0, GstClockEntry* carg1) { +// void _goglib_gst1_Clock_virtual_unschedule(void* fnptr, GstClock* carg0, GstClockEntry* carg1) { // return ((void (*) (GstClock*, GstClockEntry*))(fnptr))(carg0, carg1); // } -// GstClockReturn _gotk4_gst1_Clock_virtual_wait(void* fnptr, GstClock* carg0, GstClockEntry* carg1, GstClockTimeDiff* carg2) { +// GstClockReturn _goglib_gst1_Clock_virtual_wait(void* fnptr, GstClock* carg0, GstClockEntry* carg1, GstClockTimeDiff* carg2) { // return ((GstClockReturn (*) (GstClock*, GstClockEntry*, GstClockTimeDiff*))(fnptr))(carg0, carg1, carg2); // } -// GstClockReturn _gotk4_gst1_Clock_virtual_wait_async(void* fnptr, GstClock* carg0, GstClockEntry* carg1) { +// GstClockReturn _goglib_gst1_Clock_virtual_wait_async(void* fnptr, GstClock* carg0, GstClockEntry* carg1) { // return ((GstClockReturn (*) (GstClock*, GstClockEntry*))(fnptr))(carg0, carg1); // } -// extern gboolean _gotk4_gst1_ControlBinding_sync_values(GstControlBinding*, GstObject*, GstClockTime, GstClockTime); -// gboolean _gotk4_gst1_ControlBinding_virtual_sync_values(void* fnptr, GstControlBinding* carg0, GstObject* carg1, GstClockTime carg2, GstClockTime carg3) { +// extern gboolean _goglib_gst1_ControlBinding_sync_values(GstControlBinding*, GstObject*, GstClockTime, GstClockTime); +// gboolean _goglib_gst1_ControlBinding_virtual_sync_values(void* fnptr, GstControlBinding* carg0, GstObject* carg1, GstClockTime carg2, GstClockTime carg3) { // return ((gboolean (*) (GstControlBinding*, GstObject*, GstClockTime, GstClockTime))(fnptr))(carg0, carg1, carg2, carg3); // } -// extern GstElement* _gotk4_gst1_Device_create_element(GstDevice*, const gchar*); -// extern gboolean _gotk4_gst1_Device_reconfigure_element(GstDevice*, GstElement*); -// GstElement* _gotk4_gst1_Device_virtual_create_element(void* fnptr, GstDevice* carg0, const gchar* carg1) { +// extern GstElement* _goglib_gst1_Device_create_element(GstDevice*, const gchar*); +// extern gboolean _goglib_gst1_Device_reconfigure_element(GstDevice*, GstElement*); +// GstElement* _goglib_gst1_Device_virtual_create_element(void* fnptr, GstDevice* carg0, const gchar* carg1) { // return ((GstElement* (*) (GstDevice*, const gchar*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gst1_Device_virtual_reconfigure_element(void* fnptr, GstDevice* carg0, GstElement* carg1) { +// gboolean _goglib_gst1_Device_virtual_reconfigure_element(void* fnptr, GstDevice* carg0, GstElement* carg1) { // return ((gboolean (*) (GstDevice*, GstElement*))(fnptr))(carg0, carg1); // } -// extern gboolean _gotk4_gst1_DeviceProvider_start(GstDeviceProvider*); -// extern void _gotk4_gst1_DeviceProvider_stop(GstDeviceProvider*); -// gboolean _gotk4_gst1_DeviceProvider_virtual_start(void* fnptr, GstDeviceProvider* carg0) { +// extern gboolean _goglib_gst1_DeviceProvider_start(GstDeviceProvider*); +// extern void _goglib_gst1_DeviceProvider_stop(GstDeviceProvider*); +// gboolean _goglib_gst1_DeviceProvider_virtual_start(void* fnptr, GstDeviceProvider* carg0) { // return ((gboolean (*) (GstDeviceProvider*))(fnptr))(carg0); // } -// void _gotk4_gst1_DeviceProvider_virtual_stop(void* fnptr, GstDeviceProvider* carg0) { +// void _goglib_gst1_DeviceProvider_virtual_stop(void* fnptr, GstDeviceProvider* carg0) { // return ((void (*) (GstDeviceProvider*))(fnptr))(carg0); // } -// extern GstStateChangeReturn _gotk4_gst1_Element_change_state(GstElement*, GstStateChange); -// extern GstStateChangeReturn _gotk4_gst1_Element_get_state(GstElement*, GstState, GstState, GstClockTime); -// extern void _gotk4_gst1_Element_no_more_pads(GstElement*); -// extern void _gotk4_gst1_Element_pad_added(GstElement*, GstPad*); -// extern void _gotk4_gst1_Element_pad_removed(GstElement*, GstPad*); -// extern gboolean _gotk4_gst1_Element_post_message(GstElement*, GstMessage*); -// extern GstClock* _gotk4_gst1_Element_provide_clock(GstElement*); -// extern gboolean _gotk4_gst1_Element_query(GstElement*, GstQuery*); -// extern void _gotk4_gst1_Element_release_pad(GstElement*, GstPad*); -// extern GstPad* _gotk4_gst1_Element_request_new_pad(GstElement*, GstPadTemplate*, const gchar*, const GstCaps*); -// extern gboolean _gotk4_gst1_Element_send_event(GstElement*, GstEvent*); -// extern void _gotk4_gst1_Element_set_bus(GstElement*, GstBus*); -// extern gboolean _gotk4_gst1_Element_set_clock(GstElement*, GstClock*); -// extern void _gotk4_gst1_Element_set_context(GstElement*, GstContext*); -// extern GstStateChangeReturn _gotk4_gst1_Element_set_state(GstElement*, GstState); -// extern void _gotk4_gst1_Element_state_changed(GstElement*, GstState, GstState, GstState); -// GstStateChangeReturn _gotk4_gst1_Element_virtual_change_state(void* fnptr, GstElement* carg0, GstStateChange carg1) { +// extern GstStateChangeReturn _goglib_gst1_Element_change_state(GstElement*, GstStateChange); +// extern GstStateChangeReturn _goglib_gst1_Element_get_state(GstElement*, GstState, GstState, GstClockTime); +// extern void _goglib_gst1_Element_no_more_pads(GstElement*); +// extern void _goglib_gst1_Element_pad_added(GstElement*, GstPad*); +// extern void _goglib_gst1_Element_pad_removed(GstElement*, GstPad*); +// extern gboolean _goglib_gst1_Element_post_message(GstElement*, GstMessage*); +// extern GstClock* _goglib_gst1_Element_provide_clock(GstElement*); +// extern gboolean _goglib_gst1_Element_query(GstElement*, GstQuery*); +// extern void _goglib_gst1_Element_release_pad(GstElement*, GstPad*); +// extern GstPad* _goglib_gst1_Element_request_new_pad(GstElement*, GstPadTemplate*, const gchar*, const GstCaps*); +// extern gboolean _goglib_gst1_Element_send_event(GstElement*, GstEvent*); +// extern void _goglib_gst1_Element_set_bus(GstElement*, GstBus*); +// extern gboolean _goglib_gst1_Element_set_clock(GstElement*, GstClock*); +// extern void _goglib_gst1_Element_set_context(GstElement*, GstContext*); +// extern GstStateChangeReturn _goglib_gst1_Element_set_state(GstElement*, GstState); +// extern void _goglib_gst1_Element_state_changed(GstElement*, GstState, GstState, GstState); +// GstStateChangeReturn _goglib_gst1_Element_virtual_change_state(void* fnptr, GstElement* carg0, GstStateChange carg1) { // return ((GstStateChangeReturn (*) (GstElement*, GstStateChange))(fnptr))(carg0, carg1); // } -// GstStateChangeReturn _gotk4_gst1_Element_virtual_get_state(void* fnptr, GstElement* carg0, GstState* carg1, GstState* carg2, GstClockTime carg3) { +// GstStateChangeReturn _goglib_gst1_Element_virtual_get_state(void* fnptr, GstElement* carg0, GstState* carg1, GstState* carg2, GstClockTime carg3) { // return ((GstStateChangeReturn (*) (GstElement*, GstState*, GstState*, GstClockTime))(fnptr))(carg0, carg1, carg2, carg3); // } -// void _gotk4_gst1_Element_virtual_no_more_pads(void* fnptr, GstElement* carg0) { +// void _goglib_gst1_Element_virtual_no_more_pads(void* fnptr, GstElement* carg0) { // return ((void (*) (GstElement*))(fnptr))(carg0); // } -// void _gotk4_gst1_Element_virtual_pad_added(void* fnptr, GstElement* carg0, GstPad* carg1) { +// void _goglib_gst1_Element_virtual_pad_added(void* fnptr, GstElement* carg0, GstPad* carg1) { // return ((void (*) (GstElement*, GstPad*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Element_virtual_pad_removed(void* fnptr, GstElement* carg0, GstPad* carg1) { +// void _goglib_gst1_Element_virtual_pad_removed(void* fnptr, GstElement* carg0, GstPad* carg1) { // return ((void (*) (GstElement*, GstPad*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gst1_Element_virtual_post_message(void* fnptr, GstElement* carg0, GstMessage* carg1) { +// gboolean _goglib_gst1_Element_virtual_post_message(void* fnptr, GstElement* carg0, GstMessage* carg1) { // return ((gboolean (*) (GstElement*, GstMessage*))(fnptr))(carg0, carg1); // } -// GstClock* _gotk4_gst1_Element_virtual_provide_clock(void* fnptr, GstElement* carg0) { +// GstClock* _goglib_gst1_Element_virtual_provide_clock(void* fnptr, GstElement* carg0) { // return ((GstClock* (*) (GstElement*))(fnptr))(carg0); // } -// gboolean _gotk4_gst1_Element_virtual_query(void* fnptr, GstElement* carg0, GstQuery* carg1) { +// gboolean _goglib_gst1_Element_virtual_query(void* fnptr, GstElement* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstElement*, GstQuery*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Element_virtual_release_pad(void* fnptr, GstElement* carg0, GstPad* carg1) { +// void _goglib_gst1_Element_virtual_release_pad(void* fnptr, GstElement* carg0, GstPad* carg1) { // return ((void (*) (GstElement*, GstPad*))(fnptr))(carg0, carg1); // } -// GstPad* _gotk4_gst1_Element_virtual_request_new_pad(void* fnptr, GstElement* carg0, GstPadTemplate* carg1, const gchar* carg2, const GstCaps* carg3) { +// GstPad* _goglib_gst1_Element_virtual_request_new_pad(void* fnptr, GstElement* carg0, GstPadTemplate* carg1, const gchar* carg2, const GstCaps* carg3) { // return ((GstPad* (*) (GstElement*, GstPadTemplate*, const gchar*, const GstCaps*))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gst1_Element_virtual_send_event(void* fnptr, GstElement* carg0, GstEvent* carg1) { +// gboolean _goglib_gst1_Element_virtual_send_event(void* fnptr, GstElement* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstElement*, GstEvent*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Element_virtual_set_bus(void* fnptr, GstElement* carg0, GstBus* carg1) { +// void _goglib_gst1_Element_virtual_set_bus(void* fnptr, GstElement* carg0, GstBus* carg1) { // return ((void (*) (GstElement*, GstBus*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gst1_Element_virtual_set_clock(void* fnptr, GstElement* carg0, GstClock* carg1) { +// gboolean _goglib_gst1_Element_virtual_set_clock(void* fnptr, GstElement* carg0, GstClock* carg1) { // return ((gboolean (*) (GstElement*, GstClock*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Element_virtual_set_context(void* fnptr, GstElement* carg0, GstContext* carg1) { +// void _goglib_gst1_Element_virtual_set_context(void* fnptr, GstElement* carg0, GstContext* carg1) { // return ((void (*) (GstElement*, GstContext*))(fnptr))(carg0, carg1); // } -// GstStateChangeReturn _gotk4_gst1_Element_virtual_set_state(void* fnptr, GstElement* carg0, GstState carg1) { +// GstStateChangeReturn _goglib_gst1_Element_virtual_set_state(void* fnptr, GstElement* carg0, GstState carg1) { // return ((GstStateChangeReturn (*) (GstElement*, GstState))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Element_virtual_state_changed(void* fnptr, GstElement* carg0, GstState carg1, GstState carg2, GstState carg3) { +// void _goglib_gst1_Element_virtual_state_changed(void* fnptr, GstElement* carg0, GstState carg1, GstState carg2, GstState carg3) { // return ((void (*) (GstElement*, GstState, GstState, GstState))(fnptr))(carg0, carg1, carg2, carg3); // } -// extern gboolean _gotk4_gst1_Bin_add_element(GstBin*, GstElement*); -// extern void _gotk4_gst1_Bin_deep_element_added(GstBin*, GstBin*, GstElement*); -// extern void _gotk4_gst1_Bin_deep_element_removed(GstBin*, GstBin*, GstElement*); -// extern gboolean _gotk4_gst1_Bin_do_latency(GstBin*); -// extern void _gotk4_gst1_Bin_element_added(GstBin*, GstElement*); -// extern void _gotk4_gst1_Bin_element_removed(GstBin*, GstElement*); -// extern void _gotk4_gst1_Bin_handle_message(GstBin*, GstMessage*); -// extern gboolean _gotk4_gst1_Bin_remove_element(GstBin*, GstElement*); -// gboolean _gotk4_gst1_Bin_virtual_add_element(void* fnptr, GstBin* carg0, GstElement* carg1) { +// extern gboolean _goglib_gst1_Bin_add_element(GstBin*, GstElement*); +// extern void _goglib_gst1_Bin_deep_element_added(GstBin*, GstBin*, GstElement*); +// extern void _goglib_gst1_Bin_deep_element_removed(GstBin*, GstBin*, GstElement*); +// extern gboolean _goglib_gst1_Bin_do_latency(GstBin*); +// extern void _goglib_gst1_Bin_element_added(GstBin*, GstElement*); +// extern void _goglib_gst1_Bin_element_removed(GstBin*, GstElement*); +// extern void _goglib_gst1_Bin_handle_message(GstBin*, GstMessage*); +// extern gboolean _goglib_gst1_Bin_remove_element(GstBin*, GstElement*); +// gboolean _goglib_gst1_Bin_virtual_add_element(void* fnptr, GstBin* carg0, GstElement* carg1) { // return ((gboolean (*) (GstBin*, GstElement*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Bin_virtual_deep_element_added(void* fnptr, GstBin* carg0, GstBin* carg1, GstElement* carg2) { +// void _goglib_gst1_Bin_virtual_deep_element_added(void* fnptr, GstBin* carg0, GstBin* carg1, GstElement* carg2) { // return ((void (*) (GstBin*, GstBin*, GstElement*))(fnptr))(carg0, carg1, carg2); // } -// void _gotk4_gst1_Bin_virtual_deep_element_removed(void* fnptr, GstBin* carg0, GstBin* carg1, GstElement* carg2) { +// void _goglib_gst1_Bin_virtual_deep_element_removed(void* fnptr, GstBin* carg0, GstBin* carg1, GstElement* carg2) { // return ((void (*) (GstBin*, GstBin*, GstElement*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gst1_Bin_virtual_do_latency(void* fnptr, GstBin* carg0) { +// gboolean _goglib_gst1_Bin_virtual_do_latency(void* fnptr, GstBin* carg0) { // return ((gboolean (*) (GstBin*))(fnptr))(carg0); // } -// void _gotk4_gst1_Bin_virtual_element_added(void* fnptr, GstBin* carg0, GstElement* carg1) { +// void _goglib_gst1_Bin_virtual_element_added(void* fnptr, GstBin* carg0, GstElement* carg1) { // return ((void (*) (GstBin*, GstElement*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Bin_virtual_element_removed(void* fnptr, GstBin* carg0, GstElement* carg1) { +// void _goglib_gst1_Bin_virtual_element_removed(void* fnptr, GstBin* carg0, GstElement* carg1) { // return ((void (*) (GstBin*, GstElement*))(fnptr))(carg0, carg1); // } -// void _gotk4_gst1_Bin_virtual_handle_message(void* fnptr, GstBin* carg0, GstMessage* carg1) { +// void _goglib_gst1_Bin_virtual_handle_message(void* fnptr, GstBin* carg0, GstMessage* carg1) { // return ((void (*) (GstBin*, GstMessage*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gst1_Bin_virtual_remove_element(void* fnptr, GstBin* carg0, GstElement* carg1) { +// gboolean _goglib_gst1_Bin_virtual_remove_element(void* fnptr, GstBin* carg0, GstElement* carg1) { // return ((gboolean (*) (GstBin*, GstElement*))(fnptr))(carg0, carg1); // } import "C" @@ -8172,16 +8171,6 @@ type TaskFunction func() // Task function, see gst_task_pool_push(). type TaskPoolFunction func() -// TaskThreadFunc wraps GstTaskThreadFunc -// -// The function takes the following parameters: -// -// - task Task: The #GstTask -// - thread *glib.Thread: The #GThread -// -// Custom GstTask thread callback functions that can be installed. -type TaskThreadFunc func(task Task, thread *glib.Thread) - // TypeFindFunction wraps GstTypeFindFunction // // The function takes the following parameters: @@ -8265,7 +8254,7 @@ func DebugAddLogFunction(fn LogFunction) { var carg2 C.gpointer // implicit var carg3 C.GDestroyNotify // implicit - carg1 = (*[0]byte)(C._gotk4_gst1_LogFunction) + carg1 = (*[0]byte)(C._goglib_gst1_LogFunction) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -8802,7 +8791,7 @@ func DebugRemoveRingBufferLogger() { // Fetches the current logs per thread from the ring buffer logger. See // gst_debug_add_ring_buffer_logger() for details. func DebugRingBufferLoggerGetLogs() []string { - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) cret = C.gst_debug_ring_buffer_logger_get_logs() @@ -8810,7 +8799,7 @@ func DebugRingBufferLoggerGetLogs() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -9173,13 +9162,13 @@ func FlowToQuark(ret FlowReturn) glib.Quark { // // See if the given format is inside the format array. func FormatsContains(formats []Format, format Format) bool { - var carg1 *C.GstFormat // in, transfer: none, C Pointers: 1, Name: array[Format], array (inner: *typesystem.Enum, zero-terminated) + var carg1 *C.GstFormat // in, transfer: none, C Pointers: 1, Name: array[Format], array (inner GstFormat (*typesystem.Enum), zero-terminated) var carg2 C.GstFormat // in, none, casted var cret C.gboolean // return _ = formats _ = carg1 - panic("unimplemented conversion of []Format (const GstFormat*)") + panic("unimplemented conversion of []Format (const GstFormat*) because of unimplemented: non-fixed size array") carg2 = C.GstFormat(format) cret = C.gst_formats_contains(carg1, carg2) @@ -9596,12 +9585,12 @@ func ParseLaunchFull(pipelineDescription string, _context *ParseContext, flags P // Iterates the supplied list of UUIDs and checks the GstRegistry for // all the decryptors supporting one of the supplied UUIDs. func ProtectionFilterSystemsByAvailableDecryptors(systemIdentifiers []string) []string { - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) _ = systemIdentifiers _ = carg1 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_protection_filter_systems_by_available_decryptors(carg1) runtime.KeepAlive(systemIdentifiers) @@ -9610,7 +9599,7 @@ func ProtectionFilterSystemsByAvailableDecryptors(systemIdentifiers []string) [] _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -9648,12 +9637,12 @@ func ProtectionMetaAPIGetType() gobject.Type { // an element that supports one of the supplied UUIDs. If more than one // element matches, the system ID of the highest ranked element is selected. func ProtectionSelectSystem(systemIdentifiers []string) string { - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret *C.gchar // return, none, string, nullable-string _ = systemIdentifiers _ = carg1 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_protection_select_system(carg1) runtime.KeepAlive(systemIdentifiers) @@ -9931,7 +9920,7 @@ func TagMergeStringsWithComma(src *gobject.Value) gobject.Value { _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") return dest } @@ -9961,7 +9950,7 @@ func TagMergeUseFirst(src *gobject.Value) gobject.Value { _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") return dest } @@ -10175,13 +10164,13 @@ func UtilDumpBuffer(buf *Buffer) { // // Dumps the memory block into a hex representation. Useful for debugging. func UtilDumpMem(mem []byte) { - var carg1 *C.guchar // in, transfer: none, C Pointers: 1, Name: array[guchar], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guchar // in, transfer: none, C Pointers: 1, Name: array[guchar], array (inner guchar (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit _ = mem _ = carg1 _ = carg2 - panic("unimplemented conversion of []byte (const guchar*)") + panic("unimplemented conversion of []byte (const guchar*) because of unimplemented: non-fixed size array") C.gst_util_dump_mem(carg1, carg2) runtime.KeepAlive(mem) @@ -10741,10 +10730,10 @@ func UtilSimplifyFraction(numerator *int32, denominator *int32, nTerms uint, thr _ = numerator _ = carg1 - panic("unimplemented conversion of *int32 (gint*)") + panic("unimplemented conversion of *int32 (gint*) because of no basic converter found") _ = denominator _ = carg2 - panic("unimplemented conversion of *int32 (gint*)") + panic("unimplemented conversion of *int32 (gint*) because of no basic converter found") carg3 = C.guint(nTerms) carg4 = C.guint(threshold) @@ -11188,7 +11177,7 @@ func ValueDeserialize(src string) (gobject.Value, bool) { _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") if cret != 0 { goret = true } @@ -11233,7 +11222,7 @@ func ValueDeserializeWithPspec(src string, pspec *gobject.ParamSpec) (gobject.Va _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") if cret != 0 { goret = true } @@ -11869,7 +11858,7 @@ func ValueInitAndCopy(src *gobject.Value) gobject.Value { _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") return dest } @@ -11911,7 +11900,7 @@ func ValueIntersect(value1 *gobject.Value, value2 *gobject.Value) (gobject.Value _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") if cret != 0 { goret = true } @@ -12387,7 +12376,7 @@ func ValueSubtract(minuend *gobject.Value, subtrahend *gobject.Value) (gobject.V _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") if cret != 0 { goret = true } @@ -12426,7 +12415,7 @@ func ValueUnion(value1 *gobject.Value, value2 *gobject.Value) (gobject.Value, bo _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") if cret != 0 { goret = true } @@ -13219,7 +13208,7 @@ func (preset *PresetInstance) GetMeta(name string, tag string) (string, bool) { // Get a copy of preset names as a %NULL terminated string array. func (preset *PresetInstance) GetPresetNames() []string { var carg0 *C.GstPreset // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstPreset)(UnsafePresetToGlibNone(preset)) @@ -13230,7 +13219,7 @@ func (preset *PresetInstance) GetPresetNames() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -13244,7 +13233,7 @@ func (preset *PresetInstance) GetPresetNames() []string { // Get a the names of the GObject properties that can be used for presets. func (preset *PresetInstance) GetPropertyNames() []string { var carg0 *C.GstPreset // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstPreset)(UnsafePresetToGlibNone(preset)) @@ -13255,7 +13244,7 @@ func (preset *PresetInstance) GetPropertyNames() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -13552,7 +13541,7 @@ func UnsafeURIHandlerToGlibFull(c URIHandler) unsafe.Pointer { // modified. func (handler *URIHandlerInstance) GetProtocols() []string { var carg0 *C.GstURIHandler // in, none, converted - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstURIHandler)(UnsafeURIHandlerToGlibNone(handler)) @@ -13563,7 +13552,7 @@ func (handler *URIHandlerInstance) GetProtocols() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar* const*)") + panic("unimplemented conversion of []string (const gchar* const*) because of unknown reason") return goret } @@ -14144,18 +14133,6 @@ type Object interface { // The object's reference count will be incremented, and any floating // reference will be removed (see gst_object_ref_sink()) AddControlBinding(ControlBinding) bool - // DefaultError wraps gst_object_default_error - // - // The function takes the following parameters: - // - // - debug string (nullable): an additional debug information string, or %NULL - // - err error: the GError. - // - // A default error function that uses g_printerr() to display the error message - // and the optional debug string.. - // - // The default handler will simply print the error string using g_print. - DefaultError(string, error) // CurrentControlBinding wraps gst_object_get_control_binding // // The function takes the following parameters: @@ -14455,14 +14432,14 @@ func ObjectDefaultDeepNotify(object gobject.Object, orig Object, pspec *gobject. var carg1 *C.GObject // in, none, converted var carg2 *C.GstObject // in, none, converted var carg3 *C.GParamSpec // in, none, converted - var carg4 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg4 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg1 = (*C.GObject)(gobject.UnsafeObjectToGlibNone(object)) carg2 = (*C.GstObject)(UnsafeObjectToGlibNone(orig)) carg3 = (*C.GParamSpec)(gobject.UnsafeParamSpecToGlibNone(pspec)) _ = excludedProps _ = carg4 - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unimplemented: inner pointers in array") C.gst_object_default_deep_notify(carg1, carg2, carg3, carg4) runtime.KeepAlive(object) @@ -14507,35 +14484,6 @@ func (object *ObjectInstance) AddControlBinding(binding ControlBinding) bool { return goret } -// DefaultError wraps gst_object_default_error -// -// The function takes the following parameters: -// -// - debug string (nullable): an additional debug information string, or %NULL -// - err error: the GError. -// -// A default error function that uses g_printerr() to display the error message -// and the optional debug string.. -// -// The default handler will simply print the error string using g_print. -func (source *ObjectInstance) DefaultError(debug string, err error) { - var carg0 *C.GstObject // in, none, converted - var carg2 *C.gchar // in, none, string, nullable-string - var carg1 *C.GError // in, none, converted - - carg0 = (*C.GstObject)(UnsafeObjectToGlibNone(source)) - if debug != "" { - carg2 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg2)) - } - carg1 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - C.gst_object_default_error(carg0, carg1, carg2) - runtime.KeepAlive(source) - runtime.KeepAlive(debug) - runtime.KeepAlive(err) -} - // CurrentControlBinding wraps gst_object_get_control_binding // // The function takes the following parameters: @@ -15067,10 +15015,10 @@ func UnsafeApplyObjectOverrides[Instance Object](gclass unsafe.Pointer, override pclass := (*C.GstObjectClass)(gclass) if overrides.DeepNotify != nil { - pclass.deep_notify = (*[0]byte)(C._gotk4_gst1_Object_deep_notify) + pclass.deep_notify = (*[0]byte)(C._goglib_gst1_Object_deep_notify) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Object_deep_notify", + "_goglib_gst1_Object_deep_notify", func(carg0 *C.GstObject, carg1 *C.GstObject, carg2 *C.GParamSpec) { var object Instance // go GstObject subclass var orig Object // in, none, converted @@ -15106,7 +15054,7 @@ func (object *ObjectInstance) ParentDeepNotify(orig Object, pspec *gobject.Param carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(orig)) carg2 = (*C.GParamSpec)(gobject.UnsafeParamSpecToGlibNone(pspec)) - C._gotk4_gst1_Object_virtual_deep_notify(unsafe.Pointer(parentclass.deep_notify), carg0, carg1, carg2) + C._goglib_gst1_Object_virtual_deep_notify(unsafe.Pointer(parentclass.deep_notify), carg0, carg1, carg2) runtime.KeepAlive(object) runtime.KeepAlive(orig) runtime.KeepAlive(pspec) @@ -16516,7 +16464,7 @@ func (pad *PadInstance) AddProbe(mask PadProbeType, callback PadProbeCallback) u carg0 = (*C.GstPad)(UnsafePadToGlibNone(pad)) carg1 = C.GstPadProbeType(mask) - carg2 = (*[0]byte)(C._gotk4_gst1_PadProbeCallback) + carg2 = (*[0]byte)(C._goglib_gst1_PadProbeCallback) carg3 = C.gpointer(userdata.Register(callback)) carg4 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -16802,7 +16750,7 @@ func (pad *PadInstance) Forward(forward PadForwardFunction) bool { var cret C.gboolean // return carg0 = (*C.GstPad)(UnsafePadToGlibNone(pad)) - carg1 = (*[0]byte)(C._gotk4_gst1_PadForwardFunction) + carg1 = (*[0]byte)(C._goglib_gst1_PadForwardFunction) carg2 = C.gpointer(userdata.Register(forward)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -18600,7 +18548,7 @@ func (pad *PadInstance) StartTask(fn TaskFunction) bool { var cret C.gboolean // return carg0 = (*C.GstPad)(UnsafePadToGlibNone(pad)) - carg1 = (*[0]byte)(C._gotk4_gst1_TaskFunction) + carg1 = (*[0]byte)(C._goglib_gst1_TaskFunction) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -18773,10 +18721,10 @@ func UnsafeApplyPadOverrides[Instance Pad](gclass unsafe.Pointer, overrides PadO pclass := (*C.GstPadClass)(gclass) if overrides.Linked != nil { - pclass.linked = (*[0]byte)(C._gotk4_gst1_Pad_linked) + pclass.linked = (*[0]byte)(C._goglib_gst1_Pad_linked) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Pad_linked", + "_goglib_gst1_Pad_linked", func(carg0 *C.GstPad, carg1 *C.GstPad) { var pad Instance // go GstPad subclass var peer Pad // in, none, converted @@ -18790,10 +18738,10 @@ func UnsafeApplyPadOverrides[Instance Pad](gclass unsafe.Pointer, overrides PadO } if overrides.Unlinked != nil { - pclass.unlinked = (*[0]byte)(C._gotk4_gst1_Pad_unlinked) + pclass.unlinked = (*[0]byte)(C._goglib_gst1_Pad_unlinked) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Pad_unlinked", + "_goglib_gst1_Pad_unlinked", func(carg0 *C.GstPad, carg1 *C.GstPad) { var pad Instance // go GstPad subclass var peer Pad // in, none, converted @@ -18822,7 +18770,7 @@ func (pad *PadInstance) ParentLinked(peer Pad) { carg0 = (*C.GstPad)(UnsafePadToGlibNone(pad)) carg1 = (*C.GstPad)(UnsafePadToGlibNone(peer)) - C._gotk4_gst1_Pad_virtual_linked(unsafe.Pointer(parentclass.linked), carg0, carg1) + C._goglib_gst1_Pad_virtual_linked(unsafe.Pointer(parentclass.linked), carg0, carg1) runtime.KeepAlive(pad) runtime.KeepAlive(peer) } @@ -18842,7 +18790,7 @@ func (pad *PadInstance) ParentUnlinked(peer Pad) { carg0 = (*C.GstPad)(UnsafePadToGlibNone(pad)) carg1 = (*C.GstPad)(UnsafePadToGlibNone(peer)) - C._gotk4_gst1_Pad_virtual_unlinked(unsafe.Pointer(parentclass.unlinked), carg0, carg1) + C._goglib_gst1_Pad_virtual_unlinked(unsafe.Pointer(parentclass.unlinked), carg0, carg1) runtime.KeepAlive(pad) runtime.KeepAlive(peer) } @@ -19293,10 +19241,10 @@ func UnsafeApplyPadTemplateOverrides[Instance PadTemplate](gclass unsafe.Pointer pclass := (*C.GstPadTemplateClass)(gclass) if overrides.PadCreated != nil { - pclass.pad_created = (*[0]byte)(C._gotk4_gst1_PadTemplate_pad_created) + pclass.pad_created = (*[0]byte)(C._goglib_gst1_PadTemplate_pad_created) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_PadTemplate_pad_created", + "_goglib_gst1_PadTemplate_pad_created", func(carg0 *C.GstPadTemplate, carg1 *C.GstPad) { var templ Instance // go GstPadTemplate subclass var pad Pad // in, none, converted @@ -19327,7 +19275,7 @@ func (templ *PadTemplateInstance) ParentPadCreated(pad Pad) { carg0 = (*C.GstPadTemplate)(UnsafePadTemplateToGlibNone(templ)) carg1 = (*C.GstPad)(UnsafePadToGlibNone(pad)) - C._gotk4_gst1_PadTemplate_virtual_pad_created(unsafe.Pointer(parentclass.pad_created), carg0, carg1) + C._goglib_gst1_PadTemplate_virtual_pad_created(unsafe.Pointer(parentclass.pad_created), carg0, carg1) runtime.KeepAlive(templ) runtime.KeepAlive(pad) } @@ -19778,7 +19726,7 @@ func PluginRegisterStaticFull(majorVersion int32, minorVersion int32, name strin defer C.free(unsafe.Pointer(carg3)) carg4 = (*C.gchar)(unsafe.Pointer(C.CString(description))) defer C.free(unsafe.Pointer(carg4)) - carg5 = (*[0]byte)(C._gotk4_gst1_PluginInitFullFunc) + carg5 = (*[0]byte)(C._goglib_gst1_PluginInitFullFunc) carg11 = C.gpointer(userdata.Register(initFullFunc)) defer userdata.Delete(unsafe.Pointer(carg11)) carg6 = (*C.gchar)(unsafe.Pointer(C.CString(version))) @@ -19842,21 +19790,21 @@ func PluginRegisterStaticFull(majorVersion int32, minorVersion int32, name strin // codec libraries are currently installed. func (plugin *PluginInstance) AddDependency(envVars []string, paths []string, names []string, flags PluginDependencyFlags) { var carg0 *C.GstPlugin // in, none, converted - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) - var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) - var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) + var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) + var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var carg4 C.GstPluginDependencyFlags // in, none, casted carg0 = (*C.GstPlugin)(UnsafePluginToGlibNone(plugin)) _ = envVars _ = carg1 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") _ = paths _ = carg2 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") _ = names _ = carg3 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") carg4 = C.GstPluginDependencyFlags(flags) C.gst_plugin_add_dependency(carg0, carg1, carg2, carg3, carg4) @@ -20206,7 +20154,7 @@ func (plugin *PluginInstance) GetSource() string { // - goret []string (nullable) func (plugin *PluginInstance) GetStatusErrors() []string { var carg0 *C.GstPlugin // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstPlugin)(UnsafePluginToGlibNone(plugin)) @@ -20217,7 +20165,7 @@ func (plugin *PluginInstance) GetStatusErrors() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -20229,7 +20177,7 @@ func (plugin *PluginInstance) GetStatusErrors() []string { // - goret []string (nullable) func (plugin *PluginInstance) GetStatusInfos() []string { var carg0 *C.GstPlugin // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstPlugin)(UnsafePluginToGlibNone(plugin)) @@ -20240,7 +20188,7 @@ func (plugin *PluginInstance) GetStatusInfos() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -20252,7 +20200,7 @@ func (plugin *PluginInstance) GetStatusInfos() []string { // - goret []string (nullable) func (plugin *PluginInstance) GetStatusWarnings() []string { var carg0 *C.GstPlugin // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstPlugin)(UnsafePluginToGlibNone(plugin)) @@ -20263,7 +20211,7 @@ func (plugin *PluginInstance) GetStatusWarnings() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -21544,7 +21492,7 @@ func (registry *RegistryInstance) FeatureFilter(filter PluginFeatureFilter, firs var cret *C.GList // container, transfer: full carg0 = (*C.GstRegistry)(UnsafeRegistryToGlibNone(registry)) - carg1 = (*[0]byte)(C._gotk4_gst1_PluginFeatureFilter) + carg1 = (*[0]byte)(C._goglib_gst1_PluginFeatureFilter) carg3 = C.gpointer(userdata.Register(filter)) defer userdata.Delete(unsafe.Pointer(carg3)) if first { @@ -21862,7 +21810,7 @@ func (registry *RegistryInstance) PluginFilter(filter PluginFilter, first bool) var cret *C.GList // container, transfer: full carg0 = (*C.GstRegistry)(UnsafeRegistryToGlibNone(registry)) - carg1 = (*[0]byte)(C._gotk4_gst1_PluginFilter) + carg1 = (*[0]byte)(C._goglib_gst1_PluginFilter) carg3 = C.gpointer(userdata.Register(filter)) defer userdata.Delete(unsafe.Pointer(carg3)) if first { @@ -22782,10 +22730,10 @@ func UnsafeApplyStreamCollectionOverrides[Instance StreamCollection](gclass unsa pclass := (*C.GstStreamCollectionClass)(gclass) if overrides.StreamNotify != nil { - pclass.stream_notify = (*[0]byte)(C._gotk4_gst1_StreamCollection_stream_notify) + pclass.stream_notify = (*[0]byte)(C._goglib_gst1_StreamCollection_stream_notify) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_StreamCollection_stream_notify", + "_goglib_gst1_StreamCollection_stream_notify", func(carg0 *C.GstStreamCollection, carg1 *C.GstStream, carg2 *C.GParamSpec) { var collection Instance // go GstStreamCollection subclass var stream Stream // in, none, converted @@ -22821,7 +22769,7 @@ func (collection *StreamCollectionInstance) ParentStreamNotify(stream Stream, ps carg1 = (*C.GstStream)(UnsafeStreamToGlibNone(stream)) carg2 = (*C.GParamSpec)(gobject.UnsafeParamSpecToGlibNone(pspec)) - C._gotk4_gst1_StreamCollection_virtual_stream_notify(unsafe.Pointer(parentclass.stream_notify), carg0, carg1, carg2) + C._goglib_gst1_StreamCollection_virtual_stream_notify(unsafe.Pointer(parentclass.stream_notify), carg0, carg1, carg2) runtime.KeepAlive(collection) runtime.KeepAlive(stream) runtime.KeepAlive(pspec) @@ -22960,26 +22908,6 @@ type Task interface { // Resume @task in case it was paused. If the task was stopped, it will // remain in that state and this function will return %FALSE. Resume() bool - // SetEnterCallback wraps gst_task_set_enter_callback - // - // The function takes the following parameters: - // - // - enterFunc TaskThreadFunc: a #GstTaskThreadFunc - // - // Call @enter_func when the task function of @task is entered. @user_data will - // be passed to @enter_func and @notify will be called when @user_data is no - // longer referenced. - SetEnterCallback(TaskThreadFunc) - // SetLeaveCallback wraps gst_task_set_leave_callback - // - // The function takes the following parameters: - // - // - leaveFunc TaskThreadFunc: a #GstTaskThreadFunc - // - // Call @leave_func when the task function of @task is left. @user_data will - // be passed to @leave_func and @notify will be called when @user_data is no - // longer referenced. - SetLeaveCallback(TaskThreadFunc) // SetLock wraps gst_task_set_lock // // The function takes the following parameters: @@ -23127,7 +23055,7 @@ func NewTask(fn TaskFunction) Task { var carg3 C.GDestroyNotify // implicit var cret *C.GstTask // return, full, converted - carg1 = (*[0]byte)(C._gotk4_gst1_TaskFunction) + carg1 = (*[0]byte)(C._goglib_gst1_TaskFunction) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -23287,56 +23215,6 @@ func (task *TaskInstance) Resume() bool { return goret } -// SetEnterCallback wraps gst_task_set_enter_callback -// -// The function takes the following parameters: -// -// - enterFunc TaskThreadFunc: a #GstTaskThreadFunc -// -// Call @enter_func when the task function of @task is entered. @user_data will -// be passed to @enter_func and @notify will be called when @user_data is no -// longer referenced. -func (task *TaskInstance) SetEnterCallback(enterFunc TaskThreadFunc) { - var carg0 *C.GstTask // in, none, converted - var carg1 C.GstTaskThreadFunc // callback, scope: notified, closure: carg2, destroy: carg3 - var carg2 C.gpointer // implicit - var carg3 C.GDestroyNotify // implicit - - carg0 = (*C.GstTask)(UnsafeTaskToGlibNone(task)) - carg1 = (*[0]byte)(C._gotk4_gst1_TaskThreadFunc) - carg2 = C.gpointer(userdata.Register(enterFunc)) - carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) - - C.gst_task_set_enter_callback(carg0, carg1, carg2, carg3) - runtime.KeepAlive(task) - runtime.KeepAlive(enterFunc) -} - -// SetLeaveCallback wraps gst_task_set_leave_callback -// -// The function takes the following parameters: -// -// - leaveFunc TaskThreadFunc: a #GstTaskThreadFunc -// -// Call @leave_func when the task function of @task is left. @user_data will -// be passed to @leave_func and @notify will be called when @user_data is no -// longer referenced. -func (task *TaskInstance) SetLeaveCallback(leaveFunc TaskThreadFunc) { - var carg0 *C.GstTask // in, none, converted - var carg1 C.GstTaskThreadFunc // callback, scope: notified, closure: carg2, destroy: carg3 - var carg2 C.gpointer // implicit - var carg3 C.GDestroyNotify // implicit - - carg0 = (*C.GstTask)(UnsafeTaskToGlibNone(task)) - carg1 = (*[0]byte)(C._gotk4_gst1_TaskThreadFunc) - carg2 = C.gpointer(userdata.Register(leaveFunc)) - carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) - - C.gst_task_set_leave_callback(carg0, carg1, carg2, carg3) - runtime.KeepAlive(task) - runtime.KeepAlive(leaveFunc) -} - // SetLock wraps gst_task_set_lock // // The function takes the following parameters: @@ -23721,10 +23599,10 @@ func UnsafeApplyTaskPoolOverrides[Instance TaskPool](gclass unsafe.Pointer, over pclass := (*C.GstTaskPoolClass)(gclass) if overrides.Cleanup != nil { - pclass.cleanup = (*[0]byte)(C._gotk4_gst1_TaskPool_cleanup) + pclass.cleanup = (*[0]byte)(C._goglib_gst1_TaskPool_cleanup) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_TaskPool_cleanup", + "_goglib_gst1_TaskPool_cleanup", func(carg0 *C.GstTaskPool) { var pool Instance // go GstTaskPool subclass @@ -23736,10 +23614,10 @@ func UnsafeApplyTaskPoolOverrides[Instance TaskPool](gclass unsafe.Pointer, over } if overrides.Prepare != nil { - pclass.prepare = (*[0]byte)(C._gotk4_gst1_TaskPool_prepare) + pclass.prepare = (*[0]byte)(C._goglib_gst1_TaskPool_prepare) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_TaskPool_prepare", + "_goglib_gst1_TaskPool_prepare", func(carg0 *C.GstTaskPool, _cerr **C.GError) { var pool Instance // go GstTaskPool subclass var _goerr error // out, full, converted @@ -23768,7 +23646,7 @@ func (pool *TaskPoolInstance) ParentCleanup() { carg0 = (*C.GstTaskPool)(UnsafeTaskPoolToGlibNone(pool)) - C._gotk4_gst1_TaskPool_virtual_cleanup(unsafe.Pointer(parentclass.cleanup), carg0) + C._goglib_gst1_TaskPool_virtual_cleanup(unsafe.Pointer(parentclass.cleanup), carg0) runtime.KeepAlive(pool) } @@ -23790,7 +23668,7 @@ func (pool *TaskPoolInstance) ParentPrepare() error { carg0 = (*C.GstTaskPool)(UnsafeTaskPoolToGlibNone(pool)) - C._gotk4_gst1_TaskPool_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, &_cerr) + C._goglib_gst1_TaskPool_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, &_cerr) runtime.KeepAlive(pool) var _goerr error @@ -24435,7 +24313,7 @@ func (factory *TypeFindFactoryInstance) GetCaps() *Caps { // a 0-length list. func (factory *TypeFindFactoryInstance) GetExtensions() []string { var carg0 *C.GstTypeFindFactory // in, none, converted - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstTypeFindFactory)(UnsafeTypeFindFactoryToGlibNone(factory)) @@ -24446,7 +24324,7 @@ func (factory *TypeFindFactoryInstance) GetExtensions() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar* const*)") + panic("unimplemented conversion of []string (const gchar* const*) because of unknown reason") return goret } @@ -24824,10 +24702,10 @@ func UnsafeApplyAllocatorOverrides[Instance Allocator](gclass unsafe.Pointer, ov pclass := (*C.GstAllocatorClass)(gclass) if overrides.Alloc != nil { - pclass.alloc = (*[0]byte)(C._gotk4_gst1_Allocator_alloc) + pclass.alloc = (*[0]byte)(C._goglib_gst1_Allocator_alloc) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Allocator_alloc", + "_goglib_gst1_Allocator_alloc", func(carg0 *C.GstAllocator, carg1 C.gsize, carg2 *C.GstAllocationParams) (cret *C.GstMemory) { var allocator Instance // go GstAllocator subclass var size uint // in, none, casted @@ -24852,10 +24730,10 @@ func UnsafeApplyAllocatorOverrides[Instance Allocator](gclass unsafe.Pointer, ov } if overrides.Free != nil { - pclass.free = (*[0]byte)(C._gotk4_gst1_Allocator_free) + pclass.free = (*[0]byte)(C._goglib_gst1_Allocator_free) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Allocator_free", + "_goglib_gst1_Allocator_free", func(carg0 *C.GstAllocator, carg1 *C.GstMemory) { var allocator Instance // go GstAllocator subclass var memory *Memory // in, full, converted @@ -24910,7 +24788,7 @@ func (allocator *AllocatorInstance) ParentAlloc(size uint, params *AllocationPar carg2 = (*C.GstAllocationParams)(UnsafeAllocationParamsToGlibNone(params)) } - cret = C._gotk4_gst1_Allocator_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, carg1, carg2) + cret = C._goglib_gst1_Allocator_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, carg1, carg2) runtime.KeepAlive(allocator) runtime.KeepAlive(size) runtime.KeepAlive(params) @@ -24941,7 +24819,7 @@ func (allocator *AllocatorInstance) ParentFree(memory *Memory) { carg0 = (*C.GstAllocator)(UnsafeAllocatorToGlibNone(allocator)) carg1 = (*C.GstMemory)(UnsafeMemoryToGlibFull(memory)) - C._gotk4_gst1_Allocator_virtual_free(unsafe.Pointer(parentclass.free), carg0, carg1) + C._goglib_gst1_Allocator_virtual_free(unsafe.Pointer(parentclass.free), carg0, carg1) runtime.KeepAlive(allocator) runtime.KeepAlive(memory) } @@ -25426,7 +25304,7 @@ func BufferPoolConfigGetAllocator(config *Structure) (Allocator, AllocationParam } _ = params _ = carg3 - panic("unimplemented conversion of AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of AllocationParams (GstAllocationParams) because of unknown reason") if cret != 0 { goret = true } @@ -25782,7 +25660,7 @@ func (pool *BufferPoolInstance) GetConfig() *Structure { // gst_buffer_pool_config_add_option(). func (pool *BufferPoolInstance) GetOptions() []string { var carg0 *C.GstBufferPool // in, none, converted - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) @@ -25793,7 +25671,7 @@ func (pool *BufferPoolInstance) GetOptions() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unknown reason") return goret } @@ -26143,10 +26021,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, pclass := (*C.GstBufferPoolClass)(gclass) if overrides.AcquireBuffer != nil { - pclass.acquire_buffer = (*[0]byte)(C._gotk4_gst1_BufferPool_acquire_buffer) + pclass.acquire_buffer = (*[0]byte)(C._goglib_gst1_BufferPool_acquire_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_acquire_buffer", + "_goglib_gst1_BufferPool_acquire_buffer", func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { var pool Instance // go GstBufferPool subclass var params *BufferPoolAcquireParams // in, none, converted, nullable @@ -26169,10 +26047,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.AllocBuffer != nil { - pclass.alloc_buffer = (*[0]byte)(C._gotk4_gst1_BufferPool_alloc_buffer) + pclass.alloc_buffer = (*[0]byte)(C._goglib_gst1_BufferPool_alloc_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_alloc_buffer", + "_goglib_gst1_BufferPool_alloc_buffer", func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { var pool Instance // go GstBufferPool subclass var params *BufferPoolAcquireParams // in, none, converted, nullable @@ -26195,10 +26073,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.FlushStart != nil { - pclass.flush_start = (*[0]byte)(C._gotk4_gst1_BufferPool_flush_start) + pclass.flush_start = (*[0]byte)(C._goglib_gst1_BufferPool_flush_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_flush_start", + "_goglib_gst1_BufferPool_flush_start", func(carg0 *C.GstBufferPool) { var pool Instance // go GstBufferPool subclass @@ -26210,10 +26088,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.FlushStop != nil { - pclass.flush_stop = (*[0]byte)(C._gotk4_gst1_BufferPool_flush_stop) + pclass.flush_stop = (*[0]byte)(C._goglib_gst1_BufferPool_flush_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_flush_stop", + "_goglib_gst1_BufferPool_flush_stop", func(carg0 *C.GstBufferPool) { var pool Instance // go GstBufferPool subclass @@ -26225,10 +26103,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.FreeBuffer != nil { - pclass.free_buffer = (*[0]byte)(C._gotk4_gst1_BufferPool_free_buffer) + pclass.free_buffer = (*[0]byte)(C._goglib_gst1_BufferPool_free_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_free_buffer", + "_goglib_gst1_BufferPool_free_buffer", func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { var pool Instance // go GstBufferPool subclass var buffer *Buffer // in, none, converted @@ -26242,13 +26120,13 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.GetOptions != nil { - pclass.get_options = (*[0]byte)(C._gotk4_gst1_BufferPool_get_options) + pclass.get_options = (*[0]byte)(C._goglib_gst1_BufferPool_get_options) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_get_options", + "_goglib_gst1_BufferPool_get_options", func(carg0 *C.GstBufferPool) (cret **C.gchar) { var pool Instance // go GstBufferPool subclass - var goret []string // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var goret []string // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) pool = UnsafeBufferPoolFromGlibBorrow(unsafe.Pointer(carg0)).UnsafeLoadInstanceFromPrivateData().(Instance) @@ -26256,7 +26134,7 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") return cret }, @@ -26264,10 +26142,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.ReleaseBuffer != nil { - pclass.release_buffer = (*[0]byte)(C._gotk4_gst1_BufferPool_release_buffer) + pclass.release_buffer = (*[0]byte)(C._goglib_gst1_BufferPool_release_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_release_buffer", + "_goglib_gst1_BufferPool_release_buffer", func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { var pool Instance // go GstBufferPool subclass var buffer *Buffer // in, full, converted @@ -26281,10 +26159,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.ResetBuffer != nil { - pclass.reset_buffer = (*[0]byte)(C._gotk4_gst1_BufferPool_reset_buffer) + pclass.reset_buffer = (*[0]byte)(C._goglib_gst1_BufferPool_reset_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_reset_buffer", + "_goglib_gst1_BufferPool_reset_buffer", func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { var pool Instance // go GstBufferPool subclass var buffer *Buffer // in, none, converted @@ -26298,10 +26176,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.SetConfig != nil { - pclass.set_config = (*[0]byte)(C._gotk4_gst1_BufferPool_set_config) + pclass.set_config = (*[0]byte)(C._goglib_gst1_BufferPool_set_config) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_set_config", + "_goglib_gst1_BufferPool_set_config", func(carg0 *C.GstBufferPool, carg1 *C.GstStructure) (cret C.gboolean) { var pool Instance // go GstBufferPool subclass var config *Structure // in, full, converted @@ -26322,10 +26200,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gst1_BufferPool_start) + pclass.start = (*[0]byte)(C._goglib_gst1_BufferPool_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_start", + "_goglib_gst1_BufferPool_start", func(carg0 *C.GstBufferPool) (cret C.gboolean) { var pool Instance // go GstBufferPool subclass var goret bool // return @@ -26344,10 +26222,10 @@ func UnsafeApplyBufferPoolOverrides[Instance BufferPool](gclass unsafe.Pointer, } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gst1_BufferPool_stop) + pclass.stop = (*[0]byte)(C._goglib_gst1_BufferPool_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_BufferPool_stop", + "_goglib_gst1_BufferPool_stop", func(carg0 *C.GstBufferPool) (cret C.gboolean) { var pool Instance // go GstBufferPool subclass var goret bool // return @@ -26397,7 +26275,7 @@ func (pool *BufferPoolInstance) ParentAcquireBuffer(params *BufferPoolAcquirePar carg2 = (*C.GstBufferPoolAcquireParams)(UnsafeBufferPoolAcquireParamsToGlibNone(params)) } - cret = C._gotk4_gst1_BufferPool_virtual_acquire_buffer(unsafe.Pointer(parentclass.acquire_buffer), carg0, &carg1, carg2) + cret = C._goglib_gst1_BufferPool_virtual_acquire_buffer(unsafe.Pointer(parentclass.acquire_buffer), carg0, &carg1, carg2) runtime.KeepAlive(pool) runtime.KeepAlive(params) @@ -26443,7 +26321,7 @@ func (pool *BufferPoolInstance) ParentAllocBuffer(params *BufferPoolAcquireParam carg2 = (*C.GstBufferPoolAcquireParams)(UnsafeBufferPoolAcquireParamsToGlibNone(params)) } - cret = C._gotk4_gst1_BufferPool_virtual_alloc_buffer(unsafe.Pointer(parentclass.alloc_buffer), carg0, &carg1, carg2) + cret = C._goglib_gst1_BufferPool_virtual_alloc_buffer(unsafe.Pointer(parentclass.alloc_buffer), carg0, &carg1, carg2) runtime.KeepAlive(pool) runtime.KeepAlive(params) @@ -26469,7 +26347,7 @@ func (pool *BufferPoolInstance) ParentFlushStart() { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) - C._gotk4_gst1_BufferPool_virtual_flush_start(unsafe.Pointer(parentclass.flush_start), carg0) + C._goglib_gst1_BufferPool_virtual_flush_start(unsafe.Pointer(parentclass.flush_start), carg0) runtime.KeepAlive(pool) } @@ -26484,7 +26362,7 @@ func (pool *BufferPoolInstance) ParentFlushStop() { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) - C._gotk4_gst1_BufferPool_virtual_flush_stop(unsafe.Pointer(parentclass.flush_stop), carg0) + C._goglib_gst1_BufferPool_virtual_flush_stop(unsafe.Pointer(parentclass.flush_stop), carg0) runtime.KeepAlive(pool) } @@ -26505,7 +26383,7 @@ func (pool *BufferPoolInstance) ParentFreeBuffer(buffer *Buffer) { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) carg1 = (*C.GstBuffer)(UnsafeBufferToGlibNone(buffer)) - C._gotk4_gst1_BufferPool_virtual_free_buffer(unsafe.Pointer(parentclass.free_buffer), carg0, carg1) + C._goglib_gst1_BufferPool_virtual_free_buffer(unsafe.Pointer(parentclass.free_buffer), carg0, carg1) runtime.KeepAlive(pool) runtime.KeepAlive(buffer) } @@ -26522,20 +26400,20 @@ func (pool *BufferPoolInstance) ParentFreeBuffer(buffer *Buffer) { // gst_buffer_pool_config_add_option(). func (pool *BufferPoolInstance) ParentGetOptions() []string { var carg0 *C.GstBufferPool - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) parentclass := (*C.GstBufferPoolClass)(classdata.PeekParentClass(UnsafeBufferPoolToGlibNone(pool))) carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) - cret = C._gotk4_gst1_BufferPool_virtual_get_options(unsafe.Pointer(parentclass.get_options), carg0) + cret = C._goglib_gst1_BufferPool_virtual_get_options(unsafe.Pointer(parentclass.get_options), carg0) runtime.KeepAlive(pool) var goret []string _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unknown reason") return goret } @@ -26561,7 +26439,7 @@ func (pool *BufferPoolInstance) ParentReleaseBuffer(buffer *Buffer) { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) carg1 = (*C.GstBuffer)(UnsafeBufferToGlibFull(buffer)) - C._gotk4_gst1_BufferPool_virtual_release_buffer(unsafe.Pointer(parentclass.release_buffer), carg0, carg1) + C._goglib_gst1_BufferPool_virtual_release_buffer(unsafe.Pointer(parentclass.release_buffer), carg0, carg1) runtime.KeepAlive(pool) runtime.KeepAlive(buffer) } @@ -26588,7 +26466,7 @@ func (pool *BufferPoolInstance) ParentResetBuffer(buffer *Buffer) { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) carg1 = (*C.GstBuffer)(UnsafeBufferToGlibNone(buffer)) - C._gotk4_gst1_BufferPool_virtual_reset_buffer(unsafe.Pointer(parentclass.reset_buffer), carg0, carg1) + C._goglib_gst1_BufferPool_virtual_reset_buffer(unsafe.Pointer(parentclass.reset_buffer), carg0, carg1) runtime.KeepAlive(pool) runtime.KeepAlive(buffer) } @@ -26630,7 +26508,7 @@ func (pool *BufferPoolInstance) ParentSetConfig(config *Structure) bool { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) carg1 = (*C.GstStructure)(UnsafeStructureToGlibFull(config)) - cret = C._gotk4_gst1_BufferPool_virtual_set_config(unsafe.Pointer(parentclass.set_config), carg0, carg1) + cret = C._goglib_gst1_BufferPool_virtual_set_config(unsafe.Pointer(parentclass.set_config), carg0, carg1) runtime.KeepAlive(pool) runtime.KeepAlive(config) @@ -26663,7 +26541,7 @@ func (pool *BufferPoolInstance) ParentStart() bool { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) - cret = C._gotk4_gst1_BufferPool_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gst1_BufferPool_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(pool) var goret bool @@ -26693,7 +26571,7 @@ func (pool *BufferPoolInstance) ParentStop() bool { carg0 = (*C.GstBufferPool)(UnsafeBufferPoolToGlibNone(pool)) - cret = C._gotk4_gst1_BufferPool_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gst1_BufferPool_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(pool) var goret bool @@ -27265,7 +27143,7 @@ func (bus *BusInstance) AddWatchFull(priority int32, fn BusFunc) uint { carg0 = (*C.GstBus)(UnsafeBusToGlibNone(bus)) carg1 = C.gint(priority) - carg2 = (*[0]byte)(C._gotk4_gst1_BusFunc) + carg2 = (*[0]byte)(C._goglib_gst1_BusFunc) carg3 = C.gpointer(userdata.Register(fn)) carg4 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -27354,7 +27232,7 @@ func (bus *BusInstance) GetPollfd() glib.PollFD { _ = fd _ = carg1 - panic("unimplemented conversion of glib.PollFD (GPollFD)") + panic("unimplemented conversion of glib.PollFD (GPollFD) because of unknown reason") return fd } @@ -27765,10 +27643,10 @@ func UnsafeApplyBusOverrides[Instance Bus](gclass unsafe.Pointer, overrides BusO pclass := (*C.GstBusClass)(gclass) if overrides.Message != nil { - pclass.message = (*[0]byte)(C._gotk4_gst1_Bus_message) + pclass.message = (*[0]byte)(C._goglib_gst1_Bus_message) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bus_message", + "_goglib_gst1_Bus_message", func(carg0 *C.GstBus, carg1 *C.GstMessage) { var bus Instance // go GstBus subclass var message *Message // in, none, converted @@ -27782,10 +27660,10 @@ func UnsafeApplyBusOverrides[Instance Bus](gclass unsafe.Pointer, overrides BusO } if overrides.SyncMessage != nil { - pclass.sync_message = (*[0]byte)(C._gotk4_gst1_Bus_sync_message) + pclass.sync_message = (*[0]byte)(C._goglib_gst1_Bus_sync_message) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bus_sync_message", + "_goglib_gst1_Bus_sync_message", func(carg0 *C.GstBus, carg1 *C.GstMessage) { var bus Instance // go GstBus subclass var message *Message // in, none, converted @@ -27816,7 +27694,7 @@ func (bus *BusInstance) ParentMessage(message *Message) { carg0 = (*C.GstBus)(UnsafeBusToGlibNone(bus)) carg1 = (*C.GstMessage)(UnsafeMessageToGlibNone(message)) - C._gotk4_gst1_Bus_virtual_message(unsafe.Pointer(parentclass.message), carg0, carg1) + C._goglib_gst1_Bus_virtual_message(unsafe.Pointer(parentclass.message), carg0, carg1) runtime.KeepAlive(bus) runtime.KeepAlive(message) } @@ -27838,7 +27716,7 @@ func (bus *BusInstance) ParentSyncMessage(message *Message) { carg0 = (*C.GstBus)(UnsafeBusToGlibNone(bus)) carg1 = (*C.GstMessage)(UnsafeMessageToGlibNone(message)) - C._gotk4_gst1_Bus_virtual_sync_message(unsafe.Pointer(parentclass.sync_message), carg0, carg1) + C._goglib_gst1_Bus_virtual_sync_message(unsafe.Pointer(parentclass.sync_message), carg0, carg1) runtime.KeepAlive(bus) runtime.KeepAlive(message) } @@ -28679,7 +28557,7 @@ func ClockIDWaitAsync(id ClockID, fn ClockCallback) ClockReturn { var cret C.GstClockReturn // return, none, casted carg1 = C.GstClockID(id) - carg2 = (*[0]byte)(C._gotk4_gst1_ClockCallback) + carg2 = (*[0]byte)(C._goglib_gst1_ClockCallback) carg3 = C.gpointer(userdata.Register(fn)) carg4 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -29618,10 +29496,10 @@ func UnsafeApplyClockOverrides[Instance Clock](gclass unsafe.Pointer, overrides pclass := (*C.GstClockClass)(gclass) if overrides.ChangeResolution != nil { - pclass.change_resolution = (*[0]byte)(C._gotk4_gst1_Clock_change_resolution) + pclass.change_resolution = (*[0]byte)(C._goglib_gst1_Clock_change_resolution) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Clock_change_resolution", + "_goglib_gst1_Clock_change_resolution", func(carg0 *C.GstClock, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.GstClockTime) { var clock Instance // go GstClock subclass var oldResolution ClockTime // in, none, casted, alias @@ -29642,10 +29520,10 @@ func UnsafeApplyClockOverrides[Instance Clock](gclass unsafe.Pointer, overrides } if overrides.GetInternalTime != nil { - pclass.get_internal_time = (*[0]byte)(C._gotk4_gst1_Clock_get_internal_time) + pclass.get_internal_time = (*[0]byte)(C._goglib_gst1_Clock_get_internal_time) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Clock_get_internal_time", + "_goglib_gst1_Clock_get_internal_time", func(carg0 *C.GstClock) (cret C.GstClockTime) { var clock Instance // go GstClock subclass var goret ClockTime // return, none, casted, alias @@ -29662,10 +29540,10 @@ func UnsafeApplyClockOverrides[Instance Clock](gclass unsafe.Pointer, overrides } if overrides.GetResolution != nil { - pclass.get_resolution = (*[0]byte)(C._gotk4_gst1_Clock_get_resolution) + pclass.get_resolution = (*[0]byte)(C._goglib_gst1_Clock_get_resolution) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Clock_get_resolution", + "_goglib_gst1_Clock_get_resolution", func(carg0 *C.GstClock) (cret C.GstClockTime) { var clock Instance // go GstClock subclass var goret ClockTime // return, none, casted, alias @@ -29682,10 +29560,10 @@ func UnsafeApplyClockOverrides[Instance Clock](gclass unsafe.Pointer, overrides } if overrides.Unschedule != nil { - pclass.unschedule = (*[0]byte)(C._gotk4_gst1_Clock_unschedule) + pclass.unschedule = (*[0]byte)(C._goglib_gst1_Clock_unschedule) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Clock_unschedule", + "_goglib_gst1_Clock_unschedule", func(carg0 *C.GstClock, carg1 *C.GstClockEntry) { var clock Instance // go GstClock subclass var entry *ClockEntry // in, none, converted @@ -29699,10 +29577,10 @@ func UnsafeApplyClockOverrides[Instance Clock](gclass unsafe.Pointer, overrides } if overrides.Wait != nil { - pclass.wait = (*[0]byte)(C._gotk4_gst1_Clock_wait) + pclass.wait = (*[0]byte)(C._goglib_gst1_Clock_wait) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Clock_wait", + "_goglib_gst1_Clock_wait", func(carg0 *C.GstClock, carg1 *C.GstClockEntry, carg2 *C.GstClockTimeDiff) (cret C.GstClockReturn) { var clock Instance // go GstClock subclass var entry *ClockEntry // in, none, converted @@ -29723,10 +29601,10 @@ func UnsafeApplyClockOverrides[Instance Clock](gclass unsafe.Pointer, overrides } if overrides.WaitAsync != nil { - pclass.wait_async = (*[0]byte)(C._gotk4_gst1_Clock_wait_async) + pclass.wait_async = (*[0]byte)(C._goglib_gst1_Clock_wait_async) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Clock_wait_async", + "_goglib_gst1_Clock_wait_async", func(carg0 *C.GstClock, carg1 *C.GstClockEntry) (cret C.GstClockReturn) { var clock Instance // go GstClock subclass var entry *ClockEntry // in, none, converted @@ -29771,7 +29649,7 @@ func (clock *ClockInstance) ParentChangeResolution(oldResolution ClockTime, newR carg1 = C.GstClockTime(oldResolution) carg2 = C.GstClockTime(newResolution) - cret = C._gotk4_gst1_Clock_virtual_change_resolution(unsafe.Pointer(parentclass.change_resolution), carg0, carg1, carg2) + cret = C._goglib_gst1_Clock_virtual_change_resolution(unsafe.Pointer(parentclass.change_resolution), carg0, carg1, carg2) runtime.KeepAlive(clock) runtime.KeepAlive(oldResolution) runtime.KeepAlive(newResolution) @@ -29800,7 +29678,7 @@ func (clock *ClockInstance) ParentGetInternalTime() ClockTime { carg0 = (*C.GstClock)(UnsafeClockToGlibNone(clock)) - cret = C._gotk4_gst1_Clock_virtual_get_internal_time(unsafe.Pointer(parentclass.get_internal_time), carg0) + cret = C._goglib_gst1_Clock_virtual_get_internal_time(unsafe.Pointer(parentclass.get_internal_time), carg0) runtime.KeepAlive(clock) var goret ClockTime @@ -29827,7 +29705,7 @@ func (clock *ClockInstance) ParentGetResolution() ClockTime { carg0 = (*C.GstClock)(UnsafeClockToGlibNone(clock)) - cret = C._gotk4_gst1_Clock_virtual_get_resolution(unsafe.Pointer(parentclass.get_resolution), carg0) + cret = C._goglib_gst1_Clock_virtual_get_resolution(unsafe.Pointer(parentclass.get_resolution), carg0) runtime.KeepAlive(clock) var goret ClockTime @@ -29854,7 +29732,7 @@ func (clock *ClockInstance) ParentUnschedule(entry *ClockEntry) { carg0 = (*C.GstClock)(UnsafeClockToGlibNone(clock)) carg1 = (*C.GstClockEntry)(UnsafeClockEntryToGlibNone(entry)) - C._gotk4_gst1_Clock_virtual_unschedule(unsafe.Pointer(parentclass.unschedule), carg0, carg1) + C._goglib_gst1_Clock_virtual_unschedule(unsafe.Pointer(parentclass.unschedule), carg0, carg1) runtime.KeepAlive(clock) runtime.KeepAlive(entry) } @@ -29884,7 +29762,7 @@ func (clock *ClockInstance) ParentWait(entry *ClockEntry) (ClockTimeDiff, ClockR carg0 = (*C.GstClock)(UnsafeClockToGlibNone(clock)) carg1 = (*C.GstClockEntry)(UnsafeClockEntryToGlibNone(entry)) - cret = C._gotk4_gst1_Clock_virtual_wait(unsafe.Pointer(parentclass.wait), carg0, carg1, &carg2) + cret = C._goglib_gst1_Clock_virtual_wait(unsafe.Pointer(parentclass.wait), carg0, carg1, &carg2) runtime.KeepAlive(clock) runtime.KeepAlive(entry) @@ -29919,7 +29797,7 @@ func (clock *ClockInstance) ParentWaitAsync(entry *ClockEntry) ClockReturn { carg0 = (*C.GstClock)(UnsafeClockToGlibNone(clock)) carg1 = (*C.GstClockEntry)(UnsafeClockEntryToGlibNone(entry)) - cret = C._gotk4_gst1_Clock_virtual_wait_async(unsafe.Pointer(parentclass.wait_async), carg0, carg1) + cret = C._goglib_gst1_Clock_virtual_wait_async(unsafe.Pointer(parentclass.wait_async), carg0, carg1) runtime.KeepAlive(clock) runtime.KeepAlive(entry) @@ -30212,10 +30090,10 @@ func UnsafeApplyControlBindingOverrides[Instance ControlBinding](gclass unsafe.P pclass := (*C.GstControlBindingClass)(gclass) if overrides.SyncValues != nil { - pclass.sync_values = (*[0]byte)(C._gotk4_gst1_ControlBinding_sync_values) + pclass.sync_values = (*[0]byte)(C._goglib_gst1_ControlBinding_sync_values) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_ControlBinding_sync_values", + "_goglib_gst1_ControlBinding_sync_values", func(carg0 *C.GstControlBinding, carg1 *C.GstObject, carg2 C.GstClockTime, carg3 C.GstClockTime) (cret C.gboolean) { var binding Instance // go GstControlBinding subclass var object Object // in, none, converted @@ -30272,7 +30150,7 @@ func (binding *ControlBindingInstance) ParentSyncValues(object Object, timestamp carg2 = C.GstClockTime(timestamp) carg3 = C.GstClockTime(lastSync) - cret = C._gotk4_gst1_ControlBinding_virtual_sync_values(unsafe.Pointer(parentclass.sync_values), carg0, carg1, carg2, carg3) + cret = C._goglib_gst1_ControlBinding_virtual_sync_values(unsafe.Pointer(parentclass.sync_values), carg0, carg1, carg2, carg3) runtime.KeepAlive(binding) runtime.KeepAlive(object) runtime.KeepAlive(timestamp) @@ -30479,7 +30357,7 @@ func (self *ControlSourceInstance) ControlSourceGetValueArray(timestamp ClockTim var carg1 C.GstClockTime // in, none, casted, alias var carg2 C.GstClockTime // in, none, casted, alias var carg3 C.guint // implicit - var carg4 *C.gdouble // in, transfer: none, C Pointers: 1, Name: array[gdouble], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg4 *C.gdouble // in, transfer: none, C Pointers: 1, Name: array[gdouble], array (inner gdouble (*typesystem.CastablePrimitive), length-by: carg3) var cret C.gboolean // return carg0 = (*C.GstControlSource)(UnsafeControlSourceToGlibNone(self)) @@ -30488,7 +30366,7 @@ func (self *ControlSourceInstance) ControlSourceGetValueArray(timestamp ClockTim _ = values _ = carg4 _ = carg3 - panic("unimplemented conversion of []float64 (gdouble*)") + panic("unimplemented conversion of []float64 (gdouble*) because of unimplemented: non-fixed size array") cret = C.gst_control_source_get_value_array(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(self) @@ -30933,13 +30811,13 @@ func (device *DeviceInstance) HasClasses(classes string) bool { // Check if @factory matches all of the given classes func (device *DeviceInstance) HasClassesv(classes []string) bool { var carg0 *C.GstDevice // in, none, converted - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret C.gboolean // return carg0 = (*C.GstDevice)(UnsafeDeviceToGlibNone(device)) _ = classes _ = carg1 - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unimplemented: inner pointers in array") cret = C.gst_device_has_classesv(carg0, carg1) runtime.KeepAlive(device) @@ -31043,10 +30921,10 @@ func UnsafeApplyDeviceOverrides[Instance Device](gclass unsafe.Pointer, override pclass := (*C.GstDeviceClass)(gclass) if overrides.CreateElement != nil { - pclass.create_element = (*[0]byte)(C._gotk4_gst1_Device_create_element) + pclass.create_element = (*[0]byte)(C._goglib_gst1_Device_create_element) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Device_create_element", + "_goglib_gst1_Device_create_element", func(carg0 *C.GstDevice, carg1 *C.gchar) (cret *C.GstElement) { var device Instance // go GstDevice subclass var name string // in, none, string, nullable-string @@ -31069,10 +30947,10 @@ func UnsafeApplyDeviceOverrides[Instance Device](gclass unsafe.Pointer, override } if overrides.ReconfigureElement != nil { - pclass.reconfigure_element = (*[0]byte)(C._gotk4_gst1_Device_reconfigure_element) + pclass.reconfigure_element = (*[0]byte)(C._goglib_gst1_Device_reconfigure_element) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Device_reconfigure_element", + "_goglib_gst1_Device_reconfigure_element", func(carg0 *C.GstDevice, carg1 *C.GstElement) (cret C.gboolean) { var device Instance // go GstDevice subclass var element Element // in, none, converted @@ -31120,7 +30998,7 @@ func (device *DeviceInstance) ParentCreateElement(name string) Element { defer C.free(unsafe.Pointer(carg1)) } - cret = C._gotk4_gst1_Device_virtual_create_element(unsafe.Pointer(parentclass.create_element), carg0, carg1) + cret = C._goglib_gst1_Device_virtual_create_element(unsafe.Pointer(parentclass.create_element), carg0, carg1) runtime.KeepAlive(device) runtime.KeepAlive(name) @@ -31160,7 +31038,7 @@ func (device *DeviceInstance) ParentReconfigureElement(element Element) bool { carg0 = (*C.GstDevice)(UnsafeDeviceToGlibNone(device)) carg1 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - cret = C._gotk4_gst1_Device_virtual_reconfigure_element(unsafe.Pointer(parentclass.reconfigure_element), carg0, carg1) + cret = C._goglib_gst1_Device_virtual_reconfigure_element(unsafe.Pointer(parentclass.reconfigure_element), carg0, carg1) runtime.KeepAlive(device) runtime.KeepAlive(element) @@ -31558,7 +31436,7 @@ func (monitor *DeviceMonitorInstance) GetDevices() []Device { // This func (monitor *DeviceMonitorInstance) GetProviders() []string { var carg0 *C.GstDeviceMonitor // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstDeviceMonitor)(UnsafeDeviceMonitorToGlibNone(monitor)) @@ -31569,7 +31447,7 @@ func (monitor *DeviceMonitorInstance) GetProviders() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -32231,7 +32109,7 @@ func (provider *DeviceProviderInstance) GetFactory() DeviceProviderFactory { // are hidden by @provider. func (provider *DeviceProviderInstance) GetHiddenProviders() []string { var carg0 *C.GstDeviceProvider // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstDeviceProvider)(UnsafeDeviceProviderToGlibNone(provider)) @@ -32242,7 +32120,7 @@ func (provider *DeviceProviderInstance) GetHiddenProviders() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -32453,10 +32331,10 @@ func UnsafeApplyDeviceProviderOverrides[Instance DeviceProvider](gclass unsafe.P pclass := (*C.GstDeviceProviderClass)(gclass) if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gst1_DeviceProvider_start) + pclass.start = (*[0]byte)(C._goglib_gst1_DeviceProvider_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_DeviceProvider_start", + "_goglib_gst1_DeviceProvider_start", func(carg0 *C.GstDeviceProvider) (cret C.gboolean) { var provider Instance // go GstDeviceProvider subclass var goret bool // return @@ -32475,10 +32353,10 @@ func UnsafeApplyDeviceProviderOverrides[Instance DeviceProvider](gclass unsafe.P } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gst1_DeviceProvider_stop) + pclass.stop = (*[0]byte)(C._goglib_gst1_DeviceProvider_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_DeviceProvider_stop", + "_goglib_gst1_DeviceProvider_stop", func(carg0 *C.GstDeviceProvider) { var provider Instance // go GstDeviceProvider subclass @@ -32517,7 +32395,7 @@ func (provider *DeviceProviderInstance) ParentStart() bool { carg0 = (*C.GstDeviceProvider)(UnsafeDeviceProviderToGlibNone(provider)) - cret = C._gotk4_gst1_DeviceProvider_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gst1_DeviceProvider_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(provider) var goret bool @@ -32542,7 +32420,7 @@ func (provider *DeviceProviderInstance) ParentStop() { carg0 = (*C.GstDeviceProvider)(UnsafeDeviceProviderToGlibNone(provider)) - C._gotk4_gst1_DeviceProvider_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + C._goglib_gst1_DeviceProvider_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(provider) } @@ -32905,7 +32783,7 @@ func (factory *DeviceProviderFactoryInstance) GetMetadata(key string) string { // Get the available keys for the metadata on @factory. func (factory *DeviceProviderFactoryInstance) GetMetadataKeys() []string { var carg0 *C.GstDeviceProviderFactory // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstDeviceProviderFactory)(UnsafeDeviceProviderFactoryToGlibNone(factory)) @@ -32916,7 +32794,7 @@ func (factory *DeviceProviderFactoryInstance) GetMetadataKeys() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -32971,13 +32849,13 @@ func (factory *DeviceProviderFactoryInstance) HasClasses(classes string) bool { // Check if @factory matches all of the given classes func (factory *DeviceProviderFactoryInstance) HasClassesv(classes []string) bool { var carg0 *C.GstDeviceProviderFactory // in, none, converted - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret C.gboolean // return carg0 = (*C.GstDeviceProviderFactory)(UnsafeDeviceProviderFactoryToGlibNone(factory)) _ = classes _ = carg1 - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unimplemented: inner pointers in array") cret = C.gst_device_provider_factory_has_classesv(carg0, carg1) runtime.KeepAlive(factory) @@ -34878,7 +34756,7 @@ func (element *ElementInstance) CallAsync(fn ElementCallAsyncFunc) { var carg3 C.GDestroyNotify // implicit carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - carg1 = (*[0]byte)(C._gotk4_gst1_ElementCallAsyncFunc) + carg1 = (*[0]byte)(C._goglib_gst1_ElementCallAsyncFunc) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -35043,7 +34921,7 @@ func (element *ElementInstance) ForEachPad(fn ElementForeachPadFunc) bool { var cret C.gboolean // return carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - carg1 = (*[0]byte)(C._gotk4_gst1_ElementForeachPadFunc) + carg1 = (*[0]byte)(C._goglib_gst1_ElementForeachPadFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -35083,7 +34961,7 @@ func (element *ElementInstance) ForEachSinkPad(fn ElementForeachPadFunc) bool { var cret C.gboolean // return carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - carg1 = (*[0]byte)(C._gotk4_gst1_ElementForeachPadFunc) + carg1 = (*[0]byte)(C._goglib_gst1_ElementForeachPadFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -35123,7 +35001,7 @@ func (element *ElementInstance) ForEachSrcPad(fn ElementForeachPadFunc) bool { var cret C.gboolean // return carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - carg1 = (*[0]byte)(C._gotk4_gst1_ElementForeachPadFunc) + carg1 = (*[0]byte)(C._goglib_gst1_ElementForeachPadFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -37373,10 +37251,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri pclass := (*C.GstElementClass)(gclass) if overrides.ChangeState != nil { - pclass.change_state = (*[0]byte)(C._gotk4_gst1_Element_change_state) + pclass.change_state = (*[0]byte)(C._goglib_gst1_Element_change_state) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_change_state", + "_goglib_gst1_Element_change_state", func(carg0 *C.GstElement, carg1 C.GstStateChange) (cret C.GstStateChangeReturn) { var element Instance // go GstElement subclass var transition StateChange // in, none, casted @@ -37395,10 +37273,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.GetState != nil { - pclass.get_state = (*[0]byte)(C._gotk4_gst1_Element_get_state) + pclass.get_state = (*[0]byte)(C._goglib_gst1_Element_get_state) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_get_state", + "_goglib_gst1_Element_get_state", func(carg0 *C.GstElement, carg1 *C.GstState, carg2 *C.GstState, carg3 C.GstClockTime) (cret C.GstStateChangeReturn) { var element Instance // go GstElement subclass var timeout ClockTime // in, none, casted, alias @@ -37421,10 +37299,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.NoMorePads != nil { - pclass.no_more_pads = (*[0]byte)(C._gotk4_gst1_Element_no_more_pads) + pclass.no_more_pads = (*[0]byte)(C._goglib_gst1_Element_no_more_pads) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_no_more_pads", + "_goglib_gst1_Element_no_more_pads", func(carg0 *C.GstElement) { var element Instance // go GstElement subclass @@ -37436,10 +37314,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.PadAdded != nil { - pclass.pad_added = (*[0]byte)(C._gotk4_gst1_Element_pad_added) + pclass.pad_added = (*[0]byte)(C._goglib_gst1_Element_pad_added) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_pad_added", + "_goglib_gst1_Element_pad_added", func(carg0 *C.GstElement, carg1 *C.GstPad) { var element Instance // go GstElement subclass var pad Pad // in, none, converted @@ -37453,10 +37331,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.PadRemoved != nil { - pclass.pad_removed = (*[0]byte)(C._gotk4_gst1_Element_pad_removed) + pclass.pad_removed = (*[0]byte)(C._goglib_gst1_Element_pad_removed) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_pad_removed", + "_goglib_gst1_Element_pad_removed", func(carg0 *C.GstElement, carg1 *C.GstPad) { var element Instance // go GstElement subclass var pad Pad // in, none, converted @@ -37470,10 +37348,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.PostMessage != nil { - pclass.post_message = (*[0]byte)(C._gotk4_gst1_Element_post_message) + pclass.post_message = (*[0]byte)(C._goglib_gst1_Element_post_message) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_post_message", + "_goglib_gst1_Element_post_message", func(carg0 *C.GstElement, carg1 *C.GstMessage) (cret C.gboolean) { var element Instance // go GstElement subclass var message *Message // in, full, converted @@ -37494,10 +37372,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.ProvideClock != nil { - pclass.provide_clock = (*[0]byte)(C._gotk4_gst1_Element_provide_clock) + pclass.provide_clock = (*[0]byte)(C._goglib_gst1_Element_provide_clock) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_provide_clock", + "_goglib_gst1_Element_provide_clock", func(carg0 *C.GstElement) (cret *C.GstClock) { var element Instance // go GstElement subclass var goret Clock // return, full, converted, nullable @@ -37516,10 +37394,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.Query != nil { - pclass.query = (*[0]byte)(C._gotk4_gst1_Element_query) + pclass.query = (*[0]byte)(C._goglib_gst1_Element_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_query", + "_goglib_gst1_Element_query", func(carg0 *C.GstElement, carg1 *C.GstQuery) (cret C.gboolean) { var element Instance // go GstElement subclass var query *Query // in, none, converted @@ -37540,10 +37418,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.ReleasePad != nil { - pclass.release_pad = (*[0]byte)(C._gotk4_gst1_Element_release_pad) + pclass.release_pad = (*[0]byte)(C._goglib_gst1_Element_release_pad) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_release_pad", + "_goglib_gst1_Element_release_pad", func(carg0 *C.GstElement, carg1 *C.GstPad) { var element Instance // go GstElement subclass var pad Pad // in, none, converted @@ -37557,10 +37435,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.RequestNewPad != nil { - pclass.request_new_pad = (*[0]byte)(C._gotk4_gst1_Element_request_new_pad) + pclass.request_new_pad = (*[0]byte)(C._goglib_gst1_Element_request_new_pad) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_request_new_pad", + "_goglib_gst1_Element_request_new_pad", func(carg0 *C.GstElement, carg1 *C.GstPadTemplate, carg2 *C.gchar, carg3 *C.GstCaps) (cret *C.GstPad) { var element Instance // go GstElement subclass var templ PadTemplate // in, none, converted @@ -37589,10 +37467,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.SendEvent != nil { - pclass.send_event = (*[0]byte)(C._gotk4_gst1_Element_send_event) + pclass.send_event = (*[0]byte)(C._goglib_gst1_Element_send_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_send_event", + "_goglib_gst1_Element_send_event", func(carg0 *C.GstElement, carg1 *C.GstEvent) (cret C.gboolean) { var element Instance // go GstElement subclass var event *Event // in, full, converted @@ -37613,10 +37491,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.SetBus != nil { - pclass.set_bus = (*[0]byte)(C._gotk4_gst1_Element_set_bus) + pclass.set_bus = (*[0]byte)(C._goglib_gst1_Element_set_bus) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_set_bus", + "_goglib_gst1_Element_set_bus", func(carg0 *C.GstElement, carg1 *C.GstBus) { var element Instance // go GstElement subclass var bus Bus // in, none, converted, nullable @@ -37632,10 +37510,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.SetClock != nil { - pclass.set_clock = (*[0]byte)(C._gotk4_gst1_Element_set_clock) + pclass.set_clock = (*[0]byte)(C._goglib_gst1_Element_set_clock) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_set_clock", + "_goglib_gst1_Element_set_clock", func(carg0 *C.GstElement, carg1 *C.GstClock) (cret C.gboolean) { var element Instance // go GstElement subclass var clock Clock // in, none, converted, nullable @@ -37658,10 +37536,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.SetContext != nil { - pclass.set_context = (*[0]byte)(C._gotk4_gst1_Element_set_context) + pclass.set_context = (*[0]byte)(C._goglib_gst1_Element_set_context) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_set_context", + "_goglib_gst1_Element_set_context", func(carg0 *C.GstElement, carg1 *C.GstContext) { var element Instance // go GstElement subclass var _context *Context // in, none, converted @@ -37675,10 +37553,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.SetState != nil { - pclass.set_state = (*[0]byte)(C._gotk4_gst1_Element_set_state) + pclass.set_state = (*[0]byte)(C._goglib_gst1_Element_set_state) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_set_state", + "_goglib_gst1_Element_set_state", func(carg0 *C.GstElement, carg1 C.GstState) (cret C.GstStateChangeReturn) { var element Instance // go GstElement subclass var state State // in, none, casted @@ -37697,10 +37575,10 @@ func UnsafeApplyElementOverrides[Instance Element](gclass unsafe.Pointer, overri } if overrides.StateChanged != nil { - pclass.state_changed = (*[0]byte)(C._gotk4_gst1_Element_state_changed) + pclass.state_changed = (*[0]byte)(C._goglib_gst1_Element_state_changed) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Element_state_changed", + "_goglib_gst1_Element_state_changed", func(carg0 *C.GstElement, carg1 C.GstState, carg2 C.GstState, carg3 C.GstState) { var element Instance // go GstElement subclass var oldstate State // in, none, casted @@ -37743,7 +37621,7 @@ func (element *ElementInstance) ParentChangeState(transition StateChange) StateC carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = C.GstStateChange(transition) - cret = C._gotk4_gst1_Element_virtual_change_state(unsafe.Pointer(parentclass.change_state), carg0, carg1) + cret = C._goglib_gst1_Element_virtual_change_state(unsafe.Pointer(parentclass.change_state), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(transition) @@ -37802,7 +37680,7 @@ func (element *ElementInstance) ParentGetState(timeout ClockTime) (State, State, carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg3 = C.GstClockTime(timeout) - cret = C._gotk4_gst1_Element_virtual_get_state(unsafe.Pointer(parentclass.get_state), carg0, &carg1, &carg2, carg3) + cret = C._goglib_gst1_Element_virtual_get_state(unsafe.Pointer(parentclass.get_state), carg0, &carg1, &carg2, carg3) runtime.KeepAlive(element) runtime.KeepAlive(timeout) @@ -37836,7 +37714,7 @@ func (element *ElementInstance) ParentNoMorePads() { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - C._gotk4_gst1_Element_virtual_no_more_pads(unsafe.Pointer(parentclass.no_more_pads), carg0) + C._goglib_gst1_Element_virtual_no_more_pads(unsafe.Pointer(parentclass.no_more_pads), carg0) runtime.KeepAlive(element) } @@ -37855,7 +37733,7 @@ func (element *ElementInstance) ParentPadAdded(pad Pad) { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstPad)(UnsafePadToGlibNone(pad)) - C._gotk4_gst1_Element_virtual_pad_added(unsafe.Pointer(parentclass.pad_added), carg0, carg1) + C._goglib_gst1_Element_virtual_pad_added(unsafe.Pointer(parentclass.pad_added), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(pad) } @@ -37875,7 +37753,7 @@ func (element *ElementInstance) ParentPadRemoved(pad Pad) { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstPad)(UnsafePadToGlibNone(pad)) - C._gotk4_gst1_Element_virtual_pad_removed(unsafe.Pointer(parentclass.pad_removed), carg0, carg1) + C._goglib_gst1_Element_virtual_pad_removed(unsafe.Pointer(parentclass.pad_removed), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(pad) } @@ -37904,7 +37782,7 @@ func (element *ElementInstance) ParentPostMessage(message *Message) bool { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstMessage)(UnsafeMessageToGlibFull(message)) - cret = C._gotk4_gst1_Element_virtual_post_message(unsafe.Pointer(parentclass.post_message), carg0, carg1) + cret = C._goglib_gst1_Element_virtual_post_message(unsafe.Pointer(parentclass.post_message), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(message) @@ -37935,7 +37813,7 @@ func (element *ElementInstance) ParentProvideClock() Clock { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - cret = C._gotk4_gst1_Element_virtual_provide_clock(unsafe.Pointer(parentclass.provide_clock), carg0) + cret = C._goglib_gst1_Element_virtual_provide_clock(unsafe.Pointer(parentclass.provide_clock), carg0) runtime.KeepAlive(element) var goret Clock @@ -37975,7 +37853,7 @@ func (element *ElementInstance) ParentQuery(query *Query) bool { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstQuery)(UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gst1_Element_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1) + cret = C._goglib_gst1_Element_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(query) @@ -38005,7 +37883,7 @@ func (element *ElementInstance) ParentReleasePad(pad Pad) { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstPad)(UnsafePadToGlibNone(pad)) - C._gotk4_gst1_Element_virtual_release_pad(unsafe.Pointer(parentclass.release_pad), carg0, carg1) + C._goglib_gst1_Element_virtual_release_pad(unsafe.Pointer(parentclass.release_pad), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(pad) } @@ -38049,7 +37927,7 @@ func (element *ElementInstance) ParentRequestNewPad(templ PadTemplate, name stri carg3 = (*C.GstCaps)(UnsafeCapsToGlibNone(caps)) } - cret = C._gotk4_gst1_Element_virtual_request_new_pad(unsafe.Pointer(parentclass.request_new_pad), carg0, carg1, carg2, carg3) + cret = C._goglib_gst1_Element_virtual_request_new_pad(unsafe.Pointer(parentclass.request_new_pad), carg0, carg1, carg2, carg3) runtime.KeepAlive(element) runtime.KeepAlive(templ) runtime.KeepAlive(name) @@ -38093,7 +37971,7 @@ func (element *ElementInstance) ParentSendEvent(event *Event) bool { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstEvent)(UnsafeEventToGlibFull(event)) - cret = C._gotk4_gst1_Element_virtual_send_event(unsafe.Pointer(parentclass.send_event), carg0, carg1) + cret = C._goglib_gst1_Element_virtual_send_event(unsafe.Pointer(parentclass.send_event), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(event) @@ -38128,7 +38006,7 @@ func (element *ElementInstance) ParentSetBus(bus Bus) { carg1 = (*C.GstBus)(UnsafeBusToGlibNone(bus)) } - C._gotk4_gst1_Element_virtual_set_bus(unsafe.Pointer(parentclass.set_bus), carg0, carg1) + C._goglib_gst1_Element_virtual_set_bus(unsafe.Pointer(parentclass.set_bus), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(bus) } @@ -38159,7 +38037,7 @@ func (element *ElementInstance) ParentSetClock(clock Clock) bool { carg1 = (*C.GstClock)(UnsafeClockToGlibNone(clock)) } - cret = C._gotk4_gst1_Element_virtual_set_clock(unsafe.Pointer(parentclass.set_clock), carg0, carg1) + cret = C._goglib_gst1_Element_virtual_set_clock(unsafe.Pointer(parentclass.set_clock), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(clock) @@ -38191,7 +38069,7 @@ func (element *ElementInstance) ParentSetContext(_context *Context) { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = (*C.GstContext)(UnsafeContextToGlibNone(_context)) - C._gotk4_gst1_Element_virtual_set_context(unsafe.Pointer(parentclass.set_context), carg0, carg1) + C._goglib_gst1_Element_virtual_set_context(unsafe.Pointer(parentclass.set_context), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(_context) } @@ -38230,7 +38108,7 @@ func (element *ElementInstance) ParentSetState(state State) StateChangeReturn { carg0 = (*C.GstElement)(UnsafeElementToGlibNone(element)) carg1 = C.GstState(state) - cret = C._gotk4_gst1_Element_virtual_set_state(unsafe.Pointer(parentclass.set_state), carg0, carg1) + cret = C._goglib_gst1_Element_virtual_set_state(unsafe.Pointer(parentclass.set_state), carg0, carg1) runtime.KeepAlive(element) runtime.KeepAlive(state) @@ -38264,7 +38142,7 @@ func (element *ElementInstance) ParentStateChanged(oldstate State, newstate Stat carg2 = C.GstState(newstate) carg3 = C.GstState(pending) - C._gotk4_gst1_Element_virtual_state_changed(unsafe.Pointer(parentclass.state_changed), carg0, carg1, carg2, carg3) + C._goglib_gst1_Element_virtual_state_changed(unsafe.Pointer(parentclass.state_changed), carg0, carg1, carg2, carg3) runtime.KeepAlive(element) runtime.KeepAlive(oldstate) runtime.KeepAlive(newstate) @@ -38861,19 +38739,19 @@ func (factory *ElementFactoryInstance) Create(name string) Element { func (factory *ElementFactoryInstance) CreateWithProperties(names []string, values []gobject.Value) Element { var carg0 *C.GstElementFactory // in, none, converted var carg1 C.guint // implicit - var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, length-by: carg1) - var carg3 *C.GValue // in, transfer: none, C Pointers: 1, Name: array[Value], nullable, array (inner: *typesystem.Record, length-by: carg1) + var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), length-by: carg1) + var carg3 *C.GValue // in, transfer: none, C Pointers: 1, Name: array[Value], nullable, array (inner GValue (*typesystem.Record), length-by: carg1) var cret *C.GstElement // return, none, converted, nullable carg0 = (*C.GstElementFactory)(UnsafeElementFactoryToGlibNone(factory)) _ = names _ = carg2 _ = carg1 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") _ = values _ = carg3 _ = carg1 - panic("unimplemented conversion of []gobject.Value (const GValue*)") + panic("unimplemented conversion of []gobject.Value (const GValue*) because of unimplemented: non-fixed size array") cret = C.gst_element_factory_create_with_properties(carg0, carg1, carg2, carg3) runtime.KeepAlive(factory) @@ -38956,7 +38834,7 @@ func (factory *ElementFactoryInstance) GetMetadata(key string) string { // Get the available keys for the metadata on @factory. func (factory *ElementFactoryInstance) GetMetadataKeys() []string { var carg0 *C.GstElementFactory // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstElementFactory)(UnsafeElementFactoryToGlibNone(factory)) @@ -38967,7 +38845,7 @@ func (factory *ElementFactoryInstance) GetMetadataKeys() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -39063,7 +38941,7 @@ func (factory *ElementFactoryInstance) GetStaticPadTemplates() []*StaticPadTempl // make a copy of the protocol string array if you need to. func (factory *ElementFactoryInstance) GetURIProtocols() []string { var carg0 *C.GstElementFactory // in, none, converted - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstElementFactory)(UnsafeElementFactoryToGlibNone(factory)) @@ -39074,7 +38952,7 @@ func (factory *ElementFactoryInstance) GetURIProtocols() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar* const*)") + panic("unimplemented conversion of []string (const gchar* const*) because of unknown reason") return goret } @@ -41193,10 +41071,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO pclass := (*C.GstBinClass)(gclass) if overrides.AddElement != nil { - pclass.add_element = (*[0]byte)(C._gotk4_gst1_Bin_add_element) + pclass.add_element = (*[0]byte)(C._goglib_gst1_Bin_add_element) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_add_element", + "_goglib_gst1_Bin_add_element", func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { var bin Instance // go GstBin subclass var element Element // in, none, converted @@ -41217,10 +41095,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.DeepElementAdded != nil { - pclass.deep_element_added = (*[0]byte)(C._gotk4_gst1_Bin_deep_element_added) + pclass.deep_element_added = (*[0]byte)(C._goglib_gst1_Bin_deep_element_added) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_deep_element_added", + "_goglib_gst1_Bin_deep_element_added", func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { var bin Instance // go GstBin subclass var subBin Bin // in, none, converted @@ -41236,10 +41114,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.DeepElementRemoved != nil { - pclass.deep_element_removed = (*[0]byte)(C._gotk4_gst1_Bin_deep_element_removed) + pclass.deep_element_removed = (*[0]byte)(C._goglib_gst1_Bin_deep_element_removed) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_deep_element_removed", + "_goglib_gst1_Bin_deep_element_removed", func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { var bin Instance // go GstBin subclass var subBin Bin // in, none, converted @@ -41255,10 +41133,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.DoLatency != nil { - pclass.do_latency = (*[0]byte)(C._gotk4_gst1_Bin_do_latency) + pclass.do_latency = (*[0]byte)(C._goglib_gst1_Bin_do_latency) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_do_latency", + "_goglib_gst1_Bin_do_latency", func(carg0 *C.GstBin) (cret C.gboolean) { var bin Instance // go GstBin subclass var goret bool // return @@ -41277,10 +41155,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.ElementAdded != nil { - pclass.element_added = (*[0]byte)(C._gotk4_gst1_Bin_element_added) + pclass.element_added = (*[0]byte)(C._goglib_gst1_Bin_element_added) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_element_added", + "_goglib_gst1_Bin_element_added", func(carg0 *C.GstBin, carg1 *C.GstElement) { var bin Instance // go GstBin subclass var child Element // in, none, converted @@ -41294,10 +41172,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.ElementRemoved != nil { - pclass.element_removed = (*[0]byte)(C._gotk4_gst1_Bin_element_removed) + pclass.element_removed = (*[0]byte)(C._goglib_gst1_Bin_element_removed) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_element_removed", + "_goglib_gst1_Bin_element_removed", func(carg0 *C.GstBin, carg1 *C.GstElement) { var bin Instance // go GstBin subclass var child Element // in, none, converted @@ -41311,10 +41189,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.HandleMessage != nil { - pclass.handle_message = (*[0]byte)(C._gotk4_gst1_Bin_handle_message) + pclass.handle_message = (*[0]byte)(C._goglib_gst1_Bin_handle_message) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_handle_message", + "_goglib_gst1_Bin_handle_message", func(carg0 *C.GstBin, carg1 *C.GstMessage) { var bin Instance // go GstBin subclass var message *Message // in, full, converted @@ -41328,10 +41206,10 @@ func UnsafeApplyBinOverrides[Instance Bin](gclass unsafe.Pointer, overrides BinO } if overrides.RemoveElement != nil { - pclass.remove_element = (*[0]byte)(C._gotk4_gst1_Bin_remove_element) + pclass.remove_element = (*[0]byte)(C._goglib_gst1_Bin_remove_element) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gst1_Bin_remove_element", + "_goglib_gst1_Bin_remove_element", func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { var bin Instance // go GstBin subclass var element Element // in, none, converted @@ -41374,7 +41252,7 @@ func (bin *BinInstance) ParentAddElement(element Element) bool { carg0 = (*C.GstBin)(UnsafeBinToGlibNone(bin)) carg1 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - cret = C._gotk4_gst1_Bin_virtual_add_element(unsafe.Pointer(parentclass.add_element), carg0, carg1) + cret = C._goglib_gst1_Bin_virtual_add_element(unsafe.Pointer(parentclass.add_element), carg0, carg1) runtime.KeepAlive(bin) runtime.KeepAlive(element) @@ -41407,7 +41285,7 @@ func (bin *BinInstance) ParentDeepElementAdded(subBin Bin, child Element) { carg1 = (*C.GstBin)(UnsafeBinToGlibNone(subBin)) carg2 = (*C.GstElement)(UnsafeElementToGlibNone(child)) - C._gotk4_gst1_Bin_virtual_deep_element_added(unsafe.Pointer(parentclass.deep_element_added), carg0, carg1, carg2) + C._goglib_gst1_Bin_virtual_deep_element_added(unsafe.Pointer(parentclass.deep_element_added), carg0, carg1, carg2) runtime.KeepAlive(bin) runtime.KeepAlive(subBin) runtime.KeepAlive(child) @@ -41433,7 +41311,7 @@ func (bin *BinInstance) ParentDeepElementRemoved(subBin Bin, child Element) { carg1 = (*C.GstBin)(UnsafeBinToGlibNone(subBin)) carg2 = (*C.GstElement)(UnsafeElementToGlibNone(child)) - C._gotk4_gst1_Bin_virtual_deep_element_removed(unsafe.Pointer(parentclass.deep_element_removed), carg0, carg1, carg2) + C._goglib_gst1_Bin_virtual_deep_element_removed(unsafe.Pointer(parentclass.deep_element_removed), carg0, carg1, carg2) runtime.KeepAlive(bin) runtime.KeepAlive(subBin) runtime.KeepAlive(child) @@ -41453,7 +41331,7 @@ func (bin *BinInstance) ParentDoLatency() bool { carg0 = (*C.GstBin)(UnsafeBinToGlibNone(bin)) - cret = C._gotk4_gst1_Bin_virtual_do_latency(unsafe.Pointer(parentclass.do_latency), carg0) + cret = C._goglib_gst1_Bin_virtual_do_latency(unsafe.Pointer(parentclass.do_latency), carg0) runtime.KeepAlive(bin) var goret bool @@ -41482,7 +41360,7 @@ func (bin *BinInstance) ParentElementAdded(child Element) { carg0 = (*C.GstBin)(UnsafeBinToGlibNone(bin)) carg1 = (*C.GstElement)(UnsafeElementToGlibNone(child)) - C._gotk4_gst1_Bin_virtual_element_added(unsafe.Pointer(parentclass.element_added), carg0, carg1) + C._goglib_gst1_Bin_virtual_element_added(unsafe.Pointer(parentclass.element_added), carg0, carg1) runtime.KeepAlive(bin) runtime.KeepAlive(child) } @@ -41504,7 +41382,7 @@ func (bin *BinInstance) ParentElementRemoved(child Element) { carg0 = (*C.GstBin)(UnsafeBinToGlibNone(bin)) carg1 = (*C.GstElement)(UnsafeElementToGlibNone(child)) - C._gotk4_gst1_Bin_virtual_element_removed(unsafe.Pointer(parentclass.element_removed), carg0, carg1) + C._goglib_gst1_Bin_virtual_element_removed(unsafe.Pointer(parentclass.element_removed), carg0, carg1) runtime.KeepAlive(bin) runtime.KeepAlive(child) } @@ -41526,7 +41404,7 @@ func (bin *BinInstance) ParentHandleMessage(message *Message) { carg0 = (*C.GstBin)(UnsafeBinToGlibNone(bin)) carg1 = (*C.GstMessage)(UnsafeMessageToGlibFull(message)) - C._gotk4_gst1_Bin_virtual_handle_message(unsafe.Pointer(parentclass.handle_message), carg0, carg1) + C._goglib_gst1_Bin_virtual_handle_message(unsafe.Pointer(parentclass.handle_message), carg0, carg1) runtime.KeepAlive(bin) runtime.KeepAlive(message) } @@ -41553,7 +41431,7 @@ func (bin *BinInstance) ParentRemoveElement(element Element) bool { carg0 = (*C.GstBin)(UnsafeBinToGlibNone(bin)) carg1 = (*C.GstElement)(UnsafeElementToGlibNone(element)) - cret = C._gotk4_gst1_Bin_virtual_remove_element(unsafe.Pointer(parentclass.remove_element), carg0, carg1) + cret = C._goglib_gst1_Bin_virtual_remove_element(unsafe.Pointer(parentclass.remove_element), carg0, carg1) runtime.KeepAlive(bin) runtime.KeepAlive(element) @@ -43425,7 +43303,7 @@ func (buffer *Buffer) ForEachMeta(fn BufferForeachMetaFunc) bool { var cret C.gboolean // return carg0 = (*C.GstBuffer)(UnsafeBufferToGlibNone(buffer)) - carg1 = (*[0]byte)(C._gotk4_gst1_BufferForeachMetaFunc) + carg1 = (*[0]byte)(C._goglib_gst1_BufferForeachMetaFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -44601,7 +44479,7 @@ func (list *BufferList) ForEach(fn BufferListFunc) bool { var cret C.gboolean // return carg0 = (*C.GstBufferList)(UnsafeBufferListToGlibNone(list)) - carg1 = (*[0]byte)(C._gotk4_gst1_BufferListFunc) + carg1 = (*[0]byte)(C._goglib_gst1_BufferListFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -45522,7 +45400,7 @@ func (caps *Caps) FilterAndMapInPlace(fn CapsFilterMapFunc) { var carg2 C.gpointer // implicit carg0 = (*C.GstCaps)(UnsafeCapsToGlibNone(caps)) - carg1 = (*[0]byte)(C._gotk4_gst1_CapsFilterMapFunc) + carg1 = (*[0]byte)(C._goglib_gst1_CapsFilterMapFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -45586,7 +45464,7 @@ func (caps *Caps) ForEach(fn CapsForeachFunc) bool { var cret C.gboolean // return carg0 = (*C.GstCaps)(UnsafeCapsToGlibNone(caps)) - carg1 = (*[0]byte)(C._gotk4_gst1_CapsForeachFunc) + carg1 = (*[0]byte)(C._goglib_gst1_CapsForeachFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -46131,7 +46009,7 @@ func (caps *Caps) MapInPlace(fn CapsMapFunc) bool { var cret C.gboolean // return carg0 = (*C.GstCaps)(UnsafeCapsToGlibNone(caps)) - carg1 = (*[0]byte)(C._gotk4_gst1_CapsMapFunc) + carg1 = (*[0]byte)(C._goglib_gst1_CapsMapFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -47196,7 +47074,7 @@ func (features *CapsFeatures) SetParentRefcount(refcount *int32) bool { carg0 = (*C.GstCapsFeatures)(UnsafeCapsFeaturesToGlibNone(features)) _ = refcount _ = carg1 - panic("unimplemented conversion of *int32 (gint*)") + panic("unimplemented conversion of *int32 (gint*) because of no basic converter found") cret = C.gst_caps_features_set_parent_refcount(carg0, carg1) runtime.KeepAlive(features) @@ -53181,7 +53059,7 @@ func (it *Iterator) Fold(fn IteratorFoldFunction, ret *gobject.Value) IteratorRe var cret C.GstIteratorResult // return, none, casted carg0 = (*C.GstIterator)(UnsafeIteratorToGlibNone(it)) - carg1 = (*[0]byte)(C._gotk4_gst1_IteratorFoldFunction) + carg1 = (*[0]byte)(C._goglib_gst1_IteratorFoldFunction) carg3 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg3)) carg2 = (*C.GValue)(gobject.UnsafeValueToGlibUseAnyInstead(ret)) @@ -53217,7 +53095,7 @@ func (it *Iterator) ForEach(fn IteratorForeachFunction) IteratorResult { var cret C.GstIteratorResult // return, none, casted carg0 = (*C.GstIterator)(UnsafeIteratorToGlibNone(it)) - carg1 = (*[0]byte)(C._gotk4_gst1_IteratorForeachFunction) + carg1 = (*[0]byte)(C._goglib_gst1_IteratorForeachFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -54232,98 +54110,6 @@ func NewMessageEOS(src Object) *Message { return goret } -// NewMessageError wraps gst_message_new_error -// -// The function takes the following parameters: -// -// - src Object (nullable): The object originating the message. -// - debug string (nullable): A debugging string. -// - err error: The GError for this message. -// -// The function returns the following values: -// -// - goret *Message -// -// Create a new error message. The message will copy @error and -// @debug. This message is posted by element when a fatal event -// occurred. The pipeline will probably (partially) stop. The application -// receiving this message should stop the pipeline. -func NewMessageError(src Object, debug string, err error) *Message { - var carg1 *C.GstObject // in, none, converted, nullable - var carg3 *C.gchar // in, none, string, nullable-string - var carg2 *C.GError // in, none, converted - var cret *C.GstMessage // return, full, converted - - if src != nil { - carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) - } - if debug != "" { - carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg3)) - } - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - cret = C.gst_message_new_error(carg1, carg2, carg3) - runtime.KeepAlive(src) - runtime.KeepAlive(debug) - runtime.KeepAlive(err) - - var goret *Message - - goret = UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) - - return goret -} - -// NewMessageErrorWithDetails wraps gst_message_new_error_with_details -// -// The function takes the following parameters: -// -// - src Object (nullable): The object originating the message. -// - debug string (nullable): A debugging string. -// - details *Structure (nullable): A GstStructure with details -// - err error: The GError for this message. -// -// The function returns the following values: -// -// - goret *Message -// -// Create a new error message. The message will copy @error and -// @debug. This message is posted by element when a fatal event -// occurred. The pipeline will probably (partially) stop. The application -// receiving this message should stop the pipeline. -func NewMessageErrorWithDetails(src Object, debug string, details *Structure, err error) *Message { - var carg1 *C.GstObject // in, none, converted, nullable - var carg3 *C.gchar // in, none, string, nullable-string - var carg4 *C.GstStructure // in, full, converted, nullable - var carg2 *C.GError // in, none, converted - var cret *C.GstMessage // return, full, converted - - if src != nil { - carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) - } - if debug != "" { - carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg3)) - } - if details != nil { - carg4 = (*C.GstStructure)(UnsafeStructureToGlibFull(details)) - } - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - cret = C.gst_message_new_error_with_details(carg1, carg2, carg3, carg4) - runtime.KeepAlive(src) - runtime.KeepAlive(debug) - runtime.KeepAlive(details) - runtime.KeepAlive(err) - - var goret *Message - - goret = UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) - - return goret -} - // NewMessageHaveContext wraps gst_message_new_have_context // // The function takes the following parameters: @@ -54357,94 +54143,6 @@ func NewMessageHaveContext(src Object, _context *Context) *Message { return goret } -// NewMessageInfo wraps gst_message_new_info -// -// The function takes the following parameters: -// -// - src Object (nullable): The object originating the message. -// - debug string (nullable): A debugging string. -// - err error: The GError for this message. -// -// The function returns the following values: -// -// - goret *Message -// -// Create a new info message. The message will make copies of @error and -// @debug. -func NewMessageInfo(src Object, debug string, err error) *Message { - var carg1 *C.GstObject // in, none, converted, nullable - var carg3 *C.gchar // in, none, string, nullable-string - var carg2 *C.GError // in, none, converted - var cret *C.GstMessage // return, full, converted - - if src != nil { - carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) - } - if debug != "" { - carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg3)) - } - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - cret = C.gst_message_new_info(carg1, carg2, carg3) - runtime.KeepAlive(src) - runtime.KeepAlive(debug) - runtime.KeepAlive(err) - - var goret *Message - - goret = UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) - - return goret -} - -// NewMessageInfoWithDetails wraps gst_message_new_info_with_details -// -// The function takes the following parameters: -// -// - src Object (nullable): The object originating the message. -// - debug string (nullable): A debugging string. -// - details *Structure (nullable): A GstStructure with details -// - err error: The GError for this message. -// -// The function returns the following values: -// -// - goret *Message -// -// Create a new info message. The message will make copies of @error and -// @debug. -func NewMessageInfoWithDetails(src Object, debug string, details *Structure, err error) *Message { - var carg1 *C.GstObject // in, none, converted, nullable - var carg3 *C.gchar // in, none, string, nullable-string - var carg4 *C.GstStructure // in, full, converted, nullable - var carg2 *C.GError // in, none, converted - var cret *C.GstMessage // return, full, converted - - if src != nil { - carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) - } - if debug != "" { - carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg3)) - } - if details != nil { - carg4 = (*C.GstStructure)(UnsafeStructureToGlibFull(details)) - } - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - cret = C.gst_message_new_info_with_details(carg1, carg2, carg3, carg4) - runtime.KeepAlive(src) - runtime.KeepAlive(debug) - runtime.KeepAlive(details) - runtime.KeepAlive(err) - - var goret *Message - - goret = UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) - - return goret -} - // NewMessageInstantRateRequest wraps gst_message_new_instant_rate_request // // The function takes the following parameters: @@ -55384,94 +55082,6 @@ func NewMessageToc(src Object, toc *Toc, updated bool) *Message { return goret } -// NewMessageWarning wraps gst_message_new_warning -// -// The function takes the following parameters: -// -// - src Object (nullable): The object originating the message. -// - debug string (nullable): A debugging string. -// - err error: The GError for this message. -// -// The function returns the following values: -// -// - goret *Message -// -// Create a new warning message. The message will make copies of @error and -// @debug. -func NewMessageWarning(src Object, debug string, err error) *Message { - var carg1 *C.GstObject // in, none, converted, nullable - var carg3 *C.gchar // in, none, string, nullable-string - var carg2 *C.GError // in, none, converted - var cret *C.GstMessage // return, full, converted - - if src != nil { - carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) - } - if debug != "" { - carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg3)) - } - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - cret = C.gst_message_new_warning(carg1, carg2, carg3) - runtime.KeepAlive(src) - runtime.KeepAlive(debug) - runtime.KeepAlive(err) - - var goret *Message - - goret = UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) - - return goret -} - -// NewMessageWarningWithDetails wraps gst_message_new_warning_with_details -// -// The function takes the following parameters: -// -// - src Object (nullable): The object originating the message. -// - debug string (nullable): A debugging string. -// - details *Structure (nullable): A GstStructure with details -// - err error: The GError for this message. -// -// The function returns the following values: -// -// - goret *Message -// -// Create a new warning message. The message will make copies of @error and -// @debug. -func NewMessageWarningWithDetails(src Object, debug string, details *Structure, err error) *Message { - var carg1 *C.GstObject // in, none, converted, nullable - var carg3 *C.gchar // in, none, string, nullable-string - var carg4 *C.GstStructure // in, full, converted, nullable - var carg2 *C.GError // in, none, converted - var cret *C.GstMessage // return, full, converted - - if src != nil { - carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) - } - if debug != "" { - carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) - defer C.free(unsafe.Pointer(carg3)) - } - if details != nil { - carg4 = (*C.GstStructure)(UnsafeStructureToGlibFull(details)) - } - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - cret = C.gst_message_new_warning_with_details(carg1, carg2, carg3, carg4) - runtime.KeepAlive(src) - runtime.KeepAlive(debug) - runtime.KeepAlive(details) - runtime.KeepAlive(err) - - var goret *Message - - goret = UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) - - return goret -} - // AddRedirectEntry wraps gst_message_add_redirect_entry // // The function takes the following parameters: @@ -57416,7 +57026,7 @@ func UnsafeMetaToGlibFull(m *Meta) unsafe.Pointer { // - goret []string func MetaAPITypeGetTags(api gobject.Type) []string { var carg1 C.GType // in, none, casted, alias - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg1 = C.GType(api) @@ -57427,7 +57037,7 @@ func MetaAPITypeGetTags(api gobject.Type) []string { _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar* const*)") + panic("unimplemented conversion of []string (const gchar* const*) because of unknown reason") return goret } @@ -57480,14 +57090,14 @@ func MetaAPITypeHasTag(api gobject.Type, tag glib.Quark) bool { // @tags. func MetaAPITypeRegister(api string, tags []string) gobject.Type { var carg1 *C.gchar // in, none, string - var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret C.GType // return, none, casted, alias carg1 = (*C.gchar)(unsafe.Pointer(C.CString(api))) defer C.free(unsafe.Pointer(carg1)) _ = tags _ = carg2 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_meta_api_type_register(carg1, carg2) runtime.KeepAlive(api) @@ -57532,7 +57142,7 @@ func MetaDeserialize(buffer *Buffer, data *uint8, size uint) (uint32, *Meta) { carg1 = (*C.GstBuffer)(UnsafeBufferToGlibNone(buffer)) _ = data _ = carg2 - panic("unimplemented conversion of *uint8 (const guint8*)") + panic("unimplemented conversion of *uint8 (const guint8*) because of no basic converter found") carg3 = C.gsize(size) cret = C.gst_meta_deserialize(carg1, carg2, carg3, &carg4) @@ -58780,7 +58390,7 @@ func (_context *ParseContext) Copy() *ParseContext { // of %GST_PARSE_ERROR_NO_SUCH_ELEMENT was returned. func (_context *ParseContext) GetMissingElements() []string { var carg0 *C.GstParseContext // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstParseContext)(UnsafeParseContextToGlibNone(_context)) @@ -58791,7 +58401,7 @@ func (_context *ParseContext) GetMissingElements() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -61613,7 +61223,7 @@ func (query *Query) ParseNthAllocationParam(index uint) (Allocator, AllocationPa } _ = params _ = carg3 - panic("unimplemented conversion of AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -62319,13 +61929,13 @@ func (query *Query) SetDuration(format Format, duration int64) { func (query *Query) SetFormatsv(formats []Format) { var carg0 *C.GstQuery // in, none, converted var carg1 C.gint // implicit - var carg2 *C.GstFormat // in, transfer: none, C Pointers: 1, Name: array[Format], array (inner: *typesystem.Enum, length-by: carg1) + var carg2 *C.GstFormat // in, transfer: none, C Pointers: 1, Name: array[Format], array (inner GstFormat (*typesystem.Enum), length-by: carg1) carg0 = (*C.GstQuery)(UnsafeQueryToGlibNone(query)) _ = formats _ = carg2 _ = carg1 - panic("unimplemented conversion of []Format (const GstFormat*)") + panic("unimplemented conversion of []Format (const GstFormat*) because of unimplemented: non-fixed size array") C.gst_query_set_formatsv(carg0, carg1, carg2) runtime.KeepAlive(query) @@ -64975,7 +64585,7 @@ func (structure *Structure) FilterAndMapInPlaceIDStr(fn StructureFilterMapIdStrF var carg2 C.gpointer // implicit carg0 = (*C.GstStructure)(UnsafeStructureToGlibNone(structure)) - carg1 = (*[0]byte)(C._gotk4_gst1_StructureFilterMapIdStrFunc) + carg1 = (*[0]byte)(C._goglib_gst1_StructureFilterMapIdStrFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -65248,7 +64858,7 @@ func (structure *Structure) ForEachIDStr(fn StructureForeachIdStrFunc) bool { var cret C.gboolean // return carg0 = (*C.GstStructure)(UnsafeStructureToGlibNone(structure)) - carg1 = (*[0]byte)(C._gotk4_gst1_StructureForeachIdStrFunc) + carg1 = (*[0]byte)(C._goglib_gst1_StructureForeachIdStrFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -66326,7 +65936,7 @@ func (structure *Structure) MapInPlaceIDStr(fn StructureMapIdStrFunc) bool { var cret C.gboolean // return carg0 = (*C.GstStructure)(UnsafeStructureToGlibNone(structure)) - carg1 = (*[0]byte)(C._gotk4_gst1_StructureMapIdStrFunc) + carg1 = (*[0]byte)(C._goglib_gst1_StructureMapIdStrFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -66553,7 +66163,7 @@ func (structure *Structure) SetParentRefcount(refcount *int32) bool { carg0 = (*C.GstStructure)(UnsafeStructureToGlibNone(structure)) _ = refcount _ = carg1 - panic("unimplemented conversion of *int32 (gint*)") + panic("unimplemented conversion of *int32 (gint*) because of no basic converter found") cret = C.gst_structure_set_parent_refcount(carg0, carg1) runtime.KeepAlive(structure) @@ -66911,7 +66521,7 @@ func TagListCopyValue(list *TagList, tag string) (gobject.Value, bool) { _ = dest _ = carg1 - panic("unimplemented conversion of gobject.Value (GValue)") + panic("unimplemented conversion of gobject.Value (GValue) because of unknown reason") if cret != 0 { goret = true } @@ -66992,7 +66602,7 @@ func (list *TagList) ForEach(fn TagForeachFunc) { var carg2 C.gpointer // implicit carg0 = (*C.GstTagList)(UnsafeTagListToGlibNone(list)) - carg1 = (*[0]byte)(C._gotk4_gst1_TagForeachFunc) + carg1 = (*[0]byte)(C._goglib_gst1_TagForeachFunc) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -69728,7 +69338,7 @@ func TypeFindRegister(plugin Plugin, name string, rank uint, fn TypeFindFunction carg2 = (*C.gchar)(unsafe.Pointer(C.CString(name))) defer C.free(unsafe.Pointer(carg2)) carg3 = C.guint(rank) - carg4 = (*[0]byte)(C._gotk4_gst1_TypeFindFunction) + carg4 = (*[0]byte)(C._goglib_gst1_TypeFindFunction) carg7 = C.gpointer(userdata.Register(fn)) carg8 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) if extensions != "" { @@ -69815,7 +69425,7 @@ func (find *TypeFind) Peek(offset int64, size uint) *uint8 { if cret != nil { _ = goret _ = cret - panic("unimplemented conversion of *uint8 (const guint8*)") + panic("unimplemented conversion of *uint8 (const guint8*) because of unknown reason") } return goret diff --git a/pkg/gst/gst_export.gen.go b/pkg/gst/gst_export.gen.go index 5a147ba..ea38298 100644 --- a/pkg/gst/gst_export.gen.go +++ b/pkg/gst/gst_export.gen.go @@ -5,17 +5,17 @@ package gst import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #include import "C" -//export _gotk4_gst1_BufferForeachMetaFunc -func _gotk4_gst1_BufferForeachMetaFunc(carg1 *C.GstBuffer, carg2 **C.GstMeta, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_BufferForeachMetaFunc +func _goglib_gst1_BufferForeachMetaFunc(carg1 *C.GstBuffer, carg2 **C.GstMeta, carg3 C.gpointer) (cret C.gboolean) { var fn BufferForeachMetaFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -41,8 +41,8 @@ func _gotk4_gst1_BufferForeachMetaFunc(carg1 *C.GstBuffer, carg2 **C.GstMeta, ca return cret } -//export _gotk4_gst1_BufferListFunc -func _gotk4_gst1_BufferListFunc(carg1 **C.GstBuffer, carg2 C.guint, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_BufferListFunc +func _goglib_gst1_BufferListFunc(carg1 **C.GstBuffer, carg2 C.guint, carg3 C.gpointer) (cret C.gboolean) { var fn BufferListFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -68,8 +68,8 @@ func _gotk4_gst1_BufferListFunc(carg1 **C.GstBuffer, carg2 C.guint, carg3 C.gpoi return cret } -//export _gotk4_gst1_CapsFilterMapFunc -func _gotk4_gst1_CapsFilterMapFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_CapsFilterMapFunc +func _goglib_gst1_CapsFilterMapFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { var fn CapsFilterMapFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -95,8 +95,8 @@ func _gotk4_gst1_CapsFilterMapFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructu return cret } -//export _gotk4_gst1_CapsForeachFunc -func _gotk4_gst1_CapsForeachFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_CapsForeachFunc +func _goglib_gst1_CapsForeachFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { var fn CapsForeachFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -122,8 +122,8 @@ func _gotk4_gst1_CapsForeachFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure return cret } -//export _gotk4_gst1_CapsMapFunc -func _gotk4_gst1_CapsMapFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_CapsMapFunc +func _goglib_gst1_CapsMapFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { var fn CapsMapFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -149,8 +149,8 @@ func _gotk4_gst1_CapsMapFunc(carg1 *C.GstCapsFeatures, carg2 *C.GstStructure, ca return cret } -//export _gotk4_gst1_IteratorFoldFunction -func _gotk4_gst1_IteratorFoldFunction(carg1 *C.GValue, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_IteratorFoldFunction +func _goglib_gst1_IteratorFoldFunction(carg1 *C.GValue, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn IteratorFoldFunction { v := userdata.Load(unsafe.Pointer(carg3)) @@ -176,8 +176,8 @@ func _gotk4_gst1_IteratorFoldFunction(carg1 *C.GValue, carg2 *C.GValue, carg3 C. return cret } -//export _gotk4_gst1_IteratorForeachFunction -func _gotk4_gst1_IteratorForeachFunction(carg1 *C.GValue, carg2 C.gpointer) { +//export _goglib_gst1_IteratorForeachFunction +func _goglib_gst1_IteratorForeachFunction(carg1 *C.GValue, carg2 C.gpointer) { var fn IteratorForeachFunction { v := userdata.Load(unsafe.Pointer(carg2)) @@ -194,8 +194,8 @@ func _gotk4_gst1_IteratorForeachFunction(carg1 *C.GValue, carg2 C.gpointer) { fn(item) } -//export _gotk4_gst1_LogFunction -func _gotk4_gst1_LogFunction(carg1 *C.GstDebugCategory, carg2 C.GstDebugLevel, carg3 *C.gchar, carg4 *C.gchar, carg5 C.gint, carg6 *C.GObject, carg7 *C.GstDebugMessage, carg8 C.gpointer) { +//export _goglib_gst1_LogFunction +func _goglib_gst1_LogFunction(carg1 *C.GstDebugCategory, carg2 C.GstDebugLevel, carg3 *C.gchar, carg4 *C.gchar, carg5 C.gint, carg6 *C.GObject, carg7 *C.GstDebugMessage, carg8 C.gpointer) { var fn LogFunction { v := userdata.Load(unsafe.Pointer(carg8)) @@ -224,8 +224,8 @@ func _gotk4_gst1_LogFunction(carg1 *C.GstDebugCategory, carg2 C.GstDebugLevel, c fn(category, level, file, function, line, object, message) } -//export _gotk4_gst1_MiniObjectNotify -func _gotk4_gst1_MiniObjectNotify(carg1 C.gpointer, carg2 *C.GstMiniObject) { +//export _goglib_gst1_MiniObjectNotify +func _goglib_gst1_MiniObjectNotify(carg1 C.gpointer, carg2 *C.GstMiniObject) { var fn MiniObjectNotify { v := userdata.Load(unsafe.Pointer(carg1)) @@ -242,8 +242,8 @@ func _gotk4_gst1_MiniObjectNotify(carg1 C.gpointer, carg2 *C.GstMiniObject) { fn(obj) } -//export _gotk4_gst1_PadForwardFunction -func _gotk4_gst1_PadForwardFunction(carg1 *C.GstPad, carg2 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_PadForwardFunction +func _goglib_gst1_PadForwardFunction(carg1 *C.GstPad, carg2 C.gpointer) (cret C.gboolean) { var fn PadForwardFunction { v := userdata.Load(unsafe.Pointer(carg2)) @@ -267,8 +267,8 @@ func _gotk4_gst1_PadForwardFunction(carg1 *C.GstPad, carg2 C.gpointer) (cret C.g return cret } -//export _gotk4_gst1_PadProbeCallback -func _gotk4_gst1_PadProbeCallback(carg1 *C.GstPad, carg2 *C.GstPadProbeInfo, carg3 C.gpointer) (cret C.GstPadProbeReturn) { +//export _goglib_gst1_PadProbeCallback +func _goglib_gst1_PadProbeCallback(carg1 *C.GstPad, carg2 *C.GstPadProbeInfo, carg3 C.gpointer) (cret C.GstPadProbeReturn) { var fn PadProbeCallback { v := userdata.Load(unsafe.Pointer(carg3)) @@ -293,8 +293,8 @@ func _gotk4_gst1_PadProbeCallback(carg1 *C.GstPad, carg2 *C.GstPadProbeInfo, car return cret } -//export _gotk4_gst1_PluginFeatureFilter -func _gotk4_gst1_PluginFeatureFilter(carg1 *C.GstPluginFeature, carg2 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_PluginFeatureFilter +func _goglib_gst1_PluginFeatureFilter(carg1 *C.GstPluginFeature, carg2 C.gpointer) (cret C.gboolean) { var fn PluginFeatureFilter { v := userdata.Load(unsafe.Pointer(carg2)) @@ -318,8 +318,8 @@ func _gotk4_gst1_PluginFeatureFilter(carg1 *C.GstPluginFeature, carg2 C.gpointer return cret } -//export _gotk4_gst1_PluginFilter -func _gotk4_gst1_PluginFilter(carg1 *C.GstPlugin, carg2 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_PluginFilter +func _goglib_gst1_PluginFilter(carg1 *C.GstPlugin, carg2 C.gpointer) (cret C.gboolean) { var fn PluginFilter { v := userdata.Load(unsafe.Pointer(carg2)) @@ -343,8 +343,8 @@ func _gotk4_gst1_PluginFilter(carg1 *C.GstPlugin, carg2 C.gpointer) (cret C.gboo return cret } -//export _gotk4_gst1_PluginInitFullFunc -func _gotk4_gst1_PluginInitFullFunc(carg1 *C.GstPlugin, carg2 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_PluginInitFullFunc +func _goglib_gst1_PluginInitFullFunc(carg1 *C.GstPlugin, carg2 C.gpointer) (cret C.gboolean) { var fn PluginInitFullFunc { v := userdata.Load(unsafe.Pointer(carg2)) @@ -368,8 +368,8 @@ func _gotk4_gst1_PluginInitFullFunc(carg1 *C.GstPlugin, carg2 C.gpointer) (cret return cret } -//export _gotk4_gst1_PromiseChangeFunc -func _gotk4_gst1_PromiseChangeFunc(carg1 *C.GstPromise, carg2 C.gpointer) { +//export _goglib_gst1_PromiseChangeFunc +func _goglib_gst1_PromiseChangeFunc(carg1 *C.GstPromise, carg2 C.gpointer) { var fn PromiseChangeFunc { v := userdata.Load(unsafe.Pointer(carg2)) @@ -386,8 +386,8 @@ func _gotk4_gst1_PromiseChangeFunc(carg1 *C.GstPromise, carg2 C.gpointer) { fn(promise) } -//export _gotk4_gst1_StructureFilterMapFunc -func _gotk4_gst1_StructureFilterMapFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_StructureFilterMapFunc +func _goglib_gst1_StructureFilterMapFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn StructureFilterMapFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -413,8 +413,8 @@ func _gotk4_gst1_StructureFilterMapFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C return cret } -//export _gotk4_gst1_StructureFilterMapIdStrFunc -func _gotk4_gst1_StructureFilterMapIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_StructureFilterMapIdStrFunc +func _goglib_gst1_StructureFilterMapIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn StructureFilterMapIdStrFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -440,8 +440,8 @@ func _gotk4_gst1_StructureFilterMapIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, return cret } -//export _gotk4_gst1_StructureForeachFunc -func _gotk4_gst1_StructureForeachFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_StructureForeachFunc +func _goglib_gst1_StructureForeachFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn StructureForeachFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -467,8 +467,8 @@ func _gotk4_gst1_StructureForeachFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.g return cret } -//export _gotk4_gst1_StructureForeachIdStrFunc -func _gotk4_gst1_StructureForeachIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_StructureForeachIdStrFunc +func _goglib_gst1_StructureForeachIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn StructureForeachIdStrFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -494,8 +494,8 @@ func _gotk4_gst1_StructureForeachIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, c return cret } -//export _gotk4_gst1_StructureMapFunc -func _gotk4_gst1_StructureMapFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_StructureMapFunc +func _goglib_gst1_StructureMapFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn StructureMapFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -521,8 +521,8 @@ func _gotk4_gst1_StructureMapFunc(carg1 C.GQuark, carg2 *C.GValue, carg3 C.gpoin return cret } -//export _gotk4_gst1_StructureMapIdStrFunc -func _gotk4_gst1_StructureMapIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_StructureMapIdStrFunc +func _goglib_gst1_StructureMapIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 C.gpointer) (cret C.gboolean) { var fn StructureMapIdStrFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -548,8 +548,8 @@ func _gotk4_gst1_StructureMapIdStrFunc(carg1 *C.GstIdStr, carg2 *C.GValue, carg3 return cret } -//export _gotk4_gst1_TagForeachFunc -func _gotk4_gst1_TagForeachFunc(carg1 *C.GstTagList, carg2 *C.gchar, carg3 C.gpointer) { +//export _goglib_gst1_TagForeachFunc +func _goglib_gst1_TagForeachFunc(carg1 *C.GstTagList, carg2 *C.gchar, carg3 C.gpointer) { var fn TagForeachFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -568,8 +568,8 @@ func _gotk4_gst1_TagForeachFunc(carg1 *C.GstTagList, carg2 *C.gchar, carg3 C.gpo fn(list, tag) } -//export _gotk4_gst1_TaskFunction -func _gotk4_gst1_TaskFunction(carg1 C.gpointer) { +//export _goglib_gst1_TaskFunction +func _goglib_gst1_TaskFunction(carg1 C.gpointer) { var fn TaskFunction { v := userdata.Load(unsafe.Pointer(carg1)) @@ -582,8 +582,8 @@ func _gotk4_gst1_TaskFunction(carg1 C.gpointer) { fn() } -//export _gotk4_gst1_TaskPoolFunction -func _gotk4_gst1_TaskPoolFunction(carg1 unsafe.Pointer) { +//export _goglib_gst1_TaskPoolFunction +func _goglib_gst1_TaskPoolFunction(carg1 unsafe.Pointer) { var fn TaskPoolFunction { v := userdata.Load(unsafe.Pointer(carg1)) @@ -596,28 +596,8 @@ func _gotk4_gst1_TaskPoolFunction(carg1 unsafe.Pointer) { fn() } -//export _gotk4_gst1_TaskThreadFunc -func _gotk4_gst1_TaskThreadFunc(carg1 *C.GstTask, carg2 *C.GThread, carg3 C.gpointer) { - var fn TaskThreadFunc - { - v := userdata.Load(unsafe.Pointer(carg3)) - if v == nil { - panic(`callback not found`) - } - fn = v.(TaskThreadFunc) - } - - var task Task // in, none, converted - var thread *glib.Thread // in, none, converted - - task = UnsafeTaskFromGlibNone(unsafe.Pointer(carg1)) - thread = glib.UnsafeThreadFromGlibNone(unsafe.Pointer(carg2)) - - fn(task, thread) -} - -//export _gotk4_gst1_TypeFindFunction -func _gotk4_gst1_TypeFindFunction(carg1 *C.GstTypeFind, carg2 C.gpointer) { +//export _goglib_gst1_TypeFindFunction +func _goglib_gst1_TypeFindFunction(carg1 *C.GstTypeFind, carg2 C.gpointer) { var fn TypeFindFunction { v := userdata.Load(unsafe.Pointer(carg2)) @@ -634,8 +614,8 @@ func _gotk4_gst1_TypeFindFunction(carg1 *C.GstTypeFind, carg2 C.gpointer) { fn(find) } -//export _gotk4_gst1_BusFunc -func _gotk4_gst1_BusFunc(carg1 *C.GstBus, carg2 *C.GstMessage, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_BusFunc +func _goglib_gst1_BusFunc(carg1 *C.GstBus, carg2 *C.GstMessage, carg3 C.gpointer) (cret C.gboolean) { var fn BusFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -661,8 +641,8 @@ func _gotk4_gst1_BusFunc(carg1 *C.GstBus, carg2 *C.GstMessage, carg3 C.gpointer) return cret } -//export _gotk4_gst1_ClockCallback -func _gotk4_gst1_ClockCallback(carg1 *C.GstClock, carg2 C.GstClockTime, carg3 C.GstClockID, carg4 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_ClockCallback +func _goglib_gst1_ClockCallback(carg1 *C.GstClock, carg2 C.GstClockTime, carg3 C.GstClockID, carg4 C.gpointer) (cret C.gboolean) { var fn ClockCallback { v := userdata.Load(unsafe.Pointer(carg4)) @@ -690,8 +670,8 @@ func _gotk4_gst1_ClockCallback(carg1 *C.GstClock, carg2 C.GstClockTime, carg3 C. return cret } -//export _gotk4_gst1_ElementCallAsyncFunc -func _gotk4_gst1_ElementCallAsyncFunc(carg1 *C.GstElement, carg2 C.gpointer) { +//export _goglib_gst1_ElementCallAsyncFunc +func _goglib_gst1_ElementCallAsyncFunc(carg1 *C.GstElement, carg2 C.gpointer) { var fn ElementCallAsyncFunc { v := userdata.Load(unsafe.Pointer(carg2)) @@ -708,8 +688,8 @@ func _gotk4_gst1_ElementCallAsyncFunc(carg1 *C.GstElement, carg2 C.gpointer) { fn(element) } -//export _gotk4_gst1_ElementForeachPadFunc -func _gotk4_gst1_ElementForeachPadFunc(carg1 *C.GstElement, carg2 *C.GstPad, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gst1_ElementForeachPadFunc +func _goglib_gst1_ElementForeachPadFunc(carg1 *C.GstElement, carg2 *C.GstPad, carg3 C.gpointer) (cret C.gboolean) { var fn ElementForeachPadFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -735,685 +715,685 @@ func _gotk4_gst1_ElementForeachPadFunc(carg1 *C.GstElement, carg2 *C.GstPad, car return cret } -//export _gotk4_gst1_Object_deep_notify -func _gotk4_gst1_Object_deep_notify(carg0 *C.GstObject, carg1 *C.GstObject, carg2 *C.GParamSpec) { +//export _goglib_gst1_Object_deep_notify +func _goglib_gst1_Object_deep_notify(carg0 *C.GstObject, carg1 *C.GstObject, carg2 *C.GParamSpec) { var fn func(carg0 *C.GstObject, carg1 *C.GstObject, carg2 *C.GParamSpec) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Object_deep_notify").(func(carg0 *C.GstObject, carg1 *C.GstObject, carg2 *C.GParamSpec)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Object_deep_notify").(func(carg0 *C.GstObject, carg1 *C.GstObject, carg2 *C.GParamSpec)) if fn == nil { - panic("_gotk4_gst1_Object_deep_notify: no function pointer found") + panic("_goglib_gst1_Object_deep_notify: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gst1_Pad_linked -func _gotk4_gst1_Pad_linked(carg0 *C.GstPad, carg1 *C.GstPad) { +//export _goglib_gst1_Pad_linked +func _goglib_gst1_Pad_linked(carg0 *C.GstPad, carg1 *C.GstPad) { var fn func(carg0 *C.GstPad, carg1 *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Pad_linked").(func(carg0 *C.GstPad, carg1 *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Pad_linked").(func(carg0 *C.GstPad, carg1 *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_Pad_linked: no function pointer found") + panic("_goglib_gst1_Pad_linked: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Pad_unlinked -func _gotk4_gst1_Pad_unlinked(carg0 *C.GstPad, carg1 *C.GstPad) { +//export _goglib_gst1_Pad_unlinked +func _goglib_gst1_Pad_unlinked(carg0 *C.GstPad, carg1 *C.GstPad) { var fn func(carg0 *C.GstPad, carg1 *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Pad_unlinked").(func(carg0 *C.GstPad, carg1 *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Pad_unlinked").(func(carg0 *C.GstPad, carg1 *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_Pad_unlinked: no function pointer found") + panic("_goglib_gst1_Pad_unlinked: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_PadTemplate_pad_created -func _gotk4_gst1_PadTemplate_pad_created(carg0 *C.GstPadTemplate, carg1 *C.GstPad) { +//export _goglib_gst1_PadTemplate_pad_created +func _goglib_gst1_PadTemplate_pad_created(carg0 *C.GstPadTemplate, carg1 *C.GstPad) { var fn func(carg0 *C.GstPadTemplate, carg1 *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_PadTemplate_pad_created").(func(carg0 *C.GstPadTemplate, carg1 *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_PadTemplate_pad_created").(func(carg0 *C.GstPadTemplate, carg1 *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_PadTemplate_pad_created: no function pointer found") + panic("_goglib_gst1_PadTemplate_pad_created: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_StreamCollection_stream_notify -func _gotk4_gst1_StreamCollection_stream_notify(carg0 *C.GstStreamCollection, carg1 *C.GstStream, carg2 *C.GParamSpec) { +//export _goglib_gst1_StreamCollection_stream_notify +func _goglib_gst1_StreamCollection_stream_notify(carg0 *C.GstStreamCollection, carg1 *C.GstStream, carg2 *C.GParamSpec) { var fn func(carg0 *C.GstStreamCollection, carg1 *C.GstStream, carg2 *C.GParamSpec) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_StreamCollection_stream_notify").(func(carg0 *C.GstStreamCollection, carg1 *C.GstStream, carg2 *C.GParamSpec)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_StreamCollection_stream_notify").(func(carg0 *C.GstStreamCollection, carg1 *C.GstStream, carg2 *C.GParamSpec)) if fn == nil { - panic("_gotk4_gst1_StreamCollection_stream_notify: no function pointer found") + panic("_goglib_gst1_StreamCollection_stream_notify: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gst1_TaskPool_cleanup -func _gotk4_gst1_TaskPool_cleanup(carg0 *C.GstTaskPool) { +//export _goglib_gst1_TaskPool_cleanup +func _goglib_gst1_TaskPool_cleanup(carg0 *C.GstTaskPool) { var fn func(carg0 *C.GstTaskPool) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_TaskPool_cleanup").(func(carg0 *C.GstTaskPool)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_TaskPool_cleanup").(func(carg0 *C.GstTaskPool)) if fn == nil { - panic("_gotk4_gst1_TaskPool_cleanup: no function pointer found") + panic("_goglib_gst1_TaskPool_cleanup: no function pointer found") } } fn(carg0) } -//export _gotk4_gst1_TaskPool_prepare -func _gotk4_gst1_TaskPool_prepare(carg0 *C.GstTaskPool, _cerr **C.GError) { +//export _goglib_gst1_TaskPool_prepare +func _goglib_gst1_TaskPool_prepare(carg0 *C.GstTaskPool, _cerr **C.GError) { var fn func(carg0 *C.GstTaskPool, _cerr **C.GError) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_TaskPool_prepare").(func(carg0 *C.GstTaskPool, _cerr **C.GError)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_TaskPool_prepare").(func(carg0 *C.GstTaskPool, _cerr **C.GError)) if fn == nil { - panic("_gotk4_gst1_TaskPool_prepare: no function pointer found") + panic("_goglib_gst1_TaskPool_prepare: no function pointer found") } } fn(carg0, _cerr) } -//export _gotk4_gst1_Allocator_alloc -func _gotk4_gst1_Allocator_alloc(carg0 *C.GstAllocator, carg1 C.gsize, carg2 *C.GstAllocationParams) (cret *C.GstMemory) { +//export _goglib_gst1_Allocator_alloc +func _goglib_gst1_Allocator_alloc(carg0 *C.GstAllocator, carg1 C.gsize, carg2 *C.GstAllocationParams) (cret *C.GstMemory) { var fn func(carg0 *C.GstAllocator, carg1 C.gsize, carg2 *C.GstAllocationParams) (cret *C.GstMemory) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Allocator_alloc").(func(carg0 *C.GstAllocator, carg1 C.gsize, carg2 *C.GstAllocationParams) (cret *C.GstMemory)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Allocator_alloc").(func(carg0 *C.GstAllocator, carg1 C.gsize, carg2 *C.GstAllocationParams) (cret *C.GstMemory)) if fn == nil { - panic("_gotk4_gst1_Allocator_alloc: no function pointer found") + panic("_goglib_gst1_Allocator_alloc: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gst1_Allocator_free -func _gotk4_gst1_Allocator_free(carg0 *C.GstAllocator, carg1 *C.GstMemory) { +//export _goglib_gst1_Allocator_free +func _goglib_gst1_Allocator_free(carg0 *C.GstAllocator, carg1 *C.GstMemory) { var fn func(carg0 *C.GstAllocator, carg1 *C.GstMemory) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Allocator_free").(func(carg0 *C.GstAllocator, carg1 *C.GstMemory)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Allocator_free").(func(carg0 *C.GstAllocator, carg1 *C.GstMemory)) if fn == nil { - panic("_gotk4_gst1_Allocator_free: no function pointer found") + panic("_goglib_gst1_Allocator_free: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_BufferPool_acquire_buffer -func _gotk4_gst1_BufferPool_acquire_buffer(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { +//export _goglib_gst1_BufferPool_acquire_buffer +func _goglib_gst1_BufferPool_acquire_buffer(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_acquire_buffer").(func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_acquire_buffer").(func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gst1_BufferPool_acquire_buffer: no function pointer found") + panic("_goglib_gst1_BufferPool_acquire_buffer: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gst1_BufferPool_alloc_buffer -func _gotk4_gst1_BufferPool_alloc_buffer(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { +//export _goglib_gst1_BufferPool_alloc_buffer +func _goglib_gst1_BufferPool_alloc_buffer(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_alloc_buffer").(func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_alloc_buffer").(func(carg0 *C.GstBufferPool, carg1 **C.GstBuffer, carg2 *C.GstBufferPoolAcquireParams) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gst1_BufferPool_alloc_buffer: no function pointer found") + panic("_goglib_gst1_BufferPool_alloc_buffer: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gst1_BufferPool_flush_start -func _gotk4_gst1_BufferPool_flush_start(carg0 *C.GstBufferPool) { +//export _goglib_gst1_BufferPool_flush_start +func _goglib_gst1_BufferPool_flush_start(carg0 *C.GstBufferPool) { var fn func(carg0 *C.GstBufferPool) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_flush_start").(func(carg0 *C.GstBufferPool)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_flush_start").(func(carg0 *C.GstBufferPool)) if fn == nil { - panic("_gotk4_gst1_BufferPool_flush_start: no function pointer found") + panic("_goglib_gst1_BufferPool_flush_start: no function pointer found") } } fn(carg0) } -//export _gotk4_gst1_BufferPool_flush_stop -func _gotk4_gst1_BufferPool_flush_stop(carg0 *C.GstBufferPool) { +//export _goglib_gst1_BufferPool_flush_stop +func _goglib_gst1_BufferPool_flush_stop(carg0 *C.GstBufferPool) { var fn func(carg0 *C.GstBufferPool) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_flush_stop").(func(carg0 *C.GstBufferPool)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_flush_stop").(func(carg0 *C.GstBufferPool)) if fn == nil { - panic("_gotk4_gst1_BufferPool_flush_stop: no function pointer found") + panic("_goglib_gst1_BufferPool_flush_stop: no function pointer found") } } fn(carg0) } -//export _gotk4_gst1_BufferPool_free_buffer -func _gotk4_gst1_BufferPool_free_buffer(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { +//export _goglib_gst1_BufferPool_free_buffer +func _goglib_gst1_BufferPool_free_buffer(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { var fn func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_free_buffer").(func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_free_buffer").(func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer)) if fn == nil { - panic("_gotk4_gst1_BufferPool_free_buffer: no function pointer found") + panic("_goglib_gst1_BufferPool_free_buffer: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_BufferPool_get_options -func _gotk4_gst1_BufferPool_get_options(carg0 *C.GstBufferPool) (cret **C.gchar) { +//export _goglib_gst1_BufferPool_get_options +func _goglib_gst1_BufferPool_get_options(carg0 *C.GstBufferPool) (cret **C.gchar) { var fn func(carg0 *C.GstBufferPool) (cret **C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_get_options").(func(carg0 *C.GstBufferPool) (cret **C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_get_options").(func(carg0 *C.GstBufferPool) (cret **C.gchar)) if fn == nil { - panic("_gotk4_gst1_BufferPool_get_options: no function pointer found") + panic("_goglib_gst1_BufferPool_get_options: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_BufferPool_release_buffer -func _gotk4_gst1_BufferPool_release_buffer(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { +//export _goglib_gst1_BufferPool_release_buffer +func _goglib_gst1_BufferPool_release_buffer(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { var fn func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_release_buffer").(func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_release_buffer").(func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer)) if fn == nil { - panic("_gotk4_gst1_BufferPool_release_buffer: no function pointer found") + panic("_goglib_gst1_BufferPool_release_buffer: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_BufferPool_reset_buffer -func _gotk4_gst1_BufferPool_reset_buffer(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { +//export _goglib_gst1_BufferPool_reset_buffer +func _goglib_gst1_BufferPool_reset_buffer(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { var fn func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_reset_buffer").(func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_reset_buffer").(func(carg0 *C.GstBufferPool, carg1 *C.GstBuffer)) if fn == nil { - panic("_gotk4_gst1_BufferPool_reset_buffer: no function pointer found") + panic("_goglib_gst1_BufferPool_reset_buffer: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_BufferPool_set_config -func _gotk4_gst1_BufferPool_set_config(carg0 *C.GstBufferPool, carg1 *C.GstStructure) (cret C.gboolean) { +//export _goglib_gst1_BufferPool_set_config +func _goglib_gst1_BufferPool_set_config(carg0 *C.GstBufferPool, carg1 *C.GstStructure) (cret C.gboolean) { var fn func(carg0 *C.GstBufferPool, carg1 *C.GstStructure) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_set_config").(func(carg0 *C.GstBufferPool, carg1 *C.GstStructure) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_set_config").(func(carg0 *C.GstBufferPool, carg1 *C.GstStructure) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_BufferPool_set_config: no function pointer found") + panic("_goglib_gst1_BufferPool_set_config: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_BufferPool_start -func _gotk4_gst1_BufferPool_start(carg0 *C.GstBufferPool) (cret C.gboolean) { +//export _goglib_gst1_BufferPool_start +func _goglib_gst1_BufferPool_start(carg0 *C.GstBufferPool) (cret C.gboolean) { var fn func(carg0 *C.GstBufferPool) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_start").(func(carg0 *C.GstBufferPool) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_start").(func(carg0 *C.GstBufferPool) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_BufferPool_start: no function pointer found") + panic("_goglib_gst1_BufferPool_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_BufferPool_stop -func _gotk4_gst1_BufferPool_stop(carg0 *C.GstBufferPool) (cret C.gboolean) { +//export _goglib_gst1_BufferPool_stop +func _goglib_gst1_BufferPool_stop(carg0 *C.GstBufferPool) (cret C.gboolean) { var fn func(carg0 *C.GstBufferPool) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_BufferPool_stop").(func(carg0 *C.GstBufferPool) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_BufferPool_stop").(func(carg0 *C.GstBufferPool) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_BufferPool_stop: no function pointer found") + panic("_goglib_gst1_BufferPool_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_Bus_message -func _gotk4_gst1_Bus_message(carg0 *C.GstBus, carg1 *C.GstMessage) { +//export _goglib_gst1_Bus_message +func _goglib_gst1_Bus_message(carg0 *C.GstBus, carg1 *C.GstMessage) { var fn func(carg0 *C.GstBus, carg1 *C.GstMessage) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bus_message").(func(carg0 *C.GstBus, carg1 *C.GstMessage)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bus_message").(func(carg0 *C.GstBus, carg1 *C.GstMessage)) if fn == nil { - panic("_gotk4_gst1_Bus_message: no function pointer found") + panic("_goglib_gst1_Bus_message: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Bus_sync_message -func _gotk4_gst1_Bus_sync_message(carg0 *C.GstBus, carg1 *C.GstMessage) { +//export _goglib_gst1_Bus_sync_message +func _goglib_gst1_Bus_sync_message(carg0 *C.GstBus, carg1 *C.GstMessage) { var fn func(carg0 *C.GstBus, carg1 *C.GstMessage) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bus_sync_message").(func(carg0 *C.GstBus, carg1 *C.GstMessage)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bus_sync_message").(func(carg0 *C.GstBus, carg1 *C.GstMessage)) if fn == nil { - panic("_gotk4_gst1_Bus_sync_message: no function pointer found") + panic("_goglib_gst1_Bus_sync_message: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Clock_change_resolution -func _gotk4_gst1_Clock_change_resolution(carg0 *C.GstClock, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.GstClockTime) { +//export _goglib_gst1_Clock_change_resolution +func _goglib_gst1_Clock_change_resolution(carg0 *C.GstClock, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.GstClockTime) { var fn func(carg0 *C.GstClock, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.GstClockTime) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Clock_change_resolution").(func(carg0 *C.GstClock, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.GstClockTime)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Clock_change_resolution").(func(carg0 *C.GstClock, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.GstClockTime)) if fn == nil { - panic("_gotk4_gst1_Clock_change_resolution: no function pointer found") + panic("_goglib_gst1_Clock_change_resolution: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gst1_Clock_get_internal_time -func _gotk4_gst1_Clock_get_internal_time(carg0 *C.GstClock) (cret C.GstClockTime) { +//export _goglib_gst1_Clock_get_internal_time +func _goglib_gst1_Clock_get_internal_time(carg0 *C.GstClock) (cret C.GstClockTime) { var fn func(carg0 *C.GstClock) (cret C.GstClockTime) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Clock_get_internal_time").(func(carg0 *C.GstClock) (cret C.GstClockTime)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Clock_get_internal_time").(func(carg0 *C.GstClock) (cret C.GstClockTime)) if fn == nil { - panic("_gotk4_gst1_Clock_get_internal_time: no function pointer found") + panic("_goglib_gst1_Clock_get_internal_time: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_Clock_get_resolution -func _gotk4_gst1_Clock_get_resolution(carg0 *C.GstClock) (cret C.GstClockTime) { +//export _goglib_gst1_Clock_get_resolution +func _goglib_gst1_Clock_get_resolution(carg0 *C.GstClock) (cret C.GstClockTime) { var fn func(carg0 *C.GstClock) (cret C.GstClockTime) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Clock_get_resolution").(func(carg0 *C.GstClock) (cret C.GstClockTime)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Clock_get_resolution").(func(carg0 *C.GstClock) (cret C.GstClockTime)) if fn == nil { - panic("_gotk4_gst1_Clock_get_resolution: no function pointer found") + panic("_goglib_gst1_Clock_get_resolution: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_Clock_unschedule -func _gotk4_gst1_Clock_unschedule(carg0 *C.GstClock, carg1 *C.GstClockEntry) { +//export _goglib_gst1_Clock_unschedule +func _goglib_gst1_Clock_unschedule(carg0 *C.GstClock, carg1 *C.GstClockEntry) { var fn func(carg0 *C.GstClock, carg1 *C.GstClockEntry) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Clock_unschedule").(func(carg0 *C.GstClock, carg1 *C.GstClockEntry)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Clock_unschedule").(func(carg0 *C.GstClock, carg1 *C.GstClockEntry)) if fn == nil { - panic("_gotk4_gst1_Clock_unschedule: no function pointer found") + panic("_goglib_gst1_Clock_unschedule: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Clock_wait -func _gotk4_gst1_Clock_wait(carg0 *C.GstClock, carg1 *C.GstClockEntry, carg2 *C.GstClockTimeDiff) (cret C.GstClockReturn) { +//export _goglib_gst1_Clock_wait +func _goglib_gst1_Clock_wait(carg0 *C.GstClock, carg1 *C.GstClockEntry, carg2 *C.GstClockTimeDiff) (cret C.GstClockReturn) { var fn func(carg0 *C.GstClock, carg1 *C.GstClockEntry, carg2 *C.GstClockTimeDiff) (cret C.GstClockReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Clock_wait").(func(carg0 *C.GstClock, carg1 *C.GstClockEntry, carg2 *C.GstClockTimeDiff) (cret C.GstClockReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Clock_wait").(func(carg0 *C.GstClock, carg1 *C.GstClockEntry, carg2 *C.GstClockTimeDiff) (cret C.GstClockReturn)) if fn == nil { - panic("_gotk4_gst1_Clock_wait: no function pointer found") + panic("_goglib_gst1_Clock_wait: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gst1_Clock_wait_async -func _gotk4_gst1_Clock_wait_async(carg0 *C.GstClock, carg1 *C.GstClockEntry) (cret C.GstClockReturn) { +//export _goglib_gst1_Clock_wait_async +func _goglib_gst1_Clock_wait_async(carg0 *C.GstClock, carg1 *C.GstClockEntry) (cret C.GstClockReturn) { var fn func(carg0 *C.GstClock, carg1 *C.GstClockEntry) (cret C.GstClockReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Clock_wait_async").(func(carg0 *C.GstClock, carg1 *C.GstClockEntry) (cret C.GstClockReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Clock_wait_async").(func(carg0 *C.GstClock, carg1 *C.GstClockEntry) (cret C.GstClockReturn)) if fn == nil { - panic("_gotk4_gst1_Clock_wait_async: no function pointer found") + panic("_goglib_gst1_Clock_wait_async: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_ControlBinding_sync_values -func _gotk4_gst1_ControlBinding_sync_values(carg0 *C.GstControlBinding, carg1 *C.GstObject, carg2 C.GstClockTime, carg3 C.GstClockTime) (cret C.gboolean) { +//export _goglib_gst1_ControlBinding_sync_values +func _goglib_gst1_ControlBinding_sync_values(carg0 *C.GstControlBinding, carg1 *C.GstObject, carg2 C.GstClockTime, carg3 C.GstClockTime) (cret C.gboolean) { var fn func(carg0 *C.GstControlBinding, carg1 *C.GstObject, carg2 C.GstClockTime, carg3 C.GstClockTime) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_ControlBinding_sync_values").(func(carg0 *C.GstControlBinding, carg1 *C.GstObject, carg2 C.GstClockTime, carg3 C.GstClockTime) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_ControlBinding_sync_values").(func(carg0 *C.GstControlBinding, carg1 *C.GstObject, carg2 C.GstClockTime, carg3 C.GstClockTime) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_ControlBinding_sync_values: no function pointer found") + panic("_goglib_gst1_ControlBinding_sync_values: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gst1_Device_create_element -func _gotk4_gst1_Device_create_element(carg0 *C.GstDevice, carg1 *C.gchar) (cret *C.GstElement) { +//export _goglib_gst1_Device_create_element +func _goglib_gst1_Device_create_element(carg0 *C.GstDevice, carg1 *C.gchar) (cret *C.GstElement) { var fn func(carg0 *C.GstDevice, carg1 *C.gchar) (cret *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Device_create_element").(func(carg0 *C.GstDevice, carg1 *C.gchar) (cret *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Device_create_element").(func(carg0 *C.GstDevice, carg1 *C.gchar) (cret *C.GstElement)) if fn == nil { - panic("_gotk4_gst1_Device_create_element: no function pointer found") + panic("_goglib_gst1_Device_create_element: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Device_reconfigure_element -func _gotk4_gst1_Device_reconfigure_element(carg0 *C.GstDevice, carg1 *C.GstElement) (cret C.gboolean) { +//export _goglib_gst1_Device_reconfigure_element +func _goglib_gst1_Device_reconfigure_element(carg0 *C.GstDevice, carg1 *C.GstElement) (cret C.gboolean) { var fn func(carg0 *C.GstDevice, carg1 *C.GstElement) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Device_reconfigure_element").(func(carg0 *C.GstDevice, carg1 *C.GstElement) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Device_reconfigure_element").(func(carg0 *C.GstDevice, carg1 *C.GstElement) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Device_reconfigure_element: no function pointer found") + panic("_goglib_gst1_Device_reconfigure_element: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_DeviceProvider_start -func _gotk4_gst1_DeviceProvider_start(carg0 *C.GstDeviceProvider) (cret C.gboolean) { +//export _goglib_gst1_DeviceProvider_start +func _goglib_gst1_DeviceProvider_start(carg0 *C.GstDeviceProvider) (cret C.gboolean) { var fn func(carg0 *C.GstDeviceProvider) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_DeviceProvider_start").(func(carg0 *C.GstDeviceProvider) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_DeviceProvider_start").(func(carg0 *C.GstDeviceProvider) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_DeviceProvider_start: no function pointer found") + panic("_goglib_gst1_DeviceProvider_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_DeviceProvider_stop -func _gotk4_gst1_DeviceProvider_stop(carg0 *C.GstDeviceProvider) { +//export _goglib_gst1_DeviceProvider_stop +func _goglib_gst1_DeviceProvider_stop(carg0 *C.GstDeviceProvider) { var fn func(carg0 *C.GstDeviceProvider) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_DeviceProvider_stop").(func(carg0 *C.GstDeviceProvider)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_DeviceProvider_stop").(func(carg0 *C.GstDeviceProvider)) if fn == nil { - panic("_gotk4_gst1_DeviceProvider_stop: no function pointer found") + panic("_goglib_gst1_DeviceProvider_stop: no function pointer found") } } fn(carg0) } -//export _gotk4_gst1_Element_change_state -func _gotk4_gst1_Element_change_state(carg0 *C.GstElement, carg1 C.GstStateChange) (cret C.GstStateChangeReturn) { +//export _goglib_gst1_Element_change_state +func _goglib_gst1_Element_change_state(carg0 *C.GstElement, carg1 C.GstStateChange) (cret C.GstStateChangeReturn) { var fn func(carg0 *C.GstElement, carg1 C.GstStateChange) (cret C.GstStateChangeReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_change_state").(func(carg0 *C.GstElement, carg1 C.GstStateChange) (cret C.GstStateChangeReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_change_state").(func(carg0 *C.GstElement, carg1 C.GstStateChange) (cret C.GstStateChangeReturn)) if fn == nil { - panic("_gotk4_gst1_Element_change_state: no function pointer found") + panic("_goglib_gst1_Element_change_state: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Element_get_state -func _gotk4_gst1_Element_get_state(carg0 *C.GstElement, carg1 *C.GstState, carg2 *C.GstState, carg3 C.GstClockTime) (cret C.GstStateChangeReturn) { +//export _goglib_gst1_Element_get_state +func _goglib_gst1_Element_get_state(carg0 *C.GstElement, carg1 *C.GstState, carg2 *C.GstState, carg3 C.GstClockTime) (cret C.GstStateChangeReturn) { var fn func(carg0 *C.GstElement, carg1 *C.GstState, carg2 *C.GstState, carg3 C.GstClockTime) (cret C.GstStateChangeReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_get_state").(func(carg0 *C.GstElement, carg1 *C.GstState, carg2 *C.GstState, carg3 C.GstClockTime) (cret C.GstStateChangeReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_get_state").(func(carg0 *C.GstElement, carg1 *C.GstState, carg2 *C.GstState, carg3 C.GstClockTime) (cret C.GstStateChangeReturn)) if fn == nil { - panic("_gotk4_gst1_Element_get_state: no function pointer found") + panic("_goglib_gst1_Element_get_state: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gst1_Element_no_more_pads -func _gotk4_gst1_Element_no_more_pads(carg0 *C.GstElement) { +//export _goglib_gst1_Element_no_more_pads +func _goglib_gst1_Element_no_more_pads(carg0 *C.GstElement) { var fn func(carg0 *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_no_more_pads").(func(carg0 *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_no_more_pads").(func(carg0 *C.GstElement)) if fn == nil { - panic("_gotk4_gst1_Element_no_more_pads: no function pointer found") + panic("_goglib_gst1_Element_no_more_pads: no function pointer found") } } fn(carg0) } -//export _gotk4_gst1_Element_pad_added -func _gotk4_gst1_Element_pad_added(carg0 *C.GstElement, carg1 *C.GstPad) { +//export _goglib_gst1_Element_pad_added +func _goglib_gst1_Element_pad_added(carg0 *C.GstElement, carg1 *C.GstPad) { var fn func(carg0 *C.GstElement, carg1 *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_pad_added").(func(carg0 *C.GstElement, carg1 *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_pad_added").(func(carg0 *C.GstElement, carg1 *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_Element_pad_added: no function pointer found") + panic("_goglib_gst1_Element_pad_added: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Element_pad_removed -func _gotk4_gst1_Element_pad_removed(carg0 *C.GstElement, carg1 *C.GstPad) { +//export _goglib_gst1_Element_pad_removed +func _goglib_gst1_Element_pad_removed(carg0 *C.GstElement, carg1 *C.GstPad) { var fn func(carg0 *C.GstElement, carg1 *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_pad_removed").(func(carg0 *C.GstElement, carg1 *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_pad_removed").(func(carg0 *C.GstElement, carg1 *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_Element_pad_removed: no function pointer found") + panic("_goglib_gst1_Element_pad_removed: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Element_post_message -func _gotk4_gst1_Element_post_message(carg0 *C.GstElement, carg1 *C.GstMessage) (cret C.gboolean) { +//export _goglib_gst1_Element_post_message +func _goglib_gst1_Element_post_message(carg0 *C.GstElement, carg1 *C.GstMessage) (cret C.gboolean) { var fn func(carg0 *C.GstElement, carg1 *C.GstMessage) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_post_message").(func(carg0 *C.GstElement, carg1 *C.GstMessage) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_post_message").(func(carg0 *C.GstElement, carg1 *C.GstMessage) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Element_post_message: no function pointer found") + panic("_goglib_gst1_Element_post_message: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Element_provide_clock -func _gotk4_gst1_Element_provide_clock(carg0 *C.GstElement) (cret *C.GstClock) { +//export _goglib_gst1_Element_provide_clock +func _goglib_gst1_Element_provide_clock(carg0 *C.GstElement) (cret *C.GstClock) { var fn func(carg0 *C.GstElement) (cret *C.GstClock) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_provide_clock").(func(carg0 *C.GstElement) (cret *C.GstClock)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_provide_clock").(func(carg0 *C.GstElement) (cret *C.GstClock)) if fn == nil { - panic("_gotk4_gst1_Element_provide_clock: no function pointer found") + panic("_goglib_gst1_Element_provide_clock: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_Element_query -func _gotk4_gst1_Element_query(carg0 *C.GstElement, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gst1_Element_query +func _goglib_gst1_Element_query(carg0 *C.GstElement, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstElement, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_query").(func(carg0 *C.GstElement, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_query").(func(carg0 *C.GstElement, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Element_query: no function pointer found") + panic("_goglib_gst1_Element_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Element_release_pad -func _gotk4_gst1_Element_release_pad(carg0 *C.GstElement, carg1 *C.GstPad) { +//export _goglib_gst1_Element_release_pad +func _goglib_gst1_Element_release_pad(carg0 *C.GstElement, carg1 *C.GstPad) { var fn func(carg0 *C.GstElement, carg1 *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_release_pad").(func(carg0 *C.GstElement, carg1 *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_release_pad").(func(carg0 *C.GstElement, carg1 *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_Element_release_pad: no function pointer found") + panic("_goglib_gst1_Element_release_pad: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Element_request_new_pad -func _gotk4_gst1_Element_request_new_pad(carg0 *C.GstElement, carg1 *C.GstPadTemplate, carg2 *C.gchar, carg3 *C.GstCaps) (cret *C.GstPad) { +//export _goglib_gst1_Element_request_new_pad +func _goglib_gst1_Element_request_new_pad(carg0 *C.GstElement, carg1 *C.GstPadTemplate, carg2 *C.gchar, carg3 *C.GstCaps) (cret *C.GstPad) { var fn func(carg0 *C.GstElement, carg1 *C.GstPadTemplate, carg2 *C.gchar, carg3 *C.GstCaps) (cret *C.GstPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_request_new_pad").(func(carg0 *C.GstElement, carg1 *C.GstPadTemplate, carg2 *C.gchar, carg3 *C.GstCaps) (cret *C.GstPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_request_new_pad").(func(carg0 *C.GstElement, carg1 *C.GstPadTemplate, carg2 *C.gchar, carg3 *C.GstCaps) (cret *C.GstPad)) if fn == nil { - panic("_gotk4_gst1_Element_request_new_pad: no function pointer found") + panic("_goglib_gst1_Element_request_new_pad: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gst1_Element_send_event -func _gotk4_gst1_Element_send_event(carg0 *C.GstElement, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gst1_Element_send_event +func _goglib_gst1_Element_send_event(carg0 *C.GstElement, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstElement, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_send_event").(func(carg0 *C.GstElement, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_send_event").(func(carg0 *C.GstElement, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Element_send_event: no function pointer found") + panic("_goglib_gst1_Element_send_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Element_set_bus -func _gotk4_gst1_Element_set_bus(carg0 *C.GstElement, carg1 *C.GstBus) { +//export _goglib_gst1_Element_set_bus +func _goglib_gst1_Element_set_bus(carg0 *C.GstElement, carg1 *C.GstBus) { var fn func(carg0 *C.GstElement, carg1 *C.GstBus) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_set_bus").(func(carg0 *C.GstElement, carg1 *C.GstBus)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_set_bus").(func(carg0 *C.GstElement, carg1 *C.GstBus)) if fn == nil { - panic("_gotk4_gst1_Element_set_bus: no function pointer found") + panic("_goglib_gst1_Element_set_bus: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Element_set_clock -func _gotk4_gst1_Element_set_clock(carg0 *C.GstElement, carg1 *C.GstClock) (cret C.gboolean) { +//export _goglib_gst1_Element_set_clock +func _goglib_gst1_Element_set_clock(carg0 *C.GstElement, carg1 *C.GstClock) (cret C.gboolean) { var fn func(carg0 *C.GstElement, carg1 *C.GstClock) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_set_clock").(func(carg0 *C.GstElement, carg1 *C.GstClock) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_set_clock").(func(carg0 *C.GstElement, carg1 *C.GstClock) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Element_set_clock: no function pointer found") + panic("_goglib_gst1_Element_set_clock: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Element_set_context -func _gotk4_gst1_Element_set_context(carg0 *C.GstElement, carg1 *C.GstContext) { +//export _goglib_gst1_Element_set_context +func _goglib_gst1_Element_set_context(carg0 *C.GstElement, carg1 *C.GstContext) { var fn func(carg0 *C.GstElement, carg1 *C.GstContext) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_set_context").(func(carg0 *C.GstElement, carg1 *C.GstContext)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_set_context").(func(carg0 *C.GstElement, carg1 *C.GstContext)) if fn == nil { - panic("_gotk4_gst1_Element_set_context: no function pointer found") + panic("_goglib_gst1_Element_set_context: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Element_set_state -func _gotk4_gst1_Element_set_state(carg0 *C.GstElement, carg1 C.GstState) (cret C.GstStateChangeReturn) { +//export _goglib_gst1_Element_set_state +func _goglib_gst1_Element_set_state(carg0 *C.GstElement, carg1 C.GstState) (cret C.GstStateChangeReturn) { var fn func(carg0 *C.GstElement, carg1 C.GstState) (cret C.GstStateChangeReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_set_state").(func(carg0 *C.GstElement, carg1 C.GstState) (cret C.GstStateChangeReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_set_state").(func(carg0 *C.GstElement, carg1 C.GstState) (cret C.GstStateChangeReturn)) if fn == nil { - panic("_gotk4_gst1_Element_set_state: no function pointer found") + panic("_goglib_gst1_Element_set_state: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Element_state_changed -func _gotk4_gst1_Element_state_changed(carg0 *C.GstElement, carg1 C.GstState, carg2 C.GstState, carg3 C.GstState) { +//export _goglib_gst1_Element_state_changed +func _goglib_gst1_Element_state_changed(carg0 *C.GstElement, carg1 C.GstState, carg2 C.GstState, carg3 C.GstState) { var fn func(carg0 *C.GstElement, carg1 C.GstState, carg2 C.GstState, carg3 C.GstState) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Element_state_changed").(func(carg0 *C.GstElement, carg1 C.GstState, carg2 C.GstState, carg3 C.GstState)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Element_state_changed").(func(carg0 *C.GstElement, carg1 C.GstState, carg2 C.GstState, carg3 C.GstState)) if fn == nil { - panic("_gotk4_gst1_Element_state_changed: no function pointer found") + panic("_goglib_gst1_Element_state_changed: no function pointer found") } } fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gst1_Bin_add_element -func _gotk4_gst1_Bin_add_element(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { +//export _goglib_gst1_Bin_add_element +func _goglib_gst1_Bin_add_element(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { var fn func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_add_element").(func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_add_element").(func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Bin_add_element: no function pointer found") + panic("_goglib_gst1_Bin_add_element: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gst1_Bin_deep_element_added -func _gotk4_gst1_Bin_deep_element_added(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { +//export _goglib_gst1_Bin_deep_element_added +func _goglib_gst1_Bin_deep_element_added(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { var fn func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_deep_element_added").(func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_deep_element_added").(func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement)) if fn == nil { - panic("_gotk4_gst1_Bin_deep_element_added: no function pointer found") + panic("_goglib_gst1_Bin_deep_element_added: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gst1_Bin_deep_element_removed -func _gotk4_gst1_Bin_deep_element_removed(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { +//export _goglib_gst1_Bin_deep_element_removed +func _goglib_gst1_Bin_deep_element_removed(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { var fn func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_deep_element_removed").(func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_deep_element_removed").(func(carg0 *C.GstBin, carg1 *C.GstBin, carg2 *C.GstElement)) if fn == nil { - panic("_gotk4_gst1_Bin_deep_element_removed: no function pointer found") + panic("_goglib_gst1_Bin_deep_element_removed: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gst1_Bin_do_latency -func _gotk4_gst1_Bin_do_latency(carg0 *C.GstBin) (cret C.gboolean) { +//export _goglib_gst1_Bin_do_latency +func _goglib_gst1_Bin_do_latency(carg0 *C.GstBin) (cret C.gboolean) { var fn func(carg0 *C.GstBin) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_do_latency").(func(carg0 *C.GstBin) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_do_latency").(func(carg0 *C.GstBin) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Bin_do_latency: no function pointer found") + panic("_goglib_gst1_Bin_do_latency: no function pointer found") } } return fn(carg0) } -//export _gotk4_gst1_Bin_element_added -func _gotk4_gst1_Bin_element_added(carg0 *C.GstBin, carg1 *C.GstElement) { +//export _goglib_gst1_Bin_element_added +func _goglib_gst1_Bin_element_added(carg0 *C.GstBin, carg1 *C.GstElement) { var fn func(carg0 *C.GstBin, carg1 *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_element_added").(func(carg0 *C.GstBin, carg1 *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_element_added").(func(carg0 *C.GstBin, carg1 *C.GstElement)) if fn == nil { - panic("_gotk4_gst1_Bin_element_added: no function pointer found") + panic("_goglib_gst1_Bin_element_added: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Bin_element_removed -func _gotk4_gst1_Bin_element_removed(carg0 *C.GstBin, carg1 *C.GstElement) { +//export _goglib_gst1_Bin_element_removed +func _goglib_gst1_Bin_element_removed(carg0 *C.GstBin, carg1 *C.GstElement) { var fn func(carg0 *C.GstBin, carg1 *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_element_removed").(func(carg0 *C.GstBin, carg1 *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_element_removed").(func(carg0 *C.GstBin, carg1 *C.GstElement)) if fn == nil { - panic("_gotk4_gst1_Bin_element_removed: no function pointer found") + panic("_goglib_gst1_Bin_element_removed: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Bin_handle_message -func _gotk4_gst1_Bin_handle_message(carg0 *C.GstBin, carg1 *C.GstMessage) { +//export _goglib_gst1_Bin_handle_message +func _goglib_gst1_Bin_handle_message(carg0 *C.GstBin, carg1 *C.GstMessage) { var fn func(carg0 *C.GstBin, carg1 *C.GstMessage) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_handle_message").(func(carg0 *C.GstBin, carg1 *C.GstMessage)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_handle_message").(func(carg0 *C.GstBin, carg1 *C.GstMessage)) if fn == nil { - panic("_gotk4_gst1_Bin_handle_message: no function pointer found") + panic("_goglib_gst1_Bin_handle_message: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gst1_Bin_remove_element -func _gotk4_gst1_Bin_remove_element(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { +//export _goglib_gst1_Bin_remove_element +func _goglib_gst1_Bin_remove_element(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { var fn func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gst1_Bin_remove_element").(func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gst1_Bin_remove_element").(func(carg0 *C.GstBin, carg1 *C.GstElement) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gst1_Bin_remove_element: no function pointer found") + panic("_goglib_gst1_Bin_remove_element: no function pointer found") } } return fn(carg0, carg1) diff --git a/pkg/gst/gst_promise.go b/pkg/gst/gst_promise.go index ce3f891..3af38ab 100644 --- a/pkg/gst/gst_promise.go +++ b/pkg/gst/gst_promise.go @@ -6,14 +6,14 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern void _gotk4_gst1_PromiseChangeFunc(GstPromise*, gpointer); +// extern void _gogst_gst1_PromiseChangeFunc(GstPromise*, gpointer); // extern void destroyUserdata(gpointer); import "C" @@ -198,7 +198,7 @@ func NewPromise() *Promise { close(done) } - var carg1 C.GstPromiseChangeFunc = (*[0]byte)(C._gotk4_gst1_PromiseChangeFunc) + var carg1 C.GstPromiseChangeFunc = (*[0]byte)(C._gogst_gst1_PromiseChangeFunc) var carg2 C.gpointer = C.gpointer(userdata.Register(changefunc)) var carg3 C.GDestroyNotify = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) diff --git a/pkg/gst/iterator.go b/pkg/gst/iterator.go index c2e2408..a8f0c83 100644 --- a/pkg/gst/iterator.go +++ b/pkg/gst/iterator.go @@ -5,7 +5,7 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gst/message.go b/pkg/gst/message.go index e3bc90d..e478488 100644 --- a/pkg/gst/message.go +++ b/pkg/gst/message.go @@ -6,7 +6,8 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 @@ -321,3 +322,24 @@ func (m *Message) String() string { } return msg } + +// Create a new error message. The message will copy error and debug. This message is posted by element when a fatal event occurred. +// The pipeline will probably (partially) stop. The application receiving this message should stop the pipeline. +func NewMessageError(src Object, debug string, err error) *Message { + // must be manually implemented because we need to convert error to GError + + var carg1 *C.GstObject // in, none, converted + var carg2 *C.GError // in, full, converted, nullable + var carg3 *C.gchar // in, none, string, casted *C.gchar + var cret *C.GstMessage // return, full, converted + + carg1 = (*C.GstObject)(UnsafeObjectToGlibNone(src)) + carg2 = (*C.GError)(glib.UnsafeErrorToGlibFull(err)) + defer C.g_error_free(carg2) + carg3 = (*C.gchar)(unsafe.Pointer(C.CString(debug))) + defer C.free(unsafe.Pointer(carg3)) + + cret = C.gst_message_new_error_with_details(carg1, carg2, carg3, nil) + + return UnsafeMessageFromGlibFull(unsafe.Pointer(cret)) +} diff --git a/pkg/gst/param_flags.go b/pkg/gst/param_flags.go index 5469d11..860f159 100644 --- a/pkg/gst/param_flags.go +++ b/pkg/gst/param_flags.go @@ -1,6 +1,6 @@ package gst -import "github.com/diamondburned/gotk4/pkg/gobject/v2" +import "github.com/go-gst/go-glib/pkg/gobject/v2" // #cgo pkg-config: gstreamer-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations diff --git a/pkg/gst/structure.go b/pkg/gst/structure.go index f371da1..7cb0760 100644 --- a/pkg/gst/structure.go +++ b/pkg/gst/structure.go @@ -4,8 +4,8 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gst/system_clock.go b/pkg/gst/system_clock.go index d6b8656..08792aa 100644 --- a/pkg/gst/system_clock.go +++ b/pkg/gst/system_clock.go @@ -1,6 +1,6 @@ package gst -import "github.com/diamondburned/gotk4/pkg/gobject/v2" +import "github.com/go-gst/go-glib/pkg/gobject/v2" // NewSystemClock creates a new instance of a SystemClock, with the given clock type parameter // diff --git a/pkg/gst/taglist.go b/pkg/gst/taglist.go index 5e4652b..5ce5ade 100644 --- a/pkg/gst/taglist.go +++ b/pkg/gst/taglist.go @@ -4,7 +4,7 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gst/tagsetter_manual.go b/pkg/gst/tagsetter_manual.go index d55d8a8..8424650 100644 --- a/pkg/gst/tagsetter_manual.go +++ b/pkg/gst/tagsetter_manual.go @@ -4,7 +4,7 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" ) // #cgo pkg-config: gstreamer-1.0 diff --git a/pkg/gstallocators/gstallocators.gen.go b/pkg/gstallocators/gstallocators.gen.go index 22c5a76..e075ead 100644 --- a/pkg/gstallocators/gstallocators.gen.go +++ b/pkg/gstallocators/gstallocators.gen.go @@ -8,7 +8,7 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) diff --git a/pkg/gstapp/gstapp.gen.go b/pkg/gstapp/gstapp.gen.go index a0daeca..73a570a 100644 --- a/pkg/gstapp/gstapp.gen.go +++ b/pkg/gstapp/gstapp.gen.go @@ -7,8 +7,8 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstbase" ) @@ -16,60 +16,60 @@ import ( // #cgo pkg-config: gstreamer-app-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern void _gotk4_gstapp1_AppSink_eos(GstAppSink*); -// extern GstFlowReturn _gotk4_gstapp1_AppSink_new_preroll(GstAppSink*); -// extern GstFlowReturn _gotk4_gstapp1_AppSink_new_sample(GstAppSink*); -// extern GstSample* _gotk4_gstapp1_AppSink_pull_preroll(GstAppSink*); -// extern GstSample* _gotk4_gstapp1_AppSink_pull_sample(GstAppSink*); -// extern GstSample* _gotk4_gstapp1_AppSink_try_pull_preroll(GstAppSink*, GstClockTime); -// extern GstSample* _gotk4_gstapp1_AppSink_try_pull_sample(GstAppSink*, GstClockTime); -// void _gotk4_gstapp1_AppSink_virtual_eos(void* fnptr, GstAppSink* carg0) { +// extern void _goglib_gstapp1_AppSink_eos(GstAppSink*); +// extern GstFlowReturn _goglib_gstapp1_AppSink_new_preroll(GstAppSink*); +// extern GstFlowReturn _goglib_gstapp1_AppSink_new_sample(GstAppSink*); +// extern GstSample* _goglib_gstapp1_AppSink_pull_preroll(GstAppSink*); +// extern GstSample* _goglib_gstapp1_AppSink_pull_sample(GstAppSink*); +// extern GstSample* _goglib_gstapp1_AppSink_try_pull_preroll(GstAppSink*, GstClockTime); +// extern GstSample* _goglib_gstapp1_AppSink_try_pull_sample(GstAppSink*, GstClockTime); +// void _goglib_gstapp1_AppSink_virtual_eos(void* fnptr, GstAppSink* carg0) { // return ((void (*) (GstAppSink*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstapp1_AppSink_virtual_new_preroll(void* fnptr, GstAppSink* carg0) { +// GstFlowReturn _goglib_gstapp1_AppSink_virtual_new_preroll(void* fnptr, GstAppSink* carg0) { // return ((GstFlowReturn (*) (GstAppSink*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstapp1_AppSink_virtual_new_sample(void* fnptr, GstAppSink* carg0) { +// GstFlowReturn _goglib_gstapp1_AppSink_virtual_new_sample(void* fnptr, GstAppSink* carg0) { // return ((GstFlowReturn (*) (GstAppSink*))(fnptr))(carg0); // } -// GstSample* _gotk4_gstapp1_AppSink_virtual_pull_preroll(void* fnptr, GstAppSink* carg0) { +// GstSample* _goglib_gstapp1_AppSink_virtual_pull_preroll(void* fnptr, GstAppSink* carg0) { // return ((GstSample* (*) (GstAppSink*))(fnptr))(carg0); // } -// GstSample* _gotk4_gstapp1_AppSink_virtual_pull_sample(void* fnptr, GstAppSink* carg0) { +// GstSample* _goglib_gstapp1_AppSink_virtual_pull_sample(void* fnptr, GstAppSink* carg0) { // return ((GstSample* (*) (GstAppSink*))(fnptr))(carg0); // } -// GstSample* _gotk4_gstapp1_AppSink_virtual_try_pull_preroll(void* fnptr, GstAppSink* carg0, GstClockTime carg1) { +// GstSample* _goglib_gstapp1_AppSink_virtual_try_pull_preroll(void* fnptr, GstAppSink* carg0, GstClockTime carg1) { // return ((GstSample* (*) (GstAppSink*, GstClockTime))(fnptr))(carg0, carg1); // } -// GstSample* _gotk4_gstapp1_AppSink_virtual_try_pull_sample(void* fnptr, GstAppSink* carg0, GstClockTime carg1) { +// GstSample* _goglib_gstapp1_AppSink_virtual_try_pull_sample(void* fnptr, GstAppSink* carg0, GstClockTime carg1) { // return ((GstSample* (*) (GstAppSink*, GstClockTime))(fnptr))(carg0, carg1); // } -// extern GstFlowReturn _gotk4_gstapp1_AppSrc_end_of_stream(GstAppSrc*); -// extern void _gotk4_gstapp1_AppSrc_enough_data(GstAppSrc*); -// extern void _gotk4_gstapp1_AppSrc_need_data(GstAppSrc*, guint); -// extern GstFlowReturn _gotk4_gstapp1_AppSrc_push_buffer(GstAppSrc*, GstBuffer*); -// extern GstFlowReturn _gotk4_gstapp1_AppSrc_push_buffer_list(GstAppSrc*, GstBufferList*); -// extern GstFlowReturn _gotk4_gstapp1_AppSrc_push_sample(GstAppSrc*, GstSample*); -// extern gboolean _gotk4_gstapp1_AppSrc_seek_data(GstAppSrc*, guint64); -// GstFlowReturn _gotk4_gstapp1_AppSrc_virtual_end_of_stream(void* fnptr, GstAppSrc* carg0) { +// extern GstFlowReturn _goglib_gstapp1_AppSrc_end_of_stream(GstAppSrc*); +// extern void _goglib_gstapp1_AppSrc_enough_data(GstAppSrc*); +// extern void _goglib_gstapp1_AppSrc_need_data(GstAppSrc*, guint); +// extern GstFlowReturn _goglib_gstapp1_AppSrc_push_buffer(GstAppSrc*, GstBuffer*); +// extern GstFlowReturn _goglib_gstapp1_AppSrc_push_buffer_list(GstAppSrc*, GstBufferList*); +// extern GstFlowReturn _goglib_gstapp1_AppSrc_push_sample(GstAppSrc*, GstSample*); +// extern gboolean _goglib_gstapp1_AppSrc_seek_data(GstAppSrc*, guint64); +// GstFlowReturn _goglib_gstapp1_AppSrc_virtual_end_of_stream(void* fnptr, GstAppSrc* carg0) { // return ((GstFlowReturn (*) (GstAppSrc*))(fnptr))(carg0); // } -// void _gotk4_gstapp1_AppSrc_virtual_enough_data(void* fnptr, GstAppSrc* carg0) { +// void _goglib_gstapp1_AppSrc_virtual_enough_data(void* fnptr, GstAppSrc* carg0) { // return ((void (*) (GstAppSrc*))(fnptr))(carg0); // } -// void _gotk4_gstapp1_AppSrc_virtual_need_data(void* fnptr, GstAppSrc* carg0, guint carg1) { +// void _goglib_gstapp1_AppSrc_virtual_need_data(void* fnptr, GstAppSrc* carg0, guint carg1) { // return ((void (*) (GstAppSrc*, guint))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstapp1_AppSrc_virtual_push_buffer(void* fnptr, GstAppSrc* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstapp1_AppSrc_virtual_push_buffer(void* fnptr, GstAppSrc* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstAppSrc*, GstBuffer*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstapp1_AppSrc_virtual_push_buffer_list(void* fnptr, GstAppSrc* carg0, GstBufferList* carg1) { +// GstFlowReturn _goglib_gstapp1_AppSrc_virtual_push_buffer_list(void* fnptr, GstAppSrc* carg0, GstBufferList* carg1) { // return ((GstFlowReturn (*) (GstAppSrc*, GstBufferList*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstapp1_AppSrc_virtual_push_sample(void* fnptr, GstAppSrc* carg0, GstSample* carg1) { +// GstFlowReturn _goglib_gstapp1_AppSrc_virtual_push_sample(void* fnptr, GstAppSrc* carg0, GstSample* carg1) { // return ((GstFlowReturn (*) (GstAppSrc*, GstSample*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstapp1_AppSrc_virtual_seek_data(void* fnptr, GstAppSrc* carg0, guint64 carg1) { +// gboolean _goglib_gstapp1_AppSrc_virtual_seek_data(void* fnptr, GstAppSrc* carg0, guint64 carg1) { // return ((gboolean (*) (GstAppSrc*, guint64))(fnptr))(carg0, carg1); // } import "C" @@ -1736,10 +1736,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri pclass := (*C.GstAppSinkClass)(gclass) if overrides.EOS != nil { - pclass.eos = (*[0]byte)(C._gotk4_gstapp1_AppSink_eos) + pclass.eos = (*[0]byte)(C._goglib_gstapp1_AppSink_eos) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_eos", + "_goglib_gstapp1_AppSink_eos", func(carg0 *C.GstAppSink) { var appsink Instance // go GstAppSink subclass @@ -1751,10 +1751,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri } if overrides.NewPreroll != nil { - pclass.new_preroll = (*[0]byte)(C._gotk4_gstapp1_AppSink_new_preroll) + pclass.new_preroll = (*[0]byte)(C._goglib_gstapp1_AppSink_new_preroll) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_new_preroll", + "_goglib_gstapp1_AppSink_new_preroll", func(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { var appsink Instance // go GstAppSink subclass var goret gst.FlowReturn // return, none, casted @@ -1771,10 +1771,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri } if overrides.NewSample != nil { - pclass.new_sample = (*[0]byte)(C._gotk4_gstapp1_AppSink_new_sample) + pclass.new_sample = (*[0]byte)(C._goglib_gstapp1_AppSink_new_sample) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_new_sample", + "_goglib_gstapp1_AppSink_new_sample", func(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { var appsink Instance // go GstAppSink subclass var goret gst.FlowReturn // return, none, casted @@ -1791,10 +1791,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri } if overrides.PullPreroll != nil { - pclass.pull_preroll = (*[0]byte)(C._gotk4_gstapp1_AppSink_pull_preroll) + pclass.pull_preroll = (*[0]byte)(C._goglib_gstapp1_AppSink_pull_preroll) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_pull_preroll", + "_goglib_gstapp1_AppSink_pull_preroll", func(carg0 *C.GstAppSink) (cret *C.GstSample) { var appsink Instance // go GstAppSink subclass var goret *gst.Sample // return, full, converted, nullable @@ -1813,10 +1813,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri } if overrides.PullSample != nil { - pclass.pull_sample = (*[0]byte)(C._gotk4_gstapp1_AppSink_pull_sample) + pclass.pull_sample = (*[0]byte)(C._goglib_gstapp1_AppSink_pull_sample) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_pull_sample", + "_goglib_gstapp1_AppSink_pull_sample", func(carg0 *C.GstAppSink) (cret *C.GstSample) { var appsink Instance // go GstAppSink subclass var goret *gst.Sample // return, full, converted, nullable @@ -1835,10 +1835,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri } if overrides.TryPullPreroll != nil { - pclass.try_pull_preroll = (*[0]byte)(C._gotk4_gstapp1_AppSink_try_pull_preroll) + pclass.try_pull_preroll = (*[0]byte)(C._goglib_gstapp1_AppSink_try_pull_preroll) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_try_pull_preroll", + "_goglib_gstapp1_AppSink_try_pull_preroll", func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { var appsink Instance // go GstAppSink subclass var timeout gst.ClockTime // in, none, casted, alias @@ -1859,10 +1859,10 @@ func UnsafeApplyAppSinkOverrides[Instance AppSink](gclass unsafe.Pointer, overri } if overrides.TryPullSample != nil { - pclass.try_pull_sample = (*[0]byte)(C._gotk4_gstapp1_AppSink_try_pull_sample) + pclass.try_pull_sample = (*[0]byte)(C._goglib_gstapp1_AppSink_try_pull_sample) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSink_try_pull_sample", + "_goglib_gstapp1_AppSink_try_pull_sample", func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { var appsink Instance // go GstAppSink subclass var timeout gst.ClockTime // in, none, casted, alias @@ -1892,7 +1892,7 @@ func (appsink *AppSinkInstance) ParentEOS() { carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) - C._gotk4_gstapp1_AppSink_virtual_eos(unsafe.Pointer(parentclass.eos), carg0) + C._goglib_gstapp1_AppSink_virtual_eos(unsafe.Pointer(parentclass.eos), carg0) runtime.KeepAlive(appsink) } @@ -1910,7 +1910,7 @@ func (appsink *AppSinkInstance) ParentNewPreroll() gst.FlowReturn { carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) - cret = C._gotk4_gstapp1_AppSink_virtual_new_preroll(unsafe.Pointer(parentclass.new_preroll), carg0) + cret = C._goglib_gstapp1_AppSink_virtual_new_preroll(unsafe.Pointer(parentclass.new_preroll), carg0) runtime.KeepAlive(appsink) var goret gst.FlowReturn @@ -1934,7 +1934,7 @@ func (appsink *AppSinkInstance) ParentNewSample() gst.FlowReturn { carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) - cret = C._gotk4_gstapp1_AppSink_virtual_new_sample(unsafe.Pointer(parentclass.new_sample), carg0) + cret = C._goglib_gstapp1_AppSink_virtual_new_sample(unsafe.Pointer(parentclass.new_sample), carg0) runtime.KeepAlive(appsink) var goret gst.FlowReturn @@ -1977,7 +1977,7 @@ func (appsink *AppSinkInstance) ParentPullPreroll() *gst.Sample { carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) - cret = C._gotk4_gstapp1_AppSink_virtual_pull_preroll(unsafe.Pointer(parentclass.pull_preroll), carg0) + cret = C._goglib_gstapp1_AppSink_virtual_pull_preroll(unsafe.Pointer(parentclass.pull_preroll), carg0) runtime.KeepAlive(appsink) var goret *gst.Sample @@ -2015,7 +2015,7 @@ func (appsink *AppSinkInstance) ParentPullSample() *gst.Sample { carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) - cret = C._gotk4_gstapp1_AppSink_virtual_pull_sample(unsafe.Pointer(parentclass.pull_sample), carg0) + cret = C._goglib_gstapp1_AppSink_virtual_pull_sample(unsafe.Pointer(parentclass.pull_sample), carg0) runtime.KeepAlive(appsink) var goret *gst.Sample @@ -2067,7 +2067,7 @@ func (appsink *AppSinkInstance) ParentTryPullPreroll(timeout gst.ClockTime) *gst carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) carg1 = C.GstClockTime(timeout) - cret = C._gotk4_gstapp1_AppSink_virtual_try_pull_preroll(unsafe.Pointer(parentclass.try_pull_preroll), carg0, carg1) + cret = C._goglib_gstapp1_AppSink_virtual_try_pull_preroll(unsafe.Pointer(parentclass.try_pull_preroll), carg0, carg1) runtime.KeepAlive(appsink) runtime.KeepAlive(timeout) @@ -2113,7 +2113,7 @@ func (appsink *AppSinkInstance) ParentTryPullSample(timeout gst.ClockTime) *gst. carg0 = (*C.GstAppSink)(UnsafeAppSinkToGlibNone(appsink)) carg1 = C.GstClockTime(timeout) - cret = C._gotk4_gstapp1_AppSink_virtual_try_pull_sample(unsafe.Pointer(parentclass.try_pull_sample), carg0, carg1) + cret = C._goglib_gstapp1_AppSink_virtual_try_pull_sample(unsafe.Pointer(parentclass.try_pull_sample), carg0, carg1) runtime.KeepAlive(appsink) runtime.KeepAlive(timeout) @@ -3576,10 +3576,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override pclass := (*C.GstAppSrcClass)(gclass) if overrides.EndOfStream != nil { - pclass.end_of_stream = (*[0]byte)(C._gotk4_gstapp1_AppSrc_end_of_stream) + pclass.end_of_stream = (*[0]byte)(C._goglib_gstapp1_AppSrc_end_of_stream) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_end_of_stream", + "_goglib_gstapp1_AppSrc_end_of_stream", func(carg0 *C.GstAppSrc) (cret C.GstFlowReturn) { var appsrc Instance // go GstAppSrc subclass var goret gst.FlowReturn // return, none, casted @@ -3596,10 +3596,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override } if overrides.EnoughData != nil { - pclass.enough_data = (*[0]byte)(C._gotk4_gstapp1_AppSrc_enough_data) + pclass.enough_data = (*[0]byte)(C._goglib_gstapp1_AppSrc_enough_data) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_enough_data", + "_goglib_gstapp1_AppSrc_enough_data", func(carg0 *C.GstAppSrc) { var appsrc Instance // go GstAppSrc subclass @@ -3611,10 +3611,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override } if overrides.NeedData != nil { - pclass.need_data = (*[0]byte)(C._gotk4_gstapp1_AppSrc_need_data) + pclass.need_data = (*[0]byte)(C._goglib_gstapp1_AppSrc_need_data) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_need_data", + "_goglib_gstapp1_AppSrc_need_data", func(carg0 *C.GstAppSrc, carg1 C.guint) { var appsrc Instance // go GstAppSrc subclass var length uint // in, none, casted @@ -3628,10 +3628,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override } if overrides.PushBuffer != nil { - pclass.push_buffer = (*[0]byte)(C._gotk4_gstapp1_AppSrc_push_buffer) + pclass.push_buffer = (*[0]byte)(C._goglib_gstapp1_AppSrc_push_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_push_buffer", + "_goglib_gstapp1_AppSrc_push_buffer", func(carg0 *C.GstAppSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var appsrc Instance // go GstAppSrc subclass var buffer *gst.Buffer // in, full, converted @@ -3650,10 +3650,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override } if overrides.PushBufferList != nil { - pclass.push_buffer_list = (*[0]byte)(C._gotk4_gstapp1_AppSrc_push_buffer_list) + pclass.push_buffer_list = (*[0]byte)(C._goglib_gstapp1_AppSrc_push_buffer_list) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_push_buffer_list", + "_goglib_gstapp1_AppSrc_push_buffer_list", func(carg0 *C.GstAppSrc, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var appsrc Instance // go GstAppSrc subclass var bufferList *gst.BufferList // in, full, converted @@ -3672,10 +3672,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override } if overrides.PushSample != nil { - pclass.push_sample = (*[0]byte)(C._gotk4_gstapp1_AppSrc_push_sample) + pclass.push_sample = (*[0]byte)(C._goglib_gstapp1_AppSrc_push_sample) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_push_sample", + "_goglib_gstapp1_AppSrc_push_sample", func(carg0 *C.GstAppSrc, carg1 *C.GstSample) (cret C.GstFlowReturn) { var appsrc Instance // go GstAppSrc subclass var sample *gst.Sample // in, none, converted @@ -3694,10 +3694,10 @@ func UnsafeApplyAppSrcOverrides[Instance AppSrc](gclass unsafe.Pointer, override } if overrides.SeekData != nil { - pclass.seek_data = (*[0]byte)(C._gotk4_gstapp1_AppSrc_seek_data) + pclass.seek_data = (*[0]byte)(C._goglib_gstapp1_AppSrc_seek_data) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstapp1_AppSrc_seek_data", + "_goglib_gstapp1_AppSrc_seek_data", func(carg0 *C.GstAppSrc, carg1 C.guint64) (cret C.gboolean) { var appsrc Instance // go GstAppSrc subclass var offset uint64 // in, none, casted @@ -3735,7 +3735,7 @@ func (appsrc *AppSrcInstance) ParentEndOfStream() gst.FlowReturn { carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) - cret = C._gotk4_gstapp1_AppSrc_virtual_end_of_stream(unsafe.Pointer(parentclass.end_of_stream), carg0) + cret = C._goglib_gstapp1_AppSrc_virtual_end_of_stream(unsafe.Pointer(parentclass.end_of_stream), carg0) runtime.KeepAlive(appsrc) var goret gst.FlowReturn @@ -3754,7 +3754,7 @@ func (appsrc *AppSrcInstance) ParentEnoughData() { carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) - C._gotk4_gstapp1_AppSrc_virtual_enough_data(unsafe.Pointer(parentclass.enough_data), carg0) + C._goglib_gstapp1_AppSrc_virtual_enough_data(unsafe.Pointer(parentclass.enough_data), carg0) runtime.KeepAlive(appsrc) } @@ -3773,7 +3773,7 @@ func (appsrc *AppSrcInstance) ParentNeedData(length uint) { carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) carg1 = C.guint(length) - C._gotk4_gstapp1_AppSrc_virtual_need_data(unsafe.Pointer(parentclass.need_data), carg0, carg1) + C._goglib_gstapp1_AppSrc_virtual_need_data(unsafe.Pointer(parentclass.need_data), carg0, carg1) runtime.KeepAlive(appsrc) runtime.KeepAlive(length) } @@ -3804,7 +3804,7 @@ func (appsrc *AppSrcInstance) ParentPushBuffer(buffer *gst.Buffer) gst.FlowRetur carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibFull(buffer)) - cret = C._gotk4_gstapp1_AppSrc_virtual_push_buffer(unsafe.Pointer(parentclass.push_buffer), carg0, carg1) + cret = C._goglib_gstapp1_AppSrc_virtual_push_buffer(unsafe.Pointer(parentclass.push_buffer), carg0, carg1) runtime.KeepAlive(appsrc) runtime.KeepAlive(buffer) @@ -3842,7 +3842,7 @@ func (appsrc *AppSrcInstance) ParentPushBufferList(bufferList *gst.BufferList) g carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) carg1 = (*C.GstBufferList)(gst.UnsafeBufferListToGlibFull(bufferList)) - cret = C._gotk4_gstapp1_AppSrc_virtual_push_buffer_list(unsafe.Pointer(parentclass.push_buffer_list), carg0, carg1) + cret = C._goglib_gstapp1_AppSrc_virtual_push_buffer_list(unsafe.Pointer(parentclass.push_buffer_list), carg0, carg1) runtime.KeepAlive(appsrc) runtime.KeepAlive(bufferList) @@ -3885,7 +3885,7 @@ func (appsrc *AppSrcInstance) ParentPushSample(sample *gst.Sample) gst.FlowRetur carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) carg1 = (*C.GstSample)(gst.UnsafeSampleToGlibNone(sample)) - cret = C._gotk4_gstapp1_AppSrc_virtual_push_sample(unsafe.Pointer(parentclass.push_sample), carg0, carg1) + cret = C._goglib_gstapp1_AppSrc_virtual_push_sample(unsafe.Pointer(parentclass.push_sample), carg0, carg1) runtime.KeepAlive(appsrc) runtime.KeepAlive(sample) @@ -3916,7 +3916,7 @@ func (appsrc *AppSrcInstance) ParentSeekData(offset uint64) bool { carg0 = (*C.GstAppSrc)(UnsafeAppSrcToGlibNone(appsrc)) carg1 = C.guint64(offset) - cret = C._gotk4_gstapp1_AppSrc_virtual_seek_data(unsafe.Pointer(parentclass.seek_data), carg0, carg1) + cret = C._goglib_gstapp1_AppSrc_virtual_seek_data(unsafe.Pointer(parentclass.seek_data), carg0, carg1) runtime.KeepAlive(appsrc) runtime.KeepAlive(offset) diff --git a/pkg/gstapp/gstapp_export.gen.go b/pkg/gstapp/gstapp_export.gen.go index 7b898be..2ab4620 100644 --- a/pkg/gstapp/gstapp_export.gen.go +++ b/pkg/gstapp/gstapp_export.gen.go @@ -5,175 +5,175 @@ package gstapp import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/classdata" ) // #include import "C" -//export _gotk4_gstapp1_AppSink_eos -func _gotk4_gstapp1_AppSink_eos(carg0 *C.GstAppSink) { +//export _goglib_gstapp1_AppSink_eos +func _goglib_gstapp1_AppSink_eos(carg0 *C.GstAppSink) { var fn func(carg0 *C.GstAppSink) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_eos").(func(carg0 *C.GstAppSink)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_eos").(func(carg0 *C.GstAppSink)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_eos: no function pointer found") + panic("_goglib_gstapp1_AppSink_eos: no function pointer found") } } fn(carg0) } -//export _gotk4_gstapp1_AppSink_new_preroll -func _gotk4_gstapp1_AppSink_new_preroll(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { +//export _goglib_gstapp1_AppSink_new_preroll +func _goglib_gstapp1_AppSink_new_preroll(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_new_preroll").(func(carg0 *C.GstAppSink) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_new_preroll").(func(carg0 *C.GstAppSink) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_new_preroll: no function pointer found") + panic("_goglib_gstapp1_AppSink_new_preroll: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstapp1_AppSink_new_sample -func _gotk4_gstapp1_AppSink_new_sample(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { +//export _goglib_gstapp1_AppSink_new_sample +func _goglib_gstapp1_AppSink_new_sample(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAppSink) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_new_sample").(func(carg0 *C.GstAppSink) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_new_sample").(func(carg0 *C.GstAppSink) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_new_sample: no function pointer found") + panic("_goglib_gstapp1_AppSink_new_sample: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstapp1_AppSink_pull_preroll -func _gotk4_gstapp1_AppSink_pull_preroll(carg0 *C.GstAppSink) (cret *C.GstSample) { +//export _goglib_gstapp1_AppSink_pull_preroll +func _goglib_gstapp1_AppSink_pull_preroll(carg0 *C.GstAppSink) (cret *C.GstSample) { var fn func(carg0 *C.GstAppSink) (cret *C.GstSample) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_pull_preroll").(func(carg0 *C.GstAppSink) (cret *C.GstSample)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_pull_preroll").(func(carg0 *C.GstAppSink) (cret *C.GstSample)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_pull_preroll: no function pointer found") + panic("_goglib_gstapp1_AppSink_pull_preroll: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstapp1_AppSink_pull_sample -func _gotk4_gstapp1_AppSink_pull_sample(carg0 *C.GstAppSink) (cret *C.GstSample) { +//export _goglib_gstapp1_AppSink_pull_sample +func _goglib_gstapp1_AppSink_pull_sample(carg0 *C.GstAppSink) (cret *C.GstSample) { var fn func(carg0 *C.GstAppSink) (cret *C.GstSample) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_pull_sample").(func(carg0 *C.GstAppSink) (cret *C.GstSample)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_pull_sample").(func(carg0 *C.GstAppSink) (cret *C.GstSample)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_pull_sample: no function pointer found") + panic("_goglib_gstapp1_AppSink_pull_sample: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstapp1_AppSink_try_pull_preroll -func _gotk4_gstapp1_AppSink_try_pull_preroll(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { +//export _goglib_gstapp1_AppSink_try_pull_preroll +func _goglib_gstapp1_AppSink_try_pull_preroll(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { var fn func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_try_pull_preroll").(func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_try_pull_preroll").(func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_try_pull_preroll: no function pointer found") + panic("_goglib_gstapp1_AppSink_try_pull_preroll: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstapp1_AppSink_try_pull_sample -func _gotk4_gstapp1_AppSink_try_pull_sample(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { +//export _goglib_gstapp1_AppSink_try_pull_sample +func _goglib_gstapp1_AppSink_try_pull_sample(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { var fn func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSink_try_pull_sample").(func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSink_try_pull_sample").(func(carg0 *C.GstAppSink, carg1 C.GstClockTime) (cret *C.GstSample)) if fn == nil { - panic("_gotk4_gstapp1_AppSink_try_pull_sample: no function pointer found") + panic("_goglib_gstapp1_AppSink_try_pull_sample: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstapp1_AppSrc_end_of_stream -func _gotk4_gstapp1_AppSrc_end_of_stream(carg0 *C.GstAppSrc) (cret C.GstFlowReturn) { +//export _goglib_gstapp1_AppSrc_end_of_stream +func _goglib_gstapp1_AppSrc_end_of_stream(carg0 *C.GstAppSrc) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAppSrc) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_end_of_stream").(func(carg0 *C.GstAppSrc) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_end_of_stream").(func(carg0 *C.GstAppSrc) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_end_of_stream: no function pointer found") + panic("_goglib_gstapp1_AppSrc_end_of_stream: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstapp1_AppSrc_enough_data -func _gotk4_gstapp1_AppSrc_enough_data(carg0 *C.GstAppSrc) { +//export _goglib_gstapp1_AppSrc_enough_data +func _goglib_gstapp1_AppSrc_enough_data(carg0 *C.GstAppSrc) { var fn func(carg0 *C.GstAppSrc) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_enough_data").(func(carg0 *C.GstAppSrc)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_enough_data").(func(carg0 *C.GstAppSrc)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_enough_data: no function pointer found") + panic("_goglib_gstapp1_AppSrc_enough_data: no function pointer found") } } fn(carg0) } -//export _gotk4_gstapp1_AppSrc_need_data -func _gotk4_gstapp1_AppSrc_need_data(carg0 *C.GstAppSrc, carg1 C.guint) { +//export _goglib_gstapp1_AppSrc_need_data +func _goglib_gstapp1_AppSrc_need_data(carg0 *C.GstAppSrc, carg1 C.guint) { var fn func(carg0 *C.GstAppSrc, carg1 C.guint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_need_data").(func(carg0 *C.GstAppSrc, carg1 C.guint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_need_data").(func(carg0 *C.GstAppSrc, carg1 C.guint)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_need_data: no function pointer found") + panic("_goglib_gstapp1_AppSrc_need_data: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstapp1_AppSrc_push_buffer -func _gotk4_gstapp1_AppSrc_push_buffer(carg0 *C.GstAppSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstapp1_AppSrc_push_buffer +func _goglib_gstapp1_AppSrc_push_buffer(carg0 *C.GstAppSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAppSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_push_buffer").(func(carg0 *C.GstAppSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_push_buffer").(func(carg0 *C.GstAppSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_push_buffer: no function pointer found") + panic("_goglib_gstapp1_AppSrc_push_buffer: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstapp1_AppSrc_push_buffer_list -func _gotk4_gstapp1_AppSrc_push_buffer_list(carg0 *C.GstAppSrc, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { +//export _goglib_gstapp1_AppSrc_push_buffer_list +func _goglib_gstapp1_AppSrc_push_buffer_list(carg0 *C.GstAppSrc, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAppSrc, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_push_buffer_list").(func(carg0 *C.GstAppSrc, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_push_buffer_list").(func(carg0 *C.GstAppSrc, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_push_buffer_list: no function pointer found") + panic("_goglib_gstapp1_AppSrc_push_buffer_list: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstapp1_AppSrc_push_sample -func _gotk4_gstapp1_AppSrc_push_sample(carg0 *C.GstAppSrc, carg1 *C.GstSample) (cret C.GstFlowReturn) { +//export _goglib_gstapp1_AppSrc_push_sample +func _goglib_gstapp1_AppSrc_push_sample(carg0 *C.GstAppSrc, carg1 *C.GstSample) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAppSrc, carg1 *C.GstSample) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_push_sample").(func(carg0 *C.GstAppSrc, carg1 *C.GstSample) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_push_sample").(func(carg0 *C.GstAppSrc, carg1 *C.GstSample) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_push_sample: no function pointer found") + panic("_goglib_gstapp1_AppSrc_push_sample: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstapp1_AppSrc_seek_data -func _gotk4_gstapp1_AppSrc_seek_data(carg0 *C.GstAppSrc, carg1 C.guint64) (cret C.gboolean) { +//export _goglib_gstapp1_AppSrc_seek_data +func _goglib_gstapp1_AppSrc_seek_data(carg0 *C.GstAppSrc, carg1 C.guint64) (cret C.gboolean) { var fn func(carg0 *C.GstAppSrc, carg1 C.guint64) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstapp1_AppSrc_seek_data").(func(carg0 *C.GstAppSrc, carg1 C.guint64) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstapp1_AppSrc_seek_data").(func(carg0 *C.GstAppSrc, carg1 C.guint64) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstapp1_AppSrc_seek_data: no function pointer found") + panic("_goglib_gstapp1_AppSrc_seek_data: no function pointer found") } } return fn(carg0, carg1) diff --git a/pkg/gstaudio/gstaudio.gen.go b/pkg/gstaudio/gstaudio.gen.go index 1e2e21e..0fba8a8 100644 --- a/pkg/gstaudio/gstaudio.gen.go +++ b/pkg/gstaudio/gstaudio.gen.go @@ -9,9 +9,9 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstbase" ) @@ -19,288 +19,288 @@ import ( // #cgo pkg-config: gstreamer-audio-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern GstClockTime _gotk4_gstaudio1_AudioClockGetTimeFunc(GstClock*, gpointer); -// extern void _gotk4_gstaudio1_AudioBaseSinkCustomSlavingCallback(GstAudioBaseSink*, GstClockTime, GstClockTime, GstClockTimeDiff*, GstAudioBaseSinkDiscontReason, gpointer); -// extern void _gotk4_gstaudio1_AudioRingBufferCallback(GstAudioRingBuffer*, guint8*, guint, gpointer); +// extern GstClockTime _goglib_gstaudio1_AudioClockGetTimeFunc(GstClock*, gpointer); +// extern void _goglib_gstaudio1_AudioBaseSinkCustomSlavingCallback(GstAudioBaseSink*, GstClockTime, GstClockTime, GstClockTimeDiff*, GstAudioBaseSinkDiscontReason, gpointer); +// extern void _goglib_gstaudio1_AudioRingBufferCallback(GstAudioRingBuffer*, guint8*, guint, gpointer); // extern void destroyUserdata(gpointer); -// extern gboolean _gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer(GstAudioAggregator*, GstAudioAggregatorPad*, GstBuffer*, guint, GstBuffer*, guint, guint); -// extern GstBuffer* _gotk4_gstaudio1_AudioAggregator_create_output_buffer(GstAudioAggregator*, guint); -// gboolean _gotk4_gstaudio1_AudioAggregator_virtual_aggregate_one_buffer(void* fnptr, GstAudioAggregator* carg0, GstAudioAggregatorPad* carg1, GstBuffer* carg2, guint carg3, GstBuffer* carg4, guint carg5, guint carg6) { +// extern gboolean _goglib_gstaudio1_AudioAggregator_aggregate_one_buffer(GstAudioAggregator*, GstAudioAggregatorPad*, GstBuffer*, guint, GstBuffer*, guint, guint); +// extern GstBuffer* _goglib_gstaudio1_AudioAggregator_create_output_buffer(GstAudioAggregator*, guint); +// gboolean _goglib_gstaudio1_AudioAggregator_virtual_aggregate_one_buffer(void* fnptr, GstAudioAggregator* carg0, GstAudioAggregatorPad* carg1, GstBuffer* carg2, guint carg3, GstBuffer* carg4, guint carg5, guint carg6) { // return ((gboolean (*) (GstAudioAggregator*, GstAudioAggregatorPad*, GstBuffer*, guint, GstBuffer*, guint, guint))(fnptr))(carg0, carg1, carg2, carg3, carg4, carg5, carg6); // } -// GstBuffer* _gotk4_gstaudio1_AudioAggregator_virtual_create_output_buffer(void* fnptr, GstAudioAggregator* carg0, guint carg1) { +// GstBuffer* _goglib_gstaudio1_AudioAggregator_virtual_create_output_buffer(void* fnptr, GstAudioAggregator* carg0, guint carg1) { // return ((GstBuffer* (*) (GstAudioAggregator*, guint))(fnptr))(carg0, carg1); // } -// extern GstBuffer* _gotk4_gstaudio1_AudioAggregatorPad_convert_buffer(GstAudioAggregatorPad*, GstAudioInfo*, GstAudioInfo*, GstBuffer*); -// extern void _gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info(GstAudioAggregatorPad*); -// GstBuffer* _gotk4_gstaudio1_AudioAggregatorPad_virtual_convert_buffer(void* fnptr, GstAudioAggregatorPad* carg0, GstAudioInfo* carg1, GstAudioInfo* carg2, GstBuffer* carg3) { +// extern GstBuffer* _goglib_gstaudio1_AudioAggregatorPad_convert_buffer(GstAudioAggregatorPad*, GstAudioInfo*, GstAudioInfo*, GstBuffer*); +// extern void _goglib_gstaudio1_AudioAggregatorPad_update_conversion_info(GstAudioAggregatorPad*); +// GstBuffer* _goglib_gstaudio1_AudioAggregatorPad_virtual_convert_buffer(void* fnptr, GstAudioAggregatorPad* carg0, GstAudioInfo* carg1, GstAudioInfo* carg2, GstBuffer* carg3) { // return ((GstBuffer* (*) (GstAudioAggregatorPad*, GstAudioInfo*, GstAudioInfo*, GstBuffer*))(fnptr))(carg0, carg1, carg2, carg3); // } -// void _gotk4_gstaudio1_AudioAggregatorPad_virtual_update_conversion_info(void* fnptr, GstAudioAggregatorPad* carg0) { +// void _goglib_gstaudio1_AudioAggregatorPad_virtual_update_conversion_info(void* fnptr, GstAudioAggregatorPad* carg0) { // return ((void (*) (GstAudioAggregatorPad*))(fnptr))(carg0); // } -// extern GstAudioRingBuffer* _gotk4_gstaudio1_AudioBaseSink_create_ringbuffer(GstAudioBaseSink*); -// extern GstBuffer* _gotk4_gstaudio1_AudioBaseSink_payload(GstAudioBaseSink*, GstBuffer*); -// GstAudioRingBuffer* _gotk4_gstaudio1_AudioBaseSink_virtual_create_ringbuffer(void* fnptr, GstAudioBaseSink* carg0) { +// extern GstAudioRingBuffer* _goglib_gstaudio1_AudioBaseSink_create_ringbuffer(GstAudioBaseSink*); +// extern GstBuffer* _goglib_gstaudio1_AudioBaseSink_payload(GstAudioBaseSink*, GstBuffer*); +// GstAudioRingBuffer* _goglib_gstaudio1_AudioBaseSink_virtual_create_ringbuffer(void* fnptr, GstAudioBaseSink* carg0) { // return ((GstAudioRingBuffer* (*) (GstAudioBaseSink*))(fnptr))(carg0); // } -// GstBuffer* _gotk4_gstaudio1_AudioBaseSink_virtual_payload(void* fnptr, GstAudioBaseSink* carg0, GstBuffer* carg1) { +// GstBuffer* _goglib_gstaudio1_AudioBaseSink_virtual_payload(void* fnptr, GstAudioBaseSink* carg0, GstBuffer* carg1) { // return ((GstBuffer* (*) (GstAudioBaseSink*, GstBuffer*))(fnptr))(carg0, carg1); // } -// extern GstAudioRingBuffer* _gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer(GstAudioBaseSrc*); -// GstAudioRingBuffer* _gotk4_gstaudio1_AudioBaseSrc_virtual_create_ringbuffer(void* fnptr, GstAudioBaseSrc* carg0) { +// extern GstAudioRingBuffer* _goglib_gstaudio1_AudioBaseSrc_create_ringbuffer(GstAudioBaseSrc*); +// GstAudioRingBuffer* _goglib_gstaudio1_AudioBaseSrc_virtual_create_ringbuffer(void* fnptr, GstAudioBaseSrc* carg0) { // return ((GstAudioRingBuffer* (*) (GstAudioBaseSrc*))(fnptr))(carg0); // } -// extern void _gotk4_gstaudio1_AudioCdSrc_close(GstAudioCdSrc*); -// extern gboolean _gotk4_gstaudio1_AudioCdSrc_open(GstAudioCdSrc*, const gchar*); -// extern GstBuffer* _gotk4_gstaudio1_AudioCdSrc_read_sector(GstAudioCdSrc*, gint); -// void _gotk4_gstaudio1_AudioCdSrc_virtual_close(void* fnptr, GstAudioCdSrc* carg0) { +// extern void _goglib_gstaudio1_AudioCdSrc_close(GstAudioCdSrc*); +// extern gboolean _goglib_gstaudio1_AudioCdSrc_open(GstAudioCdSrc*, const gchar*); +// extern GstBuffer* _goglib_gstaudio1_AudioCdSrc_read_sector(GstAudioCdSrc*, gint); +// void _goglib_gstaudio1_AudioCdSrc_virtual_close(void* fnptr, GstAudioCdSrc* carg0) { // return ((void (*) (GstAudioCdSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioCdSrc_virtual_open(void* fnptr, GstAudioCdSrc* carg0, const gchar* carg1) { +// gboolean _goglib_gstaudio1_AudioCdSrc_virtual_open(void* fnptr, GstAudioCdSrc* carg0, const gchar* carg1) { // return ((gboolean (*) (GstAudioCdSrc*, const gchar*))(fnptr))(carg0, carg1); // } -// GstBuffer* _gotk4_gstaudio1_AudioCdSrc_virtual_read_sector(void* fnptr, GstAudioCdSrc* carg0, gint carg1) { +// GstBuffer* _goglib_gstaudio1_AudioCdSrc_virtual_read_sector(void* fnptr, GstAudioCdSrc* carg0, gint carg1) { // return ((GstBuffer* (*) (GstAudioCdSrc*, gint))(fnptr))(carg0, carg1); // } -// extern gboolean _gotk4_gstaudio1_AudioDecoder_close(GstAudioDecoder*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_decide_allocation(GstAudioDecoder*, GstQuery*); -// extern void _gotk4_gstaudio1_AudioDecoder_flush(GstAudioDecoder*, gboolean); -// extern GstCaps* _gotk4_gstaudio1_AudioDecoder_getcaps(GstAudioDecoder*, GstCaps*); -// extern GstFlowReturn _gotk4_gstaudio1_AudioDecoder_handle_frame(GstAudioDecoder*, GstBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_negotiate(GstAudioDecoder*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_open(GstAudioDecoder*); -// extern GstFlowReturn _gotk4_gstaudio1_AudioDecoder_parse(GstAudioDecoder*, GstAdapter*, gint, gint); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_propose_allocation(GstAudioDecoder*, GstQuery*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_set_format(GstAudioDecoder*, GstCaps*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_sink_event(GstAudioDecoder*, GstEvent*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_sink_query(GstAudioDecoder*, GstQuery*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_src_event(GstAudioDecoder*, GstEvent*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_src_query(GstAudioDecoder*, GstQuery*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_start(GstAudioDecoder*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_stop(GstAudioDecoder*); -// extern gboolean _gotk4_gstaudio1_AudioDecoder_transform_meta(GstAudioDecoder*, GstBuffer*, GstMeta*, GstBuffer*); -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_close(void* fnptr, GstAudioDecoder* carg0) { +// extern gboolean _goglib_gstaudio1_AudioDecoder_close(GstAudioDecoder*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_decide_allocation(GstAudioDecoder*, GstQuery*); +// extern void _goglib_gstaudio1_AudioDecoder_flush(GstAudioDecoder*, gboolean); +// extern GstCaps* _goglib_gstaudio1_AudioDecoder_getcaps(GstAudioDecoder*, GstCaps*); +// extern GstFlowReturn _goglib_gstaudio1_AudioDecoder_handle_frame(GstAudioDecoder*, GstBuffer*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_negotiate(GstAudioDecoder*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_open(GstAudioDecoder*); +// extern GstFlowReturn _goglib_gstaudio1_AudioDecoder_parse(GstAudioDecoder*, GstAdapter*, gint, gint); +// extern gboolean _goglib_gstaudio1_AudioDecoder_propose_allocation(GstAudioDecoder*, GstQuery*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_set_format(GstAudioDecoder*, GstCaps*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_sink_event(GstAudioDecoder*, GstEvent*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_sink_query(GstAudioDecoder*, GstQuery*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_src_event(GstAudioDecoder*, GstEvent*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_src_query(GstAudioDecoder*, GstQuery*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_start(GstAudioDecoder*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_stop(GstAudioDecoder*); +// extern gboolean _goglib_gstaudio1_AudioDecoder_transform_meta(GstAudioDecoder*, GstBuffer*, GstMeta*, GstBuffer*); +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_close(void* fnptr, GstAudioDecoder* carg0) { // return ((gboolean (*) (GstAudioDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_decide_allocation(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_decide_allocation(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstaudio1_AudioDecoder_virtual_flush(void* fnptr, GstAudioDecoder* carg0, gboolean carg1) { +// void _goglib_gstaudio1_AudioDecoder_virtual_flush(void* fnptr, GstAudioDecoder* carg0, gboolean carg1) { // return ((void (*) (GstAudioDecoder*, gboolean))(fnptr))(carg0, carg1); // } -// GstCaps* _gotk4_gstaudio1_AudioDecoder_virtual_getcaps(void* fnptr, GstAudioDecoder* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstaudio1_AudioDecoder_virtual_getcaps(void* fnptr, GstAudioDecoder* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstAudioDecoder*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstaudio1_AudioDecoder_virtual_handle_frame(void* fnptr, GstAudioDecoder* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstaudio1_AudioDecoder_virtual_handle_frame(void* fnptr, GstAudioDecoder* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstAudioDecoder*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_negotiate(void* fnptr, GstAudioDecoder* carg0) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_negotiate(void* fnptr, GstAudioDecoder* carg0) { // return ((gboolean (*) (GstAudioDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_open(void* fnptr, GstAudioDecoder* carg0) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_open(void* fnptr, GstAudioDecoder* carg0) { // return ((gboolean (*) (GstAudioDecoder*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstaudio1_AudioDecoder_virtual_parse(void* fnptr, GstAudioDecoder* carg0, GstAdapter* carg1, gint* carg2, gint* carg3) { +// GstFlowReturn _goglib_gstaudio1_AudioDecoder_virtual_parse(void* fnptr, GstAudioDecoder* carg0, GstAdapter* carg1, gint* carg2, gint* carg3) { // return ((GstFlowReturn (*) (GstAudioDecoder*, GstAdapter*, gint*, gint*))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_propose_allocation(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_propose_allocation(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_set_format(void* fnptr, GstAudioDecoder* carg0, GstCaps* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_set_format(void* fnptr, GstAudioDecoder* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_sink_event(void* fnptr, GstAudioDecoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_sink_event(void* fnptr, GstAudioDecoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_sink_query(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_sink_query(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_src_event(void* fnptr, GstAudioDecoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_src_event(void* fnptr, GstAudioDecoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_src_query(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_src_query(void* fnptr, GstAudioDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_start(void* fnptr, GstAudioDecoder* carg0) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_start(void* fnptr, GstAudioDecoder* carg0) { // return ((gboolean (*) (GstAudioDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_stop(void* fnptr, GstAudioDecoder* carg0) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_stop(void* fnptr, GstAudioDecoder* carg0) { // return ((gboolean (*) (GstAudioDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioDecoder_virtual_transform_meta(void* fnptr, GstAudioDecoder* carg0, GstBuffer* carg1, GstMeta* carg2, GstBuffer* carg3) { +// gboolean _goglib_gstaudio1_AudioDecoder_virtual_transform_meta(void* fnptr, GstAudioDecoder* carg0, GstBuffer* carg1, GstMeta* carg2, GstBuffer* carg3) { // return ((gboolean (*) (GstAudioDecoder*, GstBuffer*, GstMeta*, GstBuffer*))(fnptr))(carg0, carg1, carg2, carg3); // } -// extern gboolean _gotk4_gstaudio1_AudioEncoder_close(GstAudioEncoder*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_decide_allocation(GstAudioEncoder*, GstQuery*); -// extern void _gotk4_gstaudio1_AudioEncoder_flush(GstAudioEncoder*); -// extern GstCaps* _gotk4_gstaudio1_AudioEncoder_getcaps(GstAudioEncoder*, GstCaps*); -// extern GstFlowReturn _gotk4_gstaudio1_AudioEncoder_handle_frame(GstAudioEncoder*, GstBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_negotiate(GstAudioEncoder*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_open(GstAudioEncoder*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_propose_allocation(GstAudioEncoder*, GstQuery*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_set_format(GstAudioEncoder*, GstAudioInfo*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_sink_event(GstAudioEncoder*, GstEvent*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_sink_query(GstAudioEncoder*, GstQuery*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_src_event(GstAudioEncoder*, GstEvent*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_src_query(GstAudioEncoder*, GstQuery*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_start(GstAudioEncoder*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_stop(GstAudioEncoder*); -// extern gboolean _gotk4_gstaudio1_AudioEncoder_transform_meta(GstAudioEncoder*, GstBuffer*, GstMeta*, GstBuffer*); -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_close(void* fnptr, GstAudioEncoder* carg0) { +// extern gboolean _goglib_gstaudio1_AudioEncoder_close(GstAudioEncoder*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_decide_allocation(GstAudioEncoder*, GstQuery*); +// extern void _goglib_gstaudio1_AudioEncoder_flush(GstAudioEncoder*); +// extern GstCaps* _goglib_gstaudio1_AudioEncoder_getcaps(GstAudioEncoder*, GstCaps*); +// extern GstFlowReturn _goglib_gstaudio1_AudioEncoder_handle_frame(GstAudioEncoder*, GstBuffer*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_negotiate(GstAudioEncoder*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_open(GstAudioEncoder*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_propose_allocation(GstAudioEncoder*, GstQuery*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_set_format(GstAudioEncoder*, GstAudioInfo*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_sink_event(GstAudioEncoder*, GstEvent*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_sink_query(GstAudioEncoder*, GstQuery*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_src_event(GstAudioEncoder*, GstEvent*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_src_query(GstAudioEncoder*, GstQuery*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_start(GstAudioEncoder*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_stop(GstAudioEncoder*); +// extern gboolean _goglib_gstaudio1_AudioEncoder_transform_meta(GstAudioEncoder*, GstBuffer*, GstMeta*, GstBuffer*); +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_close(void* fnptr, GstAudioEncoder* carg0) { // return ((gboolean (*) (GstAudioEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_decide_allocation(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_decide_allocation(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstaudio1_AudioEncoder_virtual_flush(void* fnptr, GstAudioEncoder* carg0) { +// void _goglib_gstaudio1_AudioEncoder_virtual_flush(void* fnptr, GstAudioEncoder* carg0) { // return ((void (*) (GstAudioEncoder*))(fnptr))(carg0); // } -// GstCaps* _gotk4_gstaudio1_AudioEncoder_virtual_getcaps(void* fnptr, GstAudioEncoder* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstaudio1_AudioEncoder_virtual_getcaps(void* fnptr, GstAudioEncoder* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstAudioEncoder*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstaudio1_AudioEncoder_virtual_handle_frame(void* fnptr, GstAudioEncoder* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstaudio1_AudioEncoder_virtual_handle_frame(void* fnptr, GstAudioEncoder* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstAudioEncoder*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_negotiate(void* fnptr, GstAudioEncoder* carg0) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_negotiate(void* fnptr, GstAudioEncoder* carg0) { // return ((gboolean (*) (GstAudioEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_open(void* fnptr, GstAudioEncoder* carg0) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_open(void* fnptr, GstAudioEncoder* carg0) { // return ((gboolean (*) (GstAudioEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_propose_allocation(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_propose_allocation(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_set_format(void* fnptr, GstAudioEncoder* carg0, GstAudioInfo* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_set_format(void* fnptr, GstAudioEncoder* carg0, GstAudioInfo* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstAudioInfo*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_sink_event(void* fnptr, GstAudioEncoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_sink_event(void* fnptr, GstAudioEncoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_sink_query(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_sink_query(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_src_event(void* fnptr, GstAudioEncoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_src_event(void* fnptr, GstAudioEncoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_src_query(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_src_query(void* fnptr, GstAudioEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_start(void* fnptr, GstAudioEncoder* carg0) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_start(void* fnptr, GstAudioEncoder* carg0) { // return ((gboolean (*) (GstAudioEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_stop(void* fnptr, GstAudioEncoder* carg0) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_stop(void* fnptr, GstAudioEncoder* carg0) { // return ((gboolean (*) (GstAudioEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioEncoder_virtual_transform_meta(void* fnptr, GstAudioEncoder* carg0, GstBuffer* carg1, GstMeta* carg2, GstBuffer* carg3) { +// gboolean _goglib_gstaudio1_AudioEncoder_virtual_transform_meta(void* fnptr, GstAudioEncoder* carg0, GstBuffer* carg1, GstMeta* carg2, GstBuffer* carg3) { // return ((gboolean (*) (GstAudioEncoder*, GstBuffer*, GstMeta*, GstBuffer*))(fnptr))(carg0, carg1, carg2, carg3); // } -// extern gboolean _gotk4_gstaudio1_AudioFilter_setup(GstAudioFilter*, const GstAudioInfo*); -// gboolean _gotk4_gstaudio1_AudioFilter_virtual_setup(void* fnptr, GstAudioFilter* carg0, const GstAudioInfo* carg1) { +// extern gboolean _goglib_gstaudio1_AudioFilter_setup(GstAudioFilter*, const GstAudioInfo*); +// gboolean _goglib_gstaudio1_AudioFilter_virtual_setup(void* fnptr, GstAudioFilter* carg0, const GstAudioInfo* carg1) { // return ((gboolean (*) (GstAudioFilter*, const GstAudioInfo*))(fnptr))(carg0, carg1); // } -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_acquire(GstAudioRingBuffer*, GstAudioRingBufferSpec*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_activate(GstAudioRingBuffer*, gboolean); -// extern void _gotk4_gstaudio1_AudioRingBuffer_clear_all(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_close_device(GstAudioRingBuffer*); -// extern guint _gotk4_gstaudio1_AudioRingBuffer_delay(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_open_device(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_pause(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_release(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_resume(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_start(GstAudioRingBuffer*); -// extern gboolean _gotk4_gstaudio1_AudioRingBuffer_stop(GstAudioRingBuffer*); -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_acquire(void* fnptr, GstAudioRingBuffer* carg0, GstAudioRingBufferSpec* carg1) { +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_acquire(GstAudioRingBuffer*, GstAudioRingBufferSpec*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_activate(GstAudioRingBuffer*, gboolean); +// extern void _goglib_gstaudio1_AudioRingBuffer_clear_all(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_close_device(GstAudioRingBuffer*); +// extern guint _goglib_gstaudio1_AudioRingBuffer_delay(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_open_device(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_pause(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_release(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_resume(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_start(GstAudioRingBuffer*); +// extern gboolean _goglib_gstaudio1_AudioRingBuffer_stop(GstAudioRingBuffer*); +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_acquire(void* fnptr, GstAudioRingBuffer* carg0, GstAudioRingBufferSpec* carg1) { // return ((gboolean (*) (GstAudioRingBuffer*, GstAudioRingBufferSpec*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_activate(void* fnptr, GstAudioRingBuffer* carg0, gboolean carg1) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_activate(void* fnptr, GstAudioRingBuffer* carg0, gboolean carg1) { // return ((gboolean (*) (GstAudioRingBuffer*, gboolean))(fnptr))(carg0, carg1); // } -// void _gotk4_gstaudio1_AudioRingBuffer_virtual_clear_all(void* fnptr, GstAudioRingBuffer* carg0) { +// void _goglib_gstaudio1_AudioRingBuffer_virtual_clear_all(void* fnptr, GstAudioRingBuffer* carg0) { // return ((void (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_close_device(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_close_device(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// guint _gotk4_gstaudio1_AudioRingBuffer_virtual_delay(void* fnptr, GstAudioRingBuffer* carg0) { +// guint _goglib_gstaudio1_AudioRingBuffer_virtual_delay(void* fnptr, GstAudioRingBuffer* carg0) { // return ((guint (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_open_device(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_open_device(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_pause(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_pause(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_release(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_release(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_resume(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_resume(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_start(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_start(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioRingBuffer_virtual_stop(void* fnptr, GstAudioRingBuffer* carg0) { +// gboolean _goglib_gstaudio1_AudioRingBuffer_virtual_stop(void* fnptr, GstAudioRingBuffer* carg0) { // return ((gboolean (*) (GstAudioRingBuffer*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstaudio1_AudioSink_close(GstAudioSink*); -// extern guint _gotk4_gstaudio1_AudioSink_delay(GstAudioSink*); -// extern gboolean _gotk4_gstaudio1_AudioSink_open(GstAudioSink*); -// extern void _gotk4_gstaudio1_AudioSink_pause(GstAudioSink*); -// extern gboolean _gotk4_gstaudio1_AudioSink_prepare(GstAudioSink*, GstAudioRingBufferSpec*); -// extern void _gotk4_gstaudio1_AudioSink_reset(GstAudioSink*); -// extern void _gotk4_gstaudio1_AudioSink_resume(GstAudioSink*); -// extern void _gotk4_gstaudio1_AudioSink_stop(GstAudioSink*); -// extern gboolean _gotk4_gstaudio1_AudioSink_unprepare(GstAudioSink*); -// gboolean _gotk4_gstaudio1_AudioSink_virtual_close(void* fnptr, GstAudioSink* carg0) { +// extern gboolean _goglib_gstaudio1_AudioSink_close(GstAudioSink*); +// extern guint _goglib_gstaudio1_AudioSink_delay(GstAudioSink*); +// extern gboolean _goglib_gstaudio1_AudioSink_open(GstAudioSink*); +// extern void _goglib_gstaudio1_AudioSink_pause(GstAudioSink*); +// extern gboolean _goglib_gstaudio1_AudioSink_prepare(GstAudioSink*, GstAudioRingBufferSpec*); +// extern void _goglib_gstaudio1_AudioSink_reset(GstAudioSink*); +// extern void _goglib_gstaudio1_AudioSink_resume(GstAudioSink*); +// extern void _goglib_gstaudio1_AudioSink_stop(GstAudioSink*); +// extern gboolean _goglib_gstaudio1_AudioSink_unprepare(GstAudioSink*); +// gboolean _goglib_gstaudio1_AudioSink_virtual_close(void* fnptr, GstAudioSink* carg0) { // return ((gboolean (*) (GstAudioSink*))(fnptr))(carg0); // } -// guint _gotk4_gstaudio1_AudioSink_virtual_delay(void* fnptr, GstAudioSink* carg0) { +// guint _goglib_gstaudio1_AudioSink_virtual_delay(void* fnptr, GstAudioSink* carg0) { // return ((guint (*) (GstAudioSink*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioSink_virtual_open(void* fnptr, GstAudioSink* carg0) { +// gboolean _goglib_gstaudio1_AudioSink_virtual_open(void* fnptr, GstAudioSink* carg0) { // return ((gboolean (*) (GstAudioSink*))(fnptr))(carg0); // } -// void _gotk4_gstaudio1_AudioSink_virtual_pause(void* fnptr, GstAudioSink* carg0) { +// void _goglib_gstaudio1_AudioSink_virtual_pause(void* fnptr, GstAudioSink* carg0) { // return ((void (*) (GstAudioSink*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioSink_virtual_prepare(void* fnptr, GstAudioSink* carg0, GstAudioRingBufferSpec* carg1) { +// gboolean _goglib_gstaudio1_AudioSink_virtual_prepare(void* fnptr, GstAudioSink* carg0, GstAudioRingBufferSpec* carg1) { // return ((gboolean (*) (GstAudioSink*, GstAudioRingBufferSpec*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstaudio1_AudioSink_virtual_reset(void* fnptr, GstAudioSink* carg0) { +// void _goglib_gstaudio1_AudioSink_virtual_reset(void* fnptr, GstAudioSink* carg0) { // return ((void (*) (GstAudioSink*))(fnptr))(carg0); // } -// void _gotk4_gstaudio1_AudioSink_virtual_resume(void* fnptr, GstAudioSink* carg0) { +// void _goglib_gstaudio1_AudioSink_virtual_resume(void* fnptr, GstAudioSink* carg0) { // return ((void (*) (GstAudioSink*))(fnptr))(carg0); // } -// void _gotk4_gstaudio1_AudioSink_virtual_stop(void* fnptr, GstAudioSink* carg0) { +// void _goglib_gstaudio1_AudioSink_virtual_stop(void* fnptr, GstAudioSink* carg0) { // return ((void (*) (GstAudioSink*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioSink_virtual_unprepare(void* fnptr, GstAudioSink* carg0) { +// gboolean _goglib_gstaudio1_AudioSink_virtual_unprepare(void* fnptr, GstAudioSink* carg0) { // return ((gboolean (*) (GstAudioSink*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstaudio1_AudioSrc_close(GstAudioSrc*); -// extern guint _gotk4_gstaudio1_AudioSrc_delay(GstAudioSrc*); -// extern gboolean _gotk4_gstaudio1_AudioSrc_open(GstAudioSrc*); -// extern gboolean _gotk4_gstaudio1_AudioSrc_prepare(GstAudioSrc*, GstAudioRingBufferSpec*); -// extern void _gotk4_gstaudio1_AudioSrc_reset(GstAudioSrc*); -// extern gboolean _gotk4_gstaudio1_AudioSrc_unprepare(GstAudioSrc*); -// gboolean _gotk4_gstaudio1_AudioSrc_virtual_close(void* fnptr, GstAudioSrc* carg0) { +// extern gboolean _goglib_gstaudio1_AudioSrc_close(GstAudioSrc*); +// extern guint _goglib_gstaudio1_AudioSrc_delay(GstAudioSrc*); +// extern gboolean _goglib_gstaudio1_AudioSrc_open(GstAudioSrc*); +// extern gboolean _goglib_gstaudio1_AudioSrc_prepare(GstAudioSrc*, GstAudioRingBufferSpec*); +// extern void _goglib_gstaudio1_AudioSrc_reset(GstAudioSrc*); +// extern gboolean _goglib_gstaudio1_AudioSrc_unprepare(GstAudioSrc*); +// gboolean _goglib_gstaudio1_AudioSrc_virtual_close(void* fnptr, GstAudioSrc* carg0) { // return ((gboolean (*) (GstAudioSrc*))(fnptr))(carg0); // } -// guint _gotk4_gstaudio1_AudioSrc_virtual_delay(void* fnptr, GstAudioSrc* carg0) { +// guint _goglib_gstaudio1_AudioSrc_virtual_delay(void* fnptr, GstAudioSrc* carg0) { // return ((guint (*) (GstAudioSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioSrc_virtual_open(void* fnptr, GstAudioSrc* carg0) { +// gboolean _goglib_gstaudio1_AudioSrc_virtual_open(void* fnptr, GstAudioSrc* carg0) { // return ((gboolean (*) (GstAudioSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioSrc_virtual_prepare(void* fnptr, GstAudioSrc* carg0, GstAudioRingBufferSpec* carg1) { +// gboolean _goglib_gstaudio1_AudioSrc_virtual_prepare(void* fnptr, GstAudioSrc* carg0, GstAudioRingBufferSpec* carg1) { // return ((gboolean (*) (GstAudioSrc*, GstAudioRingBufferSpec*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstaudio1_AudioSrc_virtual_reset(void* fnptr, GstAudioSrc* carg0) { +// void _goglib_gstaudio1_AudioSrc_virtual_reset(void* fnptr, GstAudioSrc* carg0) { // return ((void (*) (GstAudioSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstaudio1_AudioSrc_virtual_unprepare(void* fnptr, GstAudioSrc* carg0) { +// gboolean _goglib_gstaudio1_AudioSrc_virtual_unprepare(void* fnptr, GstAudioSrc* carg0) { // return ((gboolean (*) (GstAudioSrc*))(fnptr))(carg0); // } import "C" @@ -2377,14 +2377,14 @@ func AudioChannelGetFallbackMask(channels int32) uint64 { func AudioChannelPositionsFromMask(channelMask uint64, position []AudioChannelPosition) bool { var carg1 C.gint // implicit var carg2 C.guint64 // in, none, casted - var carg3 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg1) + var carg3 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg1) var cret C.gboolean // return carg2 = C.guint64(channelMask) _ = position _ = carg3 _ = carg1 - panic("unimplemented conversion of []AudioChannelPosition (GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (GstAudioChannelPosition*) because of unimplemented: non-fixed size array") cret = C.gst_audio_channel_positions_from_mask(carg1, carg2, carg3) runtime.KeepAlive(channelMask) @@ -2416,7 +2416,7 @@ func AudioChannelPositionsFromMask(channelMask uint64, position []AudioChannelPo // If @force_order is %TRUE it additionally checks if the channels are // in the order required by GStreamer. func AudioChannelPositionsToMask(position []AudioChannelPosition, forceOrder bool) (uint64, bool) { - var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg2) var carg2 C.gint // implicit var carg3 C.gboolean // in var carg4 C.guint64 // out, full, casted @@ -2425,7 +2425,7 @@ func AudioChannelPositionsToMask(position []AudioChannelPosition, forceOrder boo _ = position _ = carg1 _ = carg2 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") if forceOrder { carg3 = C.TRUE } @@ -2459,14 +2459,14 @@ func AudioChannelPositionsToMask(position []AudioChannelPosition, forceOrder boo // Converts @position to a human-readable string representation for // debugging purposes. func AudioChannelPositionsToString(position []AudioChannelPosition) string { - var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg2) var carg2 C.gint // implicit var cret *C.gchar // return, full, string _ = position _ = carg1 _ = carg2 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") cret = C.gst_audio_channel_positions_to_string(carg1, carg2) runtime.KeepAlive(position) @@ -2493,14 +2493,14 @@ func AudioChannelPositionsToString(position []AudioChannelPosition) string { // Reorders the channel positions in @position from any order to // the GStreamer channel order. func AudioChannelPositionsToValidOrder(position []AudioChannelPosition) bool { - var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg2) var carg2 C.gint // implicit var cret C.gboolean // return _ = position _ = carg1 _ = carg2 - panic("unimplemented conversion of []AudioChannelPosition (GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (GstAudioChannelPosition*) because of unimplemented: non-fixed size array") cret = C.gst_audio_channel_positions_to_valid_order(carg1, carg2) runtime.KeepAlive(position) @@ -2530,7 +2530,7 @@ func AudioChannelPositionsToValidOrder(position []AudioChannelPosition) bool { // @channels channels. If @force_order is %TRUE it additionally // checks if the channels are in the order required by GStreamer. func AudioCheckValidChannelPositions(position []AudioChannelPosition, forceOrder bool) bool { - var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg2) var carg2 C.gint // implicit var carg3 C.gboolean // in var cret C.gboolean // return @@ -2538,7 +2538,7 @@ func AudioCheckValidChannelPositions(position []AudioChannelPosition, forceOrder _ = position _ = carg1 _ = carg2 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") if forceOrder { carg3 = C.TRUE } @@ -2600,7 +2600,7 @@ func AudioDownmixMetaAPIGetType() gobject.Type { // Return all the raw audio formats supported by GStreamer. func AudioFormatsRaw() (uint, []AudioFormat) { var carg1 C.guint // out, full, casted - var cret *C.GstAudioFormat // return, transfer: none, C Pointers: 1, Name: array[AudioFormat], scope: , array (inner: *typesystem.Enum) + var cret *C.GstAudioFormat // return, transfer: none, C Pointers: 1, Name: array[AudioFormat], scope: , array (inner GstAudioFormat (*typesystem.Enum)) cret = C.gst_audio_formats_raw(&carg1) @@ -2610,7 +2610,7 @@ func AudioFormatsRaw() (uint, []AudioFormat) { len = uint(carg1) _ = goret _ = cret - panic("unimplemented conversion of []AudioFormat (const GstAudioFormat*)") + panic("unimplemented conversion of []AudioFormat (const GstAudioFormat*) because of unknown reason") return len, goret } @@ -2637,23 +2637,23 @@ func AudioFormatsRaw() (uint, []AudioFormat) { // channel i of the input to channel reorder_map[i] of the output. func AudioGetChannelReorderMap(from []AudioChannelPosition, to []AudioChannelPosition, reorderMap []int32) bool { var carg1 C.gint // implicit - var carg2 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg1) - var carg3 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg1) - var carg4 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner: *typesystem.CastablePrimitive, length-by: carg1) + var carg2 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg1) + var carg3 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg1) + var carg4 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner gint (*typesystem.CastablePrimitive), length-by: carg1) var cret C.gboolean // return _ = from _ = carg2 _ = carg1 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") _ = to _ = carg3 _ = carg1 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") _ = reorderMap _ = carg4 _ = carg1 - panic("unimplemented conversion of []int32 (gint*)") + panic("unimplemented conversion of []int32 (gint*) because of unimplemented: non-fixed size array") cret = C.gst_audio_get_channel_reorder_map(carg1, carg2, carg3, carg4) runtime.KeepAlive(from) @@ -2715,9 +2715,9 @@ func AudioIec61937FrameSize(spec *AudioRingBufferSpec) uint { // stores the result in @dst. @src must contain exactly one frame of data and // the frame is not checked for errors. func AudioIec61937Payload(src []uint8, dst []uint8, spec *AudioRingBufferSpec, endianness int32) bool { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg4) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg4) var carg4 C.guint // implicit var carg5 *C.GstAudioRingBufferSpec // in, none, converted var carg6 C.gint // in, none, casted @@ -2726,11 +2726,11 @@ func AudioIec61937Payload(src []uint8, dst []uint8, spec *AudioRingBufferSpec, e _ = src _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") _ = dst _ = carg3 _ = carg4 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") carg5 = (*C.GstAudioRingBufferSpec)(UnsafeAudioRingBufferSpecToGlibNone(spec)) carg6 = C.gint(endianness) @@ -2783,7 +2783,7 @@ func AudioLevelMetaAPIGetType() gobject.Type { // If @formats is %NULL returns a caps for all the supported raw audio formats, // see gst_audio_formats_raw(). func AudioMakeRawCaps(formats []AudioFormat, layout AudioLayout) *gst.Caps { - var carg1 *C.GstAudioFormat // in, transfer: none, C Pointers: 1, Name: array[AudioFormat], nullable, array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstAudioFormat // in, transfer: none, C Pointers: 1, Name: array[AudioFormat], nullable, array (inner GstAudioFormat (*typesystem.Enum), length-by: carg2) var carg2 C.guint // implicit var carg3 C.GstAudioLayout // in, none, casted var cret *C.GstCaps // return, full, converted @@ -2791,7 +2791,7 @@ func AudioMakeRawCaps(formats []AudioFormat, layout AudioLayout) *gst.Caps { _ = formats _ = carg1 _ = carg2 - panic("unimplemented conversion of []AudioFormat (const GstAudioFormat*)") + panic("unimplemented conversion of []AudioFormat (const GstAudioFormat*) because of unimplemented: non-fixed size array") carg3 = C.GstAudioLayout(layout) cret = C.gst_audio_make_raw_caps(carg1, carg2, carg3) @@ -2884,9 +2884,9 @@ func BufferAddAudioClippingMeta(buffer *gst.Buffer, format gst.Format, start uin // of the results. func BufferAddAudioDownmixMeta(buffer *gst.Buffer, fromPosition []AudioChannelPosition, toPosition []AudioChannelPosition, matrix **float32) *AudioDownmixMeta { var carg1 *C.GstBuffer // in, none, converted - var carg2 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg3) + var carg2 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg3) var carg3 C.gint // implicit - var carg4 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg5) + var carg4 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg5) var carg5 C.gint // implicit var carg6 **C.gfloat // in, transfer: none, C Pointers: 2, Name: gfloat var cret *C.GstAudioDownmixMeta // return, none, converted @@ -2895,14 +2895,14 @@ func BufferAddAudioDownmixMeta(buffer *gst.Buffer, fromPosition []AudioChannelPo _ = fromPosition _ = carg2 _ = carg3 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") _ = toPosition _ = carg4 _ = carg5 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") _ = matrix _ = carg6 - panic("unimplemented conversion of **float32 (const gfloat**)") + panic("unimplemented conversion of **float32 (const gfloat**) because of no basic converter found") cret = C.gst_buffer_add_audio_downmix_meta(carg1, carg2, carg3, carg4, carg5, carg6) runtime.KeepAlive(buffer) @@ -3002,7 +3002,7 @@ func BufferAddAudioMeta(buffer *gst.Buffer, info *AudioInfo, samples uint, offse if offsets != nil { _ = offsets _ = carg4 - panic("unimplemented conversion of *uint (gsize*)") + panic("unimplemented conversion of *uint (gsize*) because of no basic converter found") } cret = C.gst_buffer_add_audio_meta(carg1, carg2, carg3, carg4) @@ -3066,7 +3066,7 @@ func BufferAddDsdPlaneOffsetMeta(buffer *gst.Buffer, numChannels int32, numBytes if offsets != nil { _ = offsets _ = carg4 - panic("unimplemented conversion of *uint (gsize*)") + panic("unimplemented conversion of *uint (gsize*) because of no basic converter found") } cret = C.gst_buffer_add_dsd_plane_offset_meta(carg1, carg2, carg3, carg4) @@ -3098,7 +3098,7 @@ func BufferAddDsdPlaneOffsetMeta(buffer *gst.Buffer, numChannels int32, numBytes // channel positions. func BufferGetAudioDownmixMetaForChannels(buffer *gst.Buffer, toPosition []AudioChannelPosition) *AudioDownmixMeta { var carg1 *C.GstBuffer // in, none, converted - var carg2 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg3) + var carg2 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg3) var carg3 C.gint // implicit var cret *C.GstAudioDownmixMeta // return, none, converted @@ -3106,7 +3106,7 @@ func BufferGetAudioDownmixMetaForChannels(buffer *gst.Buffer, toPosition []Audio _ = toPosition _ = carg2 _ = carg3 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") cret = C.gst_buffer_get_audio_downmix_meta_for_channels(carg1, carg2, carg3) runtime.KeepAlive(buffer) @@ -3196,20 +3196,20 @@ func DsdConvert(inputData *uint8, outputData *uint8, inputFormat DsdFormat, outp _ = inputData _ = carg1 - panic("unimplemented conversion of *uint8 (const guint8*)") + panic("unimplemented conversion of *uint8 (const guint8*) because of no basic converter found") _ = outputData _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") carg3 = C.GstDsdFormat(inputFormat) carg4 = C.GstDsdFormat(outputFormat) carg5 = C.GstAudioLayout(inputLayout) carg6 = C.GstAudioLayout(outputLayout) _ = inputPlaneOffsets _ = carg7 - panic("unimplemented conversion of *uint (const gsize*)") + panic("unimplemented conversion of *uint (const gsize*) because of no basic converter found") _ = outputPlaneOffsets _ = carg8 - panic("unimplemented conversion of *uint (const gsize*)") + panic("unimplemented conversion of *uint (const gsize*) because of no basic converter found") carg9 = C.gsize(numDsdBytes) carg10 = C.gint(numChannels) if reverseByteBits { @@ -3703,10 +3703,10 @@ func UnsafeApplyAudioAggregatorOverrides[Instance AudioAggregator](gclass unsafe pclass := (*C.GstAudioAggregatorClass)(gclass) if overrides.AggregateOneBuffer != nil { - pclass.aggregate_one_buffer = (*[0]byte)(C._gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer) + pclass.aggregate_one_buffer = (*[0]byte)(C._goglib_gstaudio1_AudioAggregator_aggregate_one_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer", + "_goglib_gstaudio1_AudioAggregator_aggregate_one_buffer", func(carg0 *C.GstAudioAggregator, carg1 *C.GstAudioAggregatorPad, carg2 *C.GstBuffer, carg3 C.guint, carg4 *C.GstBuffer, carg5 C.guint, carg6 C.guint) (cret C.gboolean) { var aagg Instance // go GstAudioAggregator subclass var pad AudioAggregatorPad // in, none, converted @@ -3737,10 +3737,10 @@ func UnsafeApplyAudioAggregatorOverrides[Instance AudioAggregator](gclass unsafe } if overrides.CreateOutputBuffer != nil { - pclass.create_output_buffer = (*[0]byte)(C._gotk4_gstaudio1_AudioAggregator_create_output_buffer) + pclass.create_output_buffer = (*[0]byte)(C._goglib_gstaudio1_AudioAggregator_create_output_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioAggregator_create_output_buffer", + "_goglib_gstaudio1_AudioAggregator_create_output_buffer", func(carg0 *C.GstAudioAggregator, carg1 C.guint) (cret *C.GstBuffer) { var aagg Instance // go GstAudioAggregator subclass var numFrames uint // in, none, casted @@ -3799,7 +3799,7 @@ func (aagg *AudioAggregatorInstance) ParentAggregateOneBuffer(pad AudioAggregato carg5 = C.guint(outOffset) carg6 = C.guint(numFrames) - cret = C._gotk4_gstaudio1_AudioAggregator_virtual_aggregate_one_buffer(unsafe.Pointer(parentclass.aggregate_one_buffer), carg0, carg1, carg2, carg3, carg4, carg5, carg6) + cret = C._goglib_gstaudio1_AudioAggregator_virtual_aggregate_one_buffer(unsafe.Pointer(parentclass.aggregate_one_buffer), carg0, carg1, carg2, carg3, carg4, carg5, carg6) runtime.KeepAlive(aagg) runtime.KeepAlive(pad) runtime.KeepAlive(inbuf) @@ -3839,7 +3839,7 @@ func (aagg *AudioAggregatorInstance) ParentCreateOutputBuffer(numFrames uint) *g carg0 = (*C.GstAudioAggregator)(UnsafeAudioAggregatorToGlibNone(aagg)) carg1 = C.guint(numFrames) - cret = C._gotk4_gstaudio1_AudioAggregator_virtual_create_output_buffer(unsafe.Pointer(parentclass.create_output_buffer), carg0, carg1) + cret = C._goglib_gstaudio1_AudioAggregator_virtual_create_output_buffer(unsafe.Pointer(parentclass.create_output_buffer), carg0, carg1) runtime.KeepAlive(aagg) runtime.KeepAlive(numFrames) @@ -4007,10 +4007,10 @@ func UnsafeApplyAudioAggregatorPadOverrides[Instance AudioAggregatorPad](gclass pclass := (*C.GstAudioAggregatorPadClass)(gclass) if overrides.ConvertBuffer != nil { - pclass.convert_buffer = (*[0]byte)(C._gotk4_gstaudio1_AudioAggregatorPad_convert_buffer) + pclass.convert_buffer = (*[0]byte)(C._goglib_gstaudio1_AudioAggregatorPad_convert_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioAggregatorPad_convert_buffer", + "_goglib_gstaudio1_AudioAggregatorPad_convert_buffer", func(carg0 *C.GstAudioAggregatorPad, carg1 *C.GstAudioInfo, carg2 *C.GstAudioInfo, carg3 *C.GstBuffer) (cret *C.GstBuffer) { var pad Instance // go GstAudioAggregatorPad subclass var inInfo *AudioInfo // in, none, converted @@ -4033,10 +4033,10 @@ func UnsafeApplyAudioAggregatorPadOverrides[Instance AudioAggregatorPad](gclass } if overrides.UpdateConversionInfo != nil { - pclass.update_conversion_info = (*[0]byte)(C._gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info) + pclass.update_conversion_info = (*[0]byte)(C._goglib_gstaudio1_AudioAggregatorPad_update_conversion_info) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info", + "_goglib_gstaudio1_AudioAggregatorPad_update_conversion_info", func(carg0 *C.GstAudioAggregatorPad) { var pad Instance // go GstAudioAggregatorPad subclass @@ -4076,7 +4076,7 @@ func (pad *AudioAggregatorPadInstance) ParentConvertBuffer(inInfo *AudioInfo, ou carg2 = (*C.GstAudioInfo)(UnsafeAudioInfoToGlibNone(outInfo)) carg3 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstaudio1_AudioAggregatorPad_virtual_convert_buffer(unsafe.Pointer(parentclass.convert_buffer), carg0, carg1, carg2, carg3) + cret = C._goglib_gstaudio1_AudioAggregatorPad_virtual_convert_buffer(unsafe.Pointer(parentclass.convert_buffer), carg0, carg1, carg2, carg3) runtime.KeepAlive(pad) runtime.KeepAlive(inInfo) runtime.KeepAlive(outInfo) @@ -4101,7 +4101,7 @@ func (pad *AudioAggregatorPadInstance) ParentUpdateConversionInfo() { carg0 = (*C.GstAudioAggregatorPad)(UnsafeAudioAggregatorPadToGlibNone(pad)) - C._gotk4_gstaudio1_AudioAggregatorPad_virtual_update_conversion_info(unsafe.Pointer(parentclass.update_conversion_info), carg0) + C._goglib_gstaudio1_AudioAggregatorPad_virtual_update_conversion_info(unsafe.Pointer(parentclass.update_conversion_info), carg0) runtime.KeepAlive(pad) } @@ -4554,7 +4554,7 @@ func (sink *AudioBaseSinkInstance) SetCustomSlavingCallback(callback AudioBaseSi var carg3 C.GDestroyNotify // implicit carg0 = (*C.GstAudioBaseSink)(UnsafeAudioBaseSinkToGlibNone(sink)) - carg1 = (*[0]byte)(C._gotk4_gstaudio1_AudioBaseSinkCustomSlavingCallback) + carg1 = (*[0]byte)(C._goglib_gstaudio1_AudioBaseSinkCustomSlavingCallback) carg2 = C.gpointer(userdata.Register(callback)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -4685,10 +4685,10 @@ func UnsafeApplyAudioBaseSinkOverrides[Instance AudioBaseSink](gclass unsafe.Poi pclass := (*C.GstAudioBaseSinkClass)(gclass) if overrides.CreateRingbuffer != nil { - pclass.create_ringbuffer = (*[0]byte)(C._gotk4_gstaudio1_AudioBaseSink_create_ringbuffer) + pclass.create_ringbuffer = (*[0]byte)(C._goglib_gstaudio1_AudioBaseSink_create_ringbuffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioBaseSink_create_ringbuffer", + "_goglib_gstaudio1_AudioBaseSink_create_ringbuffer", func(carg0 *C.GstAudioBaseSink) (cret *C.GstAudioRingBuffer) { var sink Instance // go GstAudioBaseSink subclass var goret AudioRingBuffer // return, none, converted, nullable @@ -4707,10 +4707,10 @@ func UnsafeApplyAudioBaseSinkOverrides[Instance AudioBaseSink](gclass unsafe.Poi } if overrides.Payload != nil { - pclass.payload = (*[0]byte)(C._gotk4_gstaudio1_AudioBaseSink_payload) + pclass.payload = (*[0]byte)(C._goglib_gstaudio1_AudioBaseSink_payload) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioBaseSink_payload", + "_goglib_gstaudio1_AudioBaseSink_payload", func(carg0 *C.GstAudioBaseSink, carg1 *C.GstBuffer) (cret *C.GstBuffer) { var sink Instance // go GstAudioBaseSink subclass var buffer *gst.Buffer // in, none, converted @@ -4747,7 +4747,7 @@ func (sink *AudioBaseSinkInstance) ParentCreateRingbuffer() AudioRingBuffer { carg0 = (*C.GstAudioBaseSink)(UnsafeAudioBaseSinkToGlibNone(sink)) - cret = C._gotk4_gstaudio1_AudioBaseSink_virtual_create_ringbuffer(unsafe.Pointer(parentclass.create_ringbuffer), carg0) + cret = C._goglib_gstaudio1_AudioBaseSink_virtual_create_ringbuffer(unsafe.Pointer(parentclass.create_ringbuffer), carg0) runtime.KeepAlive(sink) var goret AudioRingBuffer @@ -4784,7 +4784,7 @@ func (sink *AudioBaseSinkInstance) ParentPayload(buffer *gst.Buffer) *gst.Buffer carg0 = (*C.GstAudioBaseSink)(UnsafeAudioBaseSinkToGlibNone(sink)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstaudio1_AudioBaseSink_virtual_payload(unsafe.Pointer(parentclass.payload), carg0, carg1) + cret = C._goglib_gstaudio1_AudioBaseSink_virtual_payload(unsafe.Pointer(parentclass.payload), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(buffer) @@ -5101,10 +5101,10 @@ func UnsafeApplyAudioBaseSrcOverrides[Instance AudioBaseSrc](gclass unsafe.Point pclass := (*C.GstAudioBaseSrcClass)(gclass) if overrides.CreateRingbuffer != nil { - pclass.create_ringbuffer = (*[0]byte)(C._gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer) + pclass.create_ringbuffer = (*[0]byte)(C._goglib_gstaudio1_AudioBaseSrc_create_ringbuffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer", + "_goglib_gstaudio1_AudioBaseSrc_create_ringbuffer", func(carg0 *C.GstAudioBaseSrc) (cret *C.GstAudioRingBuffer) { var src Instance // go GstAudioBaseSrc subclass var goret AudioRingBuffer // return, none, converted, nullable @@ -5141,7 +5141,7 @@ func (src *AudioBaseSrcInstance) ParentCreateRingbuffer() AudioRingBuffer { carg0 = (*C.GstAudioBaseSrc)(UnsafeAudioBaseSrcToGlibNone(src)) - cret = C._gotk4_gstaudio1_AudioBaseSrc_virtual_create_ringbuffer(unsafe.Pointer(parentclass.create_ringbuffer), carg0) + cret = C._goglib_gstaudio1_AudioBaseSrc_virtual_create_ringbuffer(unsafe.Pointer(parentclass.create_ringbuffer), carg0) runtime.KeepAlive(src) var goret AudioRingBuffer @@ -5430,10 +5430,10 @@ func UnsafeApplyAudioCdSrcOverrides[Instance AudioCdSrc](gclass unsafe.Pointer, pclass := (*C.GstAudioCdSrcClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstaudio1_AudioCdSrc_close) + pclass.close = (*[0]byte)(C._goglib_gstaudio1_AudioCdSrc_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioCdSrc_close", + "_goglib_gstaudio1_AudioCdSrc_close", func(carg0 *C.GstAudioCdSrc) { var src Instance // go GstAudioCdSrc subclass @@ -5445,10 +5445,10 @@ func UnsafeApplyAudioCdSrcOverrides[Instance AudioCdSrc](gclass unsafe.Pointer, } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstaudio1_AudioCdSrc_open) + pclass.open = (*[0]byte)(C._goglib_gstaudio1_AudioCdSrc_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioCdSrc_open", + "_goglib_gstaudio1_AudioCdSrc_open", func(carg0 *C.GstAudioCdSrc, carg1 *C.gchar) (cret C.gboolean) { var src Instance // go GstAudioCdSrc subclass var device string // in, none, string @@ -5469,10 +5469,10 @@ func UnsafeApplyAudioCdSrcOverrides[Instance AudioCdSrc](gclass unsafe.Pointer, } if overrides.ReadSector != nil { - pclass.read_sector = (*[0]byte)(C._gotk4_gstaudio1_AudioCdSrc_read_sector) + pclass.read_sector = (*[0]byte)(C._goglib_gstaudio1_AudioCdSrc_read_sector) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioCdSrc_read_sector", + "_goglib_gstaudio1_AudioCdSrc_read_sector", func(carg0 *C.GstAudioCdSrc, carg1 C.gint) (cret *C.GstBuffer) { var src Instance // go GstAudioCdSrc subclass var sector int32 // in, none, casted @@ -5502,7 +5502,7 @@ func (src *AudioCdSrcInstance) ParentClose() { carg0 = (*C.GstAudioCdSrc)(UnsafeAudioCdSrcToGlibNone(src)) - C._gotk4_gstaudio1_AudioCdSrc_virtual_close(unsafe.Pointer(parentclass.close), carg0) + C._goglib_gstaudio1_AudioCdSrc_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(src) } @@ -5529,7 +5529,7 @@ func (src *AudioCdSrcInstance) ParentOpen(device string) bool { carg1 = (*C.gchar)(unsafe.Pointer(C.CString(device))) defer C.free(unsafe.Pointer(carg1)) - cret = C._gotk4_gstaudio1_AudioCdSrc_virtual_open(unsafe.Pointer(parentclass.open), carg0, carg1) + cret = C._goglib_gstaudio1_AudioCdSrc_virtual_open(unsafe.Pointer(parentclass.open), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(device) @@ -5564,7 +5564,7 @@ func (src *AudioCdSrcInstance) ParentReadSector(sector int32) *gst.Buffer { carg0 = (*C.GstAudioCdSrc)(UnsafeAudioCdSrcToGlibNone(src)) carg1 = C.gint(sector) - cret = C._gotk4_gstaudio1_AudioCdSrc_virtual_read_sector(unsafe.Pointer(parentclass.read_sector), carg0, carg1) + cret = C._goglib_gstaudio1_AudioCdSrc_virtual_read_sector(unsafe.Pointer(parentclass.read_sector), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(sector) @@ -5743,7 +5743,7 @@ func NewAudioClock(name string, fn AudioClockGetTimeFunc) gst.Clock { carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) defer C.free(unsafe.Pointer(carg1)) - carg2 = (*[0]byte)(C._gotk4_gstaudio1_AudioClockGetTimeFunc) + carg2 = (*[0]byte)(C._goglib_gstaudio1_AudioClockGetTimeFunc) carg3 = C.gpointer(userdata.Register(fn)) carg4 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -6798,7 +6798,7 @@ func (dec *AudioDecoderInstance) GetAllocator() (gst.Allocator, gst.AllocationPa } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -7755,10 +7755,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point pclass := (*C.GstAudioDecoderClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_close) + pclass.close = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_close", + "_goglib_gstaudio1_AudioDecoder_close", func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var goret bool // return @@ -7777,10 +7777,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_decide_allocation", + "_goglib_gstaudio1_AudioDecoder_decide_allocation", func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var query *gst.Query // in, none, converted @@ -7801,10 +7801,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Flush != nil { - pclass.flush = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_flush) + pclass.flush = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_flush) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_flush", + "_goglib_gstaudio1_AudioDecoder_flush", func(carg0 *C.GstAudioDecoder, carg1 C.gboolean) { var dec Instance // go GstAudioDecoder subclass var hard bool // in @@ -7820,10 +7820,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Getcaps != nil { - pclass.getcaps = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_getcaps) + pclass.getcaps = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_getcaps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_getcaps", + "_goglib_gstaudio1_AudioDecoder_getcaps", func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var dec Instance // go GstAudioDecoder subclass var filter *gst.Caps // in, none, converted @@ -7842,10 +7842,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.HandleFrame != nil { - pclass.handle_frame = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_handle_frame) + pclass.handle_frame = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_handle_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_handle_frame", + "_goglib_gstaudio1_AudioDecoder_handle_frame", func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var dec Instance // go GstAudioDecoder subclass var buffer *gst.Buffer // in, none, converted @@ -7864,10 +7864,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Negotiate != nil { - pclass.negotiate = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_negotiate) + pclass.negotiate = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_negotiate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_negotiate", + "_goglib_gstaudio1_AudioDecoder_negotiate", func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var goret bool // return @@ -7886,10 +7886,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_open) + pclass.open = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_open", + "_goglib_gstaudio1_AudioDecoder_open", func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var goret bool // return @@ -7908,10 +7908,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Parse != nil { - pclass.parse = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_parse) + pclass.parse = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_parse) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_parse", + "_goglib_gstaudio1_AudioDecoder_parse", func(carg0 *C.GstAudioDecoder, carg1 *C.GstAdapter, carg2 *C.gint, carg3 *C.gint) (cret C.GstFlowReturn) { var dec Instance // go GstAudioDecoder subclass var adapter gstbase.Adapter // in, none, converted @@ -7934,10 +7934,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_propose_allocation", + "_goglib_gstaudio1_AudioDecoder_propose_allocation", func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var query *gst.Query // in, none, converted @@ -7958,10 +7958,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.SetFormat != nil { - pclass.set_format = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_set_format) + pclass.set_format = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_set_format) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_set_format", + "_goglib_gstaudio1_AudioDecoder_set_format", func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var caps *gst.Caps // in, none, converted @@ -7982,10 +7982,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_sink_event", + "_goglib_gstaudio1_AudioDecoder_sink_event", func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var event *gst.Event // in, none, converted @@ -8006,10 +8006,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.SinkQuery != nil { - pclass.sink_query = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_sink_query) + pclass.sink_query = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_sink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_sink_query", + "_goglib_gstaudio1_AudioDecoder_sink_query", func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var query *gst.Query // in, none, converted @@ -8030,10 +8030,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_src_event", + "_goglib_gstaudio1_AudioDecoder_src_event", func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var event *gst.Event // in, none, converted @@ -8054,10 +8054,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.SrcQuery != nil { - pclass.src_query = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_src_query) + pclass.src_query = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_src_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_src_query", + "_goglib_gstaudio1_AudioDecoder_src_query", func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var query *gst.Query // in, none, converted @@ -8078,10 +8078,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_start) + pclass.start = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_start", + "_goglib_gstaudio1_AudioDecoder_start", func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var goret bool // return @@ -8100,10 +8100,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_stop) + pclass.stop = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_stop", + "_goglib_gstaudio1_AudioDecoder_stop", func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var dec Instance // go GstAudioDecoder subclass var goret bool // return @@ -8122,10 +8122,10 @@ func UnsafeApplyAudioDecoderOverrides[Instance AudioDecoder](gclass unsafe.Point } if overrides.TransformMeta != nil { - pclass.transform_meta = (*[0]byte)(C._gotk4_gstaudio1_AudioDecoder_transform_meta) + pclass.transform_meta = (*[0]byte)(C._goglib_gstaudio1_AudioDecoder_transform_meta) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioDecoder_transform_meta", + "_goglib_gstaudio1_AudioDecoder_transform_meta", func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { var enc Instance // go GstAudioDecoder subclass var outbuf *gst.Buffer // in, none, converted @@ -8168,7 +8168,7 @@ func (dec *AudioDecoderInstance) ParentClose() bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(dec) var goret bool @@ -8207,7 +8207,7 @@ func (dec *AudioDecoderInstance) ParentDecideAllocation(query *gst.Query) bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(query) @@ -8243,7 +8243,7 @@ func (dec *AudioDecoderInstance) ParentFlush(hard bool) { carg1 = C.TRUE } - C._gotk4_gstaudio1_AudioDecoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0, carg1) + C._goglib_gstaudio1_AudioDecoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(hard) } @@ -8274,7 +8274,7 @@ func (dec *AudioDecoderInstance) ParentGetcaps(filter *gst.Caps) *gst.Caps { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(filter) @@ -8311,7 +8311,7 @@ func (dec *AudioDecoderInstance) ParentHandleFrame(buffer *gst.Buffer) gst.FlowR carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(buffer) @@ -8340,7 +8340,7 @@ func (dec *AudioDecoderInstance) ParentNegotiate() bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) runtime.KeepAlive(dec) var goret bool @@ -8370,7 +8370,7 @@ func (dec *AudioDecoderInstance) ParentOpen() bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) runtime.KeepAlive(dec) var goret bool @@ -8406,7 +8406,7 @@ func (dec *AudioDecoderInstance) ParentParse(adapter gstbase.Adapter) (int32, in carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstAdapter)(gstbase.UnsafeAdapterToGlibNone(adapter)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_parse(unsafe.Pointer(parentclass.parse), carg0, carg1, &carg2, &carg3) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_parse(unsafe.Pointer(parentclass.parse), carg0, carg1, &carg2, &carg3) runtime.KeepAlive(dec) runtime.KeepAlive(adapter) @@ -8446,7 +8446,7 @@ func (dec *AudioDecoderInstance) ParentProposeAllocation(query *gst.Query) bool carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(query) @@ -8481,7 +8481,7 @@ func (dec *AudioDecoderInstance) ParentSetFormat(caps *gst.Caps) bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(caps) @@ -8518,7 +8518,7 @@ func (dec *AudioDecoderInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(event) @@ -8557,7 +8557,7 @@ func (dec *AudioDecoderInstance) ParentSinkQuery(query *gst.Query) bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(query) @@ -8594,7 +8594,7 @@ func (dec *AudioDecoderInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(event) @@ -8633,7 +8633,7 @@ func (dec *AudioDecoderInstance) ParentSrcQuery(query *gst.Query) bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) runtime.KeepAlive(dec) runtime.KeepAlive(query) @@ -8664,7 +8664,7 @@ func (dec *AudioDecoderInstance) ParentStart() bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(dec) var goret bool @@ -8694,7 +8694,7 @@ func (dec *AudioDecoderInstance) ParentStop() bool { carg0 = (*C.GstAudioDecoder)(UnsafeAudioDecoderToGlibNone(dec)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(dec) var goret bool @@ -8738,7 +8738,7 @@ func (enc *AudioDecoderInstance) ParentTransformMeta(outbuf *gst.Buffer, meta *g carg2 = (*C.GstMeta)(gst.UnsafeMetaToGlibNone(meta)) carg3 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(inbuf)) - cret = C._gotk4_gstaudio1_AudioDecoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2, carg3) + cret = C._goglib_gstaudio1_AudioDecoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2, carg3) runtime.KeepAlive(enc) runtime.KeepAlive(outbuf) runtime.KeepAlive(meta) @@ -9611,7 +9611,7 @@ func (enc *AudioEncoderInstance) GetAllocator() (gst.Allocator, gst.AllocationPa } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -10539,10 +10539,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point pclass := (*C.GstAudioEncoderClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_close) + pclass.close = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_close", + "_goglib_gstaudio1_AudioEncoder_close", func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var goret bool // return @@ -10561,10 +10561,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_decide_allocation", + "_goglib_gstaudio1_AudioEncoder_decide_allocation", func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var query *gst.Query // in, none, converted @@ -10585,10 +10585,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.Flush != nil { - pclass.flush = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_flush) + pclass.flush = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_flush) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_flush", + "_goglib_gstaudio1_AudioEncoder_flush", func(carg0 *C.GstAudioEncoder) { var enc Instance // go GstAudioEncoder subclass @@ -10600,10 +10600,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.Getcaps != nil { - pclass.getcaps = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_getcaps) + pclass.getcaps = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_getcaps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_getcaps", + "_goglib_gstaudio1_AudioEncoder_getcaps", func(carg0 *C.GstAudioEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var enc Instance // go GstAudioEncoder subclass var filter *gst.Caps // in, none, converted @@ -10622,10 +10622,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.HandleFrame != nil { - pclass.handle_frame = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_handle_frame) + pclass.handle_frame = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_handle_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_handle_frame", + "_goglib_gstaudio1_AudioEncoder_handle_frame", func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var enc Instance // go GstAudioEncoder subclass var buffer *gst.Buffer // in, none, converted @@ -10644,10 +10644,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.Negotiate != nil { - pclass.negotiate = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_negotiate) + pclass.negotiate = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_negotiate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_negotiate", + "_goglib_gstaudio1_AudioEncoder_negotiate", func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var goret bool // return @@ -10666,10 +10666,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_open) + pclass.open = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_open", + "_goglib_gstaudio1_AudioEncoder_open", func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var goret bool // return @@ -10688,10 +10688,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_propose_allocation", + "_goglib_gstaudio1_AudioEncoder_propose_allocation", func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var query *gst.Query // in, none, converted @@ -10712,10 +10712,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.SetFormat != nil { - pclass.set_format = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_set_format) + pclass.set_format = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_set_format) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_set_format", + "_goglib_gstaudio1_AudioEncoder_set_format", func(carg0 *C.GstAudioEncoder, carg1 *C.GstAudioInfo) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var info *AudioInfo // in, none, converted @@ -10736,10 +10736,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_sink_event", + "_goglib_gstaudio1_AudioEncoder_sink_event", func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var event *gst.Event // in, none, converted @@ -10760,10 +10760,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.SinkQuery != nil { - pclass.sink_query = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_sink_query) + pclass.sink_query = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_sink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_sink_query", + "_goglib_gstaudio1_AudioEncoder_sink_query", func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var encoder Instance // go GstAudioEncoder subclass var query *gst.Query // in, none, converted @@ -10784,10 +10784,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_src_event", + "_goglib_gstaudio1_AudioEncoder_src_event", func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var event *gst.Event // in, none, converted @@ -10808,10 +10808,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.SrcQuery != nil { - pclass.src_query = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_src_query) + pclass.src_query = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_src_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_src_query", + "_goglib_gstaudio1_AudioEncoder_src_query", func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var encoder Instance // go GstAudioEncoder subclass var query *gst.Query // in, none, converted @@ -10832,10 +10832,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_start) + pclass.start = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_start", + "_goglib_gstaudio1_AudioEncoder_start", func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var goret bool // return @@ -10854,10 +10854,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_stop) + pclass.stop = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_stop", + "_goglib_gstaudio1_AudioEncoder_stop", func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var goret bool // return @@ -10876,10 +10876,10 @@ func UnsafeApplyAudioEncoderOverrides[Instance AudioEncoder](gclass unsafe.Point } if overrides.TransformMeta != nil { - pclass.transform_meta = (*[0]byte)(C._gotk4_gstaudio1_AudioEncoder_transform_meta) + pclass.transform_meta = (*[0]byte)(C._goglib_gstaudio1_AudioEncoder_transform_meta) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioEncoder_transform_meta", + "_goglib_gstaudio1_AudioEncoder_transform_meta", func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { var enc Instance // go GstAudioEncoder subclass var outbuf *gst.Buffer // in, none, converted @@ -10922,7 +10922,7 @@ func (enc *AudioEncoderInstance) ParentClose() bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(enc) var goret bool @@ -10961,7 +10961,7 @@ func (enc *AudioEncoderInstance) ParentDecideAllocation(query *gst.Query) bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(query) @@ -10987,7 +10987,7 @@ func (enc *AudioEncoderInstance) ParentFlush() { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) - C._gotk4_gstaudio1_AudioEncoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) + C._goglib_gstaudio1_AudioEncoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) runtime.KeepAlive(enc) } @@ -11017,7 +11017,7 @@ func (enc *AudioEncoderInstance) ParentGetcaps(filter *gst.Caps) *gst.Caps { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(filter) @@ -11055,7 +11055,7 @@ func (enc *AudioEncoderInstance) ParentHandleFrame(buffer *gst.Buffer) gst.FlowR carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(buffer) @@ -11084,7 +11084,7 @@ func (enc *AudioEncoderInstance) ParentNegotiate() bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) runtime.KeepAlive(enc) var goret bool @@ -11114,7 +11114,7 @@ func (enc *AudioEncoderInstance) ParentOpen() bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) runtime.KeepAlive(enc) var goret bool @@ -11151,7 +11151,7 @@ func (enc *AudioEncoderInstance) ParentProposeAllocation(query *gst.Query) bool carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(query) @@ -11187,7 +11187,7 @@ func (enc *AudioEncoderInstance) ParentSetFormat(info *AudioInfo) bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstAudioInfo)(UnsafeAudioInfoToGlibNone(info)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(info) @@ -11224,7 +11224,7 @@ func (enc *AudioEncoderInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(event) @@ -11263,7 +11263,7 @@ func (encoder *AudioEncoderInstance) ParentSinkQuery(query *gst.Query) bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(encoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(query) @@ -11300,7 +11300,7 @@ func (enc *AudioEncoderInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(event) @@ -11339,7 +11339,7 @@ func (encoder *AudioEncoderInstance) ParentSrcQuery(query *gst.Query) bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(encoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(query) @@ -11370,7 +11370,7 @@ func (enc *AudioEncoderInstance) ParentStart() bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(enc) var goret bool @@ -11400,7 +11400,7 @@ func (enc *AudioEncoderInstance) ParentStop() bool { carg0 = (*C.GstAudioEncoder)(UnsafeAudioEncoderToGlibNone(enc)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(enc) var goret bool @@ -11444,7 +11444,7 @@ func (enc *AudioEncoderInstance) ParentTransformMeta(outbuf *gst.Buffer, meta *g carg2 = (*C.GstMeta)(gst.UnsafeMetaToGlibNone(meta)) carg3 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(inbuf)) - cret = C._gotk4_gstaudio1_AudioEncoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2, carg3) + cret = C._goglib_gstaudio1_AudioEncoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2, carg3) runtime.KeepAlive(enc) runtime.KeepAlive(outbuf) runtime.KeepAlive(meta) @@ -11613,10 +11613,10 @@ func UnsafeApplyAudioFilterOverrides[Instance AudioFilter](gclass unsafe.Pointer pclass := (*C.GstAudioFilterClass)(gclass) if overrides.Setup != nil { - pclass.setup = (*[0]byte)(C._gotk4_gstaudio1_AudioFilter_setup) + pclass.setup = (*[0]byte)(C._goglib_gstaudio1_AudioFilter_setup) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioFilter_setup", + "_goglib_gstaudio1_AudioFilter_setup", func(carg0 *C.GstAudioFilter, carg1 *C.GstAudioInfo) (cret C.gboolean) { var filter Instance // go GstAudioFilter subclass var info *AudioInfo // in, none, converted @@ -11659,7 +11659,7 @@ func (filter *AudioFilterInstance) ParentSetup(info *AudioInfo) bool { carg0 = (*C.GstAudioFilter)(UnsafeAudioFilterToGlibNone(filter)) carg1 = (*C.GstAudioInfo)(UnsafeAudioInfoToGlibNone(info)) - cret = C._gotk4_gstaudio1_AudioFilter_virtual_setup(unsafe.Pointer(parentclass.setup), carg0, carg1) + cret = C._goglib_gstaudio1_AudioFilter_virtual_setup(unsafe.Pointer(parentclass.setup), carg0, carg1) runtime.KeepAlive(filter) runtime.KeepAlive(info) @@ -12746,7 +12746,7 @@ func (buf *AudioRingBufferInstance) Pause() bool { func (buf *AudioRingBufferInstance) Read(sample uint64, data []uint8) (gst.ClockTime, uint) { var carg0 *C.GstAudioRingBuffer // in, none, converted var carg1 C.guint64 // in, none, casted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var carg4 C.GstClockTime // out, full, casted, alias var cret C.guint // return, none, casted @@ -12756,7 +12756,7 @@ func (buf *AudioRingBufferInstance) Read(sample uint64, data []uint8) (gst.Clock _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_audio_ring_buffer_read(carg0, carg1, carg2, carg3, &carg4) runtime.KeepAlive(buf) @@ -12840,7 +12840,7 @@ func (buf *AudioRingBufferInstance) SetCallbackFull(cb AudioRingBufferCallback) carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) if cb != nil { - carg1 = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBufferCallback) + carg1 = (*[0]byte)(C._goglib_gstaudio1_AudioRingBufferCallback) carg2 = C.gpointer(userdata.Register(cb)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) } @@ -13131,10 +13131,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe pclass := (*C.GstAudioRingBufferClass)(gclass) if overrides.Acquire != nil { - pclass.acquire = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_acquire) + pclass.acquire = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_acquire) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_acquire", + "_goglib_gstaudio1_AudioRingBuffer_acquire", func(carg0 *C.GstAudioRingBuffer, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var spec *AudioRingBufferSpec // in, none, converted @@ -13155,10 +13155,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Activate != nil { - pclass.activate = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_activate) + pclass.activate = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_activate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_activate", + "_goglib_gstaudio1_AudioRingBuffer_activate", func(carg0 *C.GstAudioRingBuffer, carg1 C.gboolean) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var active bool // in @@ -13181,10 +13181,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.ClearAll != nil { - pclass.clear_all = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_clear_all) + pclass.clear_all = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_clear_all) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_clear_all", + "_goglib_gstaudio1_AudioRingBuffer_clear_all", func(carg0 *C.GstAudioRingBuffer) { var buf Instance // go GstAudioRingBuffer subclass @@ -13196,10 +13196,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.CloseDevice != nil { - pclass.close_device = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_close_device) + pclass.close_device = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_close_device) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_close_device", + "_goglib_gstaudio1_AudioRingBuffer_close_device", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13218,10 +13218,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Delay != nil { - pclass.delay = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_delay) + pclass.delay = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_delay) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_delay", + "_goglib_gstaudio1_AudioRingBuffer_delay", func(carg0 *C.GstAudioRingBuffer) (cret C.guint) { var buf Instance // go GstAudioRingBuffer subclass var goret uint // return, none, casted @@ -13238,10 +13238,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.OpenDevice != nil { - pclass.open_device = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_open_device) + pclass.open_device = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_open_device) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_open_device", + "_goglib_gstaudio1_AudioRingBuffer_open_device", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13260,10 +13260,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Pause != nil { - pclass.pause = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_pause) + pclass.pause = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_pause) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_pause", + "_goglib_gstaudio1_AudioRingBuffer_pause", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13282,10 +13282,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Release != nil { - pclass.release = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_release) + pclass.release = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_release) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_release", + "_goglib_gstaudio1_AudioRingBuffer_release", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13304,10 +13304,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Resume != nil { - pclass.resume = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_resume) + pclass.resume = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_resume) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_resume", + "_goglib_gstaudio1_AudioRingBuffer_resume", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13326,10 +13326,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_start) + pclass.start = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_start", + "_goglib_gstaudio1_AudioRingBuffer_start", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13348,10 +13348,10 @@ func UnsafeApplyAudioRingBufferOverrides[Instance AudioRingBuffer](gclass unsafe } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstaudio1_AudioRingBuffer_stop) + pclass.stop = (*[0]byte)(C._goglib_gstaudio1_AudioRingBuffer_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioRingBuffer_stop", + "_goglib_gstaudio1_AudioRingBuffer_stop", func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var buf Instance // go GstAudioRingBuffer subclass var goret bool // return @@ -13394,7 +13394,7 @@ func (buf *AudioRingBufferInstance) ParentAcquire(spec *AudioRingBufferSpec) boo carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) carg1 = (*C.GstAudioRingBufferSpec)(UnsafeAudioRingBufferSpecToGlibNone(spec)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_acquire(unsafe.Pointer(parentclass.acquire), carg0, carg1) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_acquire(unsafe.Pointer(parentclass.acquire), carg0, carg1) runtime.KeepAlive(buf) runtime.KeepAlive(spec) @@ -13433,7 +13433,7 @@ func (buf *AudioRingBufferInstance) ParentActivate(active bool) bool { carg1 = C.TRUE } - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_activate(unsafe.Pointer(parentclass.activate), carg0, carg1) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_activate(unsafe.Pointer(parentclass.activate), carg0, carg1) runtime.KeepAlive(buf) runtime.KeepAlive(active) @@ -13459,7 +13459,7 @@ func (buf *AudioRingBufferInstance) ParentClearAll() { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - C._gotk4_gstaudio1_AudioRingBuffer_virtual_clear_all(unsafe.Pointer(parentclass.clear_all), carg0) + C._goglib_gstaudio1_AudioRingBuffer_virtual_clear_all(unsafe.Pointer(parentclass.clear_all), carg0) runtime.KeepAlive(buf) } @@ -13480,7 +13480,7 @@ func (buf *AudioRingBufferInstance) ParentCloseDevice() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_close_device(unsafe.Pointer(parentclass.close_device), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_close_device(unsafe.Pointer(parentclass.close_device), carg0) runtime.KeepAlive(buf) var goret bool @@ -13517,7 +13517,7 @@ func (buf *AudioRingBufferInstance) ParentDelay() uint { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_delay(unsafe.Pointer(parentclass.delay), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_delay(unsafe.Pointer(parentclass.delay), carg0) runtime.KeepAlive(buf) var goret uint @@ -13545,7 +13545,7 @@ func (buf *AudioRingBufferInstance) ParentOpenDevice() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_open_device(unsafe.Pointer(parentclass.open_device), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_open_device(unsafe.Pointer(parentclass.open_device), carg0) runtime.KeepAlive(buf) var goret bool @@ -13573,7 +13573,7 @@ func (buf *AudioRingBufferInstance) ParentPause() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_pause(unsafe.Pointer(parentclass.pause), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_pause(unsafe.Pointer(parentclass.pause), carg0) runtime.KeepAlive(buf) var goret bool @@ -13601,7 +13601,7 @@ func (buf *AudioRingBufferInstance) ParentRelease() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_release(unsafe.Pointer(parentclass.release), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_release(unsafe.Pointer(parentclass.release), carg0) runtime.KeepAlive(buf) var goret bool @@ -13629,7 +13629,7 @@ func (buf *AudioRingBufferInstance) ParentResume() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_resume(unsafe.Pointer(parentclass.resume), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_resume(unsafe.Pointer(parentclass.resume), carg0) runtime.KeepAlive(buf) var goret bool @@ -13657,7 +13657,7 @@ func (buf *AudioRingBufferInstance) ParentStart() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(buf) var goret bool @@ -13685,7 +13685,7 @@ func (buf *AudioRingBufferInstance) ParentStop() bool { carg0 = (*C.GstAudioRingBuffer)(UnsafeAudioRingBufferToGlibNone(buf)) - cret = C._gotk4_gstaudio1_AudioRingBuffer_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstaudio1_AudioRingBuffer_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(buf) var goret bool @@ -13983,10 +13983,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov pclass := (*C.GstAudioSinkClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_close) + pclass.close = (*[0]byte)(C._goglib_gstaudio1_AudioSink_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_close", + "_goglib_gstaudio1_AudioSink_close", func(carg0 *C.GstAudioSink) (cret C.gboolean) { var sink Instance // go GstAudioSink subclass var goret bool // return @@ -14005,10 +14005,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Delay != nil { - pclass.delay = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_delay) + pclass.delay = (*[0]byte)(C._goglib_gstaudio1_AudioSink_delay) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_delay", + "_goglib_gstaudio1_AudioSink_delay", func(carg0 *C.GstAudioSink) (cret C.guint) { var sink Instance // go GstAudioSink subclass var goret uint // return, none, casted @@ -14025,10 +14025,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_open) + pclass.open = (*[0]byte)(C._goglib_gstaudio1_AudioSink_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_open", + "_goglib_gstaudio1_AudioSink_open", func(carg0 *C.GstAudioSink) (cret C.gboolean) { var sink Instance // go GstAudioSink subclass var goret bool // return @@ -14047,10 +14047,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Pause != nil { - pclass.pause = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_pause) + pclass.pause = (*[0]byte)(C._goglib_gstaudio1_AudioSink_pause) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_pause", + "_goglib_gstaudio1_AudioSink_pause", func(carg0 *C.GstAudioSink) { var sink Instance // go GstAudioSink subclass @@ -14062,10 +14062,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Prepare != nil { - pclass.prepare = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_prepare) + pclass.prepare = (*[0]byte)(C._goglib_gstaudio1_AudioSink_prepare) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_prepare", + "_goglib_gstaudio1_AudioSink_prepare", func(carg0 *C.GstAudioSink, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { var sink Instance // go GstAudioSink subclass var spec *AudioRingBufferSpec // in, none, converted @@ -14086,10 +14086,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Reset != nil { - pclass.reset = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_reset) + pclass.reset = (*[0]byte)(C._goglib_gstaudio1_AudioSink_reset) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_reset", + "_goglib_gstaudio1_AudioSink_reset", func(carg0 *C.GstAudioSink) { var sink Instance // go GstAudioSink subclass @@ -14101,10 +14101,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Resume != nil { - pclass.resume = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_resume) + pclass.resume = (*[0]byte)(C._goglib_gstaudio1_AudioSink_resume) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_resume", + "_goglib_gstaudio1_AudioSink_resume", func(carg0 *C.GstAudioSink) { var sink Instance // go GstAudioSink subclass @@ -14116,10 +14116,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_stop) + pclass.stop = (*[0]byte)(C._goglib_gstaudio1_AudioSink_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_stop", + "_goglib_gstaudio1_AudioSink_stop", func(carg0 *C.GstAudioSink) { var sink Instance // go GstAudioSink subclass @@ -14131,10 +14131,10 @@ func UnsafeApplyAudioSinkOverrides[Instance AudioSink](gclass unsafe.Pointer, ov } if overrides.Unprepare != nil { - pclass.unprepare = (*[0]byte)(C._gotk4_gstaudio1_AudioSink_unprepare) + pclass.unprepare = (*[0]byte)(C._goglib_gstaudio1_AudioSink_unprepare) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSink_unprepare", + "_goglib_gstaudio1_AudioSink_unprepare", func(carg0 *C.GstAudioSink) (cret C.gboolean) { var sink Instance // go GstAudioSink subclass var goret bool // return @@ -14169,7 +14169,7 @@ func (sink *AudioSinkInstance) ParentClose() bool { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - cret = C._gotk4_gstaudio1_AudioSink_virtual_close(unsafe.Pointer(parentclass.close), carg0) + cret = C._goglib_gstaudio1_AudioSink_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(sink) var goret bool @@ -14198,7 +14198,7 @@ func (sink *AudioSinkInstance) ParentDelay() uint { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - cret = C._gotk4_gstaudio1_AudioSink_virtual_delay(unsafe.Pointer(parentclass.delay), carg0) + cret = C._goglib_gstaudio1_AudioSink_virtual_delay(unsafe.Pointer(parentclass.delay), carg0) runtime.KeepAlive(sink) var goret uint @@ -14225,7 +14225,7 @@ func (sink *AudioSinkInstance) ParentOpen() bool { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - cret = C._gotk4_gstaudio1_AudioSink_virtual_open(unsafe.Pointer(parentclass.open), carg0) + cret = C._goglib_gstaudio1_AudioSink_virtual_open(unsafe.Pointer(parentclass.open), carg0) runtime.KeepAlive(sink) var goret bool @@ -14250,7 +14250,7 @@ func (sink *AudioSinkInstance) ParentPause() { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - C._gotk4_gstaudio1_AudioSink_virtual_pause(unsafe.Pointer(parentclass.pause), carg0) + C._goglib_gstaudio1_AudioSink_virtual_pause(unsafe.Pointer(parentclass.pause), carg0) runtime.KeepAlive(sink) } @@ -14276,7 +14276,7 @@ func (sink *AudioSinkInstance) ParentPrepareAudioSink(spec *AudioRingBufferSpec) carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) carg1 = (*C.GstAudioRingBufferSpec)(UnsafeAudioRingBufferSpecToGlibNone(spec)) - cret = C._gotk4_gstaudio1_AudioSink_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, carg1) + cret = C._goglib_gstaudio1_AudioSink_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(spec) @@ -14302,7 +14302,7 @@ func (sink *AudioSinkInstance) ParentReset() { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - C._gotk4_gstaudio1_AudioSink_virtual_reset(unsafe.Pointer(parentclass.reset), carg0) + C._goglib_gstaudio1_AudioSink_virtual_reset(unsafe.Pointer(parentclass.reset), carg0) runtime.KeepAlive(sink) } @@ -14317,7 +14317,7 @@ func (sink *AudioSinkInstance) ParentResume() { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - C._gotk4_gstaudio1_AudioSink_virtual_resume(unsafe.Pointer(parentclass.resume), carg0) + C._goglib_gstaudio1_AudioSink_virtual_resume(unsafe.Pointer(parentclass.resume), carg0) runtime.KeepAlive(sink) } @@ -14335,7 +14335,7 @@ func (sink *AudioSinkInstance) ParentStopAudioSink() { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - C._gotk4_gstaudio1_AudioSink_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + C._goglib_gstaudio1_AudioSink_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(sink) } @@ -14355,7 +14355,7 @@ func (sink *AudioSinkInstance) ParentUnprepare() bool { carg0 = (*C.GstAudioSink)(UnsafeAudioSinkToGlibNone(sink)) - cret = C._gotk4_gstaudio1_AudioSink_virtual_unprepare(unsafe.Pointer(parentclass.unprepare), carg0) + cret = C._goglib_gstaudio1_AudioSink_virtual_unprepare(unsafe.Pointer(parentclass.unprepare), carg0) runtime.KeepAlive(sink) var goret bool @@ -14603,10 +14603,10 @@ func UnsafeApplyAudioSrcOverrides[Instance AudioSrc](gclass unsafe.Pointer, over pclass := (*C.GstAudioSrcClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstaudio1_AudioSrc_close) + pclass.close = (*[0]byte)(C._goglib_gstaudio1_AudioSrc_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSrc_close", + "_goglib_gstaudio1_AudioSrc_close", func(carg0 *C.GstAudioSrc) (cret C.gboolean) { var src Instance // go GstAudioSrc subclass var goret bool // return @@ -14625,10 +14625,10 @@ func UnsafeApplyAudioSrcOverrides[Instance AudioSrc](gclass unsafe.Pointer, over } if overrides.Delay != nil { - pclass.delay = (*[0]byte)(C._gotk4_gstaudio1_AudioSrc_delay) + pclass.delay = (*[0]byte)(C._goglib_gstaudio1_AudioSrc_delay) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSrc_delay", + "_goglib_gstaudio1_AudioSrc_delay", func(carg0 *C.GstAudioSrc) (cret C.guint) { var src Instance // go GstAudioSrc subclass var goret uint // return, none, casted @@ -14645,10 +14645,10 @@ func UnsafeApplyAudioSrcOverrides[Instance AudioSrc](gclass unsafe.Pointer, over } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstaudio1_AudioSrc_open) + pclass.open = (*[0]byte)(C._goglib_gstaudio1_AudioSrc_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSrc_open", + "_goglib_gstaudio1_AudioSrc_open", func(carg0 *C.GstAudioSrc) (cret C.gboolean) { var src Instance // go GstAudioSrc subclass var goret bool // return @@ -14667,10 +14667,10 @@ func UnsafeApplyAudioSrcOverrides[Instance AudioSrc](gclass unsafe.Pointer, over } if overrides.Prepare != nil { - pclass.prepare = (*[0]byte)(C._gotk4_gstaudio1_AudioSrc_prepare) + pclass.prepare = (*[0]byte)(C._goglib_gstaudio1_AudioSrc_prepare) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSrc_prepare", + "_goglib_gstaudio1_AudioSrc_prepare", func(carg0 *C.GstAudioSrc, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { var src Instance // go GstAudioSrc subclass var spec *AudioRingBufferSpec // in, none, converted @@ -14691,10 +14691,10 @@ func UnsafeApplyAudioSrcOverrides[Instance AudioSrc](gclass unsafe.Pointer, over } if overrides.Reset != nil { - pclass.reset = (*[0]byte)(C._gotk4_gstaudio1_AudioSrc_reset) + pclass.reset = (*[0]byte)(C._goglib_gstaudio1_AudioSrc_reset) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSrc_reset", + "_goglib_gstaudio1_AudioSrc_reset", func(carg0 *C.GstAudioSrc) { var src Instance // go GstAudioSrc subclass @@ -14706,10 +14706,10 @@ func UnsafeApplyAudioSrcOverrides[Instance AudioSrc](gclass unsafe.Pointer, over } if overrides.Unprepare != nil { - pclass.unprepare = (*[0]byte)(C._gotk4_gstaudio1_AudioSrc_unprepare) + pclass.unprepare = (*[0]byte)(C._goglib_gstaudio1_AudioSrc_unprepare) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstaudio1_AudioSrc_unprepare", + "_goglib_gstaudio1_AudioSrc_unprepare", func(carg0 *C.GstAudioSrc) (cret C.gboolean) { var src Instance // go GstAudioSrc subclass var goret bool // return @@ -14744,7 +14744,7 @@ func (src *AudioSrcInstance) ParentClose() bool { carg0 = (*C.GstAudioSrc)(UnsafeAudioSrcToGlibNone(src)) - cret = C._gotk4_gstaudio1_AudioSrc_virtual_close(unsafe.Pointer(parentclass.close), carg0) + cret = C._goglib_gstaudio1_AudioSrc_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(src) var goret bool @@ -14772,7 +14772,7 @@ func (src *AudioSrcInstance) ParentDelay() uint { carg0 = (*C.GstAudioSrc)(UnsafeAudioSrcToGlibNone(src)) - cret = C._gotk4_gstaudio1_AudioSrc_virtual_delay(unsafe.Pointer(parentclass.delay), carg0) + cret = C._goglib_gstaudio1_AudioSrc_virtual_delay(unsafe.Pointer(parentclass.delay), carg0) runtime.KeepAlive(src) var goret uint @@ -14798,7 +14798,7 @@ func (src *AudioSrcInstance) ParentOpen() bool { carg0 = (*C.GstAudioSrc)(UnsafeAudioSrcToGlibNone(src)) - cret = C._gotk4_gstaudio1_AudioSrc_virtual_open(unsafe.Pointer(parentclass.open), carg0) + cret = C._goglib_gstaudio1_AudioSrc_virtual_open(unsafe.Pointer(parentclass.open), carg0) runtime.KeepAlive(src) var goret bool @@ -14832,7 +14832,7 @@ func (src *AudioSrcInstance) ParentPrepare(spec *AudioRingBufferSpec) bool { carg0 = (*C.GstAudioSrc)(UnsafeAudioSrcToGlibNone(src)) carg1 = (*C.GstAudioRingBufferSpec)(UnsafeAudioRingBufferSpecToGlibNone(spec)) - cret = C._gotk4_gstaudio1_AudioSrc_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, carg1) + cret = C._goglib_gstaudio1_AudioSrc_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(spec) @@ -14856,7 +14856,7 @@ func (src *AudioSrcInstance) ParentReset() { carg0 = (*C.GstAudioSrc)(UnsafeAudioSrcToGlibNone(src)) - C._gotk4_gstaudio1_AudioSrc_virtual_reset(unsafe.Pointer(parentclass.reset), carg0) + C._goglib_gstaudio1_AudioSrc_virtual_reset(unsafe.Pointer(parentclass.reset), carg0) runtime.KeepAlive(src) } @@ -14876,7 +14876,7 @@ func (src *AudioSrcInstance) ParentUnprepare() bool { carg0 = (*C.GstAudioSrc)(UnsafeAudioSrcToGlibNone(src)) - cret = C._gotk4_gstaudio1_AudioSrc_virtual_unprepare(unsafe.Pointer(parentclass.unprepare), carg0) + cret = C._goglib_gstaudio1_AudioSrc_virtual_unprepare(unsafe.Pointer(parentclass.unprepare), carg0) runtime.KeepAlive(src) var goret bool @@ -15490,7 +15490,7 @@ func AudioBufferMap(info *AudioInfo, gstbuffer *gst.Buffer, flags gst.MapFlags) _ = buffer _ = carg1 - panic("unimplemented conversion of AudioBuffer (GstAudioBuffer)") + panic("unimplemented conversion of AudioBuffer (GstAudioBuffer) because of unknown reason") if cret != 0 { goret = true } @@ -15519,8 +15519,8 @@ func AudioBufferReorderChannels(buffer *gst.Buffer, format AudioFormat, from []A var carg1 *C.GstBuffer // in, none, converted var carg2 C.GstAudioFormat // in, none, casted var carg3 C.gint // implicit - var carg4 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg3) - var carg5 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner: *typesystem.Enum, length-by: carg3) + var carg4 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg3) + var carg5 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], array (inner GstAudioChannelPosition (*typesystem.Enum), length-by: carg3) var cret C.gboolean // return carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) @@ -15528,11 +15528,11 @@ func AudioBufferReorderChannels(buffer *gst.Buffer, format AudioFormat, from []A _ = from _ = carg4 _ = carg3 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") _ = to _ = carg5 _ = carg3 - panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*)") + panic("unimplemented conversion of []AudioChannelPosition (const GstAudioChannelPosition*) because of unimplemented: non-fixed size array") cret = C.gst_audio_buffer_reorder_channels(carg1, carg2, carg3, carg4, carg5) runtime.KeepAlive(buffer) @@ -16982,7 +16982,7 @@ func AudioInfoFromCaps(caps *gst.Caps) (AudioInfo, bool) { _ = info _ = carg1 - panic("unimplemented conversion of AudioInfo (GstAudioInfo)") + panic("unimplemented conversion of AudioInfo (GstAudioInfo) because of unknown reason") if cret != 0 { goret = true } @@ -17006,7 +17006,7 @@ func AudioInfoInit() AudioInfo { _ = info _ = carg1 - panic("unimplemented conversion of AudioInfo (GstAudioInfo)") + panic("unimplemented conversion of AudioInfo (GstAudioInfo) because of unknown reason") return info } @@ -17130,15 +17130,19 @@ func (info *AudioInfo) SetFormat(format AudioFormat, rate int32, channels int32, var carg1 C.GstAudioFormat // in, none, casted var carg2 C.gint // in, none, casted var carg3 C.gint // in, none, casted - var carg4 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], nullable, array (inner: *typesystem.Enum, fixed-size: 64) + var carg4 *C.GstAudioChannelPosition // in, none, array fixed size (inner: GstAudioChannelPosition, size: 64) carg0 = (*C.GstAudioInfo)(UnsafeAudioInfoToGlibNone(info)) carg1 = C.GstAudioFormat(format) carg2 = C.gint(rate) carg3 = C.gint(channels) - _ = position - _ = carg4 - panic("unimplemented conversion of [64]AudioChannelPosition (const GstAudioChannelPosition*)") + { + var carr [64]C.GstAudioChannelPosition + for i := range 64 { + carr[i] = C.GstAudioChannelPosition(position[i]) + carg4 = unsafe.SliceData(carr[:]) + } + } C.gst_audio_info_set_format(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(info) @@ -18743,7 +18747,7 @@ func DsdInfoFromCaps(caps *gst.Caps) (DsdInfo, bool) { _ = info _ = carg1 - panic("unimplemented conversion of DsdInfo (GstDsdInfo)") + panic("unimplemented conversion of DsdInfo (GstDsdInfo) because of unknown reason") if cret != 0 { goret = true } @@ -18767,7 +18771,7 @@ func DsdInfoInit() DsdInfo { _ = info _ = carg1 - panic("unimplemented conversion of DsdInfo (GstDsdInfo)") + panic("unimplemented conversion of DsdInfo (GstDsdInfo) because of unknown reason") return info } @@ -18844,15 +18848,19 @@ func (info *DsdInfo) SetFormat(format DsdFormat, rate int32, channels int32, pos var carg1 C.GstDsdFormat // in, none, casted var carg2 C.gint // in, none, casted var carg3 C.gint // in, none, casted - var carg4 *C.GstAudioChannelPosition // in, transfer: none, C Pointers: 1, Name: array[AudioChannelPosition], nullable, array (inner: *typesystem.Enum, fixed-size: 64) + var carg4 *C.GstAudioChannelPosition // in, none, array fixed size (inner: GstAudioChannelPosition, size: 64) carg0 = (*C.GstDsdInfo)(UnsafeDsdInfoToGlibNone(info)) carg1 = C.GstDsdFormat(format) carg2 = C.gint(rate) carg3 = C.gint(channels) - _ = positions - _ = carg4 - panic("unimplemented conversion of [64]AudioChannelPosition (const GstAudioChannelPosition*)") + { + var carr [64]C.GstAudioChannelPosition + for i := range 64 { + carr[i] = C.GstAudioChannelPosition(positions[i]) + carg4 = unsafe.SliceData(carr[:]) + } + } C.gst_dsd_info_set_format(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(info) diff --git a/pkg/gstaudio/gstaudio_export.gen.go b/pkg/gstaudio/gstaudio_export.gen.go index e3e12d9..2f8e57d 100644 --- a/pkg/gstaudio/gstaudio_export.gen.go +++ b/pkg/gstaudio/gstaudio_export.gen.go @@ -5,16 +5,16 @@ package gstaudio import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" "github.com/go-gst/go-gst/pkg/gst" ) // #include import "C" -//export _gotk4_gstaudio1_AudioBaseSinkCustomSlavingCallback -func _gotk4_gstaudio1_AudioBaseSinkCustomSlavingCallback(carg1 *C.GstAudioBaseSink, carg2 C.GstClockTime, carg3 C.GstClockTime, carg4 *C.GstClockTimeDiff, carg5 C.GstAudioBaseSinkDiscontReason, carg6 C.gpointer) { +//export _goglib_gstaudio1_AudioBaseSinkCustomSlavingCallback +func _goglib_gstaudio1_AudioBaseSinkCustomSlavingCallback(carg1 *C.GstAudioBaseSink, carg2 C.GstClockTime, carg3 C.GstClockTime, carg4 *C.GstClockTimeDiff, carg5 C.GstAudioBaseSinkDiscontReason, carg6 C.gpointer) { var fn AudioBaseSinkCustomSlavingCallback { v := userdata.Load(unsafe.Pointer(carg6)) @@ -35,14 +35,14 @@ func _gotk4_gstaudio1_AudioBaseSinkCustomSlavingCallback(carg1 *C.GstAudioBaseSi itime = gst.ClockTime(carg3) _ = requestedSkew _ = carg4 - panic("unimplemented conversion of *gst.ClockTimeDiff (GstClockTimeDiff*)") + panic("unimplemented conversion of *gst.ClockTimeDiff (GstClockTimeDiff*) because of unknown reason") discontReason = AudioBaseSinkDiscontReason(carg5) fn(sink, etime, itime, requestedSkew, discontReason) } -//export _gotk4_gstaudio1_AudioClockGetTimeFunc -func _gotk4_gstaudio1_AudioClockGetTimeFunc(carg1 *C.GstClock, carg2 C.gpointer) (cret C.GstClockTime) { +//export _goglib_gstaudio1_AudioClockGetTimeFunc +func _goglib_gstaudio1_AudioClockGetTimeFunc(carg1 *C.GstClock, carg2 C.gpointer) (cret C.GstClockTime) { var fn AudioClockGetTimeFunc { v := userdata.Load(unsafe.Pointer(carg2)) @@ -64,8 +64,8 @@ func _gotk4_gstaudio1_AudioClockGetTimeFunc(carg1 *C.GstClock, carg2 C.gpointer) return cret } -//export _gotk4_gstaudio1_AudioRingBufferCallback -func _gotk4_gstaudio1_AudioRingBufferCallback(carg1 *C.GstAudioRingBuffer, carg2 *C.guint8, carg3 C.guint, carg4 C.gpointer) { +//export _goglib_gstaudio1_AudioRingBufferCallback +func _goglib_gstaudio1_AudioRingBufferCallback(carg1 *C.GstAudioRingBuffer, carg2 *C.guint8, carg3 C.guint, carg4 C.gpointer) { var fn AudioRingBufferCallback { v := userdata.Load(unsafe.Pointer(carg4)) @@ -76,852 +76,852 @@ func _gotk4_gstaudio1_AudioRingBufferCallback(carg1 *C.GstAudioRingBuffer, carg2 } var rbuf AudioRingBuffer // in, none, converted - var data []uint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var data []uint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) rbuf = UnsafeAudioRingBufferFromGlibNone(unsafe.Pointer(carg1)) _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unknown reason") fn(rbuf, data) } -//export _gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer -func _gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer(carg0 *C.GstAudioAggregator, carg1 *C.GstAudioAggregatorPad, carg2 *C.GstBuffer, carg3 C.guint, carg4 *C.GstBuffer, carg5 C.guint, carg6 C.guint) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioAggregator_aggregate_one_buffer +func _goglib_gstaudio1_AudioAggregator_aggregate_one_buffer(carg0 *C.GstAudioAggregator, carg1 *C.GstAudioAggregatorPad, carg2 *C.GstBuffer, carg3 C.guint, carg4 *C.GstBuffer, carg5 C.guint, carg6 C.guint) (cret C.gboolean) { var fn func(carg0 *C.GstAudioAggregator, carg1 *C.GstAudioAggregatorPad, carg2 *C.GstBuffer, carg3 C.guint, carg4 *C.GstBuffer, carg5 C.guint, carg6 C.guint) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer").(func(carg0 *C.GstAudioAggregator, carg1 *C.GstAudioAggregatorPad, carg2 *C.GstBuffer, carg3 C.guint, carg4 *C.GstBuffer, carg5 C.guint, carg6 C.guint) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioAggregator_aggregate_one_buffer").(func(carg0 *C.GstAudioAggregator, carg1 *C.GstAudioAggregatorPad, carg2 *C.GstBuffer, carg3 C.guint, carg4 *C.GstBuffer, carg5 C.guint, carg6 C.guint) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioAggregator_aggregate_one_buffer: no function pointer found") + panic("_goglib_gstaudio1_AudioAggregator_aggregate_one_buffer: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4, carg5, carg6) } -//export _gotk4_gstaudio1_AudioAggregator_create_output_buffer -func _gotk4_gstaudio1_AudioAggregator_create_output_buffer(carg0 *C.GstAudioAggregator, carg1 C.guint) (cret *C.GstBuffer) { +//export _goglib_gstaudio1_AudioAggregator_create_output_buffer +func _goglib_gstaudio1_AudioAggregator_create_output_buffer(carg0 *C.GstAudioAggregator, carg1 C.guint) (cret *C.GstBuffer) { var fn func(carg0 *C.GstAudioAggregator, carg1 C.guint) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioAggregator_create_output_buffer").(func(carg0 *C.GstAudioAggregator, carg1 C.guint) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioAggregator_create_output_buffer").(func(carg0 *C.GstAudioAggregator, carg1 C.guint) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioAggregator_create_output_buffer: no function pointer found") + panic("_goglib_gstaudio1_AudioAggregator_create_output_buffer: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioAggregatorPad_convert_buffer -func _gotk4_gstaudio1_AudioAggregatorPad_convert_buffer(carg0 *C.GstAudioAggregatorPad, carg1 *C.GstAudioInfo, carg2 *C.GstAudioInfo, carg3 *C.GstBuffer) (cret *C.GstBuffer) { +//export _goglib_gstaudio1_AudioAggregatorPad_convert_buffer +func _goglib_gstaudio1_AudioAggregatorPad_convert_buffer(carg0 *C.GstAudioAggregatorPad, carg1 *C.GstAudioInfo, carg2 *C.GstAudioInfo, carg3 *C.GstBuffer) (cret *C.GstBuffer) { var fn func(carg0 *C.GstAudioAggregatorPad, carg1 *C.GstAudioInfo, carg2 *C.GstAudioInfo, carg3 *C.GstBuffer) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioAggregatorPad_convert_buffer").(func(carg0 *C.GstAudioAggregatorPad, carg1 *C.GstAudioInfo, carg2 *C.GstAudioInfo, carg3 *C.GstBuffer) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioAggregatorPad_convert_buffer").(func(carg0 *C.GstAudioAggregatorPad, carg1 *C.GstAudioInfo, carg2 *C.GstAudioInfo, carg3 *C.GstBuffer) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioAggregatorPad_convert_buffer: no function pointer found") + panic("_goglib_gstaudio1_AudioAggregatorPad_convert_buffer: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info -func _gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info(carg0 *C.GstAudioAggregatorPad) { +//export _goglib_gstaudio1_AudioAggregatorPad_update_conversion_info +func _goglib_gstaudio1_AudioAggregatorPad_update_conversion_info(carg0 *C.GstAudioAggregatorPad) { var fn func(carg0 *C.GstAudioAggregatorPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info").(func(carg0 *C.GstAudioAggregatorPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioAggregatorPad_update_conversion_info").(func(carg0 *C.GstAudioAggregatorPad)) if fn == nil { - panic("_gotk4_gstaudio1_AudioAggregatorPad_update_conversion_info: no function pointer found") + panic("_goglib_gstaudio1_AudioAggregatorPad_update_conversion_info: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioBaseSink_create_ringbuffer -func _gotk4_gstaudio1_AudioBaseSink_create_ringbuffer(carg0 *C.GstAudioBaseSink) (cret *C.GstAudioRingBuffer) { +//export _goglib_gstaudio1_AudioBaseSink_create_ringbuffer +func _goglib_gstaudio1_AudioBaseSink_create_ringbuffer(carg0 *C.GstAudioBaseSink) (cret *C.GstAudioRingBuffer) { var fn func(carg0 *C.GstAudioBaseSink) (cret *C.GstAudioRingBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioBaseSink_create_ringbuffer").(func(carg0 *C.GstAudioBaseSink) (cret *C.GstAudioRingBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioBaseSink_create_ringbuffer").(func(carg0 *C.GstAudioBaseSink) (cret *C.GstAudioRingBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioBaseSink_create_ringbuffer: no function pointer found") + panic("_goglib_gstaudio1_AudioBaseSink_create_ringbuffer: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioBaseSink_payload -func _gotk4_gstaudio1_AudioBaseSink_payload(carg0 *C.GstAudioBaseSink, carg1 *C.GstBuffer) (cret *C.GstBuffer) { +//export _goglib_gstaudio1_AudioBaseSink_payload +func _goglib_gstaudio1_AudioBaseSink_payload(carg0 *C.GstAudioBaseSink, carg1 *C.GstBuffer) (cret *C.GstBuffer) { var fn func(carg0 *C.GstAudioBaseSink, carg1 *C.GstBuffer) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioBaseSink_payload").(func(carg0 *C.GstAudioBaseSink, carg1 *C.GstBuffer) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioBaseSink_payload").(func(carg0 *C.GstAudioBaseSink, carg1 *C.GstBuffer) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioBaseSink_payload: no function pointer found") + panic("_goglib_gstaudio1_AudioBaseSink_payload: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer -func _gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer(carg0 *C.GstAudioBaseSrc) (cret *C.GstAudioRingBuffer) { +//export _goglib_gstaudio1_AudioBaseSrc_create_ringbuffer +func _goglib_gstaudio1_AudioBaseSrc_create_ringbuffer(carg0 *C.GstAudioBaseSrc) (cret *C.GstAudioRingBuffer) { var fn func(carg0 *C.GstAudioBaseSrc) (cret *C.GstAudioRingBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer").(func(carg0 *C.GstAudioBaseSrc) (cret *C.GstAudioRingBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioBaseSrc_create_ringbuffer").(func(carg0 *C.GstAudioBaseSrc) (cret *C.GstAudioRingBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioBaseSrc_create_ringbuffer: no function pointer found") + panic("_goglib_gstaudio1_AudioBaseSrc_create_ringbuffer: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioCdSrc_close -func _gotk4_gstaudio1_AudioCdSrc_close(carg0 *C.GstAudioCdSrc) { +//export _goglib_gstaudio1_AudioCdSrc_close +func _goglib_gstaudio1_AudioCdSrc_close(carg0 *C.GstAudioCdSrc) { var fn func(carg0 *C.GstAudioCdSrc) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioCdSrc_close").(func(carg0 *C.GstAudioCdSrc)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioCdSrc_close").(func(carg0 *C.GstAudioCdSrc)) if fn == nil { - panic("_gotk4_gstaudio1_AudioCdSrc_close: no function pointer found") + panic("_goglib_gstaudio1_AudioCdSrc_close: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioCdSrc_open -func _gotk4_gstaudio1_AudioCdSrc_open(carg0 *C.GstAudioCdSrc, carg1 *C.gchar) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioCdSrc_open +func _goglib_gstaudio1_AudioCdSrc_open(carg0 *C.GstAudioCdSrc, carg1 *C.gchar) (cret C.gboolean) { var fn func(carg0 *C.GstAudioCdSrc, carg1 *C.gchar) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioCdSrc_open").(func(carg0 *C.GstAudioCdSrc, carg1 *C.gchar) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioCdSrc_open").(func(carg0 *C.GstAudioCdSrc, carg1 *C.gchar) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioCdSrc_open: no function pointer found") + panic("_goglib_gstaudio1_AudioCdSrc_open: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioCdSrc_read_sector -func _gotk4_gstaudio1_AudioCdSrc_read_sector(carg0 *C.GstAudioCdSrc, carg1 C.gint) (cret *C.GstBuffer) { +//export _goglib_gstaudio1_AudioCdSrc_read_sector +func _goglib_gstaudio1_AudioCdSrc_read_sector(carg0 *C.GstAudioCdSrc, carg1 C.gint) (cret *C.GstBuffer) { var fn func(carg0 *C.GstAudioCdSrc, carg1 C.gint) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioCdSrc_read_sector").(func(carg0 *C.GstAudioCdSrc, carg1 C.gint) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioCdSrc_read_sector").(func(carg0 *C.GstAudioCdSrc, carg1 C.gint) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioCdSrc_read_sector: no function pointer found") + panic("_goglib_gstaudio1_AudioCdSrc_read_sector: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_close -func _gotk4_gstaudio1_AudioDecoder_close(carg0 *C.GstAudioDecoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_close +func _goglib_gstaudio1_AudioDecoder_close(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_close").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_close").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_close: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_close: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioDecoder_decide_allocation -func _gotk4_gstaudio1_AudioDecoder_decide_allocation(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_decide_allocation +func _goglib_gstaudio1_AudioDecoder_decide_allocation(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_decide_allocation").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_decide_allocation").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_decide_allocation: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_flush -func _gotk4_gstaudio1_AudioDecoder_flush(carg0 *C.GstAudioDecoder, carg1 C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_flush +func _goglib_gstaudio1_AudioDecoder_flush(carg0 *C.GstAudioDecoder, carg1 C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_flush").(func(carg0 *C.GstAudioDecoder, carg1 C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_flush").(func(carg0 *C.GstAudioDecoder, carg1 C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_flush: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_flush: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_getcaps -func _gotk4_gstaudio1_AudioDecoder_getcaps(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstaudio1_AudioDecoder_getcaps +func _goglib_gstaudio1_AudioDecoder_getcaps(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_getcaps").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_getcaps").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_getcaps: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_getcaps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_handle_frame -func _gotk4_gstaudio1_AudioDecoder_handle_frame(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstaudio1_AudioDecoder_handle_frame +func _goglib_gstaudio1_AudioDecoder_handle_frame(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_handle_frame").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_handle_frame").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_handle_frame: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_handle_frame: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_negotiate -func _gotk4_gstaudio1_AudioDecoder_negotiate(carg0 *C.GstAudioDecoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_negotiate +func _goglib_gstaudio1_AudioDecoder_negotiate(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_negotiate").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_negotiate").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_negotiate: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_negotiate: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioDecoder_open -func _gotk4_gstaudio1_AudioDecoder_open(carg0 *C.GstAudioDecoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_open +func _goglib_gstaudio1_AudioDecoder_open(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_open").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_open").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_open: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_open: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioDecoder_parse -func _gotk4_gstaudio1_AudioDecoder_parse(carg0 *C.GstAudioDecoder, carg1 *C.GstAdapter, carg2 *C.gint, carg3 *C.gint) (cret C.GstFlowReturn) { +//export _goglib_gstaudio1_AudioDecoder_parse +func _goglib_gstaudio1_AudioDecoder_parse(carg0 *C.GstAudioDecoder, carg1 *C.GstAdapter, carg2 *C.gint, carg3 *C.gint) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstAdapter, carg2 *C.gint, carg3 *C.gint) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_parse").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstAdapter, carg2 *C.gint, carg3 *C.gint) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_parse").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstAdapter, carg2 *C.gint, carg3 *C.gint) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_parse: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_parse: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstaudio1_AudioDecoder_propose_allocation -func _gotk4_gstaudio1_AudioDecoder_propose_allocation(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_propose_allocation +func _goglib_gstaudio1_AudioDecoder_propose_allocation(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_propose_allocation").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_propose_allocation").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_propose_allocation: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_propose_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_set_format -func _gotk4_gstaudio1_AudioDecoder_set_format(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_set_format +func _goglib_gstaudio1_AudioDecoder_set_format(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_set_format").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_set_format").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_set_format: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_set_format: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_sink_event -func _gotk4_gstaudio1_AudioDecoder_sink_event(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_sink_event +func _goglib_gstaudio1_AudioDecoder_sink_event(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_sink_event").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_sink_event").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_sink_event: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_sink_query -func _gotk4_gstaudio1_AudioDecoder_sink_query(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_sink_query +func _goglib_gstaudio1_AudioDecoder_sink_query(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_sink_query").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_sink_query").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_sink_query: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_sink_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_src_event -func _gotk4_gstaudio1_AudioDecoder_src_event(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_src_event +func _goglib_gstaudio1_AudioDecoder_src_event(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_src_event").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_src_event").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_src_event: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_src_query -func _gotk4_gstaudio1_AudioDecoder_src_query(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_src_query +func _goglib_gstaudio1_AudioDecoder_src_query(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_src_query").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_src_query").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_src_query: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_src_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioDecoder_start -func _gotk4_gstaudio1_AudioDecoder_start(carg0 *C.GstAudioDecoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_start +func _goglib_gstaudio1_AudioDecoder_start(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_start").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_start").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_start: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioDecoder_stop -func _gotk4_gstaudio1_AudioDecoder_stop(carg0 *C.GstAudioDecoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_stop +func _goglib_gstaudio1_AudioDecoder_stop(carg0 *C.GstAudioDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_stop").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_stop").(func(carg0 *C.GstAudioDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_stop: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioDecoder_transform_meta -func _gotk4_gstaudio1_AudioDecoder_transform_meta(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioDecoder_transform_meta +func _goglib_gstaudio1_AudioDecoder_transform_meta(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioDecoder_transform_meta").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioDecoder_transform_meta").(func(carg0 *C.GstAudioDecoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioDecoder_transform_meta: no function pointer found") + panic("_goglib_gstaudio1_AudioDecoder_transform_meta: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstaudio1_AudioEncoder_close -func _gotk4_gstaudio1_AudioEncoder_close(carg0 *C.GstAudioEncoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_close +func _goglib_gstaudio1_AudioEncoder_close(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_close").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_close").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_close: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_close: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioEncoder_decide_allocation -func _gotk4_gstaudio1_AudioEncoder_decide_allocation(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_decide_allocation +func _goglib_gstaudio1_AudioEncoder_decide_allocation(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_decide_allocation").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_decide_allocation").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_decide_allocation: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_flush -func _gotk4_gstaudio1_AudioEncoder_flush(carg0 *C.GstAudioEncoder) { +//export _goglib_gstaudio1_AudioEncoder_flush +func _goglib_gstaudio1_AudioEncoder_flush(carg0 *C.GstAudioEncoder) { var fn func(carg0 *C.GstAudioEncoder) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_flush").(func(carg0 *C.GstAudioEncoder)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_flush").(func(carg0 *C.GstAudioEncoder)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_flush: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_flush: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioEncoder_getcaps -func _gotk4_gstaudio1_AudioEncoder_getcaps(carg0 *C.GstAudioEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstaudio1_AudioEncoder_getcaps +func _goglib_gstaudio1_AudioEncoder_getcaps(carg0 *C.GstAudioEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_getcaps").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_getcaps").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_getcaps: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_getcaps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_handle_frame -func _gotk4_gstaudio1_AudioEncoder_handle_frame(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstaudio1_AudioEncoder_handle_frame +func _goglib_gstaudio1_AudioEncoder_handle_frame(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_handle_frame").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_handle_frame").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_handle_frame: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_handle_frame: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_negotiate -func _gotk4_gstaudio1_AudioEncoder_negotiate(carg0 *C.GstAudioEncoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_negotiate +func _goglib_gstaudio1_AudioEncoder_negotiate(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_negotiate").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_negotiate").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_negotiate: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_negotiate: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioEncoder_open -func _gotk4_gstaudio1_AudioEncoder_open(carg0 *C.GstAudioEncoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_open +func _goglib_gstaudio1_AudioEncoder_open(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_open").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_open").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_open: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_open: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioEncoder_propose_allocation -func _gotk4_gstaudio1_AudioEncoder_propose_allocation(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_propose_allocation +func _goglib_gstaudio1_AudioEncoder_propose_allocation(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_propose_allocation").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_propose_allocation").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_propose_allocation: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_propose_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_set_format -func _gotk4_gstaudio1_AudioEncoder_set_format(carg0 *C.GstAudioEncoder, carg1 *C.GstAudioInfo) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_set_format +func _goglib_gstaudio1_AudioEncoder_set_format(carg0 *C.GstAudioEncoder, carg1 *C.GstAudioInfo) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstAudioInfo) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_set_format").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstAudioInfo) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_set_format").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstAudioInfo) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_set_format: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_set_format: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_sink_event -func _gotk4_gstaudio1_AudioEncoder_sink_event(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_sink_event +func _goglib_gstaudio1_AudioEncoder_sink_event(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_sink_event").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_sink_event").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_sink_event: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_sink_query -func _gotk4_gstaudio1_AudioEncoder_sink_query(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_sink_query +func _goglib_gstaudio1_AudioEncoder_sink_query(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_sink_query").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_sink_query").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_sink_query: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_sink_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_src_event -func _gotk4_gstaudio1_AudioEncoder_src_event(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_src_event +func _goglib_gstaudio1_AudioEncoder_src_event(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_src_event").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_src_event").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_src_event: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_src_query -func _gotk4_gstaudio1_AudioEncoder_src_query(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_src_query +func _goglib_gstaudio1_AudioEncoder_src_query(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_src_query").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_src_query").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_src_query: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_src_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioEncoder_start -func _gotk4_gstaudio1_AudioEncoder_start(carg0 *C.GstAudioEncoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_start +func _goglib_gstaudio1_AudioEncoder_start(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_start").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_start").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_start: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioEncoder_stop -func _gotk4_gstaudio1_AudioEncoder_stop(carg0 *C.GstAudioEncoder) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_stop +func _goglib_gstaudio1_AudioEncoder_stop(carg0 *C.GstAudioEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_stop").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_stop").(func(carg0 *C.GstAudioEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_stop: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioEncoder_transform_meta -func _gotk4_gstaudio1_AudioEncoder_transform_meta(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioEncoder_transform_meta +func _goglib_gstaudio1_AudioEncoder_transform_meta(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioEncoder_transform_meta").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioEncoder_transform_meta").(func(carg0 *C.GstAudioEncoder, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioEncoder_transform_meta: no function pointer found") + panic("_goglib_gstaudio1_AudioEncoder_transform_meta: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstaudio1_AudioFilter_setup -func _gotk4_gstaudio1_AudioFilter_setup(carg0 *C.GstAudioFilter, carg1 *C.GstAudioInfo) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioFilter_setup +func _goglib_gstaudio1_AudioFilter_setup(carg0 *C.GstAudioFilter, carg1 *C.GstAudioInfo) (cret C.gboolean) { var fn func(carg0 *C.GstAudioFilter, carg1 *C.GstAudioInfo) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioFilter_setup").(func(carg0 *C.GstAudioFilter, carg1 *C.GstAudioInfo) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioFilter_setup").(func(carg0 *C.GstAudioFilter, carg1 *C.GstAudioInfo) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioFilter_setup: no function pointer found") + panic("_goglib_gstaudio1_AudioFilter_setup: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioRingBuffer_acquire -func _gotk4_gstaudio1_AudioRingBuffer_acquire(carg0 *C.GstAudioRingBuffer, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_acquire +func _goglib_gstaudio1_AudioRingBuffer_acquire(carg0 *C.GstAudioRingBuffer, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_acquire").(func(carg0 *C.GstAudioRingBuffer, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_acquire").(func(carg0 *C.GstAudioRingBuffer, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_acquire: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_acquire: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioRingBuffer_activate -func _gotk4_gstaudio1_AudioRingBuffer_activate(carg0 *C.GstAudioRingBuffer, carg1 C.gboolean) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_activate +func _goglib_gstaudio1_AudioRingBuffer_activate(carg0 *C.GstAudioRingBuffer, carg1 C.gboolean) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer, carg1 C.gboolean) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_activate").(func(carg0 *C.GstAudioRingBuffer, carg1 C.gboolean) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_activate").(func(carg0 *C.GstAudioRingBuffer, carg1 C.gboolean) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_activate: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_activate: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioRingBuffer_clear_all -func _gotk4_gstaudio1_AudioRingBuffer_clear_all(carg0 *C.GstAudioRingBuffer) { +//export _goglib_gstaudio1_AudioRingBuffer_clear_all +func _goglib_gstaudio1_AudioRingBuffer_clear_all(carg0 *C.GstAudioRingBuffer) { var fn func(carg0 *C.GstAudioRingBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_clear_all").(func(carg0 *C.GstAudioRingBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_clear_all").(func(carg0 *C.GstAudioRingBuffer)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_clear_all: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_clear_all: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_close_device -func _gotk4_gstaudio1_AudioRingBuffer_close_device(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_close_device +func _goglib_gstaudio1_AudioRingBuffer_close_device(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_close_device").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_close_device").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_close_device: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_close_device: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_delay -func _gotk4_gstaudio1_AudioRingBuffer_delay(carg0 *C.GstAudioRingBuffer) (cret C.guint) { +//export _goglib_gstaudio1_AudioRingBuffer_delay +func _goglib_gstaudio1_AudioRingBuffer_delay(carg0 *C.GstAudioRingBuffer) (cret C.guint) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.guint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_delay").(func(carg0 *C.GstAudioRingBuffer) (cret C.guint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_delay").(func(carg0 *C.GstAudioRingBuffer) (cret C.guint)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_delay: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_delay: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_open_device -func _gotk4_gstaudio1_AudioRingBuffer_open_device(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_open_device +func _goglib_gstaudio1_AudioRingBuffer_open_device(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_open_device").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_open_device").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_open_device: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_open_device: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_pause -func _gotk4_gstaudio1_AudioRingBuffer_pause(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_pause +func _goglib_gstaudio1_AudioRingBuffer_pause(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_pause").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_pause").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_pause: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_pause: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_release -func _gotk4_gstaudio1_AudioRingBuffer_release(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_release +func _goglib_gstaudio1_AudioRingBuffer_release(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_release").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_release").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_release: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_release: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_resume -func _gotk4_gstaudio1_AudioRingBuffer_resume(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_resume +func _goglib_gstaudio1_AudioRingBuffer_resume(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_resume").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_resume").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_resume: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_resume: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_start -func _gotk4_gstaudio1_AudioRingBuffer_start(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_start +func _goglib_gstaudio1_AudioRingBuffer_start(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_start").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_start").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_start: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioRingBuffer_stop -func _gotk4_gstaudio1_AudioRingBuffer_stop(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioRingBuffer_stop +func _goglib_gstaudio1_AudioRingBuffer_stop(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioRingBuffer_stop").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioRingBuffer_stop").(func(carg0 *C.GstAudioRingBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioRingBuffer_stop: no function pointer found") + panic("_goglib_gstaudio1_AudioRingBuffer_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_close -func _gotk4_gstaudio1_AudioSink_close(carg0 *C.GstAudioSink) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSink_close +func _goglib_gstaudio1_AudioSink_close(carg0 *C.GstAudioSink) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_close").(func(carg0 *C.GstAudioSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_close").(func(carg0 *C.GstAudioSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_close: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_close: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_delay -func _gotk4_gstaudio1_AudioSink_delay(carg0 *C.GstAudioSink) (cret C.guint) { +//export _goglib_gstaudio1_AudioSink_delay +func _goglib_gstaudio1_AudioSink_delay(carg0 *C.GstAudioSink) (cret C.guint) { var fn func(carg0 *C.GstAudioSink) (cret C.guint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_delay").(func(carg0 *C.GstAudioSink) (cret C.guint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_delay").(func(carg0 *C.GstAudioSink) (cret C.guint)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_delay: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_delay: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_open -func _gotk4_gstaudio1_AudioSink_open(carg0 *C.GstAudioSink) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSink_open +func _goglib_gstaudio1_AudioSink_open(carg0 *C.GstAudioSink) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_open").(func(carg0 *C.GstAudioSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_open").(func(carg0 *C.GstAudioSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_open: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_open: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_pause -func _gotk4_gstaudio1_AudioSink_pause(carg0 *C.GstAudioSink) { +//export _goglib_gstaudio1_AudioSink_pause +func _goglib_gstaudio1_AudioSink_pause(carg0 *C.GstAudioSink) { var fn func(carg0 *C.GstAudioSink) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_pause").(func(carg0 *C.GstAudioSink)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_pause").(func(carg0 *C.GstAudioSink)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_pause: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_pause: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_prepare -func _gotk4_gstaudio1_AudioSink_prepare(carg0 *C.GstAudioSink, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSink_prepare +func _goglib_gstaudio1_AudioSink_prepare(carg0 *C.GstAudioSink, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSink, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_prepare").(func(carg0 *C.GstAudioSink, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_prepare").(func(carg0 *C.GstAudioSink, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_prepare: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_prepare: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioSink_reset -func _gotk4_gstaudio1_AudioSink_reset(carg0 *C.GstAudioSink) { +//export _goglib_gstaudio1_AudioSink_reset +func _goglib_gstaudio1_AudioSink_reset(carg0 *C.GstAudioSink) { var fn func(carg0 *C.GstAudioSink) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_reset").(func(carg0 *C.GstAudioSink)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_reset").(func(carg0 *C.GstAudioSink)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_reset: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_reset: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_resume -func _gotk4_gstaudio1_AudioSink_resume(carg0 *C.GstAudioSink) { +//export _goglib_gstaudio1_AudioSink_resume +func _goglib_gstaudio1_AudioSink_resume(carg0 *C.GstAudioSink) { var fn func(carg0 *C.GstAudioSink) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_resume").(func(carg0 *C.GstAudioSink)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_resume").(func(carg0 *C.GstAudioSink)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_resume: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_resume: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_stop -func _gotk4_gstaudio1_AudioSink_stop(carg0 *C.GstAudioSink) { +//export _goglib_gstaudio1_AudioSink_stop +func _goglib_gstaudio1_AudioSink_stop(carg0 *C.GstAudioSink) { var fn func(carg0 *C.GstAudioSink) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_stop").(func(carg0 *C.GstAudioSink)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_stop").(func(carg0 *C.GstAudioSink)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_stop: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_stop: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioSink_unprepare -func _gotk4_gstaudio1_AudioSink_unprepare(carg0 *C.GstAudioSink) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSink_unprepare +func _goglib_gstaudio1_AudioSink_unprepare(carg0 *C.GstAudioSink) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSink_unprepare").(func(carg0 *C.GstAudioSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSink_unprepare").(func(carg0 *C.GstAudioSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSink_unprepare: no function pointer found") + panic("_goglib_gstaudio1_AudioSink_unprepare: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSrc_close -func _gotk4_gstaudio1_AudioSrc_close(carg0 *C.GstAudioSrc) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSrc_close +func _goglib_gstaudio1_AudioSrc_close(carg0 *C.GstAudioSrc) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSrc_close").(func(carg0 *C.GstAudioSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSrc_close").(func(carg0 *C.GstAudioSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSrc_close: no function pointer found") + panic("_goglib_gstaudio1_AudioSrc_close: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSrc_delay -func _gotk4_gstaudio1_AudioSrc_delay(carg0 *C.GstAudioSrc) (cret C.guint) { +//export _goglib_gstaudio1_AudioSrc_delay +func _goglib_gstaudio1_AudioSrc_delay(carg0 *C.GstAudioSrc) (cret C.guint) { var fn func(carg0 *C.GstAudioSrc) (cret C.guint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSrc_delay").(func(carg0 *C.GstAudioSrc) (cret C.guint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSrc_delay").(func(carg0 *C.GstAudioSrc) (cret C.guint)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSrc_delay: no function pointer found") + panic("_goglib_gstaudio1_AudioSrc_delay: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSrc_open -func _gotk4_gstaudio1_AudioSrc_open(carg0 *C.GstAudioSrc) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSrc_open +func _goglib_gstaudio1_AudioSrc_open(carg0 *C.GstAudioSrc) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSrc_open").(func(carg0 *C.GstAudioSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSrc_open").(func(carg0 *C.GstAudioSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSrc_open: no function pointer found") + panic("_goglib_gstaudio1_AudioSrc_open: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstaudio1_AudioSrc_prepare -func _gotk4_gstaudio1_AudioSrc_prepare(carg0 *C.GstAudioSrc, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSrc_prepare +func _goglib_gstaudio1_AudioSrc_prepare(carg0 *C.GstAudioSrc, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSrc, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSrc_prepare").(func(carg0 *C.GstAudioSrc, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSrc_prepare").(func(carg0 *C.GstAudioSrc, carg1 *C.GstAudioRingBufferSpec) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSrc_prepare: no function pointer found") + panic("_goglib_gstaudio1_AudioSrc_prepare: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstaudio1_AudioSrc_reset -func _gotk4_gstaudio1_AudioSrc_reset(carg0 *C.GstAudioSrc) { +//export _goglib_gstaudio1_AudioSrc_reset +func _goglib_gstaudio1_AudioSrc_reset(carg0 *C.GstAudioSrc) { var fn func(carg0 *C.GstAudioSrc) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSrc_reset").(func(carg0 *C.GstAudioSrc)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSrc_reset").(func(carg0 *C.GstAudioSrc)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSrc_reset: no function pointer found") + panic("_goglib_gstaudio1_AudioSrc_reset: no function pointer found") } } fn(carg0) } -//export _gotk4_gstaudio1_AudioSrc_unprepare -func _gotk4_gstaudio1_AudioSrc_unprepare(carg0 *C.GstAudioSrc) (cret C.gboolean) { +//export _goglib_gstaudio1_AudioSrc_unprepare +func _goglib_gstaudio1_AudioSrc_unprepare(carg0 *C.GstAudioSrc) (cret C.gboolean) { var fn func(carg0 *C.GstAudioSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstaudio1_AudioSrc_unprepare").(func(carg0 *C.GstAudioSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstaudio1_AudioSrc_unprepare").(func(carg0 *C.GstAudioSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstaudio1_AudioSrc_unprepare: no function pointer found") + panic("_goglib_gstaudio1_AudioSrc_unprepare: no function pointer found") } } return fn(carg0) diff --git a/pkg/gstbase/gstbase.gen.go b/pkg/gstbase/gstbase.gen.go index d26aa52..70c863f 100644 --- a/pkg/gstbase/gstbase.gen.go +++ b/pkg/gstbase/gstbase.gen.go @@ -9,413 +9,413 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) // #cgo pkg-config: gstreamer-base-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern GstFlowReturn _gotk4_gstbase1_CollectPadsBufferFunction(GstCollectPads*, GstCollectData*, GstBuffer*, gpointer); -// extern GstFlowReturn _gotk4_gstbase1_CollectPadsClipFunction(GstCollectPads*, GstCollectData*, GstBuffer*, GstBuffer*, gpointer); -// extern GstFlowReturn _gotk4_gstbase1_CollectPadsFunction(GstCollectPads*, gpointer); -// extern gboolean _gotk4_gstbase1_CollectPadsEventFunction(GstCollectPads*, GstCollectData*, GstEvent*, gpointer); -// extern gboolean _gotk4_gstbase1_CollectPadsQueryFunction(GstCollectPads*, GstCollectData*, GstQuery*, gpointer); -// extern gint _gotk4_gstbase1_CollectPadsCompareFunction(GstCollectPads*, GstCollectData*, GstClockTime, GstCollectData*, GstClockTime, gpointer); -// extern void _gotk4_gstbase1_CollectPadsFlushFunction(GstCollectPads*, gpointer); -// extern GstFlowReturn _gotk4_gstbase1_Aggregator_aggregate(GstAggregator*, gboolean); -// extern GstBuffer* _gotk4_gstbase1_Aggregator_clip(GstAggregator*, GstAggregatorPad*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_Aggregator_decide_allocation(GstAggregator*, GstQuery*); -// extern GstFlowReturn _gotk4_gstbase1_Aggregator_finish_buffer(GstAggregator*, GstBuffer*); -// extern GstFlowReturn _gotk4_gstbase1_Aggregator_finish_buffer_list(GstAggregator*, GstBufferList*); -// extern GstCaps* _gotk4_gstbase1_Aggregator_fixate_src_caps(GstAggregator*, GstCaps*); -// extern GstFlowReturn _gotk4_gstbase1_Aggregator_flush(GstAggregator*); -// extern GstClockTime _gotk4_gstbase1_Aggregator_get_next_time(GstAggregator*); -// extern gboolean _gotk4_gstbase1_Aggregator_negotiate(GstAggregator*); -// extern gboolean _gotk4_gstbase1_Aggregator_negotiated_src_caps(GstAggregator*, GstCaps*); -// extern GstSample* _gotk4_gstbase1_Aggregator_peek_next_sample(GstAggregator*, GstAggregatorPad*); -// extern gboolean _gotk4_gstbase1_Aggregator_propose_allocation(GstAggregator*, GstAggregatorPad*, GstQuery*, GstQuery*); -// extern gboolean _gotk4_gstbase1_Aggregator_sink_event(GstAggregator*, GstAggregatorPad*, GstEvent*); -// extern GstFlowReturn _gotk4_gstbase1_Aggregator_sink_event_pre_queue(GstAggregator*, GstAggregatorPad*, GstEvent*); -// extern gboolean _gotk4_gstbase1_Aggregator_sink_query(GstAggregator*, GstAggregatorPad*, GstQuery*); -// extern gboolean _gotk4_gstbase1_Aggregator_sink_query_pre_queue(GstAggregator*, GstAggregatorPad*, GstQuery*); -// extern gboolean _gotk4_gstbase1_Aggregator_src_activate(GstAggregator*, GstPadMode, gboolean); -// extern gboolean _gotk4_gstbase1_Aggregator_src_event(GstAggregator*, GstEvent*); -// extern gboolean _gotk4_gstbase1_Aggregator_src_query(GstAggregator*, GstQuery*); -// extern gboolean _gotk4_gstbase1_Aggregator_start(GstAggregator*); -// extern gboolean _gotk4_gstbase1_Aggregator_stop(GstAggregator*); -// extern GstFlowReturn _gotk4_gstbase1_Aggregator_update_src_caps(GstAggregator*, GstCaps*, GstCaps*); -// GstFlowReturn _gotk4_gstbase1_Aggregator_virtual_aggregate(void* fnptr, GstAggregator* carg0, gboolean carg1) { +// extern GstFlowReturn _goglib_gstbase1_CollectPadsBufferFunction(GstCollectPads*, GstCollectData*, GstBuffer*, gpointer); +// extern GstFlowReturn _goglib_gstbase1_CollectPadsClipFunction(GstCollectPads*, GstCollectData*, GstBuffer*, GstBuffer*, gpointer); +// extern GstFlowReturn _goglib_gstbase1_CollectPadsFunction(GstCollectPads*, gpointer); +// extern gboolean _goglib_gstbase1_CollectPadsEventFunction(GstCollectPads*, GstCollectData*, GstEvent*, gpointer); +// extern gboolean _goglib_gstbase1_CollectPadsQueryFunction(GstCollectPads*, GstCollectData*, GstQuery*, gpointer); +// extern gint _goglib_gstbase1_CollectPadsCompareFunction(GstCollectPads*, GstCollectData*, GstClockTime, GstCollectData*, GstClockTime, gpointer); +// extern void _goglib_gstbase1_CollectPadsFlushFunction(GstCollectPads*, gpointer); +// extern GstFlowReturn _goglib_gstbase1_Aggregator_aggregate(GstAggregator*, gboolean); +// extern GstBuffer* _goglib_gstbase1_Aggregator_clip(GstAggregator*, GstAggregatorPad*, GstBuffer*); +// extern gboolean _goglib_gstbase1_Aggregator_decide_allocation(GstAggregator*, GstQuery*); +// extern GstFlowReturn _goglib_gstbase1_Aggregator_finish_buffer(GstAggregator*, GstBuffer*); +// extern GstFlowReturn _goglib_gstbase1_Aggregator_finish_buffer_list(GstAggregator*, GstBufferList*); +// extern GstCaps* _goglib_gstbase1_Aggregator_fixate_src_caps(GstAggregator*, GstCaps*); +// extern GstFlowReturn _goglib_gstbase1_Aggregator_flush(GstAggregator*); +// extern GstClockTime _goglib_gstbase1_Aggregator_get_next_time(GstAggregator*); +// extern gboolean _goglib_gstbase1_Aggregator_negotiate(GstAggregator*); +// extern gboolean _goglib_gstbase1_Aggregator_negotiated_src_caps(GstAggregator*, GstCaps*); +// extern GstSample* _goglib_gstbase1_Aggregator_peek_next_sample(GstAggregator*, GstAggregatorPad*); +// extern gboolean _goglib_gstbase1_Aggregator_propose_allocation(GstAggregator*, GstAggregatorPad*, GstQuery*, GstQuery*); +// extern gboolean _goglib_gstbase1_Aggregator_sink_event(GstAggregator*, GstAggregatorPad*, GstEvent*); +// extern GstFlowReturn _goglib_gstbase1_Aggregator_sink_event_pre_queue(GstAggregator*, GstAggregatorPad*, GstEvent*); +// extern gboolean _goglib_gstbase1_Aggregator_sink_query(GstAggregator*, GstAggregatorPad*, GstQuery*); +// extern gboolean _goglib_gstbase1_Aggregator_sink_query_pre_queue(GstAggregator*, GstAggregatorPad*, GstQuery*); +// extern gboolean _goglib_gstbase1_Aggregator_src_activate(GstAggregator*, GstPadMode, gboolean); +// extern gboolean _goglib_gstbase1_Aggregator_src_event(GstAggregator*, GstEvent*); +// extern gboolean _goglib_gstbase1_Aggregator_src_query(GstAggregator*, GstQuery*); +// extern gboolean _goglib_gstbase1_Aggregator_start(GstAggregator*); +// extern gboolean _goglib_gstbase1_Aggregator_stop(GstAggregator*); +// extern GstFlowReturn _goglib_gstbase1_Aggregator_update_src_caps(GstAggregator*, GstCaps*, GstCaps*); +// GstFlowReturn _goglib_gstbase1_Aggregator_virtual_aggregate(void* fnptr, GstAggregator* carg0, gboolean carg1) { // return ((GstFlowReturn (*) (GstAggregator*, gboolean))(fnptr))(carg0, carg1); // } -// GstBuffer* _gotk4_gstbase1_Aggregator_virtual_clip(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstBuffer* carg2) { +// GstBuffer* _goglib_gstbase1_Aggregator_virtual_clip(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstBuffer* carg2) { // return ((GstBuffer* (*) (GstAggregator*, GstAggregatorPad*, GstBuffer*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_decide_allocation(void* fnptr, GstAggregator* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_Aggregator_virtual_decide_allocation(void* fnptr, GstAggregator* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAggregator*, GstQuery*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_Aggregator_virtual_finish_buffer(void* fnptr, GstAggregator* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_Aggregator_virtual_finish_buffer(void* fnptr, GstAggregator* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstAggregator*, GstBuffer*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_Aggregator_virtual_finish_buffer_list(void* fnptr, GstAggregator* carg0, GstBufferList* carg1) { +// GstFlowReturn _goglib_gstbase1_Aggregator_virtual_finish_buffer_list(void* fnptr, GstAggregator* carg0, GstBufferList* carg1) { // return ((GstFlowReturn (*) (GstAggregator*, GstBufferList*))(fnptr))(carg0, carg1); // } -// GstCaps* _gotk4_gstbase1_Aggregator_virtual_fixate_src_caps(void* fnptr, GstAggregator* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstbase1_Aggregator_virtual_fixate_src_caps(void* fnptr, GstAggregator* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstAggregator*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_Aggregator_virtual_flush(void* fnptr, GstAggregator* carg0) { +// GstFlowReturn _goglib_gstbase1_Aggregator_virtual_flush(void* fnptr, GstAggregator* carg0) { // return ((GstFlowReturn (*) (GstAggregator*))(fnptr))(carg0); // } -// GstClockTime _gotk4_gstbase1_Aggregator_virtual_get_next_time(void* fnptr, GstAggregator* carg0) { +// GstClockTime _goglib_gstbase1_Aggregator_virtual_get_next_time(void* fnptr, GstAggregator* carg0) { // return ((GstClockTime (*) (GstAggregator*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_negotiate(void* fnptr, GstAggregator* carg0) { +// gboolean _goglib_gstbase1_Aggregator_virtual_negotiate(void* fnptr, GstAggregator* carg0) { // return ((gboolean (*) (GstAggregator*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_negotiated_src_caps(void* fnptr, GstAggregator* carg0, GstCaps* carg1) { +// gboolean _goglib_gstbase1_Aggregator_virtual_negotiated_src_caps(void* fnptr, GstAggregator* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstAggregator*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstSample* _gotk4_gstbase1_Aggregator_virtual_peek_next_sample(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1) { +// GstSample* _goglib_gstbase1_Aggregator_virtual_peek_next_sample(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1) { // return ((GstSample* (*) (GstAggregator*, GstAggregatorPad*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_propose_allocation(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstQuery* carg2, GstQuery* carg3) { +// gboolean _goglib_gstbase1_Aggregator_virtual_propose_allocation(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstQuery* carg2, GstQuery* carg3) { // return ((gboolean (*) (GstAggregator*, GstAggregatorPad*, GstQuery*, GstQuery*))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_sink_event(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstEvent* carg2) { +// gboolean _goglib_gstbase1_Aggregator_virtual_sink_event(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstEvent* carg2) { // return ((gboolean (*) (GstAggregator*, GstAggregatorPad*, GstEvent*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstbase1_Aggregator_virtual_sink_event_pre_queue(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstEvent* carg2) { +// GstFlowReturn _goglib_gstbase1_Aggregator_virtual_sink_event_pre_queue(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstEvent* carg2) { // return ((GstFlowReturn (*) (GstAggregator*, GstAggregatorPad*, GstEvent*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_sink_query(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstQuery* carg2) { +// gboolean _goglib_gstbase1_Aggregator_virtual_sink_query(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstQuery* carg2) { // return ((gboolean (*) (GstAggregator*, GstAggregatorPad*, GstQuery*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_sink_query_pre_queue(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstQuery* carg2) { +// gboolean _goglib_gstbase1_Aggregator_virtual_sink_query_pre_queue(void* fnptr, GstAggregator* carg0, GstAggregatorPad* carg1, GstQuery* carg2) { // return ((gboolean (*) (GstAggregator*, GstAggregatorPad*, GstQuery*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_src_activate(void* fnptr, GstAggregator* carg0, GstPadMode carg1, gboolean carg2) { +// gboolean _goglib_gstbase1_Aggregator_virtual_src_activate(void* fnptr, GstAggregator* carg0, GstPadMode carg1, gboolean carg2) { // return ((gboolean (*) (GstAggregator*, GstPadMode, gboolean))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_src_event(void* fnptr, GstAggregator* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_Aggregator_virtual_src_event(void* fnptr, GstAggregator* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstAggregator*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_src_query(void* fnptr, GstAggregator* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_Aggregator_virtual_src_query(void* fnptr, GstAggregator* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAggregator*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_start(void* fnptr, GstAggregator* carg0) { +// gboolean _goglib_gstbase1_Aggregator_virtual_start(void* fnptr, GstAggregator* carg0) { // return ((gboolean (*) (GstAggregator*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_Aggregator_virtual_stop(void* fnptr, GstAggregator* carg0) { +// gboolean _goglib_gstbase1_Aggregator_virtual_stop(void* fnptr, GstAggregator* carg0) { // return ((gboolean (*) (GstAggregator*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstbase1_Aggregator_virtual_update_src_caps(void* fnptr, GstAggregator* carg0, GstCaps* carg1, GstCaps** carg2) { +// GstFlowReturn _goglib_gstbase1_Aggregator_virtual_update_src_caps(void* fnptr, GstAggregator* carg0, GstCaps* carg1, GstCaps** carg2) { // return ((GstFlowReturn (*) (GstAggregator*, GstCaps*, GstCaps**))(fnptr))(carg0, carg1, carg2); // } -// extern GstFlowReturn _gotk4_gstbase1_AggregatorPad_flush(GstAggregatorPad*, GstAggregator*); -// extern gboolean _gotk4_gstbase1_AggregatorPad_skip_buffer(GstAggregatorPad*, GstAggregator*, GstBuffer*); -// GstFlowReturn _gotk4_gstbase1_AggregatorPad_virtual_flush(void* fnptr, GstAggregatorPad* carg0, GstAggregator* carg1) { +// extern GstFlowReturn _goglib_gstbase1_AggregatorPad_flush(GstAggregatorPad*, GstAggregator*); +// extern gboolean _goglib_gstbase1_AggregatorPad_skip_buffer(GstAggregatorPad*, GstAggregator*, GstBuffer*); +// GstFlowReturn _goglib_gstbase1_AggregatorPad_virtual_flush(void* fnptr, GstAggregatorPad* carg0, GstAggregator* carg1) { // return ((GstFlowReturn (*) (GstAggregatorPad*, GstAggregator*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_AggregatorPad_virtual_skip_buffer(void* fnptr, GstAggregatorPad* carg0, GstAggregator* carg1, GstBuffer* carg2) { +// gboolean _goglib_gstbase1_AggregatorPad_virtual_skip_buffer(void* fnptr, GstAggregatorPad* carg0, GstAggregator* carg1, GstBuffer* carg2) { // return ((gboolean (*) (GstAggregatorPad*, GstAggregator*, GstBuffer*))(fnptr))(carg0, carg1, carg2); // } -// extern gboolean _gotk4_gstbase1_BaseParse_convert(GstBaseParse*, GstFormat, gint64, GstFormat, gint64*); -// extern GstFlowReturn _gotk4_gstbase1_BaseParse_detect(GstBaseParse*, GstBuffer*); -// extern GstCaps* _gotk4_gstbase1_BaseParse_get_sink_caps(GstBaseParse*, GstCaps*); -// extern GstFlowReturn _gotk4_gstbase1_BaseParse_handle_frame(GstBaseParse*, GstBaseParseFrame*, gint); -// extern GstFlowReturn _gotk4_gstbase1_BaseParse_pre_push_frame(GstBaseParse*, GstBaseParseFrame*); -// extern gboolean _gotk4_gstbase1_BaseParse_set_sink_caps(GstBaseParse*, GstCaps*); -// extern gboolean _gotk4_gstbase1_BaseParse_sink_event(GstBaseParse*, GstEvent*); -// extern gboolean _gotk4_gstbase1_BaseParse_sink_query(GstBaseParse*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseParse_src_event(GstBaseParse*, GstEvent*); -// extern gboolean _gotk4_gstbase1_BaseParse_src_query(GstBaseParse*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseParse_start(GstBaseParse*); -// extern gboolean _gotk4_gstbase1_BaseParse_stop(GstBaseParse*); -// gboolean _gotk4_gstbase1_BaseParse_virtual_convert(void* fnptr, GstBaseParse* carg0, GstFormat carg1, gint64 carg2, GstFormat carg3, gint64* carg4) { +// extern gboolean _goglib_gstbase1_BaseParse_convert(GstBaseParse*, GstFormat, gint64, GstFormat, gint64*); +// extern GstFlowReturn _goglib_gstbase1_BaseParse_detect(GstBaseParse*, GstBuffer*); +// extern GstCaps* _goglib_gstbase1_BaseParse_get_sink_caps(GstBaseParse*, GstCaps*); +// extern GstFlowReturn _goglib_gstbase1_BaseParse_handle_frame(GstBaseParse*, GstBaseParseFrame*, gint); +// extern GstFlowReturn _goglib_gstbase1_BaseParse_pre_push_frame(GstBaseParse*, GstBaseParseFrame*); +// extern gboolean _goglib_gstbase1_BaseParse_set_sink_caps(GstBaseParse*, GstCaps*); +// extern gboolean _goglib_gstbase1_BaseParse_sink_event(GstBaseParse*, GstEvent*); +// extern gboolean _goglib_gstbase1_BaseParse_sink_query(GstBaseParse*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseParse_src_event(GstBaseParse*, GstEvent*); +// extern gboolean _goglib_gstbase1_BaseParse_src_query(GstBaseParse*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseParse_start(GstBaseParse*); +// extern gboolean _goglib_gstbase1_BaseParse_stop(GstBaseParse*); +// gboolean _goglib_gstbase1_BaseParse_virtual_convert(void* fnptr, GstBaseParse* carg0, GstFormat carg1, gint64 carg2, GstFormat carg3, gint64* carg4) { // return ((gboolean (*) (GstBaseParse*, GstFormat, gint64, GstFormat, gint64*))(fnptr))(carg0, carg1, carg2, carg3, carg4); // } -// GstFlowReturn _gotk4_gstbase1_BaseParse_virtual_detect(void* fnptr, GstBaseParse* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseParse_virtual_detect(void* fnptr, GstBaseParse* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstBaseParse*, GstBuffer*))(fnptr))(carg0, carg1); // } -// GstCaps* _gotk4_gstbase1_BaseParse_virtual_get_sink_caps(void* fnptr, GstBaseParse* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstbase1_BaseParse_virtual_get_sink_caps(void* fnptr, GstBaseParse* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstBaseParse*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_BaseParse_virtual_handle_frame(void* fnptr, GstBaseParse* carg0, GstBaseParseFrame* carg1, gint* carg2) { +// GstFlowReturn _goglib_gstbase1_BaseParse_virtual_handle_frame(void* fnptr, GstBaseParse* carg0, GstBaseParseFrame* carg1, gint* carg2) { // return ((GstFlowReturn (*) (GstBaseParse*, GstBaseParseFrame*, gint*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstbase1_BaseParse_virtual_pre_push_frame(void* fnptr, GstBaseParse* carg0, GstBaseParseFrame* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseParse_virtual_pre_push_frame(void* fnptr, GstBaseParse* carg0, GstBaseParseFrame* carg1) { // return ((GstFlowReturn (*) (GstBaseParse*, GstBaseParseFrame*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_set_sink_caps(void* fnptr, GstBaseParse* carg0, GstCaps* carg1) { +// gboolean _goglib_gstbase1_BaseParse_virtual_set_sink_caps(void* fnptr, GstBaseParse* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstBaseParse*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_sink_event(void* fnptr, GstBaseParse* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_BaseParse_virtual_sink_event(void* fnptr, GstBaseParse* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstBaseParse*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_sink_query(void* fnptr, GstBaseParse* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseParse_virtual_sink_query(void* fnptr, GstBaseParse* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseParse*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_src_event(void* fnptr, GstBaseParse* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_BaseParse_virtual_src_event(void* fnptr, GstBaseParse* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstBaseParse*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_src_query(void* fnptr, GstBaseParse* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseParse_virtual_src_query(void* fnptr, GstBaseParse* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseParse*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_start(void* fnptr, GstBaseParse* carg0) { +// gboolean _goglib_gstbase1_BaseParse_virtual_start(void* fnptr, GstBaseParse* carg0) { // return ((gboolean (*) (GstBaseParse*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseParse_virtual_stop(void* fnptr, GstBaseParse* carg0) { +// gboolean _goglib_gstbase1_BaseParse_virtual_stop(void* fnptr, GstBaseParse* carg0) { // return ((gboolean (*) (GstBaseParse*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstbase1_BaseSink_activate_pull(GstBaseSink*, gboolean); -// extern gboolean _gotk4_gstbase1_BaseSink_event(GstBaseSink*, GstEvent*); -// extern GstCaps* _gotk4_gstbase1_BaseSink_fixate(GstBaseSink*, GstCaps*); -// extern GstCaps* _gotk4_gstbase1_BaseSink_get_caps(GstBaseSink*, GstCaps*); -// extern void _gotk4_gstbase1_BaseSink_get_times(GstBaseSink*, GstBuffer*, GstClockTime, GstClockTime); -// extern GstFlowReturn _gotk4_gstbase1_BaseSink_prepare(GstBaseSink*, GstBuffer*); -// extern GstFlowReturn _gotk4_gstbase1_BaseSink_prepare_list(GstBaseSink*, GstBufferList*); -// extern GstFlowReturn _gotk4_gstbase1_BaseSink_preroll(GstBaseSink*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseSink_propose_allocation(GstBaseSink*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseSink_query(GstBaseSink*, GstQuery*); -// extern GstFlowReturn _gotk4_gstbase1_BaseSink_render(GstBaseSink*, GstBuffer*); -// extern GstFlowReturn _gotk4_gstbase1_BaseSink_render_list(GstBaseSink*, GstBufferList*); -// extern gboolean _gotk4_gstbase1_BaseSink_set_caps(GstBaseSink*, GstCaps*); -// extern gboolean _gotk4_gstbase1_BaseSink_start(GstBaseSink*); -// extern gboolean _gotk4_gstbase1_BaseSink_stop(GstBaseSink*); -// extern gboolean _gotk4_gstbase1_BaseSink_unlock(GstBaseSink*); -// extern gboolean _gotk4_gstbase1_BaseSink_unlock_stop(GstBaseSink*); -// extern GstFlowReturn _gotk4_gstbase1_BaseSink_wait_event(GstBaseSink*, GstEvent*); -// gboolean _gotk4_gstbase1_BaseSink_virtual_activate_pull(void* fnptr, GstBaseSink* carg0, gboolean carg1) { +// extern gboolean _goglib_gstbase1_BaseSink_activate_pull(GstBaseSink*, gboolean); +// extern gboolean _goglib_gstbase1_BaseSink_event(GstBaseSink*, GstEvent*); +// extern GstCaps* _goglib_gstbase1_BaseSink_fixate(GstBaseSink*, GstCaps*); +// extern GstCaps* _goglib_gstbase1_BaseSink_get_caps(GstBaseSink*, GstCaps*); +// extern void _goglib_gstbase1_BaseSink_get_times(GstBaseSink*, GstBuffer*, GstClockTime, GstClockTime); +// extern GstFlowReturn _goglib_gstbase1_BaseSink_prepare(GstBaseSink*, GstBuffer*); +// extern GstFlowReturn _goglib_gstbase1_BaseSink_prepare_list(GstBaseSink*, GstBufferList*); +// extern GstFlowReturn _goglib_gstbase1_BaseSink_preroll(GstBaseSink*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseSink_propose_allocation(GstBaseSink*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseSink_query(GstBaseSink*, GstQuery*); +// extern GstFlowReturn _goglib_gstbase1_BaseSink_render(GstBaseSink*, GstBuffer*); +// extern GstFlowReturn _goglib_gstbase1_BaseSink_render_list(GstBaseSink*, GstBufferList*); +// extern gboolean _goglib_gstbase1_BaseSink_set_caps(GstBaseSink*, GstCaps*); +// extern gboolean _goglib_gstbase1_BaseSink_start(GstBaseSink*); +// extern gboolean _goglib_gstbase1_BaseSink_stop(GstBaseSink*); +// extern gboolean _goglib_gstbase1_BaseSink_unlock(GstBaseSink*); +// extern gboolean _goglib_gstbase1_BaseSink_unlock_stop(GstBaseSink*); +// extern GstFlowReturn _goglib_gstbase1_BaseSink_wait_event(GstBaseSink*, GstEvent*); +// gboolean _goglib_gstbase1_BaseSink_virtual_activate_pull(void* fnptr, GstBaseSink* carg0, gboolean carg1) { // return ((gboolean (*) (GstBaseSink*, gboolean))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_event(void* fnptr, GstBaseSink* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_BaseSink_virtual_event(void* fnptr, GstBaseSink* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstBaseSink*, GstEvent*))(fnptr))(carg0, carg1); // } -// GstCaps* _gotk4_gstbase1_BaseSink_virtual_fixate(void* fnptr, GstBaseSink* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstbase1_BaseSink_virtual_fixate(void* fnptr, GstBaseSink* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstBaseSink*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstCaps* _gotk4_gstbase1_BaseSink_virtual_get_caps(void* fnptr, GstBaseSink* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstbase1_BaseSink_virtual_get_caps(void* fnptr, GstBaseSink* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstBaseSink*, GstCaps*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstbase1_BaseSink_virtual_get_times(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1, GstClockTime* carg2, GstClockTime* carg3) { +// void _goglib_gstbase1_BaseSink_virtual_get_times(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1, GstClockTime* carg2, GstClockTime* carg3) { // return ((void (*) (GstBaseSink*, GstBuffer*, GstClockTime*, GstClockTime*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstFlowReturn _gotk4_gstbase1_BaseSink_virtual_prepare(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseSink_virtual_prepare(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstBaseSink*, GstBuffer*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_BaseSink_virtual_prepare_list(void* fnptr, GstBaseSink* carg0, GstBufferList* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseSink_virtual_prepare_list(void* fnptr, GstBaseSink* carg0, GstBufferList* carg1) { // return ((GstFlowReturn (*) (GstBaseSink*, GstBufferList*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_BaseSink_virtual_preroll(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseSink_virtual_preroll(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstBaseSink*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_propose_allocation(void* fnptr, GstBaseSink* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseSink_virtual_propose_allocation(void* fnptr, GstBaseSink* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseSink*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_query(void* fnptr, GstBaseSink* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseSink_virtual_query(void* fnptr, GstBaseSink* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseSink*, GstQuery*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_BaseSink_virtual_render(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseSink_virtual_render(void* fnptr, GstBaseSink* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstBaseSink*, GstBuffer*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_BaseSink_virtual_render_list(void* fnptr, GstBaseSink* carg0, GstBufferList* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseSink_virtual_render_list(void* fnptr, GstBaseSink* carg0, GstBufferList* carg1) { // return ((GstFlowReturn (*) (GstBaseSink*, GstBufferList*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_set_caps(void* fnptr, GstBaseSink* carg0, GstCaps* carg1) { +// gboolean _goglib_gstbase1_BaseSink_virtual_set_caps(void* fnptr, GstBaseSink* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstBaseSink*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_start(void* fnptr, GstBaseSink* carg0) { +// gboolean _goglib_gstbase1_BaseSink_virtual_start(void* fnptr, GstBaseSink* carg0) { // return ((gboolean (*) (GstBaseSink*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_stop(void* fnptr, GstBaseSink* carg0) { +// gboolean _goglib_gstbase1_BaseSink_virtual_stop(void* fnptr, GstBaseSink* carg0) { // return ((gboolean (*) (GstBaseSink*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_unlock(void* fnptr, GstBaseSink* carg0) { +// gboolean _goglib_gstbase1_BaseSink_virtual_unlock(void* fnptr, GstBaseSink* carg0) { // return ((gboolean (*) (GstBaseSink*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSink_virtual_unlock_stop(void* fnptr, GstBaseSink* carg0) { +// gboolean _goglib_gstbase1_BaseSink_virtual_unlock_stop(void* fnptr, GstBaseSink* carg0) { // return ((gboolean (*) (GstBaseSink*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstbase1_BaseSink_virtual_wait_event(void* fnptr, GstBaseSink* carg0, GstEvent* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseSink_virtual_wait_event(void* fnptr, GstBaseSink* carg0, GstEvent* carg1) { // return ((GstFlowReturn (*) (GstBaseSink*, GstEvent*))(fnptr))(carg0, carg1); // } -// extern GstFlowReturn _gotk4_gstbase1_BaseSrc_alloc(GstBaseSrc*, guint64, guint, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseSrc_decide_allocation(GstBaseSrc*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseSrc_do_seek(GstBaseSrc*, GstSegment*); -// extern gboolean _gotk4_gstbase1_BaseSrc_event(GstBaseSrc*, GstEvent*); -// extern GstFlowReturn _gotk4_gstbase1_BaseSrc_fill(GstBaseSrc*, guint64, guint, GstBuffer*); -// extern GstCaps* _gotk4_gstbase1_BaseSrc_fixate(GstBaseSrc*, GstCaps*); -// extern GstCaps* _gotk4_gstbase1_BaseSrc_get_caps(GstBaseSrc*, GstCaps*); -// extern gboolean _gotk4_gstbase1_BaseSrc_get_size(GstBaseSrc*, guint64); -// extern void _gotk4_gstbase1_BaseSrc_get_times(GstBaseSrc*, GstBuffer*, GstClockTime, GstClockTime); -// extern gboolean _gotk4_gstbase1_BaseSrc_is_seekable(GstBaseSrc*); -// extern gboolean _gotk4_gstbase1_BaseSrc_negotiate(GstBaseSrc*); -// extern gboolean _gotk4_gstbase1_BaseSrc_prepare_seek_segment(GstBaseSrc*, GstEvent*, GstSegment*); -// extern gboolean _gotk4_gstbase1_BaseSrc_query(GstBaseSrc*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseSrc_set_caps(GstBaseSrc*, GstCaps*); -// extern gboolean _gotk4_gstbase1_BaseSrc_start(GstBaseSrc*); -// extern gboolean _gotk4_gstbase1_BaseSrc_stop(GstBaseSrc*); -// extern gboolean _gotk4_gstbase1_BaseSrc_unlock(GstBaseSrc*); -// extern gboolean _gotk4_gstbase1_BaseSrc_unlock_stop(GstBaseSrc*); -// GstFlowReturn _gotk4_gstbase1_BaseSrc_virtual_alloc(void* fnptr, GstBaseSrc* carg0, guint64 carg1, guint carg2, GstBuffer** carg3) { +// extern GstFlowReturn _goglib_gstbase1_BaseSrc_alloc(GstBaseSrc*, guint64, guint, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseSrc_decide_allocation(GstBaseSrc*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseSrc_do_seek(GstBaseSrc*, GstSegment*); +// extern gboolean _goglib_gstbase1_BaseSrc_event(GstBaseSrc*, GstEvent*); +// extern GstFlowReturn _goglib_gstbase1_BaseSrc_fill(GstBaseSrc*, guint64, guint, GstBuffer*); +// extern GstCaps* _goglib_gstbase1_BaseSrc_fixate(GstBaseSrc*, GstCaps*); +// extern GstCaps* _goglib_gstbase1_BaseSrc_get_caps(GstBaseSrc*, GstCaps*); +// extern gboolean _goglib_gstbase1_BaseSrc_get_size(GstBaseSrc*, guint64); +// extern void _goglib_gstbase1_BaseSrc_get_times(GstBaseSrc*, GstBuffer*, GstClockTime, GstClockTime); +// extern gboolean _goglib_gstbase1_BaseSrc_is_seekable(GstBaseSrc*); +// extern gboolean _goglib_gstbase1_BaseSrc_negotiate(GstBaseSrc*); +// extern gboolean _goglib_gstbase1_BaseSrc_prepare_seek_segment(GstBaseSrc*, GstEvent*, GstSegment*); +// extern gboolean _goglib_gstbase1_BaseSrc_query(GstBaseSrc*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseSrc_set_caps(GstBaseSrc*, GstCaps*); +// extern gboolean _goglib_gstbase1_BaseSrc_start(GstBaseSrc*); +// extern gboolean _goglib_gstbase1_BaseSrc_stop(GstBaseSrc*); +// extern gboolean _goglib_gstbase1_BaseSrc_unlock(GstBaseSrc*); +// extern gboolean _goglib_gstbase1_BaseSrc_unlock_stop(GstBaseSrc*); +// GstFlowReturn _goglib_gstbase1_BaseSrc_virtual_alloc(void* fnptr, GstBaseSrc* carg0, guint64 carg1, guint carg2, GstBuffer** carg3) { // return ((GstFlowReturn (*) (GstBaseSrc*, guint64, guint, GstBuffer**))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_decide_allocation(void* fnptr, GstBaseSrc* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_decide_allocation(void* fnptr, GstBaseSrc* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseSrc*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_do_seek(void* fnptr, GstBaseSrc* carg0, GstSegment* carg1) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_do_seek(void* fnptr, GstBaseSrc* carg0, GstSegment* carg1) { // return ((gboolean (*) (GstBaseSrc*, GstSegment*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_event(void* fnptr, GstBaseSrc* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_event(void* fnptr, GstBaseSrc* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstBaseSrc*, GstEvent*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_BaseSrc_virtual_fill(void* fnptr, GstBaseSrc* carg0, guint64 carg1, guint carg2, GstBuffer* carg3) { +// GstFlowReturn _goglib_gstbase1_BaseSrc_virtual_fill(void* fnptr, GstBaseSrc* carg0, guint64 carg1, guint carg2, GstBuffer* carg3) { // return ((GstFlowReturn (*) (GstBaseSrc*, guint64, guint, GstBuffer*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstCaps* _gotk4_gstbase1_BaseSrc_virtual_fixate(void* fnptr, GstBaseSrc* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstbase1_BaseSrc_virtual_fixate(void* fnptr, GstBaseSrc* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstBaseSrc*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstCaps* _gotk4_gstbase1_BaseSrc_virtual_get_caps(void* fnptr, GstBaseSrc* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstbase1_BaseSrc_virtual_get_caps(void* fnptr, GstBaseSrc* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstBaseSrc*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_get_size(void* fnptr, GstBaseSrc* carg0, guint64* carg1) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_get_size(void* fnptr, GstBaseSrc* carg0, guint64* carg1) { // return ((gboolean (*) (GstBaseSrc*, guint64*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstbase1_BaseSrc_virtual_get_times(void* fnptr, GstBaseSrc* carg0, GstBuffer* carg1, GstClockTime* carg2, GstClockTime* carg3) { +// void _goglib_gstbase1_BaseSrc_virtual_get_times(void* fnptr, GstBaseSrc* carg0, GstBuffer* carg1, GstClockTime* carg2, GstClockTime* carg3) { // return ((void (*) (GstBaseSrc*, GstBuffer*, GstClockTime*, GstClockTime*))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_is_seekable(void* fnptr, GstBaseSrc* carg0) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_is_seekable(void* fnptr, GstBaseSrc* carg0) { // return ((gboolean (*) (GstBaseSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_negotiate(void* fnptr, GstBaseSrc* carg0) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_negotiate(void* fnptr, GstBaseSrc* carg0) { // return ((gboolean (*) (GstBaseSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_prepare_seek_segment(void* fnptr, GstBaseSrc* carg0, GstEvent* carg1, GstSegment* carg2) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_prepare_seek_segment(void* fnptr, GstBaseSrc* carg0, GstEvent* carg1, GstSegment* carg2) { // return ((gboolean (*) (GstBaseSrc*, GstEvent*, GstSegment*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_query(void* fnptr, GstBaseSrc* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_query(void* fnptr, GstBaseSrc* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseSrc*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_set_caps(void* fnptr, GstBaseSrc* carg0, GstCaps* carg1) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_set_caps(void* fnptr, GstBaseSrc* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstBaseSrc*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_start(void* fnptr, GstBaseSrc* carg0) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_start(void* fnptr, GstBaseSrc* carg0) { // return ((gboolean (*) (GstBaseSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_stop(void* fnptr, GstBaseSrc* carg0) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_stop(void* fnptr, GstBaseSrc* carg0) { // return ((gboolean (*) (GstBaseSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_unlock(void* fnptr, GstBaseSrc* carg0) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_unlock(void* fnptr, GstBaseSrc* carg0) { // return ((gboolean (*) (GstBaseSrc*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseSrc_virtual_unlock_stop(void* fnptr, GstBaseSrc* carg0) { +// gboolean _goglib_gstbase1_BaseSrc_virtual_unlock_stop(void* fnptr, GstBaseSrc* carg0) { // return ((gboolean (*) (GstBaseSrc*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstbase1_BaseTransform_accept_caps(GstBaseTransform*, GstPadDirection, GstCaps*); -// extern void _gotk4_gstbase1_BaseTransform_before_transform(GstBaseTransform*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseTransform_copy_metadata(GstBaseTransform*, GstBuffer*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseTransform_decide_allocation(GstBaseTransform*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseTransform_filter_meta(GstBaseTransform*, GstQuery*, GType, const GstStructure*); -// extern GstCaps* _gotk4_gstbase1_BaseTransform_fixate_caps(GstBaseTransform*, GstPadDirection, GstCaps*, GstCaps*); -// extern GstFlowReturn _gotk4_gstbase1_BaseTransform_generate_output(GstBaseTransform*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseTransform_get_unit_size(GstBaseTransform*, GstCaps*, gsize); -// extern GstFlowReturn _gotk4_gstbase1_BaseTransform_prepare_output_buffer(GstBaseTransform*, GstBuffer*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseTransform_propose_allocation(GstBaseTransform*, GstQuery*, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseTransform_query(GstBaseTransform*, GstPadDirection, GstQuery*); -// extern gboolean _gotk4_gstbase1_BaseTransform_set_caps(GstBaseTransform*, GstCaps*, GstCaps*); -// extern gboolean _gotk4_gstbase1_BaseTransform_sink_event(GstBaseTransform*, GstEvent*); -// extern gboolean _gotk4_gstbase1_BaseTransform_src_event(GstBaseTransform*, GstEvent*); -// extern gboolean _gotk4_gstbase1_BaseTransform_start(GstBaseTransform*); -// extern gboolean _gotk4_gstbase1_BaseTransform_stop(GstBaseTransform*); -// extern GstFlowReturn _gotk4_gstbase1_BaseTransform_submit_input_buffer(GstBaseTransform*, gboolean, GstBuffer*); -// extern GstFlowReturn _gotk4_gstbase1_BaseTransform_transform(GstBaseTransform*, GstBuffer*, GstBuffer*); -// extern GstCaps* _gotk4_gstbase1_BaseTransform_transform_caps(GstBaseTransform*, GstPadDirection, GstCaps*, GstCaps*); -// extern GstFlowReturn _gotk4_gstbase1_BaseTransform_transform_ip(GstBaseTransform*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseTransform_transform_meta(GstBaseTransform*, GstBuffer*, GstMeta*, GstBuffer*); -// extern gboolean _gotk4_gstbase1_BaseTransform_transform_size(GstBaseTransform*, GstPadDirection, GstCaps*, gsize, GstCaps*, gsize); -// gboolean _gotk4_gstbase1_BaseTransform_virtual_accept_caps(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2) { +// extern gboolean _goglib_gstbase1_BaseTransform_accept_caps(GstBaseTransform*, GstPadDirection, GstCaps*); +// extern void _goglib_gstbase1_BaseTransform_before_transform(GstBaseTransform*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseTransform_copy_metadata(GstBaseTransform*, GstBuffer*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseTransform_decide_allocation(GstBaseTransform*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseTransform_filter_meta(GstBaseTransform*, GstQuery*, GType, const GstStructure*); +// extern GstCaps* _goglib_gstbase1_BaseTransform_fixate_caps(GstBaseTransform*, GstPadDirection, GstCaps*, GstCaps*); +// extern GstFlowReturn _goglib_gstbase1_BaseTransform_generate_output(GstBaseTransform*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseTransform_get_unit_size(GstBaseTransform*, GstCaps*, gsize); +// extern GstFlowReturn _goglib_gstbase1_BaseTransform_prepare_output_buffer(GstBaseTransform*, GstBuffer*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseTransform_propose_allocation(GstBaseTransform*, GstQuery*, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseTransform_query(GstBaseTransform*, GstPadDirection, GstQuery*); +// extern gboolean _goglib_gstbase1_BaseTransform_set_caps(GstBaseTransform*, GstCaps*, GstCaps*); +// extern gboolean _goglib_gstbase1_BaseTransform_sink_event(GstBaseTransform*, GstEvent*); +// extern gboolean _goglib_gstbase1_BaseTransform_src_event(GstBaseTransform*, GstEvent*); +// extern gboolean _goglib_gstbase1_BaseTransform_start(GstBaseTransform*); +// extern gboolean _goglib_gstbase1_BaseTransform_stop(GstBaseTransform*); +// extern GstFlowReturn _goglib_gstbase1_BaseTransform_submit_input_buffer(GstBaseTransform*, gboolean, GstBuffer*); +// extern GstFlowReturn _goglib_gstbase1_BaseTransform_transform(GstBaseTransform*, GstBuffer*, GstBuffer*); +// extern GstCaps* _goglib_gstbase1_BaseTransform_transform_caps(GstBaseTransform*, GstPadDirection, GstCaps*, GstCaps*); +// extern GstFlowReturn _goglib_gstbase1_BaseTransform_transform_ip(GstBaseTransform*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseTransform_transform_meta(GstBaseTransform*, GstBuffer*, GstMeta*, GstBuffer*); +// extern gboolean _goglib_gstbase1_BaseTransform_transform_size(GstBaseTransform*, GstPadDirection, GstCaps*, gsize, GstCaps*, gsize); +// gboolean _goglib_gstbase1_BaseTransform_virtual_accept_caps(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2) { // return ((gboolean (*) (GstBaseTransform*, GstPadDirection, GstCaps*))(fnptr))(carg0, carg1, carg2); // } -// void _gotk4_gstbase1_BaseTransform_virtual_before_transform(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1) { +// void _goglib_gstbase1_BaseTransform_virtual_before_transform(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1) { // return ((void (*) (GstBaseTransform*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_copy_metadata(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstBuffer* carg2) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_copy_metadata(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstBuffer* carg2) { // return ((gboolean (*) (GstBaseTransform*, GstBuffer*, GstBuffer*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_decide_allocation(void* fnptr, GstBaseTransform* carg0, GstQuery* carg1) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_decide_allocation(void* fnptr, GstBaseTransform* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstBaseTransform*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_filter_meta(void* fnptr, GstBaseTransform* carg0, GstQuery* carg1, GType carg2, const GstStructure* carg3) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_filter_meta(void* fnptr, GstBaseTransform* carg0, GstQuery* carg1, GType carg2, const GstStructure* carg3) { // return ((gboolean (*) (GstBaseTransform*, GstQuery*, GType, const GstStructure*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstCaps* _gotk4_gstbase1_BaseTransform_virtual_fixate_caps(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2, GstCaps* carg3) { +// GstCaps* _goglib_gstbase1_BaseTransform_virtual_fixate_caps(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2, GstCaps* carg3) { // return ((GstCaps* (*) (GstBaseTransform*, GstPadDirection, GstCaps*, GstCaps*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstFlowReturn _gotk4_gstbase1_BaseTransform_virtual_generate_output(void* fnptr, GstBaseTransform* carg0, GstBuffer** carg1) { +// GstFlowReturn _goglib_gstbase1_BaseTransform_virtual_generate_output(void* fnptr, GstBaseTransform* carg0, GstBuffer** carg1) { // return ((GstFlowReturn (*) (GstBaseTransform*, GstBuffer**))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_get_unit_size(void* fnptr, GstBaseTransform* carg0, GstCaps* carg1, gsize* carg2) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_get_unit_size(void* fnptr, GstBaseTransform* carg0, GstCaps* carg1, gsize* carg2) { // return ((gboolean (*) (GstBaseTransform*, GstCaps*, gsize*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstbase1_BaseTransform_virtual_prepare_output_buffer(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstBuffer** carg2) { +// GstFlowReturn _goglib_gstbase1_BaseTransform_virtual_prepare_output_buffer(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstBuffer** carg2) { // return ((GstFlowReturn (*) (GstBaseTransform*, GstBuffer*, GstBuffer**))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_propose_allocation(void* fnptr, GstBaseTransform* carg0, GstQuery* carg1, GstQuery* carg2) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_propose_allocation(void* fnptr, GstBaseTransform* carg0, GstQuery* carg1, GstQuery* carg2) { // return ((gboolean (*) (GstBaseTransform*, GstQuery*, GstQuery*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_query(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstQuery* carg2) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_query(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstQuery* carg2) { // return ((gboolean (*) (GstBaseTransform*, GstPadDirection, GstQuery*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_set_caps(void* fnptr, GstBaseTransform* carg0, GstCaps* carg1, GstCaps* carg2) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_set_caps(void* fnptr, GstBaseTransform* carg0, GstCaps* carg1, GstCaps* carg2) { // return ((gboolean (*) (GstBaseTransform*, GstCaps*, GstCaps*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_sink_event(void* fnptr, GstBaseTransform* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_sink_event(void* fnptr, GstBaseTransform* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstBaseTransform*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_src_event(void* fnptr, GstBaseTransform* carg0, GstEvent* carg1) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_src_event(void* fnptr, GstBaseTransform* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstBaseTransform*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_start(void* fnptr, GstBaseTransform* carg0) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_start(void* fnptr, GstBaseTransform* carg0) { // return ((gboolean (*) (GstBaseTransform*))(fnptr))(carg0); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_stop(void* fnptr, GstBaseTransform* carg0) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_stop(void* fnptr, GstBaseTransform* carg0) { // return ((gboolean (*) (GstBaseTransform*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstbase1_BaseTransform_virtual_submit_input_buffer(void* fnptr, GstBaseTransform* carg0, gboolean carg1, GstBuffer* carg2) { +// GstFlowReturn _goglib_gstbase1_BaseTransform_virtual_submit_input_buffer(void* fnptr, GstBaseTransform* carg0, gboolean carg1, GstBuffer* carg2) { // return ((GstFlowReturn (*) (GstBaseTransform*, gboolean, GstBuffer*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstbase1_BaseTransform_virtual_transform(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstBuffer* carg2) { +// GstFlowReturn _goglib_gstbase1_BaseTransform_virtual_transform(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstBuffer* carg2) { // return ((GstFlowReturn (*) (GstBaseTransform*, GstBuffer*, GstBuffer*))(fnptr))(carg0, carg1, carg2); // } -// GstCaps* _gotk4_gstbase1_BaseTransform_virtual_transform_caps(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2, GstCaps* carg3) { +// GstCaps* _goglib_gstbase1_BaseTransform_virtual_transform_caps(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2, GstCaps* carg3) { // return ((GstCaps* (*) (GstBaseTransform*, GstPadDirection, GstCaps*, GstCaps*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstFlowReturn _gotk4_gstbase1_BaseTransform_virtual_transform_ip(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_BaseTransform_virtual_transform_ip(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstBaseTransform*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_transform_meta(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstMeta* carg2, GstBuffer* carg3) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_transform_meta(void* fnptr, GstBaseTransform* carg0, GstBuffer* carg1, GstMeta* carg2, GstBuffer* carg3) { // return ((gboolean (*) (GstBaseTransform*, GstBuffer*, GstMeta*, GstBuffer*))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstbase1_BaseTransform_virtual_transform_size(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2, gsize carg3, GstCaps* carg4, gsize* carg5) { +// gboolean _goglib_gstbase1_BaseTransform_virtual_transform_size(void* fnptr, GstBaseTransform* carg0, GstPadDirection carg1, GstCaps* carg2, gsize carg3, GstCaps* carg4, gsize* carg5) { // return ((gboolean (*) (GstBaseTransform*, GstPadDirection, GstCaps*, gsize, GstCaps*, gsize*))(fnptr))(carg0, carg1, carg2, carg3, carg4, carg5); // } -// extern void _gotk4_gstbase1_DataQueue_empty(GstDataQueue*); -// extern void _gotk4_gstbase1_DataQueue_full(GstDataQueue*); -// void _gotk4_gstbase1_DataQueue_virtual_empty(void* fnptr, GstDataQueue* carg0) { +// extern void _goglib_gstbase1_DataQueue_empty(GstDataQueue*); +// extern void _goglib_gstbase1_DataQueue_full(GstDataQueue*); +// void _goglib_gstbase1_DataQueue_virtual_empty(void* fnptr, GstDataQueue* carg0) { // return ((void (*) (GstDataQueue*))(fnptr))(carg0); // } -// void _gotk4_gstbase1_DataQueue_virtual_full(void* fnptr, GstDataQueue* carg0) { +// void _goglib_gstbase1_DataQueue_virtual_full(void* fnptr, GstDataQueue* carg0) { // return ((void (*) (GstDataQueue*))(fnptr))(carg0); // } -// extern GstFlowReturn _gotk4_gstbase1_PushSrc_alloc(GstPushSrc*, GstBuffer*); -// extern GstFlowReturn _gotk4_gstbase1_PushSrc_fill(GstPushSrc*, GstBuffer*); -// GstFlowReturn _gotk4_gstbase1_PushSrc_virtual_alloc(void* fnptr, GstPushSrc* carg0, GstBuffer** carg1) { +// extern GstFlowReturn _goglib_gstbase1_PushSrc_alloc(GstPushSrc*, GstBuffer*); +// extern GstFlowReturn _goglib_gstbase1_PushSrc_fill(GstPushSrc*, GstBuffer*); +// GstFlowReturn _goglib_gstbase1_PushSrc_virtual_alloc(void* fnptr, GstPushSrc* carg0, GstBuffer** carg1) { // return ((GstFlowReturn (*) (GstPushSrc*, GstBuffer**))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstbase1_PushSrc_virtual_fill(void* fnptr, GstPushSrc* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstbase1_PushSrc_virtual_fill(void* fnptr, GstPushSrc* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstPushSrc*, GstBuffer*))(fnptr))(carg0, carg1); // } import "C" @@ -1028,7 +1028,7 @@ func TypeFindHelperForBufferWithExtension(obj gst.Object, buf *gst.Buffer, exten // Free-function: gst_caps_unref func TypeFindHelperForData(obj gst.Object, data []uint8) (gst.TypeFindProbability, *gst.Caps) { var carg1 *C.GstObject // in, none, converted, nullable - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var carg4 C.GstTypeFindProbability // out, full, casted var cret *C.GstCaps // return, full, converted, nullable @@ -1039,7 +1039,7 @@ func TypeFindHelperForData(obj gst.Object, data []uint8) (gst.TypeFindProbabilit _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_type_find_helper_for_data(carg1, carg2, carg3, &carg4) runtime.KeepAlive(obj) @@ -1081,7 +1081,7 @@ func TypeFindHelperForData(obj gst.Object, data []uint8) (gst.TypeFindProbabilit // Free-function: gst_caps_unref func TypeFindHelperForDataWithCaps(obj gst.Object, data []uint8, caps *gst.Caps) (gst.TypeFindProbability, *gst.Caps) { var carg1 *C.GstObject // in, none, converted, nullable - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var carg4 *C.GstCaps // in, none, converted var carg5 C.GstTypeFindProbability // out, full, casted @@ -1093,7 +1093,7 @@ func TypeFindHelperForDataWithCaps(obj gst.Object, data []uint8, caps *gst.Caps) _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg4 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) cret = C.gst_type_find_helper_for_data_with_caps(carg1, carg2, carg3, carg4, &carg5) @@ -1144,7 +1144,7 @@ func TypeFindHelperForDataWithCaps(obj gst.Object, data []uint8, caps *gst.Caps) // Free-function: gst_caps_unref func TypeFindHelperForDataWithExtension(obj gst.Object, data []uint8, extension string) (gst.TypeFindProbability, *gst.Caps) { var carg1 *C.GstObject // in, none, converted, nullable - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var carg4 *C.gchar // in, none, string, nullable-string var carg5 C.GstTypeFindProbability // out, full, casted @@ -1156,7 +1156,7 @@ func TypeFindHelperForDataWithExtension(obj gst.Object, data []uint8, extension _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") if extension != "" { carg4 = (*C.gchar)(unsafe.Pointer(C.CString(extension))) defer C.free(unsafe.Pointer(carg4)) @@ -3537,7 +3537,7 @@ func (self *AggregatorInstance) GetAllocator() (gst.Allocator, gst.AllocationPar } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -4261,10 +4261,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, pclass := (*C.GstAggregatorClass)(gclass) if overrides.Aggregate != nil { - pclass.aggregate = (*[0]byte)(C._gotk4_gstbase1_Aggregator_aggregate) + pclass.aggregate = (*[0]byte)(C._goglib_gstbase1_Aggregator_aggregate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_aggregate", + "_goglib_gstbase1_Aggregator_aggregate", func(carg0 *C.GstAggregator, carg1 C.gboolean) (cret C.GstFlowReturn) { var aggregator Instance // go GstAggregator subclass var timeout bool // in @@ -4285,10 +4285,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.Clip != nil { - pclass.clip = (*[0]byte)(C._gotk4_gstbase1_Aggregator_clip) + pclass.clip = (*[0]byte)(C._goglib_gstbase1_Aggregator_clip) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_clip", + "_goglib_gstbase1_Aggregator_clip", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstBuffer) (cret *C.GstBuffer) { var aggregator Instance // go GstAggregator subclass var aggregatorPad AggregatorPad // in, none, converted @@ -4309,10 +4309,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstbase1_Aggregator_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstbase1_Aggregator_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_decide_allocation", + "_goglib_gstbase1_Aggregator_decide_allocation", func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { var self Instance // go GstAggregator subclass var query *gst.Query // in, none, converted @@ -4333,10 +4333,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.FinishBuffer != nil { - pclass.finish_buffer = (*[0]byte)(C._gotk4_gstbase1_Aggregator_finish_buffer) + pclass.finish_buffer = (*[0]byte)(C._goglib_gstbase1_Aggregator_finish_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_finish_buffer", + "_goglib_gstbase1_Aggregator_finish_buffer", func(carg0 *C.GstAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var aggregator Instance // go GstAggregator subclass var buffer *gst.Buffer // in, full, converted @@ -4355,10 +4355,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.FinishBufferList != nil { - pclass.finish_buffer_list = (*[0]byte)(C._gotk4_gstbase1_Aggregator_finish_buffer_list) + pclass.finish_buffer_list = (*[0]byte)(C._goglib_gstbase1_Aggregator_finish_buffer_list) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_finish_buffer_list", + "_goglib_gstbase1_Aggregator_finish_buffer_list", func(carg0 *C.GstAggregator, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var aggregator Instance // go GstAggregator subclass var bufferlist *gst.BufferList // in, full, converted @@ -4377,10 +4377,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.FixateSrcCaps != nil { - pclass.fixate_src_caps = (*[0]byte)(C._gotk4_gstbase1_Aggregator_fixate_src_caps) + pclass.fixate_src_caps = (*[0]byte)(C._goglib_gstbase1_Aggregator_fixate_src_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_fixate_src_caps", + "_goglib_gstbase1_Aggregator_fixate_src_caps", func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { var self Instance // go GstAggregator subclass var caps *gst.Caps // in, none, converted @@ -4399,10 +4399,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.Flush != nil { - pclass.flush = (*[0]byte)(C._gotk4_gstbase1_Aggregator_flush) + pclass.flush = (*[0]byte)(C._goglib_gstbase1_Aggregator_flush) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_flush", + "_goglib_gstbase1_Aggregator_flush", func(carg0 *C.GstAggregator) (cret C.GstFlowReturn) { var aggregator Instance // go GstAggregator subclass var goret gst.FlowReturn // return, none, casted @@ -4419,10 +4419,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.GetNextTime != nil { - pclass.get_next_time = (*[0]byte)(C._gotk4_gstbase1_Aggregator_get_next_time) + pclass.get_next_time = (*[0]byte)(C._goglib_gstbase1_Aggregator_get_next_time) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_get_next_time", + "_goglib_gstbase1_Aggregator_get_next_time", func(carg0 *C.GstAggregator) (cret C.GstClockTime) { var aggregator Instance // go GstAggregator subclass var goret gst.ClockTime // return, none, casted, alias @@ -4439,10 +4439,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.Negotiate != nil { - pclass.negotiate = (*[0]byte)(C._gotk4_gstbase1_Aggregator_negotiate) + pclass.negotiate = (*[0]byte)(C._goglib_gstbase1_Aggregator_negotiate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_negotiate", + "_goglib_gstbase1_Aggregator_negotiate", func(carg0 *C.GstAggregator) (cret C.gboolean) { var self Instance // go GstAggregator subclass var goret bool // return @@ -4461,10 +4461,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.NegotiatedSrcCaps != nil { - pclass.negotiated_src_caps = (*[0]byte)(C._gotk4_gstbase1_Aggregator_negotiated_src_caps) + pclass.negotiated_src_caps = (*[0]byte)(C._goglib_gstbase1_Aggregator_negotiated_src_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_negotiated_src_caps", + "_goglib_gstbase1_Aggregator_negotiated_src_caps", func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret C.gboolean) { var self Instance // go GstAggregator subclass var caps *gst.Caps // in, none, converted @@ -4485,10 +4485,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.PeekNextSample != nil { - pclass.peek_next_sample = (*[0]byte)(C._gotk4_gstbase1_Aggregator_peek_next_sample) + pclass.peek_next_sample = (*[0]byte)(C._goglib_gstbase1_Aggregator_peek_next_sample) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_peek_next_sample", + "_goglib_gstbase1_Aggregator_peek_next_sample", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad) (cret *C.GstSample) { var aggregator Instance // go GstAggregator subclass var aggregatorPad AggregatorPad // in, none, converted @@ -4509,10 +4509,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstbase1_Aggregator_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstbase1_Aggregator_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_propose_allocation", + "_goglib_gstbase1_Aggregator_propose_allocation", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery, carg3 *C.GstQuery) (cret C.gboolean) { var self Instance // go GstAggregator subclass var pad AggregatorPad // in, none, converted @@ -4537,10 +4537,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstbase1_Aggregator_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstbase1_Aggregator_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_sink_event", + "_goglib_gstbase1_Aggregator_sink_event", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var aggregatorPad AggregatorPad // in, none, converted @@ -4563,10 +4563,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SinkEventPreQueue != nil { - pclass.sink_event_pre_queue = (*[0]byte)(C._gotk4_gstbase1_Aggregator_sink_event_pre_queue) + pclass.sink_event_pre_queue = (*[0]byte)(C._goglib_gstbase1_Aggregator_sink_event_pre_queue) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_sink_event_pre_queue", + "_goglib_gstbase1_Aggregator_sink_event_pre_queue", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.GstFlowReturn) { var aggregator Instance // go GstAggregator subclass var aggregatorPad AggregatorPad // in, none, converted @@ -4587,10 +4587,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SinkQuery != nil { - pclass.sink_query = (*[0]byte)(C._gotk4_gstbase1_Aggregator_sink_query) + pclass.sink_query = (*[0]byte)(C._goglib_gstbase1_Aggregator_sink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_sink_query", + "_goglib_gstbase1_Aggregator_sink_query", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var aggregatorPad AggregatorPad // in, none, converted @@ -4613,10 +4613,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SinkQueryPreQueue != nil { - pclass.sink_query_pre_queue = (*[0]byte)(C._gotk4_gstbase1_Aggregator_sink_query_pre_queue) + pclass.sink_query_pre_queue = (*[0]byte)(C._goglib_gstbase1_Aggregator_sink_query_pre_queue) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_sink_query_pre_queue", + "_goglib_gstbase1_Aggregator_sink_query_pre_queue", func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var aggregatorPad AggregatorPad // in, none, converted @@ -4639,10 +4639,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SrcActivate != nil { - pclass.src_activate = (*[0]byte)(C._gotk4_gstbase1_Aggregator_src_activate) + pclass.src_activate = (*[0]byte)(C._goglib_gstbase1_Aggregator_src_activate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_src_activate", + "_goglib_gstbase1_Aggregator_src_activate", func(carg0 *C.GstAggregator, carg1 C.GstPadMode, carg2 C.gboolean) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var mode gst.PadMode // in, none, casted @@ -4667,10 +4667,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstbase1_Aggregator_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstbase1_Aggregator_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_src_event", + "_goglib_gstbase1_Aggregator_src_event", func(carg0 *C.GstAggregator, carg1 *C.GstEvent) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var event *gst.Event // in, none, converted @@ -4691,10 +4691,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.SrcQuery != nil { - pclass.src_query = (*[0]byte)(C._gotk4_gstbase1_Aggregator_src_query) + pclass.src_query = (*[0]byte)(C._goglib_gstbase1_Aggregator_src_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_src_query", + "_goglib_gstbase1_Aggregator_src_query", func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var query *gst.Query // in, none, converted @@ -4715,10 +4715,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstbase1_Aggregator_start) + pclass.start = (*[0]byte)(C._goglib_gstbase1_Aggregator_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_start", + "_goglib_gstbase1_Aggregator_start", func(carg0 *C.GstAggregator) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var goret bool // return @@ -4737,10 +4737,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstbase1_Aggregator_stop) + pclass.stop = (*[0]byte)(C._goglib_gstbase1_Aggregator_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_stop", + "_goglib_gstbase1_Aggregator_stop", func(carg0 *C.GstAggregator) (cret C.gboolean) { var aggregator Instance // go GstAggregator subclass var goret bool // return @@ -4759,10 +4759,10 @@ func UnsafeApplyAggregatorOverrides[Instance Aggregator](gclass unsafe.Pointer, } if overrides.UpdateSrcCaps != nil { - pclass.update_src_caps = (*[0]byte)(C._gotk4_gstbase1_Aggregator_update_src_caps) + pclass.update_src_caps = (*[0]byte)(C._goglib_gstbase1_Aggregator_update_src_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_Aggregator_update_src_caps", + "_goglib_gstbase1_Aggregator_update_src_caps", func(carg0 *C.GstAggregator, carg1 *C.GstCaps, carg2 **C.GstCaps) (cret C.GstFlowReturn) { var self Instance // go GstAggregator subclass var caps *gst.Caps // in, none, converted @@ -4813,7 +4813,7 @@ func (aggregator *AggregatorInstance) ParentAggregate(timeout bool) gst.FlowRetu carg1 = C.TRUE } - cret = C._gotk4_gstbase1_Aggregator_virtual_aggregate(unsafe.Pointer(parentclass.aggregate), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_aggregate(unsafe.Pointer(parentclass.aggregate), carg0, carg1) runtime.KeepAlive(aggregator) runtime.KeepAlive(timeout) @@ -4856,7 +4856,7 @@ func (aggregator *AggregatorInstance) ParentClip(aggregatorPad AggregatorPad, bu carg1 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggregatorPad)) carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buf)) - cret = C._gotk4_gstbase1_Aggregator_virtual_clip(unsafe.Pointer(parentclass.clip), carg0, carg1, carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_clip(unsafe.Pointer(parentclass.clip), carg0, carg1, carg2) runtime.KeepAlive(aggregator) runtime.KeepAlive(aggregatorPad) runtime.KeepAlive(buf) @@ -4894,7 +4894,7 @@ func (self *AggregatorInstance) ParentDecideAllocation(query *gst.Query) bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(self)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_Aggregator_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(self) runtime.KeepAlive(query) @@ -4931,7 +4931,7 @@ func (aggregator *AggregatorInstance) ParentFinishBuffer(buffer *gst.Buffer) gst carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibFull(buffer)) - cret = C._gotk4_gstbase1_Aggregator_virtual_finish_buffer(unsafe.Pointer(parentclass.finish_buffer), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_finish_buffer(unsafe.Pointer(parentclass.finish_buffer), carg0, carg1) runtime.KeepAlive(aggregator) runtime.KeepAlive(buffer) @@ -4966,7 +4966,7 @@ func (aggregator *AggregatorInstance) ParentFinishBufferList(bufferlist *gst.Buf carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) carg1 = (*C.GstBufferList)(gst.UnsafeBufferListToGlibFull(bufferlist)) - cret = C._gotk4_gstbase1_Aggregator_virtual_finish_buffer_list(unsafe.Pointer(parentclass.finish_buffer_list), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_finish_buffer_list(unsafe.Pointer(parentclass.finish_buffer_list), carg0, carg1) runtime.KeepAlive(aggregator) runtime.KeepAlive(bufferlist) @@ -5002,7 +5002,7 @@ func (self *AggregatorInstance) ParentFixateSrcCaps(caps *gst.Caps) *gst.Caps { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(self)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_Aggregator_virtual_fixate_src_caps(unsafe.Pointer(parentclass.fixate_src_caps), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_fixate_src_caps(unsafe.Pointer(parentclass.fixate_src_caps), carg0, carg1) runtime.KeepAlive(self) runtime.KeepAlive(caps) @@ -5032,7 +5032,7 @@ func (aggregator *AggregatorInstance) ParentFlush() gst.FlowReturn { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) - cret = C._gotk4_gstbase1_Aggregator_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) + cret = C._goglib_gstbase1_Aggregator_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) runtime.KeepAlive(aggregator) var goret gst.FlowReturn @@ -5063,7 +5063,7 @@ func (aggregator *AggregatorInstance) ParentGetNextTime() gst.ClockTime { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) - cret = C._gotk4_gstbase1_Aggregator_virtual_get_next_time(unsafe.Pointer(parentclass.get_next_time), carg0) + cret = C._goglib_gstbase1_Aggregator_virtual_get_next_time(unsafe.Pointer(parentclass.get_next_time), carg0) runtime.KeepAlive(aggregator) var goret gst.ClockTime @@ -5091,7 +5091,7 @@ func (self *AggregatorInstance) ParentNegotiate() bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(self)) - cret = C._gotk4_gstbase1_Aggregator_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) + cret = C._goglib_gstbase1_Aggregator_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) runtime.KeepAlive(self) var goret bool @@ -5126,7 +5126,7 @@ func (self *AggregatorInstance) ParentNegotiatedSrcCaps(caps *gst.Caps) bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(self)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_Aggregator_virtual_negotiated_src_caps(unsafe.Pointer(parentclass.negotiated_src_caps), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_negotiated_src_caps(unsafe.Pointer(parentclass.negotiated_src_caps), carg0, carg1) runtime.KeepAlive(self) runtime.KeepAlive(caps) @@ -5164,7 +5164,7 @@ func (aggregator *AggregatorInstance) ParentPeekNextSample(aggregatorPad Aggrega carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) carg1 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggregatorPad)) - cret = C._gotk4_gstbase1_Aggregator_virtual_peek_next_sample(unsafe.Pointer(parentclass.peek_next_sample), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_peek_next_sample(unsafe.Pointer(parentclass.peek_next_sample), carg0, carg1) runtime.KeepAlive(aggregator) runtime.KeepAlive(aggregatorPad) @@ -5206,7 +5206,7 @@ func (self *AggregatorInstance) ParentProposeAllocation(pad AggregatorPad, decid carg2 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(decideQuery)) carg3 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_Aggregator_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1, carg2, carg3) + cret = C._goglib_gstbase1_Aggregator_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1, carg2, carg3) runtime.KeepAlive(self) runtime.KeepAlive(pad) runtime.KeepAlive(decideQuery) @@ -5248,7 +5248,7 @@ func (aggregator *AggregatorInstance) ParentSinkEvent(aggregatorPad AggregatorPa carg1 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggregatorPad)) carg2 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_Aggregator_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1, carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1, carg2) runtime.KeepAlive(aggregator) runtime.KeepAlive(aggregatorPad) runtime.KeepAlive(event) @@ -5289,7 +5289,7 @@ func (aggregator *AggregatorInstance) ParentSinkEventPreQueue(aggregatorPad Aggr carg1 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggregatorPad)) carg2 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_Aggregator_virtual_sink_event_pre_queue(unsafe.Pointer(parentclass.sink_event_pre_queue), carg0, carg1, carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_sink_event_pre_queue(unsafe.Pointer(parentclass.sink_event_pre_queue), carg0, carg1, carg2) runtime.KeepAlive(aggregator) runtime.KeepAlive(aggregatorPad) runtime.KeepAlive(event) @@ -5328,7 +5328,7 @@ func (aggregator *AggregatorInstance) ParentSinkQuery(aggregatorPad AggregatorPa carg1 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggregatorPad)) carg2 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_Aggregator_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1, carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1, carg2) runtime.KeepAlive(aggregator) runtime.KeepAlive(aggregatorPad) runtime.KeepAlive(query) @@ -5369,7 +5369,7 @@ func (aggregator *AggregatorInstance) ParentSinkQueryPreQueue(aggregatorPad Aggr carg1 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggregatorPad)) carg2 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_Aggregator_virtual_sink_query_pre_queue(unsafe.Pointer(parentclass.sink_query_pre_queue), carg0, carg1, carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_sink_query_pre_queue(unsafe.Pointer(parentclass.sink_query_pre_queue), carg0, carg1, carg2) runtime.KeepAlive(aggregator) runtime.KeepAlive(aggregatorPad) runtime.KeepAlive(query) @@ -5412,7 +5412,7 @@ func (aggregator *AggregatorInstance) ParentSrcActivate(mode gst.PadMode, active carg2 = C.TRUE } - cret = C._gotk4_gstbase1_Aggregator_virtual_src_activate(unsafe.Pointer(parentclass.src_activate), carg0, carg1, carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_src_activate(unsafe.Pointer(parentclass.src_activate), carg0, carg1, carg2) runtime.KeepAlive(aggregator) runtime.KeepAlive(mode) runtime.KeepAlive(active) @@ -5450,7 +5450,7 @@ func (aggregator *AggregatorInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_Aggregator_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(aggregator) runtime.KeepAlive(event) @@ -5487,7 +5487,7 @@ func (aggregator *AggregatorInstance) ParentSrcQuery(query *gst.Query) bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_Aggregator_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) + cret = C._goglib_gstbase1_Aggregator_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) runtime.KeepAlive(aggregator) runtime.KeepAlive(query) @@ -5519,7 +5519,7 @@ func (aggregator *AggregatorInstance) ParentStart() bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) - cret = C._gotk4_gstbase1_Aggregator_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstbase1_Aggregator_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(aggregator) var goret bool @@ -5549,7 +5549,7 @@ func (aggregator *AggregatorInstance) ParentStop() bool { carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) - cret = C._gotk4_gstbase1_Aggregator_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstbase1_Aggregator_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(aggregator) var goret bool @@ -5583,7 +5583,7 @@ func (self *AggregatorInstance) ParentUpdateSrcCaps(caps *gst.Caps) (*gst.Caps, carg0 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(self)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_Aggregator_virtual_update_src_caps(unsafe.Pointer(parentclass.update_src_caps), carg0, carg1, &carg2) + cret = C._goglib_gstbase1_Aggregator_virtual_update_src_caps(unsafe.Pointer(parentclass.update_src_caps), carg0, carg1, &carg2) runtime.KeepAlive(self) runtime.KeepAlive(caps) @@ -5977,10 +5977,10 @@ func UnsafeApplyAggregatorPadOverrides[Instance AggregatorPad](gclass unsafe.Poi pclass := (*C.GstAggregatorPadClass)(gclass) if overrides.Flush != nil { - pclass.flush = (*[0]byte)(C._gotk4_gstbase1_AggregatorPad_flush) + pclass.flush = (*[0]byte)(C._goglib_gstbase1_AggregatorPad_flush) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_AggregatorPad_flush", + "_goglib_gstbase1_AggregatorPad_flush", func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator) (cret C.GstFlowReturn) { var aggpad Instance // go GstAggregatorPad subclass var aggregator Aggregator // in, none, converted @@ -5999,10 +5999,10 @@ func UnsafeApplyAggregatorPadOverrides[Instance AggregatorPad](gclass unsafe.Poi } if overrides.SkipBuffer != nil { - pclass.skip_buffer = (*[0]byte)(C._gotk4_gstbase1_AggregatorPad_skip_buffer) + pclass.skip_buffer = (*[0]byte)(C._goglib_gstbase1_AggregatorPad_skip_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_AggregatorPad_skip_buffer", + "_goglib_gstbase1_AggregatorPad_skip_buffer", func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator, carg2 *C.GstBuffer) (cret C.gboolean) { var aggpad Instance // go GstAggregatorPad subclass var aggregator Aggregator // in, none, converted @@ -6050,7 +6050,7 @@ func (aggpad *AggregatorPadInstance) ParentFlush(aggregator Aggregator) gst.Flow carg0 = (*C.GstAggregatorPad)(UnsafeAggregatorPadToGlibNone(aggpad)) carg1 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) - cret = C._gotk4_gstbase1_AggregatorPad_virtual_flush(unsafe.Pointer(parentclass.flush), carg0, carg1) + cret = C._goglib_gstbase1_AggregatorPad_virtual_flush(unsafe.Pointer(parentclass.flush), carg0, carg1) runtime.KeepAlive(aggpad) runtime.KeepAlive(aggregator) @@ -6088,7 +6088,7 @@ func (aggpad *AggregatorPadInstance) ParentSkipBuffer(aggregator Aggregator, buf carg1 = (*C.GstAggregator)(UnsafeAggregatorToGlibNone(aggregator)) carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstbase1_AggregatorPad_virtual_skip_buffer(unsafe.Pointer(parentclass.skip_buffer), carg0, carg1, carg2) + cret = C._goglib_gstbase1_AggregatorPad_virtual_skip_buffer(unsafe.Pointer(parentclass.skip_buffer), carg0, carg1, carg2) runtime.KeepAlive(aggpad) runtime.KeepAlive(aggregator) runtime.KeepAlive(buffer) @@ -7456,10 +7456,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov pclass := (*C.GstBaseParseClass)(gclass) if overrides.Convert != nil { - pclass.convert = (*[0]byte)(C._gotk4_gstbase1_BaseParse_convert) + pclass.convert = (*[0]byte)(C._goglib_gstbase1_BaseParse_convert) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_convert", + "_goglib_gstbase1_BaseParse_convert", func(carg0 *C.GstBaseParse, carg1 C.GstFormat, carg2 C.gint64, carg3 C.GstFormat, carg4 *C.gint64) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var srcFormat gst.Format // in, none, casted @@ -7474,7 +7474,7 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov destFormat = gst.Format(carg3) _ = destValue _ = carg4 - panic("unimplemented conversion of *int64 (gint64*)") + panic("unimplemented conversion of *int64 (gint64*) because of unknown reason") goret = overrides.Convert(parse, srcFormat, srcValue, destFormat, destValue) @@ -7488,10 +7488,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.Detect != nil { - pclass.detect = (*[0]byte)(C._gotk4_gstbase1_BaseParse_detect) + pclass.detect = (*[0]byte)(C._goglib_gstbase1_BaseParse_detect) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_detect", + "_goglib_gstbase1_BaseParse_detect", func(carg0 *C.GstBaseParse, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var parse Instance // go GstBaseParse subclass var buffer *gst.Buffer // in, none, converted @@ -7510,10 +7510,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.GetSinkCaps != nil { - pclass.get_sink_caps = (*[0]byte)(C._gotk4_gstbase1_BaseParse_get_sink_caps) + pclass.get_sink_caps = (*[0]byte)(C._goglib_gstbase1_BaseParse_get_sink_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_get_sink_caps", + "_goglib_gstbase1_BaseParse_get_sink_caps", func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret *C.GstCaps) { var parse Instance // go GstBaseParse subclass var filter *gst.Caps // in, none, converted @@ -7532,10 +7532,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.HandleFrame != nil { - pclass.handle_frame = (*[0]byte)(C._gotk4_gstbase1_BaseParse_handle_frame) + pclass.handle_frame = (*[0]byte)(C._goglib_gstbase1_BaseParse_handle_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_handle_frame", + "_goglib_gstbase1_BaseParse_handle_frame", func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame, carg2 *C.gint) (cret C.GstFlowReturn) { var parse Instance // go GstBaseParse subclass var frame *BaseParseFrame // in, none, converted @@ -7556,10 +7556,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.PrePushFrame != nil { - pclass.pre_push_frame = (*[0]byte)(C._gotk4_gstbase1_BaseParse_pre_push_frame) + pclass.pre_push_frame = (*[0]byte)(C._goglib_gstbase1_BaseParse_pre_push_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_pre_push_frame", + "_goglib_gstbase1_BaseParse_pre_push_frame", func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame) (cret C.GstFlowReturn) { var parse Instance // go GstBaseParse subclass var frame *BaseParseFrame // in, none, converted @@ -7578,10 +7578,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.SetSinkCaps != nil { - pclass.set_sink_caps = (*[0]byte)(C._gotk4_gstbase1_BaseParse_set_sink_caps) + pclass.set_sink_caps = (*[0]byte)(C._goglib_gstbase1_BaseParse_set_sink_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_set_sink_caps", + "_goglib_gstbase1_BaseParse_set_sink_caps", func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var caps *gst.Caps // in, none, converted @@ -7602,10 +7602,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstbase1_BaseParse_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstbase1_BaseParse_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_sink_event", + "_goglib_gstbase1_BaseParse_sink_event", func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var event *gst.Event // in, none, converted @@ -7626,10 +7626,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.SinkQuery != nil { - pclass.sink_query = (*[0]byte)(C._gotk4_gstbase1_BaseParse_sink_query) + pclass.sink_query = (*[0]byte)(C._goglib_gstbase1_BaseParse_sink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_sink_query", + "_goglib_gstbase1_BaseParse_sink_query", func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var query *gst.Query // in, none, converted @@ -7650,10 +7650,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstbase1_BaseParse_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstbase1_BaseParse_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_src_event", + "_goglib_gstbase1_BaseParse_src_event", func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var event *gst.Event // in, none, converted @@ -7674,10 +7674,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.SrcQuery != nil { - pclass.src_query = (*[0]byte)(C._gotk4_gstbase1_BaseParse_src_query) + pclass.src_query = (*[0]byte)(C._goglib_gstbase1_BaseParse_src_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_src_query", + "_goglib_gstbase1_BaseParse_src_query", func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var query *gst.Query // in, none, converted @@ -7698,10 +7698,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstbase1_BaseParse_start) + pclass.start = (*[0]byte)(C._goglib_gstbase1_BaseParse_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_start", + "_goglib_gstbase1_BaseParse_start", func(carg0 *C.GstBaseParse) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var goret bool // return @@ -7720,10 +7720,10 @@ func UnsafeApplyBaseParseOverrides[Instance BaseParse](gclass unsafe.Pointer, ov } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstbase1_BaseParse_stop) + pclass.stop = (*[0]byte)(C._goglib_gstbase1_BaseParse_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseParse_stop", + "_goglib_gstbase1_BaseParse_stop", func(carg0 *C.GstBaseParse) (cret C.gboolean) { var parse Instance // go GstBaseParse subclass var goret bool // return @@ -7774,9 +7774,9 @@ func (parse *BaseParseInstance) ParentConvert(srcFormat gst.Format, srcValue int carg3 = C.GstFormat(destFormat) _ = destValue _ = carg4 - panic("unimplemented conversion of *int64 (gint64*)") + panic("unimplemented conversion of *int64 (gint64*) because of no basic converter found") - cret = C._gotk4_gstbase1_BaseParse_virtual_convert(unsafe.Pointer(parentclass.convert), carg0, carg1, carg2, carg3, carg4) + cret = C._goglib_gstbase1_BaseParse_virtual_convert(unsafe.Pointer(parentclass.convert), carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(parse) runtime.KeepAlive(srcFormat) runtime.KeepAlive(srcValue) @@ -7817,7 +7817,7 @@ func (parse *BaseParseInstance) ParentDetect(buffer *gst.Buffer) gst.FlowReturn carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstbase1_BaseParse_virtual_detect(unsafe.Pointer(parentclass.detect), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_detect(unsafe.Pointer(parentclass.detect), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(buffer) @@ -7851,7 +7851,7 @@ func (parse *BaseParseInstance) ParentGetSinkCaps(filter *gst.Caps) *gst.Caps { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstbase1_BaseParse_virtual_get_sink_caps(unsafe.Pointer(parentclass.get_sink_caps), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_get_sink_caps(unsafe.Pointer(parentclass.get_sink_caps), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(filter) @@ -7895,7 +7895,7 @@ func (parse *BaseParseInstance) ParentHandleFrame(frame *BaseParseFrame) (int32, carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstBaseParseFrame)(UnsafeBaseParseFrameToGlibNone(frame)) - cret = C._gotk4_gstbase1_BaseParse_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1, &carg2) + cret = C._goglib_gstbase1_BaseParse_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1, &carg2) runtime.KeepAlive(parse) runtime.KeepAlive(frame) @@ -7935,7 +7935,7 @@ func (parse *BaseParseInstance) ParentPrePushFrame(frame *BaseParseFrame) gst.Fl carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstBaseParseFrame)(UnsafeBaseParseFrameToGlibNone(frame)) - cret = C._gotk4_gstbase1_BaseParse_virtual_pre_push_frame(unsafe.Pointer(parentclass.pre_push_frame), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_pre_push_frame(unsafe.Pointer(parentclass.pre_push_frame), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(frame) @@ -7969,7 +7969,7 @@ func (parse *BaseParseInstance) ParentSetSinkCaps(caps *gst.Caps) bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_BaseParse_virtual_set_sink_caps(unsafe.Pointer(parentclass.set_sink_caps), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_set_sink_caps(unsafe.Pointer(parentclass.set_sink_caps), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(caps) @@ -8007,7 +8007,7 @@ func (parse *BaseParseInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_BaseParse_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(event) @@ -8045,7 +8045,7 @@ func (parse *BaseParseInstance) ParentSinkQuery(query *gst.Query) bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseParse_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(query) @@ -8082,7 +8082,7 @@ func (parse *BaseParseInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_BaseParse_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(event) @@ -8119,7 +8119,7 @@ func (parse *BaseParseInstance) ParentSrcQuery(query *gst.Query) bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseParse_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) + cret = C._goglib_gstbase1_BaseParse_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) runtime.KeepAlive(parse) runtime.KeepAlive(query) @@ -8150,7 +8150,7 @@ func (parse *BaseParseInstance) ParentStart() bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) - cret = C._gotk4_gstbase1_BaseParse_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstbase1_BaseParse_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(parse) var goret bool @@ -8180,7 +8180,7 @@ func (parse *BaseParseInstance) ParentStop() bool { carg0 = (*C.GstBaseParse)(UnsafeBaseParseToGlibNone(parse)) - cret = C._gotk4_gstbase1_BaseParse_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstbase1_BaseParse_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(parse) var goret bool @@ -10117,10 +10117,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over pclass := (*C.GstBaseSinkClass)(gclass) if overrides.ActivatePull != nil { - pclass.activate_pull = (*[0]byte)(C._gotk4_gstbase1_BaseSink_activate_pull) + pclass.activate_pull = (*[0]byte)(C._goglib_gstbase1_BaseSink_activate_pull) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_activate_pull", + "_goglib_gstbase1_BaseSink_activate_pull", func(carg0 *C.GstBaseSink, carg1 C.gboolean) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var active bool // in @@ -10143,10 +10143,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Event != nil { - pclass.event = (*[0]byte)(C._gotk4_gstbase1_BaseSink_event) + pclass.event = (*[0]byte)(C._goglib_gstbase1_BaseSink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_event", + "_goglib_gstbase1_BaseSink_event", func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var event *gst.Event // in, none, converted @@ -10167,10 +10167,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Fixate != nil { - pclass.fixate = (*[0]byte)(C._gotk4_gstbase1_BaseSink_fixate) + pclass.fixate = (*[0]byte)(C._goglib_gstbase1_BaseSink_fixate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_fixate", + "_goglib_gstbase1_BaseSink_fixate", func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { var sink Instance // go GstBaseSink subclass var caps *gst.Caps // in, none, converted @@ -10189,10 +10189,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.GetCaps != nil { - pclass.get_caps = (*[0]byte)(C._gotk4_gstbase1_BaseSink_get_caps) + pclass.get_caps = (*[0]byte)(C._goglib_gstbase1_BaseSink_get_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_get_caps", + "_goglib_gstbase1_BaseSink_get_caps", func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { var sink Instance // go GstBaseSink subclass var filter *gst.Caps // in, none, converted, nullable @@ -10213,10 +10213,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.GetTimes != nil { - pclass.get_times = (*[0]byte)(C._gotk4_gstbase1_BaseSink_get_times) + pclass.get_times = (*[0]byte)(C._goglib_gstbase1_BaseSink_get_times) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_get_times", + "_goglib_gstbase1_BaseSink_get_times", func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { var sink Instance // go GstBaseSink subclass var buffer *gst.Buffer // in, none, converted @@ -10235,10 +10235,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Prepare != nil { - pclass.prepare = (*[0]byte)(C._gotk4_gstbase1_BaseSink_prepare) + pclass.prepare = (*[0]byte)(C._goglib_gstbase1_BaseSink_prepare) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_prepare", + "_goglib_gstbase1_BaseSink_prepare", func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var sink Instance // go GstBaseSink subclass var buffer *gst.Buffer // in, none, converted @@ -10257,10 +10257,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.PrepareList != nil { - pclass.prepare_list = (*[0]byte)(C._gotk4_gstbase1_BaseSink_prepare_list) + pclass.prepare_list = (*[0]byte)(C._goglib_gstbase1_BaseSink_prepare_list) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_prepare_list", + "_goglib_gstbase1_BaseSink_prepare_list", func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var sink Instance // go GstBaseSink subclass var bufferList *gst.BufferList // in, none, converted @@ -10279,10 +10279,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Preroll != nil { - pclass.preroll = (*[0]byte)(C._gotk4_gstbase1_BaseSink_preroll) + pclass.preroll = (*[0]byte)(C._goglib_gstbase1_BaseSink_preroll) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_preroll", + "_goglib_gstbase1_BaseSink_preroll", func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var sink Instance // go GstBaseSink subclass var buffer *gst.Buffer // in, none, converted @@ -10301,10 +10301,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstbase1_BaseSink_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstbase1_BaseSink_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_propose_allocation", + "_goglib_gstbase1_BaseSink_propose_allocation", func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var query *gst.Query // in, none, converted @@ -10325,10 +10325,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Query != nil { - pclass.query = (*[0]byte)(C._gotk4_gstbase1_BaseSink_query) + pclass.query = (*[0]byte)(C._goglib_gstbase1_BaseSink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_query", + "_goglib_gstbase1_BaseSink_query", func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var query *gst.Query // in, none, converted @@ -10349,10 +10349,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Render != nil { - pclass.render = (*[0]byte)(C._gotk4_gstbase1_BaseSink_render) + pclass.render = (*[0]byte)(C._goglib_gstbase1_BaseSink_render) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_render", + "_goglib_gstbase1_BaseSink_render", func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var sink Instance // go GstBaseSink subclass var buffer *gst.Buffer // in, none, converted @@ -10371,10 +10371,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.RenderList != nil { - pclass.render_list = (*[0]byte)(C._gotk4_gstbase1_BaseSink_render_list) + pclass.render_list = (*[0]byte)(C._goglib_gstbase1_BaseSink_render_list) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_render_list", + "_goglib_gstbase1_BaseSink_render_list", func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var sink Instance // go GstBaseSink subclass var bufferList *gst.BufferList // in, none, converted @@ -10393,10 +10393,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.SetCaps != nil { - pclass.set_caps = (*[0]byte)(C._gotk4_gstbase1_BaseSink_set_caps) + pclass.set_caps = (*[0]byte)(C._goglib_gstbase1_BaseSink_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_set_caps", + "_goglib_gstbase1_BaseSink_set_caps", func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var caps *gst.Caps // in, none, converted @@ -10417,10 +10417,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstbase1_BaseSink_start) + pclass.start = (*[0]byte)(C._goglib_gstbase1_BaseSink_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_start", + "_goglib_gstbase1_BaseSink_start", func(carg0 *C.GstBaseSink) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var goret bool // return @@ -10439,10 +10439,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstbase1_BaseSink_stop) + pclass.stop = (*[0]byte)(C._goglib_gstbase1_BaseSink_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_stop", + "_goglib_gstbase1_BaseSink_stop", func(carg0 *C.GstBaseSink) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var goret bool // return @@ -10461,10 +10461,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.Unlock != nil { - pclass.unlock = (*[0]byte)(C._gotk4_gstbase1_BaseSink_unlock) + pclass.unlock = (*[0]byte)(C._goglib_gstbase1_BaseSink_unlock) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_unlock", + "_goglib_gstbase1_BaseSink_unlock", func(carg0 *C.GstBaseSink) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var goret bool // return @@ -10483,10 +10483,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.UnlockStop != nil { - pclass.unlock_stop = (*[0]byte)(C._gotk4_gstbase1_BaseSink_unlock_stop) + pclass.unlock_stop = (*[0]byte)(C._goglib_gstbase1_BaseSink_unlock_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_unlock_stop", + "_goglib_gstbase1_BaseSink_unlock_stop", func(carg0 *C.GstBaseSink) (cret C.gboolean) { var sink Instance // go GstBaseSink subclass var goret bool // return @@ -10505,10 +10505,10 @@ func UnsafeApplyBaseSinkOverrides[Instance BaseSink](gclass unsafe.Pointer, over } if overrides.WaitEvent != nil { - pclass.wait_event = (*[0]byte)(C._gotk4_gstbase1_BaseSink_wait_event) + pclass.wait_event = (*[0]byte)(C._goglib_gstbase1_BaseSink_wait_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSink_wait_event", + "_goglib_gstbase1_BaseSink_wait_event", func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.GstFlowReturn) { var sink Instance // go GstBaseSink subclass var event *gst.Event // in, none, converted @@ -10555,7 +10555,7 @@ func (sink *BaseSinkInstance) ParentActivatePull(active bool) bool { carg1 = C.TRUE } - cret = C._gotk4_gstbase1_BaseSink_virtual_activate_pull(unsafe.Pointer(parentclass.activate_pull), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_activate_pull(unsafe.Pointer(parentclass.activate_pull), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(active) @@ -10590,7 +10590,7 @@ func (sink *BaseSinkInstance) ParentEvent(event *gst.Event) bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_BaseSink_virtual_event(unsafe.Pointer(parentclass.event), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_event(unsafe.Pointer(parentclass.event), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(event) @@ -10626,7 +10626,7 @@ func (sink *BaseSinkInstance) ParentFixate(caps *gst.Caps) *gst.Caps { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_BaseSink_virtual_fixate(unsafe.Pointer(parentclass.fixate), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_fixate(unsafe.Pointer(parentclass.fixate), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(caps) @@ -10661,7 +10661,7 @@ func (sink *BaseSinkInstance) ParentGetCaps(filter *gst.Caps) *gst.Caps { carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) } - cret = C._gotk4_gstbase1_BaseSink_virtual_get_caps(unsafe.Pointer(parentclass.get_caps), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_get_caps(unsafe.Pointer(parentclass.get_caps), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(filter) @@ -10696,7 +10696,7 @@ func (sink *BaseSinkInstance) ParentGetTimes(buffer *gst.Buffer) (gst.ClockTime, carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - C._gotk4_gstbase1_BaseSink_virtual_get_times(unsafe.Pointer(parentclass.get_times), carg0, carg1, &carg2, &carg3) + C._goglib_gstbase1_BaseSink_virtual_get_times(unsafe.Pointer(parentclass.get_times), carg0, carg1, &carg2, &carg3) runtime.KeepAlive(sink) runtime.KeepAlive(buffer) @@ -10732,7 +10732,7 @@ func (sink *BaseSinkInstance) ParentPrepare(buffer *gst.Buffer) gst.FlowReturn { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstbase1_BaseSink_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_prepare(unsafe.Pointer(parentclass.prepare), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(buffer) @@ -10766,7 +10766,7 @@ func (sink *BaseSinkInstance) ParentPrepareList(bufferList *gst.BufferList) gst. carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstBufferList)(gst.UnsafeBufferListToGlibNone(bufferList)) - cret = C._gotk4_gstbase1_BaseSink_virtual_prepare_list(unsafe.Pointer(parentclass.prepare_list), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_prepare_list(unsafe.Pointer(parentclass.prepare_list), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(bufferList) @@ -10799,7 +10799,7 @@ func (sink *BaseSinkInstance) ParentPreroll(buffer *gst.Buffer) gst.FlowReturn { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstbase1_BaseSink_virtual_preroll(unsafe.Pointer(parentclass.preroll), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_preroll(unsafe.Pointer(parentclass.preroll), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(buffer) @@ -10832,7 +10832,7 @@ func (sink *BaseSinkInstance) ParentProposeAllocation(query *gst.Query) bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseSink_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(query) @@ -10867,7 +10867,7 @@ func (sink *BaseSinkInstance) ParentQuery(query *gst.Query) bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseSink_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(query) @@ -10903,7 +10903,7 @@ func (sink *BaseSinkInstance) ParentRender(buffer *gst.Buffer) gst.FlowReturn { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstbase1_BaseSink_virtual_render(unsafe.Pointer(parentclass.render), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_render(unsafe.Pointer(parentclass.render), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(buffer) @@ -10937,7 +10937,7 @@ func (sink *BaseSinkInstance) ParentRenderList(bufferList *gst.BufferList) gst.F carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstBufferList)(gst.UnsafeBufferListToGlibNone(bufferList)) - cret = C._gotk4_gstbase1_BaseSink_virtual_render_list(unsafe.Pointer(parentclass.render_list), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_render_list(unsafe.Pointer(parentclass.render_list), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(bufferList) @@ -10970,7 +10970,7 @@ func (sink *BaseSinkInstance) ParentSetCaps(caps *gst.Caps) bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_BaseSink_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(caps) @@ -10999,7 +10999,7 @@ func (sink *BaseSinkInstance) ParentStart() bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) - cret = C._gotk4_gstbase1_BaseSink_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstbase1_BaseSink_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(sink) var goret bool @@ -11027,7 +11027,7 @@ func (sink *BaseSinkInstance) ParentStop() bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) - cret = C._gotk4_gstbase1_BaseSink_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstbase1_BaseSink_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(sink) var goret bool @@ -11056,7 +11056,7 @@ func (sink *BaseSinkInstance) ParentUnlock() bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) - cret = C._gotk4_gstbase1_BaseSink_virtual_unlock(unsafe.Pointer(parentclass.unlock), carg0) + cret = C._goglib_gstbase1_BaseSink_virtual_unlock(unsafe.Pointer(parentclass.unlock), carg0) runtime.KeepAlive(sink) var goret bool @@ -11088,7 +11088,7 @@ func (sink *BaseSinkInstance) ParentUnlockStop() bool { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) - cret = C._gotk4_gstbase1_BaseSink_virtual_unlock_stop(unsafe.Pointer(parentclass.unlock_stop), carg0) + cret = C._goglib_gstbase1_BaseSink_virtual_unlock_stop(unsafe.Pointer(parentclass.unlock_stop), carg0) runtime.KeepAlive(sink) var goret bool @@ -11124,7 +11124,7 @@ func (sink *BaseSinkInstance) ParentWaitEvent(event *gst.Event) gst.FlowReturn { carg0 = (*C.GstBaseSink)(UnsafeBaseSinkToGlibNone(sink)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_BaseSink_virtual_wait_event(unsafe.Pointer(parentclass.wait_event), carg0, carg1) + cret = C._goglib_gstbase1_BaseSink_virtual_wait_event(unsafe.Pointer(parentclass.wait_event), carg0, carg1) runtime.KeepAlive(sink) runtime.KeepAlive(event) @@ -11895,7 +11895,7 @@ func (src *BaseSrcInstance) GetAllocator() (gst.Allocator, gst.AllocationParams) } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -12731,10 +12731,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri pclass := (*C.GstBaseSrcClass)(gclass) if overrides.Alloc != nil { - pclass.alloc = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_alloc) + pclass.alloc = (*[0]byte)(C._goglib_gstbase1_BaseSrc_alloc) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_alloc", + "_goglib_gstbase1_BaseSrc_alloc", func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 **C.GstBuffer) (cret C.GstFlowReturn) { var src Instance // go GstBaseSrc subclass var offset uint64 // in, none, casted @@ -12757,10 +12757,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstbase1_BaseSrc_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_decide_allocation", + "_goglib_gstbase1_BaseSrc_decide_allocation", func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var query *gst.Query // in, none, converted @@ -12781,10 +12781,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.DoSeek != nil { - pclass.do_seek = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_do_seek) + pclass.do_seek = (*[0]byte)(C._goglib_gstbase1_BaseSrc_do_seek) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_do_seek", + "_goglib_gstbase1_BaseSrc_do_seek", func(carg0 *C.GstBaseSrc, carg1 *C.GstSegment) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var segment *gst.Segment // in, none, converted @@ -12805,10 +12805,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Event != nil { - pclass.event = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_event) + pclass.event = (*[0]byte)(C._goglib_gstbase1_BaseSrc_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_event", + "_goglib_gstbase1_BaseSrc_event", func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var event *gst.Event // in, none, converted @@ -12829,10 +12829,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Fill != nil { - pclass.fill = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_fill) + pclass.fill = (*[0]byte)(C._goglib_gstbase1_BaseSrc_fill) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_fill", + "_goglib_gstbase1_BaseSrc_fill", func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 *C.GstBuffer) (cret C.GstFlowReturn) { var src Instance // go GstBaseSrc subclass var offset uint64 // in, none, casted @@ -12855,10 +12855,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Fixate != nil { - pclass.fixate = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_fixate) + pclass.fixate = (*[0]byte)(C._goglib_gstbase1_BaseSrc_fixate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_fixate", + "_goglib_gstbase1_BaseSrc_fixate", func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { var src Instance // go GstBaseSrc subclass var caps *gst.Caps // in, full, converted @@ -12877,10 +12877,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.GetCaps != nil { - pclass.get_caps = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_get_caps) + pclass.get_caps = (*[0]byte)(C._goglib_gstbase1_BaseSrc_get_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_get_caps", + "_goglib_gstbase1_BaseSrc_get_caps", func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { var src Instance // go GstBaseSrc subclass var filter *gst.Caps // in, none, converted, nullable @@ -12901,10 +12901,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.GetSize != nil { - pclass.get_size = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_get_size) + pclass.get_size = (*[0]byte)(C._goglib_gstbase1_BaseSrc_get_size) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_get_size", + "_goglib_gstbase1_BaseSrc_get_size", func(carg0 *C.GstBaseSrc, carg1 *C.guint64) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var size uint64 // out, full, casted @@ -12925,10 +12925,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.GetTimes != nil { - pclass.get_times = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_get_times) + pclass.get_times = (*[0]byte)(C._goglib_gstbase1_BaseSrc_get_times) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_get_times", + "_goglib_gstbase1_BaseSrc_get_times", func(carg0 *C.GstBaseSrc, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { var src Instance // go GstBaseSrc subclass var buffer *gst.Buffer // in, none, converted @@ -12947,10 +12947,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.IsSeekable != nil { - pclass.is_seekable = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_is_seekable) + pclass.is_seekable = (*[0]byte)(C._goglib_gstbase1_BaseSrc_is_seekable) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_is_seekable", + "_goglib_gstbase1_BaseSrc_is_seekable", func(carg0 *C.GstBaseSrc) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var goret bool // return @@ -12969,10 +12969,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Negotiate != nil { - pclass.negotiate = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_negotiate) + pclass.negotiate = (*[0]byte)(C._goglib_gstbase1_BaseSrc_negotiate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_negotiate", + "_goglib_gstbase1_BaseSrc_negotiate", func(carg0 *C.GstBaseSrc) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var goret bool // return @@ -12991,10 +12991,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.PrepareSeekSegment != nil { - pclass.prepare_seek_segment = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_prepare_seek_segment) + pclass.prepare_seek_segment = (*[0]byte)(C._goglib_gstbase1_BaseSrc_prepare_seek_segment) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_prepare_seek_segment", + "_goglib_gstbase1_BaseSrc_prepare_seek_segment", func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent, carg2 *C.GstSegment) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var seek *gst.Event // in, none, converted @@ -13017,10 +13017,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Query != nil { - pclass.query = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_query) + pclass.query = (*[0]byte)(C._goglib_gstbase1_BaseSrc_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_query", + "_goglib_gstbase1_BaseSrc_query", func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var query *gst.Query // in, none, converted @@ -13041,10 +13041,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.SetCaps != nil { - pclass.set_caps = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_set_caps) + pclass.set_caps = (*[0]byte)(C._goglib_gstbase1_BaseSrc_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_set_caps", + "_goglib_gstbase1_BaseSrc_set_caps", func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var caps *gst.Caps // in, none, converted @@ -13065,10 +13065,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_start) + pclass.start = (*[0]byte)(C._goglib_gstbase1_BaseSrc_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_start", + "_goglib_gstbase1_BaseSrc_start", func(carg0 *C.GstBaseSrc) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var goret bool // return @@ -13087,10 +13087,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_stop) + pclass.stop = (*[0]byte)(C._goglib_gstbase1_BaseSrc_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_stop", + "_goglib_gstbase1_BaseSrc_stop", func(carg0 *C.GstBaseSrc) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var goret bool // return @@ -13109,10 +13109,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.Unlock != nil { - pclass.unlock = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_unlock) + pclass.unlock = (*[0]byte)(C._goglib_gstbase1_BaseSrc_unlock) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_unlock", + "_goglib_gstbase1_BaseSrc_unlock", func(carg0 *C.GstBaseSrc) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var goret bool // return @@ -13131,10 +13131,10 @@ func UnsafeApplyBaseSrcOverrides[Instance BaseSrc](gclass unsafe.Pointer, overri } if overrides.UnlockStop != nil { - pclass.unlock_stop = (*[0]byte)(C._gotk4_gstbase1_BaseSrc_unlock_stop) + pclass.unlock_stop = (*[0]byte)(C._goglib_gstbase1_BaseSrc_unlock_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseSrc_unlock_stop", + "_goglib_gstbase1_BaseSrc_unlock_stop", func(carg0 *C.GstBaseSrc) (cret C.gboolean) { var src Instance // go GstBaseSrc subclass var goret bool // return @@ -13181,7 +13181,7 @@ func (src *BaseSrcInstance) ParentAlloc(offset uint64, size uint) (*gst.Buffer, carg1 = C.guint64(offset) carg2 = C.guint(size) - cret = C._gotk4_gstbase1_BaseSrc_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, carg1, carg2, &carg3) + cret = C._goglib_gstbase1_BaseSrc_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, carg1, carg2, &carg3) runtime.KeepAlive(src) runtime.KeepAlive(offset) runtime.KeepAlive(size) @@ -13219,7 +13219,7 @@ func (src *BaseSrcInstance) ParentDecideAllocation(query *gst.Query) bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(query) @@ -13254,7 +13254,7 @@ func (src *BaseSrcInstance) ParentDoSeek(segment *gst.Segment) bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstSegment)(gst.UnsafeSegmentToGlibNone(segment)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_do_seek(unsafe.Pointer(parentclass.do_seek), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_do_seek(unsafe.Pointer(parentclass.do_seek), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(segment) @@ -13289,7 +13289,7 @@ func (src *BaseSrcInstance) ParentEvent(event *gst.Event) bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_event(unsafe.Pointer(parentclass.event), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_event(unsafe.Pointer(parentclass.event), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(event) @@ -13331,7 +13331,7 @@ func (src *BaseSrcInstance) ParentFill(offset uint64, size uint, buf *gst.Buffer carg2 = C.guint(size) carg3 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buf)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_fill(unsafe.Pointer(parentclass.fill), carg0, carg1, carg2, carg3) + cret = C._goglib_gstbase1_BaseSrc_virtual_fill(unsafe.Pointer(parentclass.fill), carg0, carg1, carg2, carg3) runtime.KeepAlive(src) runtime.KeepAlive(offset) runtime.KeepAlive(size) @@ -13366,7 +13366,7 @@ func (src *BaseSrcInstance) ParentFixate(caps *gst.Caps) *gst.Caps { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibFull(caps)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_fixate(unsafe.Pointer(parentclass.fixate), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_fixate(unsafe.Pointer(parentclass.fixate), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(caps) @@ -13401,7 +13401,7 @@ func (src *BaseSrcInstance) ParentGetCaps(filter *gst.Caps) *gst.Caps { carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) } - cret = C._gotk4_gstbase1_BaseSrc_virtual_get_caps(unsafe.Pointer(parentclass.get_caps), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_get_caps(unsafe.Pointer(parentclass.get_caps), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(filter) @@ -13431,7 +13431,7 @@ func (src *BaseSrcInstance) ParentGetSize() (uint64, bool) { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_get_size(unsafe.Pointer(parentclass.get_size), carg0, &carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_get_size(unsafe.Pointer(parentclass.get_size), carg0, &carg1) runtime.KeepAlive(src) var size uint64 @@ -13470,7 +13470,7 @@ func (src *BaseSrcInstance) ParentGetTimes(buffer *gst.Buffer) (gst.ClockTime, g carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - C._gotk4_gstbase1_BaseSrc_virtual_get_times(unsafe.Pointer(parentclass.get_times), carg0, carg1, &carg2, &carg3) + C._goglib_gstbase1_BaseSrc_virtual_get_times(unsafe.Pointer(parentclass.get_times), carg0, carg1, &carg2, &carg3) runtime.KeepAlive(src) runtime.KeepAlive(buffer) @@ -13499,7 +13499,7 @@ func (src *BaseSrcInstance) ParentIsSeekable() bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_is_seekable(unsafe.Pointer(parentclass.is_seekable), carg0) + cret = C._goglib_gstbase1_BaseSrc_virtual_is_seekable(unsafe.Pointer(parentclass.is_seekable), carg0) runtime.KeepAlive(src) var goret bool @@ -13533,7 +13533,7 @@ func (src *BaseSrcInstance) ParentNegotiate() bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) + cret = C._goglib_gstbase1_BaseSrc_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) runtime.KeepAlive(src) var goret bool @@ -13575,7 +13575,7 @@ func (src *BaseSrcInstance) ParentPrepareSeekSegment(seek *gst.Event, segment *g carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(seek)) carg2 = (*C.GstSegment)(gst.UnsafeSegmentToGlibNone(segment)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_prepare_seek_segment(unsafe.Pointer(parentclass.prepare_seek_segment), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseSrc_virtual_prepare_seek_segment(unsafe.Pointer(parentclass.prepare_seek_segment), carg0, carg1, carg2) runtime.KeepAlive(src) runtime.KeepAlive(seek) runtime.KeepAlive(segment) @@ -13611,7 +13611,7 @@ func (src *BaseSrcInstance) ParentQuery(query *gst.Query) bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(query) @@ -13646,7 +13646,7 @@ func (src *BaseSrcInstance) ParentSetCaps(caps *gst.Caps) bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) + cret = C._goglib_gstbase1_BaseSrc_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(caps) @@ -13678,7 +13678,7 @@ func (src *BaseSrcInstance) ParentStart() bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstbase1_BaseSrc_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(src) var goret bool @@ -13706,7 +13706,7 @@ func (src *BaseSrcInstance) ParentStop() bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstbase1_BaseSrc_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(src) var goret bool @@ -13739,7 +13739,7 @@ func (src *BaseSrcInstance) ParentUnlock() bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_unlock(unsafe.Pointer(parentclass.unlock), carg0) + cret = C._goglib_gstbase1_BaseSrc_virtual_unlock(unsafe.Pointer(parentclass.unlock), carg0) runtime.KeepAlive(src) var goret bool @@ -13769,7 +13769,7 @@ func (src *BaseSrcInstance) ParentUnlockStop() bool { carg0 = (*C.GstBaseSrc)(UnsafeBaseSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_BaseSrc_virtual_unlock_stop(unsafe.Pointer(parentclass.unlock_stop), carg0) + cret = C._goglib_gstbase1_BaseSrc_virtual_unlock_stop(unsafe.Pointer(parentclass.unlock_stop), carg0) runtime.KeepAlive(src) var goret bool @@ -14519,7 +14519,7 @@ func (trans *BaseTransformInstance) GetAllocator() (gst.Allocator, gst.Allocatio } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -15213,10 +15213,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi pclass := (*C.GstBaseTransformClass)(gclass) if overrides.AcceptCaps != nil { - pclass.accept_caps = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_accept_caps) + pclass.accept_caps = (*[0]byte)(C._goglib_gstbase1_BaseTransform_accept_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_accept_caps", + "_goglib_gstbase1_BaseTransform_accept_caps", func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var direction gst.PadDirection // in, none, casted @@ -15239,10 +15239,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.BeforeTransform != nil { - pclass.before_transform = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_before_transform) + pclass.before_transform = (*[0]byte)(C._goglib_gstbase1_BaseTransform_before_transform) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_before_transform", + "_goglib_gstbase1_BaseTransform_before_transform", func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) { var trans Instance // go GstBaseTransform subclass var buffer *gst.Buffer // in, none, converted @@ -15256,10 +15256,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.CopyMetadata != nil { - pclass.copy_metadata = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_copy_metadata) + pclass.copy_metadata = (*[0]byte)(C._goglib_gstbase1_BaseTransform_copy_metadata) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_copy_metadata", + "_goglib_gstbase1_BaseTransform_copy_metadata", func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var input *gst.Buffer // in, none, converted @@ -15282,10 +15282,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstbase1_BaseTransform_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_decide_allocation", + "_goglib_gstbase1_BaseTransform_decide_allocation", func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var query *gst.Query // in, none, converted @@ -15306,10 +15306,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.FilterMeta != nil { - pclass.filter_meta = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_filter_meta) + pclass.filter_meta = (*[0]byte)(C._goglib_gstbase1_BaseTransform_filter_meta) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_filter_meta", + "_goglib_gstbase1_BaseTransform_filter_meta", func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 C.GType, carg3 *C.GstStructure) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var query *gst.Query // in, none, converted @@ -15334,10 +15334,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.FixateCaps != nil { - pclass.fixate_caps = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_fixate_caps) + pclass.fixate_caps = (*[0]byte)(C._goglib_gstbase1_BaseTransform_fixate_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_fixate_caps", + "_goglib_gstbase1_BaseTransform_fixate_caps", func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { var trans Instance // go GstBaseTransform subclass var direction gst.PadDirection // in, none, casted @@ -15360,10 +15360,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.GenerateOutput != nil { - pclass.generate_output = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_generate_output) + pclass.generate_output = (*[0]byte)(C._goglib_gstbase1_BaseTransform_generate_output) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_generate_output", + "_goglib_gstbase1_BaseTransform_generate_output", func(carg0 *C.GstBaseTransform, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { var trans Instance // go GstBaseTransform subclass var outbuf *gst.Buffer // out, full, converted @@ -15382,10 +15382,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.GetUnitSize != nil { - pclass.get_unit_size = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_get_unit_size) + pclass.get_unit_size = (*[0]byte)(C._goglib_gstbase1_BaseTransform_get_unit_size) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_get_unit_size", + "_goglib_gstbase1_BaseTransform_get_unit_size", func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.gsize) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var caps *gst.Caps // in, none, converted @@ -15408,10 +15408,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.PrepareOutputBuffer != nil { - pclass.prepare_output_buffer = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_prepare_output_buffer) + pclass.prepare_output_buffer = (*[0]byte)(C._goglib_gstbase1_BaseTransform_prepare_output_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_prepare_output_buffer", + "_goglib_gstbase1_BaseTransform_prepare_output_buffer", func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 **C.GstBuffer) (cret C.GstFlowReturn) { var trans Instance // go GstBaseTransform subclass var input *gst.Buffer // in, none, converted @@ -15432,10 +15432,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstbase1_BaseTransform_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_propose_allocation", + "_goglib_gstbase1_BaseTransform_propose_allocation", func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 *C.GstQuery) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var decideQuery *gst.Query // in, none, converted @@ -15458,10 +15458,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.Query != nil { - pclass.query = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_query) + pclass.query = (*[0]byte)(C._goglib_gstbase1_BaseTransform_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_query", + "_goglib_gstbase1_BaseTransform_query", func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstQuery) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var direction gst.PadDirection // in, none, casted @@ -15484,10 +15484,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.SetCaps != nil { - pclass.set_caps = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_set_caps) + pclass.set_caps = (*[0]byte)(C._goglib_gstbase1_BaseTransform_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_set_caps", + "_goglib_gstbase1_BaseTransform_set_caps", func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var incaps *gst.Caps // in, none, converted @@ -15510,10 +15510,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstbase1_BaseTransform_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_sink_event", + "_goglib_gstbase1_BaseTransform_sink_event", func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var event *gst.Event // in, full, converted @@ -15534,10 +15534,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstbase1_BaseTransform_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_src_event", + "_goglib_gstbase1_BaseTransform_src_event", func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var event *gst.Event // in, full, converted @@ -15558,10 +15558,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_start) + pclass.start = (*[0]byte)(C._goglib_gstbase1_BaseTransform_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_start", + "_goglib_gstbase1_BaseTransform_start", func(carg0 *C.GstBaseTransform) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var goret bool // return @@ -15580,10 +15580,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_stop) + pclass.stop = (*[0]byte)(C._goglib_gstbase1_BaseTransform_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_stop", + "_goglib_gstbase1_BaseTransform_stop", func(carg0 *C.GstBaseTransform) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var goret bool // return @@ -15602,10 +15602,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.SubmitInputBuffer != nil { - pclass.submit_input_buffer = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_submit_input_buffer) + pclass.submit_input_buffer = (*[0]byte)(C._goglib_gstbase1_BaseTransform_submit_input_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_submit_input_buffer", + "_goglib_gstbase1_BaseTransform_submit_input_buffer", func(carg0 *C.GstBaseTransform, carg1 C.gboolean, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { var trans Instance // go GstBaseTransform subclass var isDiscont bool // in @@ -15628,10 +15628,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.Transform != nil { - pclass.transform = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_transform) + pclass.transform = (*[0]byte)(C._goglib_gstbase1_BaseTransform_transform) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_transform", + "_goglib_gstbase1_BaseTransform_transform", func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { var trans Instance // go GstBaseTransform subclass var inbuf *gst.Buffer // in, none, converted @@ -15652,10 +15652,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.TransformCaps != nil { - pclass.transform_caps = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_transform_caps) + pclass.transform_caps = (*[0]byte)(C._goglib_gstbase1_BaseTransform_transform_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_transform_caps", + "_goglib_gstbase1_BaseTransform_transform_caps", func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { var trans Instance // go GstBaseTransform subclass var direction gst.PadDirection // in, none, casted @@ -15678,10 +15678,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.TransformIp != nil { - pclass.transform_ip = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_transform_ip) + pclass.transform_ip = (*[0]byte)(C._goglib_gstbase1_BaseTransform_transform_ip) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_transform_ip", + "_goglib_gstbase1_BaseTransform_transform_ip", func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var trans Instance // go GstBaseTransform subclass var buf *gst.Buffer // in, none, converted @@ -15700,10 +15700,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.TransformMeta != nil { - pclass.transform_meta = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_transform_meta) + pclass.transform_meta = (*[0]byte)(C._goglib_gstbase1_BaseTransform_transform_meta) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_transform_meta", + "_goglib_gstbase1_BaseTransform_transform_meta", func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var outbuf *gst.Buffer // in, none, converted @@ -15728,10 +15728,10 @@ func UnsafeApplyBaseTransformOverrides[Instance BaseTransform](gclass unsafe.Poi } if overrides.TransformSize != nil { - pclass.transform_size = (*[0]byte)(C._gotk4_gstbase1_BaseTransform_transform_size) + pclass.transform_size = (*[0]byte)(C._goglib_gstbase1_BaseTransform_transform_size) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_BaseTransform_transform_size", + "_goglib_gstbase1_BaseTransform_transform_size", func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 C.gsize, carg4 *C.GstCaps, carg5 *C.gsize) (cret C.gboolean) { var trans Instance // go GstBaseTransform subclass var direction gst.PadDirection // in, none, casted @@ -15788,7 +15788,7 @@ func (trans *BaseTransformInstance) ParentAcceptCaps(direction gst.PadDirection, carg1 = C.GstPadDirection(direction) carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_accept_caps(unsafe.Pointer(parentclass.accept_caps), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_accept_caps(unsafe.Pointer(parentclass.accept_caps), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(direction) runtime.KeepAlive(caps) @@ -15822,7 +15822,7 @@ func (trans *BaseTransformInstance) ParentBeforeTransform(buffer *gst.Buffer) { carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - C._gotk4_gstbase1_BaseTransform_virtual_before_transform(unsafe.Pointer(parentclass.before_transform), carg0, carg1) + C._goglib_gstbase1_BaseTransform_virtual_before_transform(unsafe.Pointer(parentclass.before_transform), carg0, carg1) runtime.KeepAlive(trans) runtime.KeepAlive(buffer) } @@ -15855,7 +15855,7 @@ func (trans *BaseTransformInstance) ParentCopyMetadata(input *gst.Buffer, outbuf carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(input)) carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(outbuf)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_copy_metadata(unsafe.Pointer(parentclass.copy_metadata), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_copy_metadata(unsafe.Pointer(parentclass.copy_metadata), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(input) runtime.KeepAlive(outbuf) @@ -15898,7 +15898,7 @@ func (trans *BaseTransformInstance) ParentDecideAllocation(query *gst.Query) boo carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstbase1_BaseTransform_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(trans) runtime.KeepAlive(query) @@ -15941,7 +15941,7 @@ func (trans *BaseTransformInstance) ParentFilterMeta(query *gst.Query, api gobje carg2 = C.GType(api) carg3 = (*C.GstStructure)(gst.UnsafeStructureToGlibNone(params)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_filter_meta(unsafe.Pointer(parentclass.filter_meta), carg0, carg1, carg2, carg3) + cret = C._goglib_gstbase1_BaseTransform_virtual_filter_meta(unsafe.Pointer(parentclass.filter_meta), carg0, carg1, carg2, carg3) runtime.KeepAlive(trans) runtime.KeepAlive(query) runtime.KeepAlive(api) @@ -15982,7 +15982,7 @@ func (trans *BaseTransformInstance) ParentFixateCaps(direction gst.PadDirection, carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) carg3 = (*C.GstCaps)(gst.UnsafeCapsToGlibFull(othercaps)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_fixate_caps(unsafe.Pointer(parentclass.fixate_caps), carg0, carg1, carg2, carg3) + cret = C._goglib_gstbase1_BaseTransform_virtual_fixate_caps(unsafe.Pointer(parentclass.fixate_caps), carg0, carg1, carg2, carg3) runtime.KeepAlive(trans) runtime.KeepAlive(direction) runtime.KeepAlive(caps) @@ -16011,7 +16011,7 @@ func (trans *BaseTransformInstance) ParentGenerateOutput() (*gst.Buffer, gst.Flo carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_generate_output(unsafe.Pointer(parentclass.generate_output), carg0, &carg1) + cret = C._goglib_gstbase1_BaseTransform_virtual_generate_output(unsafe.Pointer(parentclass.generate_output), carg0, &carg1) runtime.KeepAlive(trans) var outbuf *gst.Buffer @@ -16045,7 +16045,7 @@ func (trans *BaseTransformInstance) ParentGetUnitSize(caps *gst.Caps) (uint, boo carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_get_unit_size(unsafe.Pointer(parentclass.get_unit_size), carg0, carg1, &carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_get_unit_size(unsafe.Pointer(parentclass.get_unit_size), carg0, carg1, &carg2) runtime.KeepAlive(trans) runtime.KeepAlive(caps) @@ -16082,7 +16082,7 @@ func (trans *BaseTransformInstance) ParentPrepareOutputBuffer(input *gst.Buffer) carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(input)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_prepare_output_buffer(unsafe.Pointer(parentclass.prepare_output_buffer), carg0, carg1, &carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_prepare_output_buffer(unsafe.Pointer(parentclass.prepare_output_buffer), carg0, carg1, &carg2) runtime.KeepAlive(trans) runtime.KeepAlive(input) @@ -16127,7 +16127,7 @@ func (trans *BaseTransformInstance) ParentProposeAllocation(decideQuery *gst.Que carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(decideQuery)) carg2 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(decideQuery) runtime.KeepAlive(query) @@ -16169,7 +16169,7 @@ func (trans *BaseTransformInstance) ParentQueryBaseTransform(direction gst.PadDi carg1 = C.GstPadDirection(direction) carg2 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(direction) runtime.KeepAlive(query) @@ -16208,7 +16208,7 @@ func (trans *BaseTransformInstance) ParentSetCaps(incaps *gst.Caps, outcaps *gst carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(incaps)) carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(outcaps)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(incaps) runtime.KeepAlive(outcaps) @@ -16242,7 +16242,7 @@ func (trans *BaseTransformInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibFull(event)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstbase1_BaseTransform_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(trans) runtime.KeepAlive(event) @@ -16275,7 +16275,7 @@ func (trans *BaseTransformInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibFull(event)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstbase1_BaseTransform_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(trans) runtime.KeepAlive(event) @@ -16306,7 +16306,7 @@ func (trans *BaseTransformInstance) ParentStart() bool { carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstbase1_BaseTransform_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(trans) var goret bool @@ -16336,7 +16336,7 @@ func (trans *BaseTransformInstance) ParentStop() bool { carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstbase1_BaseTransform_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(trans) var goret bool @@ -16381,7 +16381,7 @@ func (trans *BaseTransformInstance) ParentSubmitInputBuffer(isDiscont bool, inpu } carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(input)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_submit_input_buffer(unsafe.Pointer(parentclass.submit_input_buffer), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_submit_input_buffer(unsafe.Pointer(parentclass.submit_input_buffer), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(isDiscont) runtime.KeepAlive(input) @@ -16421,7 +16421,7 @@ func (trans *BaseTransformInstance) ParentTransform(inbuf *gst.Buffer, outbuf *g carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(inbuf)) carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(outbuf)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_transform(unsafe.Pointer(parentclass.transform), carg0, carg1, carg2) + cret = C._goglib_gstbase1_BaseTransform_virtual_transform(unsafe.Pointer(parentclass.transform), carg0, carg1, carg2) runtime.KeepAlive(trans) runtime.KeepAlive(inbuf) runtime.KeepAlive(outbuf) @@ -16463,7 +16463,7 @@ func (trans *BaseTransformInstance) ParentTransformCaps(direction gst.PadDirecti carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) carg3 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_transform_caps(unsafe.Pointer(parentclass.transform_caps), carg0, carg1, carg2, carg3) + cret = C._goglib_gstbase1_BaseTransform_virtual_transform_caps(unsafe.Pointer(parentclass.transform_caps), carg0, carg1, carg2, carg3) runtime.KeepAlive(trans) runtime.KeepAlive(direction) runtime.KeepAlive(caps) @@ -16499,7 +16499,7 @@ func (trans *BaseTransformInstance) ParentTransformIp(buf *gst.Buffer) gst.FlowR carg0 = (*C.GstBaseTransform)(UnsafeBaseTransformToGlibNone(trans)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buf)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_transform_ip(unsafe.Pointer(parentclass.transform_ip), carg0, carg1) + cret = C._goglib_gstbase1_BaseTransform_virtual_transform_ip(unsafe.Pointer(parentclass.transform_ip), carg0, carg1) runtime.KeepAlive(trans) runtime.KeepAlive(buf) @@ -16541,7 +16541,7 @@ func (trans *BaseTransformInstance) ParentTransformMeta(outbuf *gst.Buffer, meta carg2 = (*C.GstMeta)(gst.UnsafeMetaToGlibNone(meta)) carg3 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(inbuf)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2, carg3) + cret = C._goglib_gstbase1_BaseTransform_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2, carg3) runtime.KeepAlive(trans) runtime.KeepAlive(outbuf) runtime.KeepAlive(meta) @@ -16587,7 +16587,7 @@ func (trans *BaseTransformInstance) ParentTransformSize(direction gst.PadDirecti carg3 = C.gsize(size) carg4 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(othercaps)) - cret = C._gotk4_gstbase1_BaseTransform_virtual_transform_size(unsafe.Pointer(parentclass.transform_size), carg0, carg1, carg2, carg3, carg4, &carg5) + cret = C._goglib_gstbase1_BaseTransform_virtual_transform_size(unsafe.Pointer(parentclass.transform_size), carg0, carg1, carg2, carg3, carg4, &carg5) runtime.KeepAlive(trans) runtime.KeepAlive(direction) runtime.KeepAlive(caps) @@ -17385,7 +17385,7 @@ func (pads *CollectPadsInstance) SetBufferFunction(fn CollectPadsBufferFunction) var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsBufferFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsBufferFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17408,7 +17408,7 @@ func (pads *CollectPadsInstance) SetClipFunction(clipfunc CollectPadsClipFunctio var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsClipFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsClipFunction) carg2 = C.gpointer(userdata.Register(clipfunc)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17432,7 +17432,7 @@ func (pads *CollectPadsInstance) SetCompareFunction(fn CollectPadsCompareFunctio var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsCompareFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsCompareFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17461,7 +17461,7 @@ func (pads *CollectPadsInstance) SetEventFunction(fn CollectPadsEventFunction) { var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsEventFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsEventFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17485,7 +17485,7 @@ func (pads *CollectPadsInstance) SetFlushFunction(fn CollectPadsFlushFunction) { var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsFlushFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsFlushFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17544,7 +17544,7 @@ func (pads *CollectPadsInstance) SetFunction(fn CollectPadsFunction) { var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17573,7 +17573,7 @@ func (pads *CollectPadsInstance) SetQueryFunction(fn CollectPadsQueryFunction) { var carg2 C.gpointer // implicit carg0 = (*C.GstCollectPads)(UnsafeCollectPadsToGlibNone(pads)) - carg1 = (*[0]byte)(C._gotk4_gstbase1_CollectPadsQueryFunction) + carg1 = (*[0]byte)(C._goglib_gstbase1_CollectPadsQueryFunction) carg2 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg2)) @@ -17894,10 +17894,10 @@ func UnsafeApplyDataQueueOverrides[Instance DataQueue](gclass unsafe.Pointer, ov pclass := (*C.GstDataQueueClass)(gclass) if overrides.Empty != nil { - pclass.empty = (*[0]byte)(C._gotk4_gstbase1_DataQueue_empty) + pclass.empty = (*[0]byte)(C._goglib_gstbase1_DataQueue_empty) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_DataQueue_empty", + "_goglib_gstbase1_DataQueue_empty", func(carg0 *C.GstDataQueue) { var queue Instance // go GstDataQueue subclass @@ -17909,10 +17909,10 @@ func UnsafeApplyDataQueueOverrides[Instance DataQueue](gclass unsafe.Pointer, ov } if overrides.Full != nil { - pclass.full = (*[0]byte)(C._gotk4_gstbase1_DataQueue_full) + pclass.full = (*[0]byte)(C._goglib_gstbase1_DataQueue_full) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_DataQueue_full", + "_goglib_gstbase1_DataQueue_full", func(carg0 *C.GstDataQueue) { var queue Instance // go GstDataQueue subclass @@ -17933,7 +17933,7 @@ func (queue *DataQueueInstance) ParentEmpty() { carg0 = (*C.GstDataQueue)(UnsafeDataQueueToGlibNone(queue)) - C._gotk4_gstbase1_DataQueue_virtual_empty(unsafe.Pointer(parentclass.empty), carg0) + C._goglib_gstbase1_DataQueue_virtual_empty(unsafe.Pointer(parentclass.empty), carg0) runtime.KeepAlive(queue) } @@ -17946,7 +17946,7 @@ func (queue *DataQueueInstance) ParentFull() { carg0 = (*C.GstDataQueue)(UnsafeDataQueueToGlibNone(queue)) - C._gotk4_gstbase1_DataQueue_virtual_full(unsafe.Pointer(parentclass.full), carg0) + C._goglib_gstbase1_DataQueue_virtual_full(unsafe.Pointer(parentclass.full), carg0) runtime.KeepAlive(queue) } @@ -18129,10 +18129,10 @@ func UnsafeApplyPushSrcOverrides[Instance PushSrc](gclass unsafe.Pointer, overri pclass := (*C.GstPushSrcClass)(gclass) if overrides.Alloc != nil { - pclass.alloc = (*[0]byte)(C._gotk4_gstbase1_PushSrc_alloc) + pclass.alloc = (*[0]byte)(C._goglib_gstbase1_PushSrc_alloc) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_PushSrc_alloc", + "_goglib_gstbase1_PushSrc_alloc", func(carg0 *C.GstPushSrc, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { var src Instance // go GstPushSrc subclass var buf *gst.Buffer // out, full, converted @@ -18151,10 +18151,10 @@ func UnsafeApplyPushSrcOverrides[Instance PushSrc](gclass unsafe.Pointer, overri } if overrides.Fill != nil { - pclass.fill = (*[0]byte)(C._gotk4_gstbase1_PushSrc_fill) + pclass.fill = (*[0]byte)(C._goglib_gstbase1_PushSrc_fill) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstbase1_PushSrc_fill", + "_goglib_gstbase1_PushSrc_fill", func(carg0 *C.GstPushSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var src Instance // go GstPushSrc subclass var buf *gst.Buffer // in, none, converted @@ -18191,7 +18191,7 @@ func (src *PushSrcInstance) ParentAllocPushSrc() (*gst.Buffer, gst.FlowReturn) { carg0 = (*C.GstPushSrc)(UnsafePushSrcToGlibNone(src)) - cret = C._gotk4_gstbase1_PushSrc_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, &carg1) + cret = C._goglib_gstbase1_PushSrc_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, &carg1) runtime.KeepAlive(src) var buf *gst.Buffer @@ -18227,7 +18227,7 @@ func (src *PushSrcInstance) ParentFillPushSrc(buf *gst.Buffer) gst.FlowReturn { carg0 = (*C.GstPushSrc)(UnsafePushSrcToGlibNone(src)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buf)) - cret = C._gotk4_gstbase1_PushSrc_virtual_fill(unsafe.Pointer(parentclass.fill), carg0, carg1) + cret = C._goglib_gstbase1_PushSrc_virtual_fill(unsafe.Pointer(parentclass.fill), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(buf) @@ -19140,14 +19140,14 @@ func (reader *BitReader) GetSize() uint { // can be called on already initialized instances. func (reader *BitReader) Init(data []uint8) { var carg0 *C.GstBitReader // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit carg0 = (*C.GstBitReader)(UnsafeBitReaderToGlibNone(reader)) _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") C.gst_bit_reader_init(carg0, carg1, carg2) runtime.KeepAlive(reader) @@ -19888,7 +19888,7 @@ func UnsafeByteReaderToGlibFull(b *ByteReader) unsafe.Pointer { // This function will fail if no NUL-terminator was found in in the data. func (reader *ByteReader) DupStringUTF8() (string, bool) { var carg0 *C.GstByteReader // in, none, converted - var carg1 *C.gchar // out, transfer: full, C Pointers: 1, Name: array[unknown], array (inner: , zero-terminated) + var carg1 *C.gchar // out, transfer: full, C Pointers: 1, Name: array[unknown], array (inner unknown, zero-terminated) var cret C.gboolean // return carg0 = (*C.GstByteReader)(UnsafeByteReaderToGlibNone(reader)) @@ -19901,7 +19901,7 @@ func (reader *ByteReader) DupStringUTF8() (string, bool) { _ = str _ = carg1 - panic("unimplemented conversion of string (gchar*)") + panic("unimplemented conversion of string (gchar*) because of unknown reason") if cret != 0 { goret = true } @@ -20386,7 +20386,7 @@ func (reader *ByteReader) GetSize() uint { // This function will fail if no NUL-terminator was found in in the data. func (reader *ByteReader) GetStringUTF8() (string, bool) { var carg0 *C.GstByteReader // in, none, converted - var carg1 *C.gchar // out, transfer: none, C Pointers: 1, Name: array[unknown], array (inner: , zero-terminated) + var carg1 *C.gchar // out, transfer: none, C Pointers: 1, Name: array[unknown], array (inner unknown, zero-terminated) var cret C.gboolean // return carg0 = (*C.GstByteReader)(UnsafeByteReaderToGlibNone(reader)) @@ -20399,7 +20399,7 @@ func (reader *ByteReader) GetStringUTF8() (string, bool) { _ = str _ = carg1 - panic("unimplemented conversion of string (const gchar*)") + panic("unimplemented conversion of string (const gchar*) because of unknown reason") if cret != 0 { goret = true } @@ -20687,14 +20687,14 @@ func (reader *ByteReader) GetUint8() (uint8, bool) { // can be called on already initialized instances. func (reader *ByteReader) Init(data []uint8) { var carg0 *C.GstByteReader // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit carg0 = (*C.GstByteReader)(UnsafeByteReaderToGlibNone(reader)) _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") C.gst_byte_reader_init(carg0, carg1, carg2) runtime.KeepAlive(reader) @@ -21217,7 +21217,7 @@ func (reader *ByteReader) PeekInt8() (int8, bool) { // This function will fail if no NUL-terminator was found in in the data. func (reader *ByteReader) PeekStringUTF8() (string, bool) { var carg0 *C.GstByteReader // in, none, converted - var carg1 *C.gchar // out, transfer: none, C Pointers: 1, Name: array[unknown], array (inner: , zero-terminated) + var carg1 *C.gchar // out, transfer: none, C Pointers: 1, Name: array[unknown], array (inner unknown, zero-terminated) var cret C.gboolean // return carg0 = (*C.GstByteReader)(UnsafeByteReaderToGlibNone(reader)) @@ -21230,7 +21230,7 @@ func (reader *ByteReader) PeekStringUTF8() (string, bool) { _ = str _ = carg1 - panic("unimplemented conversion of string (const gchar*)") + panic("unimplemented conversion of string (const gchar*) because of unknown reason") if cret != 0 { goret = true } @@ -21865,7 +21865,7 @@ func (writer *ByteWriter) FreeAndGetData() *uint8 { _ = goret _ = cret - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of unknown reason") return goret } @@ -21918,7 +21918,7 @@ func (writer *ByteWriter) Init() { // read @size bytes from the #GstByteWriter from the beginning. func (writer *ByteWriter) InitWithData(data []uint8, initialized bool) { var carg0 *C.GstByteWriter // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.gboolean // in @@ -21926,7 +21926,7 @@ func (writer *ByteWriter) InitWithData(data []uint8, initialized bool) { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") if initialized { carg3 = C.TRUE } @@ -22015,7 +22015,7 @@ func (writer *ByteWriter) PutBuffer(buffer *gst.Buffer, offset uint, size int) b // Writes @size bytes of @data to @writer. func (writer *ByteWriter) PutData(data []uint8) bool { var carg0 *C.GstByteWriter // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.gboolean // return @@ -22023,7 +22023,7 @@ func (writer *ByteWriter) PutData(data []uint8) bool { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_byte_writer_put_data(carg0, carg1, carg2) runtime.KeepAlive(writer) @@ -22467,13 +22467,13 @@ func (writer *ByteWriter) PutInt8(val int8) bool { // Writes a NUL-terminated UTF16 string to @writer (including the terminator). func (writer *ByteWriter) PutStringUTF16(data []uint16) bool { var carg0 *C.GstByteWriter // in, none, converted - var carg1 *C.guint16 // in, transfer: none, C Pointers: 1, Name: array[guint16], array (inner: *typesystem.CastablePrimitive, zero-terminated) + var carg1 *C.guint16 // in, transfer: none, C Pointers: 1, Name: array[guint16], array (inner guint16 (*typesystem.CastablePrimitive), zero-terminated) var cret C.gboolean // return carg0 = (*C.GstByteWriter)(UnsafeByteWriterToGlibNone(writer)) _ = data _ = carg1 - panic("unimplemented conversion of []uint16 (const guint16*)") + panic("unimplemented conversion of []uint16 (const guint16*) because of unimplemented: non-fixed size array") cret = C.gst_byte_writer_put_string_utf16(carg0, carg1) runtime.KeepAlive(writer) @@ -22501,13 +22501,13 @@ func (writer *ByteWriter) PutStringUTF16(data []uint16) bool { // Writes a NUL-terminated UTF32 string to @writer (including the terminator). func (writer *ByteWriter) PutStringUtf32(data []uint32) bool { var carg0 *C.GstByteWriter // in, none, converted - var carg1 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], array (inner: *typesystem.CastablePrimitive, zero-terminated) + var carg1 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], array (inner guint32 (*typesystem.CastablePrimitive), zero-terminated) var cret C.gboolean // return carg0 = (*C.GstByteWriter)(UnsafeByteWriterToGlibNone(writer)) _ = data _ = carg1 - panic("unimplemented conversion of []uint32 (const guint32*)") + panic("unimplemented conversion of []uint32 (const guint32*) because of unimplemented: non-fixed size array") cret = C.gst_byte_writer_put_string_utf32(carg0, carg1) runtime.KeepAlive(writer) diff --git a/pkg/gstbase/gstbase_export.gen.go b/pkg/gstbase/gstbase_export.gen.go index c291340..35b53e8 100644 --- a/pkg/gstbase/gstbase_export.gen.go +++ b/pkg/gstbase/gstbase_export.gen.go @@ -5,16 +5,16 @@ package gstbase import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" "github.com/go-gst/go-gst/pkg/gst" ) // #include import "C" -//export _gotk4_gstbase1_CollectPadsBufferFunction -func _gotk4_gstbase1_CollectPadsBufferFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstBuffer, carg4 C.gpointer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_CollectPadsBufferFunction +func _goglib_gstbase1_CollectPadsBufferFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstBuffer, carg4 C.gpointer) (cret C.GstFlowReturn) { var fn CollectPadsBufferFunction { v := userdata.Load(unsafe.Pointer(carg4)) @@ -40,8 +40,8 @@ func _gotk4_gstbase1_CollectPadsBufferFunction(carg1 *C.GstCollectPads, carg2 *C return cret } -//export _gotk4_gstbase1_CollectPadsClipFunction -func _gotk4_gstbase1_CollectPadsClipFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstBuffer, carg4 **C.GstBuffer, carg5 C.gpointer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_CollectPadsClipFunction +func _goglib_gstbase1_CollectPadsClipFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstBuffer, carg4 **C.GstBuffer, carg5 C.gpointer) (cret C.GstFlowReturn) { var fn CollectPadsClipFunction { v := userdata.Load(unsafe.Pointer(carg5)) @@ -69,8 +69,8 @@ func _gotk4_gstbase1_CollectPadsClipFunction(carg1 *C.GstCollectPads, carg2 *C.G return cret } -//export _gotk4_gstbase1_CollectPadsCompareFunction -func _gotk4_gstbase1_CollectPadsCompareFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 C.GstClockTime, carg4 *C.GstCollectData, carg5 C.GstClockTime, carg6 C.gpointer) (cret C.gint) { +//export _goglib_gstbase1_CollectPadsCompareFunction +func _goglib_gstbase1_CollectPadsCompareFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 C.GstClockTime, carg4 *C.GstCollectData, carg5 C.GstClockTime, carg6 C.gpointer) (cret C.gint) { var fn CollectPadsCompareFunction { v := userdata.Load(unsafe.Pointer(carg6)) @@ -100,8 +100,8 @@ func _gotk4_gstbase1_CollectPadsCompareFunction(carg1 *C.GstCollectPads, carg2 * return cret } -//export _gotk4_gstbase1_CollectPadsEventFunction -func _gotk4_gstbase1_CollectPadsEventFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstEvent, carg4 C.gpointer) (cret C.gboolean) { +//export _goglib_gstbase1_CollectPadsEventFunction +func _goglib_gstbase1_CollectPadsEventFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstEvent, carg4 C.gpointer) (cret C.gboolean) { var fn CollectPadsEventFunction { v := userdata.Load(unsafe.Pointer(carg4)) @@ -129,8 +129,8 @@ func _gotk4_gstbase1_CollectPadsEventFunction(carg1 *C.GstCollectPads, carg2 *C. return cret } -//export _gotk4_gstbase1_CollectPadsFlushFunction -func _gotk4_gstbase1_CollectPadsFlushFunction(carg1 *C.GstCollectPads, carg2 C.gpointer) { +//export _goglib_gstbase1_CollectPadsFlushFunction +func _goglib_gstbase1_CollectPadsFlushFunction(carg1 *C.GstCollectPads, carg2 C.gpointer) { var fn CollectPadsFlushFunction { v := userdata.Load(unsafe.Pointer(carg2)) @@ -147,8 +147,8 @@ func _gotk4_gstbase1_CollectPadsFlushFunction(carg1 *C.GstCollectPads, carg2 C.g fn(pads) } -//export _gotk4_gstbase1_CollectPadsFunction -func _gotk4_gstbase1_CollectPadsFunction(carg1 *C.GstCollectPads, carg2 C.gpointer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_CollectPadsFunction +func _goglib_gstbase1_CollectPadsFunction(carg1 *C.GstCollectPads, carg2 C.gpointer) (cret C.GstFlowReturn) { var fn CollectPadsFunction { v := userdata.Load(unsafe.Pointer(carg2)) @@ -170,8 +170,8 @@ func _gotk4_gstbase1_CollectPadsFunction(carg1 *C.GstCollectPads, carg2 C.gpoint return cret } -//export _gotk4_gstbase1_CollectPadsQueryFunction -func _gotk4_gstbase1_CollectPadsQueryFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstQuery, carg4 C.gpointer) (cret C.gboolean) { +//export _goglib_gstbase1_CollectPadsQueryFunction +func _goglib_gstbase1_CollectPadsQueryFunction(carg1 *C.GstCollectPads, carg2 *C.GstCollectData, carg3 *C.GstQuery, carg4 C.gpointer) (cret C.gboolean) { var fn CollectPadsQueryFunction { v := userdata.Load(unsafe.Pointer(carg4)) @@ -199,1177 +199,1177 @@ func _gotk4_gstbase1_CollectPadsQueryFunction(carg1 *C.GstCollectPads, carg2 *C. return cret } -//export _gotk4_gstbase1_Aggregator_aggregate -func _gotk4_gstbase1_Aggregator_aggregate(carg0 *C.GstAggregator, carg1 C.gboolean) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_Aggregator_aggregate +func _goglib_gstbase1_Aggregator_aggregate(carg0 *C.GstAggregator, carg1 C.gboolean) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregator, carg1 C.gboolean) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_aggregate").(func(carg0 *C.GstAggregator, carg1 C.gboolean) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_aggregate").(func(carg0 *C.GstAggregator, carg1 C.gboolean) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_aggregate: no function pointer found") + panic("_goglib_gstbase1_Aggregator_aggregate: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_clip -func _gotk4_gstbase1_Aggregator_clip(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstBuffer) (cret *C.GstBuffer) { +//export _goglib_gstbase1_Aggregator_clip +func _goglib_gstbase1_Aggregator_clip(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstBuffer) (cret *C.GstBuffer) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstBuffer) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_clip").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstBuffer) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_clip").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstBuffer) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_clip: no function pointer found") + panic("_goglib_gstbase1_Aggregator_clip: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_Aggregator_decide_allocation -func _gotk4_gstbase1_Aggregator_decide_allocation(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_decide_allocation +func _goglib_gstbase1_Aggregator_decide_allocation(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_decide_allocation").(func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_decide_allocation").(func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_decide_allocation: no function pointer found") + panic("_goglib_gstbase1_Aggregator_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_finish_buffer -func _gotk4_gstbase1_Aggregator_finish_buffer(carg0 *C.GstAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_Aggregator_finish_buffer +func _goglib_gstbase1_Aggregator_finish_buffer(carg0 *C.GstAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_finish_buffer").(func(carg0 *C.GstAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_finish_buffer").(func(carg0 *C.GstAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_finish_buffer: no function pointer found") + panic("_goglib_gstbase1_Aggregator_finish_buffer: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_finish_buffer_list -func _gotk4_gstbase1_Aggregator_finish_buffer_list(carg0 *C.GstAggregator, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_Aggregator_finish_buffer_list +func _goglib_gstbase1_Aggregator_finish_buffer_list(carg0 *C.GstAggregator, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_finish_buffer_list").(func(carg0 *C.GstAggregator, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_finish_buffer_list").(func(carg0 *C.GstAggregator, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_finish_buffer_list: no function pointer found") + panic("_goglib_gstbase1_Aggregator_finish_buffer_list: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_fixate_src_caps -func _gotk4_gstbase1_Aggregator_fixate_src_caps(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_Aggregator_fixate_src_caps +func _goglib_gstbase1_Aggregator_fixate_src_caps(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_fixate_src_caps").(func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_fixate_src_caps").(func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_fixate_src_caps: no function pointer found") + panic("_goglib_gstbase1_Aggregator_fixate_src_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_flush -func _gotk4_gstbase1_Aggregator_flush(carg0 *C.GstAggregator) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_Aggregator_flush +func _goglib_gstbase1_Aggregator_flush(carg0 *C.GstAggregator) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregator) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_flush").(func(carg0 *C.GstAggregator) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_flush").(func(carg0 *C.GstAggregator) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_flush: no function pointer found") + panic("_goglib_gstbase1_Aggregator_flush: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_Aggregator_get_next_time -func _gotk4_gstbase1_Aggregator_get_next_time(carg0 *C.GstAggregator) (cret C.GstClockTime) { +//export _goglib_gstbase1_Aggregator_get_next_time +func _goglib_gstbase1_Aggregator_get_next_time(carg0 *C.GstAggregator) (cret C.GstClockTime) { var fn func(carg0 *C.GstAggregator) (cret C.GstClockTime) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_get_next_time").(func(carg0 *C.GstAggregator) (cret C.GstClockTime)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_get_next_time").(func(carg0 *C.GstAggregator) (cret C.GstClockTime)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_get_next_time: no function pointer found") + panic("_goglib_gstbase1_Aggregator_get_next_time: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_Aggregator_negotiate -func _gotk4_gstbase1_Aggregator_negotiate(carg0 *C.GstAggregator) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_negotiate +func _goglib_gstbase1_Aggregator_negotiate(carg0 *C.GstAggregator) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_negotiate").(func(carg0 *C.GstAggregator) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_negotiate").(func(carg0 *C.GstAggregator) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_negotiate: no function pointer found") + panic("_goglib_gstbase1_Aggregator_negotiate: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_Aggregator_negotiated_src_caps -func _gotk4_gstbase1_Aggregator_negotiated_src_caps(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_negotiated_src_caps +func _goglib_gstbase1_Aggregator_negotiated_src_caps(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_negotiated_src_caps").(func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_negotiated_src_caps").(func(carg0 *C.GstAggregator, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_negotiated_src_caps: no function pointer found") + panic("_goglib_gstbase1_Aggregator_negotiated_src_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_peek_next_sample -func _gotk4_gstbase1_Aggregator_peek_next_sample(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad) (cret *C.GstSample) { +//export _goglib_gstbase1_Aggregator_peek_next_sample +func _goglib_gstbase1_Aggregator_peek_next_sample(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad) (cret *C.GstSample) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad) (cret *C.GstSample) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_peek_next_sample").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad) (cret *C.GstSample)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_peek_next_sample").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad) (cret *C.GstSample)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_peek_next_sample: no function pointer found") + panic("_goglib_gstbase1_Aggregator_peek_next_sample: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_propose_allocation -func _gotk4_gstbase1_Aggregator_propose_allocation(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery, carg3 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_propose_allocation +func _goglib_gstbase1_Aggregator_propose_allocation(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery, carg3 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery, carg3 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_propose_allocation").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery, carg3 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_propose_allocation").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery, carg3 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_propose_allocation: no function pointer found") + panic("_goglib_gstbase1_Aggregator_propose_allocation: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_Aggregator_sink_event -func _gotk4_gstbase1_Aggregator_sink_event(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_sink_event +func _goglib_gstbase1_Aggregator_sink_event(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_sink_event").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_sink_event").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_sink_event: no function pointer found") + panic("_goglib_gstbase1_Aggregator_sink_event: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_Aggregator_sink_event_pre_queue -func _gotk4_gstbase1_Aggregator_sink_event_pre_queue(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_Aggregator_sink_event_pre_queue +func _goglib_gstbase1_Aggregator_sink_event_pre_queue(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_sink_event_pre_queue").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_sink_event_pre_queue").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstEvent) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_sink_event_pre_queue: no function pointer found") + panic("_goglib_gstbase1_Aggregator_sink_event_pre_queue: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_Aggregator_sink_query -func _gotk4_gstbase1_Aggregator_sink_query(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_sink_query +func _goglib_gstbase1_Aggregator_sink_query(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_sink_query").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_sink_query").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_sink_query: no function pointer found") + panic("_goglib_gstbase1_Aggregator_sink_query: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_Aggregator_sink_query_pre_queue -func _gotk4_gstbase1_Aggregator_sink_query_pre_queue(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_sink_query_pre_queue +func _goglib_gstbase1_Aggregator_sink_query_pre_queue(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_sink_query_pre_queue").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_sink_query_pre_queue").(func(carg0 *C.GstAggregator, carg1 *C.GstAggregatorPad, carg2 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_sink_query_pre_queue: no function pointer found") + panic("_goglib_gstbase1_Aggregator_sink_query_pre_queue: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_Aggregator_src_activate -func _gotk4_gstbase1_Aggregator_src_activate(carg0 *C.GstAggregator, carg1 C.GstPadMode, carg2 C.gboolean) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_src_activate +func _goglib_gstbase1_Aggregator_src_activate(carg0 *C.GstAggregator, carg1 C.GstPadMode, carg2 C.gboolean) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 C.GstPadMode, carg2 C.gboolean) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_src_activate").(func(carg0 *C.GstAggregator, carg1 C.GstPadMode, carg2 C.gboolean) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_src_activate").(func(carg0 *C.GstAggregator, carg1 C.GstPadMode, carg2 C.gboolean) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_src_activate: no function pointer found") + panic("_goglib_gstbase1_Aggregator_src_activate: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_Aggregator_src_event -func _gotk4_gstbase1_Aggregator_src_event(carg0 *C.GstAggregator, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_src_event +func _goglib_gstbase1_Aggregator_src_event(carg0 *C.GstAggregator, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_src_event").(func(carg0 *C.GstAggregator, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_src_event").(func(carg0 *C.GstAggregator, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_src_event: no function pointer found") + panic("_goglib_gstbase1_Aggregator_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_src_query -func _gotk4_gstbase1_Aggregator_src_query(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_src_query +func _goglib_gstbase1_Aggregator_src_query(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_src_query").(func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_src_query").(func(carg0 *C.GstAggregator, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_src_query: no function pointer found") + panic("_goglib_gstbase1_Aggregator_src_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_Aggregator_start -func _gotk4_gstbase1_Aggregator_start(carg0 *C.GstAggregator) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_start +func _goglib_gstbase1_Aggregator_start(carg0 *C.GstAggregator) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_start").(func(carg0 *C.GstAggregator) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_start").(func(carg0 *C.GstAggregator) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_start: no function pointer found") + panic("_goglib_gstbase1_Aggregator_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_Aggregator_stop -func _gotk4_gstbase1_Aggregator_stop(carg0 *C.GstAggregator) (cret C.gboolean) { +//export _goglib_gstbase1_Aggregator_stop +func _goglib_gstbase1_Aggregator_stop(carg0 *C.GstAggregator) (cret C.gboolean) { var fn func(carg0 *C.GstAggregator) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_stop").(func(carg0 *C.GstAggregator) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_stop").(func(carg0 *C.GstAggregator) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_stop: no function pointer found") + panic("_goglib_gstbase1_Aggregator_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_Aggregator_update_src_caps -func _gotk4_gstbase1_Aggregator_update_src_caps(carg0 *C.GstAggregator, carg1 *C.GstCaps, carg2 **C.GstCaps) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_Aggregator_update_src_caps +func _goglib_gstbase1_Aggregator_update_src_caps(carg0 *C.GstAggregator, carg1 *C.GstCaps, carg2 **C.GstCaps) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregator, carg1 *C.GstCaps, carg2 **C.GstCaps) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_Aggregator_update_src_caps").(func(carg0 *C.GstAggregator, carg1 *C.GstCaps, carg2 **C.GstCaps) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_Aggregator_update_src_caps").(func(carg0 *C.GstAggregator, carg1 *C.GstCaps, carg2 **C.GstCaps) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_Aggregator_update_src_caps: no function pointer found") + panic("_goglib_gstbase1_Aggregator_update_src_caps: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_AggregatorPad_flush -func _gotk4_gstbase1_AggregatorPad_flush(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_AggregatorPad_flush +func _goglib_gstbase1_AggregatorPad_flush(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_AggregatorPad_flush").(func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_AggregatorPad_flush").(func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_AggregatorPad_flush: no function pointer found") + panic("_goglib_gstbase1_AggregatorPad_flush: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_AggregatorPad_skip_buffer -func _gotk4_gstbase1_AggregatorPad_skip_buffer(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator, carg2 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstbase1_AggregatorPad_skip_buffer +func _goglib_gstbase1_AggregatorPad_skip_buffer(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator, carg2 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator, carg2 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_AggregatorPad_skip_buffer").(func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator, carg2 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_AggregatorPad_skip_buffer").(func(carg0 *C.GstAggregatorPad, carg1 *C.GstAggregator, carg2 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_AggregatorPad_skip_buffer: no function pointer found") + panic("_goglib_gstbase1_AggregatorPad_skip_buffer: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseParse_convert -func _gotk4_gstbase1_BaseParse_convert(carg0 *C.GstBaseParse, carg1 C.GstFormat, carg2 C.gint64, carg3 C.GstFormat, carg4 *C.gint64) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_convert +func _goglib_gstbase1_BaseParse_convert(carg0 *C.GstBaseParse, carg1 C.GstFormat, carg2 C.gint64, carg3 C.GstFormat, carg4 *C.gint64) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse, carg1 C.GstFormat, carg2 C.gint64, carg3 C.GstFormat, carg4 *C.gint64) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_convert").(func(carg0 *C.GstBaseParse, carg1 C.GstFormat, carg2 C.gint64, carg3 C.GstFormat, carg4 *C.gint64) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_convert").(func(carg0 *C.GstBaseParse, carg1 C.GstFormat, carg2 C.gint64, carg3 C.GstFormat, carg4 *C.gint64) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_convert: no function pointer found") + panic("_goglib_gstbase1_BaseParse_convert: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4) } -//export _gotk4_gstbase1_BaseParse_detect -func _gotk4_gstbase1_BaseParse_detect(carg0 *C.GstBaseParse, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseParse_detect +func _goglib_gstbase1_BaseParse_detect(carg0 *C.GstBaseParse, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_detect").(func(carg0 *C.GstBaseParse, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_detect").(func(carg0 *C.GstBaseParse, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_detect: no function pointer found") + panic("_goglib_gstbase1_BaseParse_detect: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_get_sink_caps -func _gotk4_gstbase1_BaseParse_get_sink_caps(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseParse_get_sink_caps +func _goglib_gstbase1_BaseParse_get_sink_caps(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_get_sink_caps").(func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_get_sink_caps").(func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_get_sink_caps: no function pointer found") + panic("_goglib_gstbase1_BaseParse_get_sink_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_handle_frame -func _gotk4_gstbase1_BaseParse_handle_frame(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame, carg2 *C.gint) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseParse_handle_frame +func _goglib_gstbase1_BaseParse_handle_frame(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame, carg2 *C.gint) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame, carg2 *C.gint) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_handle_frame").(func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame, carg2 *C.gint) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_handle_frame").(func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame, carg2 *C.gint) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_handle_frame: no function pointer found") + panic("_goglib_gstbase1_BaseParse_handle_frame: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseParse_pre_push_frame -func _gotk4_gstbase1_BaseParse_pre_push_frame(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseParse_pre_push_frame +func _goglib_gstbase1_BaseParse_pre_push_frame(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_pre_push_frame").(func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_pre_push_frame").(func(carg0 *C.GstBaseParse, carg1 *C.GstBaseParseFrame) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_pre_push_frame: no function pointer found") + panic("_goglib_gstbase1_BaseParse_pre_push_frame: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_set_sink_caps -func _gotk4_gstbase1_BaseParse_set_sink_caps(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_set_sink_caps +func _goglib_gstbase1_BaseParse_set_sink_caps(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_set_sink_caps").(func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_set_sink_caps").(func(carg0 *C.GstBaseParse, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_set_sink_caps: no function pointer found") + panic("_goglib_gstbase1_BaseParse_set_sink_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_sink_event -func _gotk4_gstbase1_BaseParse_sink_event(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_sink_event +func _goglib_gstbase1_BaseParse_sink_event(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_sink_event").(func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_sink_event").(func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_sink_event: no function pointer found") + panic("_goglib_gstbase1_BaseParse_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_sink_query -func _gotk4_gstbase1_BaseParse_sink_query(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_sink_query +func _goglib_gstbase1_BaseParse_sink_query(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_sink_query").(func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_sink_query").(func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_sink_query: no function pointer found") + panic("_goglib_gstbase1_BaseParse_sink_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_src_event -func _gotk4_gstbase1_BaseParse_src_event(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_src_event +func _goglib_gstbase1_BaseParse_src_event(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_src_event").(func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_src_event").(func(carg0 *C.GstBaseParse, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_src_event: no function pointer found") + panic("_goglib_gstbase1_BaseParse_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_src_query -func _gotk4_gstbase1_BaseParse_src_query(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_src_query +func _goglib_gstbase1_BaseParse_src_query(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_src_query").(func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_src_query").(func(carg0 *C.GstBaseParse, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_src_query: no function pointer found") + panic("_goglib_gstbase1_BaseParse_src_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseParse_start -func _gotk4_gstbase1_BaseParse_start(carg0 *C.GstBaseParse) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_start +func _goglib_gstbase1_BaseParse_start(carg0 *C.GstBaseParse) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_start").(func(carg0 *C.GstBaseParse) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_start").(func(carg0 *C.GstBaseParse) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_start: no function pointer found") + panic("_goglib_gstbase1_BaseParse_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseParse_stop -func _gotk4_gstbase1_BaseParse_stop(carg0 *C.GstBaseParse) (cret C.gboolean) { +//export _goglib_gstbase1_BaseParse_stop +func _goglib_gstbase1_BaseParse_stop(carg0 *C.GstBaseParse) (cret C.gboolean) { var fn func(carg0 *C.GstBaseParse) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseParse_stop").(func(carg0 *C.GstBaseParse) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseParse_stop").(func(carg0 *C.GstBaseParse) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseParse_stop: no function pointer found") + panic("_goglib_gstbase1_BaseParse_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSink_activate_pull -func _gotk4_gstbase1_BaseSink_activate_pull(carg0 *C.GstBaseSink, carg1 C.gboolean) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_activate_pull +func _goglib_gstbase1_BaseSink_activate_pull(carg0 *C.GstBaseSink, carg1 C.gboolean) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink, carg1 C.gboolean) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_activate_pull").(func(carg0 *C.GstBaseSink, carg1 C.gboolean) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_activate_pull").(func(carg0 *C.GstBaseSink, carg1 C.gboolean) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_activate_pull: no function pointer found") + panic("_goglib_gstbase1_BaseSink_activate_pull: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_event -func _gotk4_gstbase1_BaseSink_event(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_event +func _goglib_gstbase1_BaseSink_event(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_event").(func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_event").(func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_event: no function pointer found") + panic("_goglib_gstbase1_BaseSink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_fixate -func _gotk4_gstbase1_BaseSink_fixate(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseSink_fixate +func _goglib_gstbase1_BaseSink_fixate(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_fixate").(func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_fixate").(func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_fixate: no function pointer found") + panic("_goglib_gstbase1_BaseSink_fixate: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_get_caps -func _gotk4_gstbase1_BaseSink_get_caps(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseSink_get_caps +func _goglib_gstbase1_BaseSink_get_caps(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_get_caps").(func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_get_caps").(func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_get_caps: no function pointer found") + panic("_goglib_gstbase1_BaseSink_get_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_get_times -func _gotk4_gstbase1_BaseSink_get_times(carg0 *C.GstBaseSink, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { +//export _goglib_gstbase1_BaseSink_get_times +func _goglib_gstbase1_BaseSink_get_times(carg0 *C.GstBaseSink, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_get_times").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_get_times").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_get_times: no function pointer found") + panic("_goglib_gstbase1_BaseSink_get_times: no function pointer found") } } fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseSink_prepare -func _gotk4_gstbase1_BaseSink_prepare(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSink_prepare +func _goglib_gstbase1_BaseSink_prepare(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_prepare").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_prepare").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_prepare: no function pointer found") + panic("_goglib_gstbase1_BaseSink_prepare: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_prepare_list -func _gotk4_gstbase1_BaseSink_prepare_list(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSink_prepare_list +func _goglib_gstbase1_BaseSink_prepare_list(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_prepare_list").(func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_prepare_list").(func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_prepare_list: no function pointer found") + panic("_goglib_gstbase1_BaseSink_prepare_list: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_preroll -func _gotk4_gstbase1_BaseSink_preroll(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSink_preroll +func _goglib_gstbase1_BaseSink_preroll(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_preroll").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_preroll").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_preroll: no function pointer found") + panic("_goglib_gstbase1_BaseSink_preroll: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_propose_allocation -func _gotk4_gstbase1_BaseSink_propose_allocation(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_propose_allocation +func _goglib_gstbase1_BaseSink_propose_allocation(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_propose_allocation").(func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_propose_allocation").(func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_propose_allocation: no function pointer found") + panic("_goglib_gstbase1_BaseSink_propose_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_query -func _gotk4_gstbase1_BaseSink_query(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_query +func _goglib_gstbase1_BaseSink_query(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_query").(func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_query").(func(carg0 *C.GstBaseSink, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_query: no function pointer found") + panic("_goglib_gstbase1_BaseSink_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_render -func _gotk4_gstbase1_BaseSink_render(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSink_render +func _goglib_gstbase1_BaseSink_render(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_render").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_render").(func(carg0 *C.GstBaseSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_render: no function pointer found") + panic("_goglib_gstbase1_BaseSink_render: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_render_list -func _gotk4_gstbase1_BaseSink_render_list(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSink_render_list +func _goglib_gstbase1_BaseSink_render_list(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_render_list").(func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_render_list").(func(carg0 *C.GstBaseSink, carg1 *C.GstBufferList) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_render_list: no function pointer found") + panic("_goglib_gstbase1_BaseSink_render_list: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_set_caps -func _gotk4_gstbase1_BaseSink_set_caps(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_set_caps +func _goglib_gstbase1_BaseSink_set_caps(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_set_caps").(func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_set_caps").(func(carg0 *C.GstBaseSink, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_set_caps: no function pointer found") + panic("_goglib_gstbase1_BaseSink_set_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSink_start -func _gotk4_gstbase1_BaseSink_start(carg0 *C.GstBaseSink) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_start +func _goglib_gstbase1_BaseSink_start(carg0 *C.GstBaseSink) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_start").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_start").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_start: no function pointer found") + panic("_goglib_gstbase1_BaseSink_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSink_stop -func _gotk4_gstbase1_BaseSink_stop(carg0 *C.GstBaseSink) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_stop +func _goglib_gstbase1_BaseSink_stop(carg0 *C.GstBaseSink) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_stop").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_stop").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_stop: no function pointer found") + panic("_goglib_gstbase1_BaseSink_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSink_unlock -func _gotk4_gstbase1_BaseSink_unlock(carg0 *C.GstBaseSink) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_unlock +func _goglib_gstbase1_BaseSink_unlock(carg0 *C.GstBaseSink) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_unlock").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_unlock").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_unlock: no function pointer found") + panic("_goglib_gstbase1_BaseSink_unlock: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSink_unlock_stop -func _gotk4_gstbase1_BaseSink_unlock_stop(carg0 *C.GstBaseSink) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSink_unlock_stop +func _goglib_gstbase1_BaseSink_unlock_stop(carg0 *C.GstBaseSink) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSink) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_unlock_stop").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_unlock_stop").(func(carg0 *C.GstBaseSink) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_unlock_stop: no function pointer found") + panic("_goglib_gstbase1_BaseSink_unlock_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSink_wait_event -func _gotk4_gstbase1_BaseSink_wait_event(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSink_wait_event +func _goglib_gstbase1_BaseSink_wait_event(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSink_wait_event").(func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSink_wait_event").(func(carg0 *C.GstBaseSink, carg1 *C.GstEvent) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSink_wait_event: no function pointer found") + panic("_goglib_gstbase1_BaseSink_wait_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_alloc -func _gotk4_gstbase1_BaseSrc_alloc(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 **C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSrc_alloc +func _goglib_gstbase1_BaseSrc_alloc(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 **C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 **C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_alloc").(func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 **C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_alloc").(func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 **C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_alloc: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_alloc: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseSrc_decide_allocation -func _gotk4_gstbase1_BaseSrc_decide_allocation(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_decide_allocation +func _goglib_gstbase1_BaseSrc_decide_allocation(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_decide_allocation").(func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_decide_allocation").(func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_decide_allocation: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_do_seek -func _gotk4_gstbase1_BaseSrc_do_seek(carg0 *C.GstBaseSrc, carg1 *C.GstSegment) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_do_seek +func _goglib_gstbase1_BaseSrc_do_seek(carg0 *C.GstBaseSrc, carg1 *C.GstSegment) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstSegment) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_do_seek").(func(carg0 *C.GstBaseSrc, carg1 *C.GstSegment) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_do_seek").(func(carg0 *C.GstBaseSrc, carg1 *C.GstSegment) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_do_seek: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_do_seek: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_event -func _gotk4_gstbase1_BaseSrc_event(carg0 *C.GstBaseSrc, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_event +func _goglib_gstbase1_BaseSrc_event(carg0 *C.GstBaseSrc, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_event").(func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_event").(func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_event: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_fill -func _gotk4_gstbase1_BaseSrc_fill(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseSrc_fill +func _goglib_gstbase1_BaseSrc_fill(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_fill").(func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_fill").(func(carg0 *C.GstBaseSrc, carg1 C.guint64, carg2 C.guint, carg3 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_fill: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_fill: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseSrc_fixate -func _gotk4_gstbase1_BaseSrc_fixate(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseSrc_fixate +func _goglib_gstbase1_BaseSrc_fixate(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_fixate").(func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_fixate").(func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_fixate: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_fixate: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_get_caps -func _gotk4_gstbase1_BaseSrc_get_caps(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseSrc_get_caps +func _goglib_gstbase1_BaseSrc_get_caps(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_get_caps").(func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_get_caps").(func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_get_caps: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_get_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_get_size -func _gotk4_gstbase1_BaseSrc_get_size(carg0 *C.GstBaseSrc, carg1 *C.guint64) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_get_size +func _goglib_gstbase1_BaseSrc_get_size(carg0 *C.GstBaseSrc, carg1 *C.guint64) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.guint64) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_get_size").(func(carg0 *C.GstBaseSrc, carg1 *C.guint64) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_get_size").(func(carg0 *C.GstBaseSrc, carg1 *C.guint64) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_get_size: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_get_size: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_get_times -func _gotk4_gstbase1_BaseSrc_get_times(carg0 *C.GstBaseSrc, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { +//export _goglib_gstbase1_BaseSrc_get_times +func _goglib_gstbase1_BaseSrc_get_times(carg0 *C.GstBaseSrc, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_get_times").(func(carg0 *C.GstBaseSrc, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_get_times").(func(carg0 *C.GstBaseSrc, carg1 *C.GstBuffer, carg2 *C.GstClockTime, carg3 *C.GstClockTime)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_get_times: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_get_times: no function pointer found") } } fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseSrc_is_seekable -func _gotk4_gstbase1_BaseSrc_is_seekable(carg0 *C.GstBaseSrc) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_is_seekable +func _goglib_gstbase1_BaseSrc_is_seekable(carg0 *C.GstBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_is_seekable").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_is_seekable").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_is_seekable: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_is_seekable: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSrc_negotiate -func _gotk4_gstbase1_BaseSrc_negotiate(carg0 *C.GstBaseSrc) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_negotiate +func _goglib_gstbase1_BaseSrc_negotiate(carg0 *C.GstBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_negotiate").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_negotiate").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_negotiate: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_negotiate: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSrc_prepare_seek_segment -func _gotk4_gstbase1_BaseSrc_prepare_seek_segment(carg0 *C.GstBaseSrc, carg1 *C.GstEvent, carg2 *C.GstSegment) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_prepare_seek_segment +func _goglib_gstbase1_BaseSrc_prepare_seek_segment(carg0 *C.GstBaseSrc, carg1 *C.GstEvent, carg2 *C.GstSegment) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent, carg2 *C.GstSegment) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_prepare_seek_segment").(func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent, carg2 *C.GstSegment) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_prepare_seek_segment").(func(carg0 *C.GstBaseSrc, carg1 *C.GstEvent, carg2 *C.GstSegment) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_prepare_seek_segment: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_prepare_seek_segment: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseSrc_query -func _gotk4_gstbase1_BaseSrc_query(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_query +func _goglib_gstbase1_BaseSrc_query(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_query").(func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_query").(func(carg0 *C.GstBaseSrc, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_query: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_set_caps -func _gotk4_gstbase1_BaseSrc_set_caps(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_set_caps +func _goglib_gstbase1_BaseSrc_set_caps(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_set_caps").(func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_set_caps").(func(carg0 *C.GstBaseSrc, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_set_caps: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_set_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseSrc_start -func _gotk4_gstbase1_BaseSrc_start(carg0 *C.GstBaseSrc) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_start +func _goglib_gstbase1_BaseSrc_start(carg0 *C.GstBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_start").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_start").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_start: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSrc_stop -func _gotk4_gstbase1_BaseSrc_stop(carg0 *C.GstBaseSrc) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_stop +func _goglib_gstbase1_BaseSrc_stop(carg0 *C.GstBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_stop").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_stop").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_stop: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSrc_unlock -func _gotk4_gstbase1_BaseSrc_unlock(carg0 *C.GstBaseSrc) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_unlock +func _goglib_gstbase1_BaseSrc_unlock(carg0 *C.GstBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_unlock").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_unlock").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_unlock: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_unlock: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseSrc_unlock_stop -func _gotk4_gstbase1_BaseSrc_unlock_stop(carg0 *C.GstBaseSrc) (cret C.gboolean) { +//export _goglib_gstbase1_BaseSrc_unlock_stop +func _goglib_gstbase1_BaseSrc_unlock_stop(carg0 *C.GstBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseSrc_unlock_stop").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseSrc_unlock_stop").(func(carg0 *C.GstBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseSrc_unlock_stop: no function pointer found") + panic("_goglib_gstbase1_BaseSrc_unlock_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseTransform_accept_caps -func _gotk4_gstbase1_BaseTransform_accept_caps(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_accept_caps +func _goglib_gstbase1_BaseTransform_accept_caps(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_accept_caps").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_accept_caps").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_accept_caps: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_accept_caps: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_before_transform -func _gotk4_gstbase1_BaseTransform_before_transform(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) { +//export _goglib_gstbase1_BaseTransform_before_transform +func _goglib_gstbase1_BaseTransform_before_transform(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_before_transform").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_before_transform").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_before_transform: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_before_transform: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseTransform_copy_metadata -func _gotk4_gstbase1_BaseTransform_copy_metadata(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_copy_metadata +func _goglib_gstbase1_BaseTransform_copy_metadata(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_copy_metadata").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_copy_metadata").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_copy_metadata: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_copy_metadata: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_decide_allocation -func _gotk4_gstbase1_BaseTransform_decide_allocation(carg0 *C.GstBaseTransform, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_decide_allocation +func _goglib_gstbase1_BaseTransform_decide_allocation(carg0 *C.GstBaseTransform, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_decide_allocation").(func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_decide_allocation").(func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_decide_allocation: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseTransform_filter_meta -func _gotk4_gstbase1_BaseTransform_filter_meta(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 C.GType, carg3 *C.GstStructure) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_filter_meta +func _goglib_gstbase1_BaseTransform_filter_meta(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 C.GType, carg3 *C.GstStructure) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 C.GType, carg3 *C.GstStructure) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_filter_meta").(func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 C.GType, carg3 *C.GstStructure) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_filter_meta").(func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 C.GType, carg3 *C.GstStructure) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_filter_meta: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_filter_meta: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseTransform_fixate_caps -func _gotk4_gstbase1_BaseTransform_fixate_caps(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseTransform_fixate_caps +func _goglib_gstbase1_BaseTransform_fixate_caps(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_fixate_caps").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_fixate_caps").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_fixate_caps: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_fixate_caps: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseTransform_generate_output -func _gotk4_gstbase1_BaseTransform_generate_output(carg0 *C.GstBaseTransform, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseTransform_generate_output +func _goglib_gstbase1_BaseTransform_generate_output(carg0 *C.GstBaseTransform, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseTransform, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_generate_output").(func(carg0 *C.GstBaseTransform, carg1 **C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_generate_output").(func(carg0 *C.GstBaseTransform, carg1 **C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_generate_output: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_generate_output: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseTransform_get_unit_size -func _gotk4_gstbase1_BaseTransform_get_unit_size(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.gsize) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_get_unit_size +func _goglib_gstbase1_BaseTransform_get_unit_size(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.gsize) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.gsize) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_get_unit_size").(func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.gsize) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_get_unit_size").(func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.gsize) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_get_unit_size: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_get_unit_size: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_prepare_output_buffer -func _gotk4_gstbase1_BaseTransform_prepare_output_buffer(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 **C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseTransform_prepare_output_buffer +func _goglib_gstbase1_BaseTransform_prepare_output_buffer(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 **C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 **C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_prepare_output_buffer").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 **C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_prepare_output_buffer").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 **C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_prepare_output_buffer: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_prepare_output_buffer: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_propose_allocation -func _gotk4_gstbase1_BaseTransform_propose_allocation(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_propose_allocation +func _goglib_gstbase1_BaseTransform_propose_allocation(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_propose_allocation").(func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_propose_allocation").(func(carg0 *C.GstBaseTransform, carg1 *C.GstQuery, carg2 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_propose_allocation: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_propose_allocation: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_query -func _gotk4_gstbase1_BaseTransform_query(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_query +func _goglib_gstbase1_BaseTransform_query(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_query").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_query").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_query: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_query: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_set_caps -func _gotk4_gstbase1_BaseTransform_set_caps(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_set_caps +func _goglib_gstbase1_BaseTransform_set_caps(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_set_caps").(func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_set_caps").(func(carg0 *C.GstBaseTransform, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_set_caps: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_set_caps: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_sink_event -func _gotk4_gstbase1_BaseTransform_sink_event(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_sink_event +func _goglib_gstbase1_BaseTransform_sink_event(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_sink_event").(func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_sink_event").(func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_sink_event: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseTransform_src_event -func _gotk4_gstbase1_BaseTransform_src_event(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_src_event +func _goglib_gstbase1_BaseTransform_src_event(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_src_event").(func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_src_event").(func(carg0 *C.GstBaseTransform, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_src_event: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseTransform_start -func _gotk4_gstbase1_BaseTransform_start(carg0 *C.GstBaseTransform) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_start +func _goglib_gstbase1_BaseTransform_start(carg0 *C.GstBaseTransform) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_start").(func(carg0 *C.GstBaseTransform) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_start").(func(carg0 *C.GstBaseTransform) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_start: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseTransform_stop -func _gotk4_gstbase1_BaseTransform_stop(carg0 *C.GstBaseTransform) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_stop +func _goglib_gstbase1_BaseTransform_stop(carg0 *C.GstBaseTransform) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_stop").(func(carg0 *C.GstBaseTransform) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_stop").(func(carg0 *C.GstBaseTransform) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_stop: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstbase1_BaseTransform_submit_input_buffer -func _gotk4_gstbase1_BaseTransform_submit_input_buffer(carg0 *C.GstBaseTransform, carg1 C.gboolean, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseTransform_submit_input_buffer +func _goglib_gstbase1_BaseTransform_submit_input_buffer(carg0 *C.GstBaseTransform, carg1 C.gboolean, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseTransform, carg1 C.gboolean, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_submit_input_buffer").(func(carg0 *C.GstBaseTransform, carg1 C.gboolean, carg2 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_submit_input_buffer").(func(carg0 *C.GstBaseTransform, carg1 C.gboolean, carg2 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_submit_input_buffer: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_submit_input_buffer: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_transform -func _gotk4_gstbase1_BaseTransform_transform(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseTransform_transform +func _goglib_gstbase1_BaseTransform_transform(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_transform").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_transform").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_transform: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_transform: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstbase1_BaseTransform_transform_caps -func _gotk4_gstbase1_BaseTransform_transform_caps(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstbase1_BaseTransform_transform_caps +func _goglib_gstbase1_BaseTransform_transform_caps(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_transform_caps").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_transform_caps").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_transform_caps: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_transform_caps: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseTransform_transform_ip -func _gotk4_gstbase1_BaseTransform_transform_ip(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_BaseTransform_transform_ip +func _goglib_gstbase1_BaseTransform_transform_ip(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_transform_ip").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_transform_ip").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_transform_ip: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_transform_ip: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_BaseTransform_transform_meta -func _gotk4_gstbase1_BaseTransform_transform_meta(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_transform_meta +func _goglib_gstbase1_BaseTransform_transform_meta(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_transform_meta").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_transform_meta").(func(carg0 *C.GstBaseTransform, carg1 *C.GstBuffer, carg2 *C.GstMeta, carg3 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_transform_meta: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_transform_meta: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstbase1_BaseTransform_transform_size -func _gotk4_gstbase1_BaseTransform_transform_size(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 C.gsize, carg4 *C.GstCaps, carg5 *C.gsize) (cret C.gboolean) { +//export _goglib_gstbase1_BaseTransform_transform_size +func _goglib_gstbase1_BaseTransform_transform_size(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 C.gsize, carg4 *C.GstCaps, carg5 *C.gsize) (cret C.gboolean) { var fn func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 C.gsize, carg4 *C.GstCaps, carg5 *C.gsize) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_BaseTransform_transform_size").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 C.gsize, carg4 *C.GstCaps, carg5 *C.gsize) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_BaseTransform_transform_size").(func(carg0 *C.GstBaseTransform, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 C.gsize, carg4 *C.GstCaps, carg5 *C.gsize) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstbase1_BaseTransform_transform_size: no function pointer found") + panic("_goglib_gstbase1_BaseTransform_transform_size: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4, carg5) } -//export _gotk4_gstbase1_DataQueue_empty -func _gotk4_gstbase1_DataQueue_empty(carg0 *C.GstDataQueue) { +//export _goglib_gstbase1_DataQueue_empty +func _goglib_gstbase1_DataQueue_empty(carg0 *C.GstDataQueue) { var fn func(carg0 *C.GstDataQueue) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_DataQueue_empty").(func(carg0 *C.GstDataQueue)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_DataQueue_empty").(func(carg0 *C.GstDataQueue)) if fn == nil { - panic("_gotk4_gstbase1_DataQueue_empty: no function pointer found") + panic("_goglib_gstbase1_DataQueue_empty: no function pointer found") } } fn(carg0) } -//export _gotk4_gstbase1_DataQueue_full -func _gotk4_gstbase1_DataQueue_full(carg0 *C.GstDataQueue) { +//export _goglib_gstbase1_DataQueue_full +func _goglib_gstbase1_DataQueue_full(carg0 *C.GstDataQueue) { var fn func(carg0 *C.GstDataQueue) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_DataQueue_full").(func(carg0 *C.GstDataQueue)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_DataQueue_full").(func(carg0 *C.GstDataQueue)) if fn == nil { - panic("_gotk4_gstbase1_DataQueue_full: no function pointer found") + panic("_goglib_gstbase1_DataQueue_full: no function pointer found") } } fn(carg0) } -//export _gotk4_gstbase1_PushSrc_alloc -func _gotk4_gstbase1_PushSrc_alloc(carg0 *C.GstPushSrc, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_PushSrc_alloc +func _goglib_gstbase1_PushSrc_alloc(carg0 *C.GstPushSrc, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstPushSrc, carg1 **C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_PushSrc_alloc").(func(carg0 *C.GstPushSrc, carg1 **C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_PushSrc_alloc").(func(carg0 *C.GstPushSrc, carg1 **C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_PushSrc_alloc: no function pointer found") + panic("_goglib_gstbase1_PushSrc_alloc: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstbase1_PushSrc_fill -func _gotk4_gstbase1_PushSrc_fill(carg0 *C.GstPushSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstbase1_PushSrc_fill +func _goglib_gstbase1_PushSrc_fill(carg0 *C.GstPushSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstPushSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstbase1_PushSrc_fill").(func(carg0 *C.GstPushSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstbase1_PushSrc_fill").(func(carg0 *C.GstPushSrc, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstbase1_PushSrc_fill: no function pointer found") + panic("_goglib_gstbase1_PushSrc_fill: no function pointer found") } } return fn(carg0, carg1) diff --git a/pkg/gstcheck/gstcheck.gen.go b/pkg/gstcheck/gstcheck.gen.go index 8388c4c..9291fbb 100644 --- a/pkg/gstcheck/gstcheck.gen.go +++ b/pkg/gstcheck/gstcheck.gen.go @@ -7,16 +7,16 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) // #cgo pkg-config: gstreamer-check-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern GstPadProbeReturn _gotk4_gst1_PadProbeCallback(GstPad*, GstPadProbeInfo*, gpointer); +// extern GstPadProbeReturn _goglib_gst1_PadProbeCallback(GstPad*, GstPadProbeInfo*, gpointer); // extern void destroyUserdata(gpointer); import "C" @@ -1117,7 +1117,7 @@ func (h *Harness) AddProbe(elementName string, padName string, mask gst.PadProbe carg2 = (*C.gchar)(unsafe.Pointer(C.CString(padName))) defer C.free(unsafe.Pointer(carg2)) carg3 = C.GstPadProbeType(mask) - carg4 = (*[0]byte)(C._gotk4_gst1_PadProbeCallback) + carg4 = (*[0]byte)(C._goglib_gst1_PadProbeCallback) carg5 = C.gpointer(userdata.Register(callback)) carg6 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -1631,7 +1631,7 @@ func (h *Harness) GetAllocator() (gst.Allocator, gst.AllocationParams) { } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } diff --git a/pkg/gstcontroller/gstcontroller.gen.go b/pkg/gstcontroller/gstcontroller.gen.go index da12421..9e386b1 100644 --- a/pkg/gstcontroller/gstcontroller.gen.go +++ b/pkg/gstcontroller/gstcontroller.gen.go @@ -7,8 +7,8 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) diff --git a/pkg/gstgl/gstgl.gen.go b/pkg/gstgl/gstgl.gen.go index 039f745..4361d63 100644 --- a/pkg/gstgl/gstgl.gen.go +++ b/pkg/gstgl/gstgl.gen.go @@ -9,10 +9,10 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstbase" "github.com/go-gst/go-gst/pkg/gstvideo" @@ -21,165 +21,165 @@ import ( // #cgo pkg-config: gstreamer-gl-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern gboolean _gotk4_gstgl1_GLFilterRenderFunc(GstGLFilter*, GstGLMemory*, gpointer); -// extern gboolean _gotk4_gstgl1_GLBaseFilter_gl_set_caps(GstGLBaseFilter*, GstCaps*, GstCaps*); -// extern gboolean _gotk4_gstgl1_GLBaseFilter_gl_start(GstGLBaseFilter*); -// extern void _gotk4_gstgl1_GLBaseFilter_gl_stop(GstGLBaseFilter*); -// gboolean _gotk4_gstgl1_GLBaseFilter_virtual_gl_set_caps(void* fnptr, GstGLBaseFilter* carg0, GstCaps* carg1, GstCaps* carg2) { +// extern gboolean _goglib_gstgl1_GLFilterRenderFunc(GstGLFilter*, GstGLMemory*, gpointer); +// extern gboolean _goglib_gstgl1_GLBaseFilter_gl_set_caps(GstGLBaseFilter*, GstCaps*, GstCaps*); +// extern gboolean _goglib_gstgl1_GLBaseFilter_gl_start(GstGLBaseFilter*); +// extern void _goglib_gstgl1_GLBaseFilter_gl_stop(GstGLBaseFilter*); +// gboolean _goglib_gstgl1_GLBaseFilter_virtual_gl_set_caps(void* fnptr, GstGLBaseFilter* carg0, GstCaps* carg1, GstCaps* carg2) { // return ((gboolean (*) (GstGLBaseFilter*, GstCaps*, GstCaps*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstgl1_GLBaseFilter_virtual_gl_start(void* fnptr, GstGLBaseFilter* carg0) { +// gboolean _goglib_gstgl1_GLBaseFilter_virtual_gl_start(void* fnptr, GstGLBaseFilter* carg0) { // return ((gboolean (*) (GstGLBaseFilter*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLBaseFilter_virtual_gl_stop(void* fnptr, GstGLBaseFilter* carg0) { +// void _goglib_gstgl1_GLBaseFilter_virtual_gl_stop(void* fnptr, GstGLBaseFilter* carg0) { // return ((void (*) (GstGLBaseFilter*))(fnptr))(carg0); // } -// extern GstGLBaseMemory* _gotk4_gstgl1_GLBaseMemoryAllocator_alloc(GstGLBaseMemoryAllocator*, GstGLAllocationParams*); -// GstGLBaseMemory* _gotk4_gstgl1_GLBaseMemoryAllocator_virtual_alloc(void* fnptr, GstGLBaseMemoryAllocator* carg0, GstGLAllocationParams* carg1) { +// extern GstGLBaseMemory* _goglib_gstgl1_GLBaseMemoryAllocator_alloc(GstGLBaseMemoryAllocator*, GstGLAllocationParams*); +// GstGLBaseMemory* _goglib_gstgl1_GLBaseMemoryAllocator_virtual_alloc(void* fnptr, GstGLBaseMemoryAllocator* carg0, GstGLAllocationParams* carg1) { // return ((GstGLBaseMemory* (*) (GstGLBaseMemoryAllocator*, GstGLAllocationParams*))(fnptr))(carg0, carg1); // } -// extern gboolean _gotk4_gstgl1_GLBaseMixer_gl_start(GstGLBaseMixer*); -// extern void _gotk4_gstgl1_GLBaseMixer_gl_stop(GstGLBaseMixer*); -// gboolean _gotk4_gstgl1_GLBaseMixer_virtual_gl_start(void* fnptr, GstGLBaseMixer* carg0) { +// extern gboolean _goglib_gstgl1_GLBaseMixer_gl_start(GstGLBaseMixer*); +// extern void _goglib_gstgl1_GLBaseMixer_gl_stop(GstGLBaseMixer*); +// gboolean _goglib_gstgl1_GLBaseMixer_virtual_gl_start(void* fnptr, GstGLBaseMixer* carg0) { // return ((gboolean (*) (GstGLBaseMixer*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLBaseMixer_virtual_gl_stop(void* fnptr, GstGLBaseMixer* carg0) { +// void _goglib_gstgl1_GLBaseMixer_virtual_gl_stop(void* fnptr, GstGLBaseMixer* carg0) { // return ((void (*) (GstGLBaseMixer*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstgl1_GLBaseSrc_fill_gl_memory(GstGLBaseSrc*, GstGLMemory*); -// extern gboolean _gotk4_gstgl1_GLBaseSrc_gl_start(GstGLBaseSrc*); -// extern void _gotk4_gstgl1_GLBaseSrc_gl_stop(GstGLBaseSrc*); -// gboolean _gotk4_gstgl1_GLBaseSrc_virtual_fill_gl_memory(void* fnptr, GstGLBaseSrc* carg0, GstGLMemory* carg1) { +// extern gboolean _goglib_gstgl1_GLBaseSrc_fill_gl_memory(GstGLBaseSrc*, GstGLMemory*); +// extern gboolean _goglib_gstgl1_GLBaseSrc_gl_start(GstGLBaseSrc*); +// extern void _goglib_gstgl1_GLBaseSrc_gl_stop(GstGLBaseSrc*); +// gboolean _goglib_gstgl1_GLBaseSrc_virtual_fill_gl_memory(void* fnptr, GstGLBaseSrc* carg0, GstGLMemory* carg1) { // return ((gboolean (*) (GstGLBaseSrc*, GstGLMemory*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstgl1_GLBaseSrc_virtual_gl_start(void* fnptr, GstGLBaseSrc* carg0) { +// gboolean _goglib_gstgl1_GLBaseSrc_virtual_gl_start(void* fnptr, GstGLBaseSrc* carg0) { // return ((gboolean (*) (GstGLBaseSrc*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLBaseSrc_virtual_gl_stop(void* fnptr, GstGLBaseSrc* carg0) { +// void _goglib_gstgl1_GLBaseSrc_virtual_gl_stop(void* fnptr, GstGLBaseSrc* carg0) { // return ((void (*) (GstGLBaseSrc*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstgl1_GLContext_activate(GstGLContext*, gboolean); -// extern gboolean _gotk4_gstgl1_GLContext_check_feature(GstGLContext*, const gchar*); -// extern gboolean _gotk4_gstgl1_GLContext_choose_format(GstGLContext*, GError*); -// extern gboolean _gotk4_gstgl1_GLContext_create_context(GstGLContext*, GstGLAPI, GstGLContext*, GError*); -// extern void _gotk4_gstgl1_GLContext_destroy_context(GstGLContext*); -// extern GstStructure* _gotk4_gstgl1_GLContext_get_config(GstGLContext*); -// extern GstGLAPI _gotk4_gstgl1_GLContext_get_gl_api(GstGLContext*); -// extern GstGLPlatform _gotk4_gstgl1_GLContext_get_gl_platform(GstGLContext*); -// extern void _gotk4_gstgl1_GLContext_get_gl_platform_version(GstGLContext*, gint, gint); -// extern gboolean _gotk4_gstgl1_GLContext_request_config(GstGLContext*, GstStructure*); -// extern void _gotk4_gstgl1_GLContext_swap_buffers(GstGLContext*); -// gboolean _gotk4_gstgl1_GLContext_virtual_activate(void* fnptr, GstGLContext* carg0, gboolean carg1) { +// extern gboolean _goglib_gstgl1_GLContext_activate(GstGLContext*, gboolean); +// extern gboolean _goglib_gstgl1_GLContext_check_feature(GstGLContext*, const gchar*); +// extern gboolean _goglib_gstgl1_GLContext_choose_format(GstGLContext*, GError*); +// extern gboolean _goglib_gstgl1_GLContext_create_context(GstGLContext*, GstGLAPI, GstGLContext*, GError*); +// extern void _goglib_gstgl1_GLContext_destroy_context(GstGLContext*); +// extern GstStructure* _goglib_gstgl1_GLContext_get_config(GstGLContext*); +// extern GstGLAPI _goglib_gstgl1_GLContext_get_gl_api(GstGLContext*); +// extern GstGLPlatform _goglib_gstgl1_GLContext_get_gl_platform(GstGLContext*); +// extern void _goglib_gstgl1_GLContext_get_gl_platform_version(GstGLContext*, gint, gint); +// extern gboolean _goglib_gstgl1_GLContext_request_config(GstGLContext*, GstStructure*); +// extern void _goglib_gstgl1_GLContext_swap_buffers(GstGLContext*); +// gboolean _goglib_gstgl1_GLContext_virtual_activate(void* fnptr, GstGLContext* carg0, gboolean carg1) { // return ((gboolean (*) (GstGLContext*, gboolean))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstgl1_GLContext_virtual_check_feature(void* fnptr, GstGLContext* carg0, const gchar* carg1) { +// gboolean _goglib_gstgl1_GLContext_virtual_check_feature(void* fnptr, GstGLContext* carg0, const gchar* carg1) { // return ((gboolean (*) (GstGLContext*, const gchar*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstgl1_GLContext_virtual_choose_format(void* fnptr, GstGLContext* carg0, GError** _cerr) { +// gboolean _goglib_gstgl1_GLContext_virtual_choose_format(void* fnptr, GstGLContext* carg0, GError** _cerr) { // return ((gboolean (*) (GstGLContext*, GError**))(fnptr))(carg0, _cerr); // } -// gboolean _gotk4_gstgl1_GLContext_virtual_create_context(void* fnptr, GstGLContext* carg0, GstGLAPI carg1, GstGLContext* carg2, GError** _cerr) { +// gboolean _goglib_gstgl1_GLContext_virtual_create_context(void* fnptr, GstGLContext* carg0, GstGLAPI carg1, GstGLContext* carg2, GError** _cerr) { // return ((gboolean (*) (GstGLContext*, GstGLAPI, GstGLContext*, GError**))(fnptr))(carg0, carg1, carg2, _cerr); // } -// void _gotk4_gstgl1_GLContext_virtual_destroy_context(void* fnptr, GstGLContext* carg0) { +// void _goglib_gstgl1_GLContext_virtual_destroy_context(void* fnptr, GstGLContext* carg0) { // return ((void (*) (GstGLContext*))(fnptr))(carg0); // } -// GstStructure* _gotk4_gstgl1_GLContext_virtual_get_config(void* fnptr, GstGLContext* carg0) { +// GstStructure* _goglib_gstgl1_GLContext_virtual_get_config(void* fnptr, GstGLContext* carg0) { // return ((GstStructure* (*) (GstGLContext*))(fnptr))(carg0); // } -// GstGLAPI _gotk4_gstgl1_GLContext_virtual_get_gl_api(void* fnptr, GstGLContext* carg0) { +// GstGLAPI _goglib_gstgl1_GLContext_virtual_get_gl_api(void* fnptr, GstGLContext* carg0) { // return ((GstGLAPI (*) (GstGLContext*))(fnptr))(carg0); // } -// GstGLPlatform _gotk4_gstgl1_GLContext_virtual_get_gl_platform(void* fnptr, GstGLContext* carg0) { +// GstGLPlatform _goglib_gstgl1_GLContext_virtual_get_gl_platform(void* fnptr, GstGLContext* carg0) { // return ((GstGLPlatform (*) (GstGLContext*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLContext_virtual_get_gl_platform_version(void* fnptr, GstGLContext* carg0, gint* carg1, gint* carg2) { +// void _goglib_gstgl1_GLContext_virtual_get_gl_platform_version(void* fnptr, GstGLContext* carg0, gint* carg1, gint* carg2) { // return ((void (*) (GstGLContext*, gint*, gint*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstgl1_GLContext_virtual_request_config(void* fnptr, GstGLContext* carg0, GstStructure* carg1) { +// gboolean _goglib_gstgl1_GLContext_virtual_request_config(void* fnptr, GstGLContext* carg0, GstStructure* carg1) { // return ((gboolean (*) (GstGLContext*, GstStructure*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstgl1_GLContext_virtual_swap_buffers(void* fnptr, GstGLContext* carg0) { +// void _goglib_gstgl1_GLContext_virtual_swap_buffers(void* fnptr, GstGLContext* carg0) { // return ((void (*) (GstGLContext*))(fnptr))(carg0); // } -// extern GstGLWindow* _gotk4_gstgl1_GLDisplay_create_window(GstGLDisplay*); -// GstGLWindow* _gotk4_gstgl1_GLDisplay_virtual_create_window(void* fnptr, GstGLDisplay* carg0) { +// extern GstGLWindow* _goglib_gstgl1_GLDisplay_create_window(GstGLDisplay*); +// GstGLWindow* _goglib_gstgl1_GLDisplay_virtual_create_window(void* fnptr, GstGLDisplay* carg0) { // return ((GstGLWindow* (*) (GstGLDisplay*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstgl1_GLFilter_filter(GstGLFilter*, GstBuffer*, GstBuffer*); -// extern gboolean _gotk4_gstgl1_GLFilter_filter_texture(GstGLFilter*, GstGLMemory*, GstGLMemory*); -// extern gboolean _gotk4_gstgl1_GLFilter_init_fbo(GstGLFilter*); -// extern gboolean _gotk4_gstgl1_GLFilter_set_caps(GstGLFilter*, GstCaps*, GstCaps*); -// extern GstCaps* _gotk4_gstgl1_GLFilter_transform_internal_caps(GstGLFilter*, GstPadDirection, GstCaps*, GstCaps*); -// gboolean _gotk4_gstgl1_GLFilter_virtual_filter(void* fnptr, GstGLFilter* carg0, GstBuffer* carg1, GstBuffer* carg2) { +// extern gboolean _goglib_gstgl1_GLFilter_filter(GstGLFilter*, GstBuffer*, GstBuffer*); +// extern gboolean _goglib_gstgl1_GLFilter_filter_texture(GstGLFilter*, GstGLMemory*, GstGLMemory*); +// extern gboolean _goglib_gstgl1_GLFilter_init_fbo(GstGLFilter*); +// extern gboolean _goglib_gstgl1_GLFilter_set_caps(GstGLFilter*, GstCaps*, GstCaps*); +// extern GstCaps* _goglib_gstgl1_GLFilter_transform_internal_caps(GstGLFilter*, GstPadDirection, GstCaps*, GstCaps*); +// gboolean _goglib_gstgl1_GLFilter_virtual_filter(void* fnptr, GstGLFilter* carg0, GstBuffer* carg1, GstBuffer* carg2) { // return ((gboolean (*) (GstGLFilter*, GstBuffer*, GstBuffer*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstgl1_GLFilter_virtual_filter_texture(void* fnptr, GstGLFilter* carg0, GstGLMemory* carg1, GstGLMemory* carg2) { +// gboolean _goglib_gstgl1_GLFilter_virtual_filter_texture(void* fnptr, GstGLFilter* carg0, GstGLMemory* carg1, GstGLMemory* carg2) { // return ((gboolean (*) (GstGLFilter*, GstGLMemory*, GstGLMemory*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstgl1_GLFilter_virtual_init_fbo(void* fnptr, GstGLFilter* carg0) { +// gboolean _goglib_gstgl1_GLFilter_virtual_init_fbo(void* fnptr, GstGLFilter* carg0) { // return ((gboolean (*) (GstGLFilter*))(fnptr))(carg0); // } -// gboolean _gotk4_gstgl1_GLFilter_virtual_set_caps(void* fnptr, GstGLFilter* carg0, GstCaps* carg1, GstCaps* carg2) { +// gboolean _goglib_gstgl1_GLFilter_virtual_set_caps(void* fnptr, GstGLFilter* carg0, GstCaps* carg1, GstCaps* carg2) { // return ((gboolean (*) (GstGLFilter*, GstCaps*, GstCaps*))(fnptr))(carg0, carg1, carg2); // } -// GstCaps* _gotk4_gstgl1_GLFilter_virtual_transform_internal_caps(void* fnptr, GstGLFilter* carg0, GstPadDirection carg1, GstCaps* carg2, GstCaps* carg3) { +// GstCaps* _goglib_gstgl1_GLFilter_virtual_transform_internal_caps(void* fnptr, GstGLFilter* carg0, GstPadDirection carg1, GstCaps* carg2, GstCaps* carg3) { // return ((GstCaps* (*) (GstGLFilter*, GstPadDirection, GstCaps*, GstCaps*))(fnptr))(carg0, carg1, carg2, carg3); // } -// extern gboolean _gotk4_gstgl1_GLMixer_process_buffers(GstGLMixer*, GstBuffer*); -// extern gboolean _gotk4_gstgl1_GLMixer_process_textures(GstGLMixer*, GstGLMemory*); -// gboolean _gotk4_gstgl1_GLMixer_virtual_process_buffers(void* fnptr, GstGLMixer* carg0, GstBuffer* carg1) { +// extern gboolean _goglib_gstgl1_GLMixer_process_buffers(GstGLMixer*, GstBuffer*); +// extern gboolean _goglib_gstgl1_GLMixer_process_textures(GstGLMixer*, GstGLMemory*); +// gboolean _goglib_gstgl1_GLMixer_virtual_process_buffers(void* fnptr, GstGLMixer* carg0, GstBuffer* carg1) { // return ((gboolean (*) (GstGLMixer*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstgl1_GLMixer_virtual_process_textures(void* fnptr, GstGLMixer* carg0, GstGLMemory* carg1) { +// gboolean _goglib_gstgl1_GLMixer_virtual_process_textures(void* fnptr, GstGLMixer* carg0, GstGLMemory* carg1) { // return ((gboolean (*) (GstGLMixer*, GstGLMemory*))(fnptr))(carg0, carg1); // } -// extern void _gotk4_gstgl1_GLWindow_close(GstGLWindow*); -// extern gboolean _gotk4_gstgl1_GLWindow_controls_viewport(GstGLWindow*); -// extern void _gotk4_gstgl1_GLWindow_draw(GstGLWindow*); -// extern void _gotk4_gstgl1_GLWindow_handle_events(GstGLWindow*, gboolean); -// extern gboolean _gotk4_gstgl1_GLWindow_has_output_surface(GstGLWindow*); -// extern gboolean _gotk4_gstgl1_GLWindow_open(GstGLWindow*, GError*); -// extern void _gotk4_gstgl1_GLWindow_queue_resize(GstGLWindow*); -// extern void _gotk4_gstgl1_GLWindow_quit(GstGLWindow*); -// extern void _gotk4_gstgl1_GLWindow_run(GstGLWindow*); -// extern void _gotk4_gstgl1_GLWindow_set_preferred_size(GstGLWindow*, gint, gint); -// extern gboolean _gotk4_gstgl1_GLWindow_set_render_rectangle(GstGLWindow*, gint, gint, gint, gint); -// extern void _gotk4_gstgl1_GLWindow_show(GstGLWindow*); -// void _gotk4_gstgl1_GLWindow_virtual_close(void* fnptr, GstGLWindow* carg0) { +// extern void _goglib_gstgl1_GLWindow_close(GstGLWindow*); +// extern gboolean _goglib_gstgl1_GLWindow_controls_viewport(GstGLWindow*); +// extern void _goglib_gstgl1_GLWindow_draw(GstGLWindow*); +// extern void _goglib_gstgl1_GLWindow_handle_events(GstGLWindow*, gboolean); +// extern gboolean _goglib_gstgl1_GLWindow_has_output_surface(GstGLWindow*); +// extern gboolean _goglib_gstgl1_GLWindow_open(GstGLWindow*, GError*); +// extern void _goglib_gstgl1_GLWindow_queue_resize(GstGLWindow*); +// extern void _goglib_gstgl1_GLWindow_quit(GstGLWindow*); +// extern void _goglib_gstgl1_GLWindow_run(GstGLWindow*); +// extern void _goglib_gstgl1_GLWindow_set_preferred_size(GstGLWindow*, gint, gint); +// extern gboolean _goglib_gstgl1_GLWindow_set_render_rectangle(GstGLWindow*, gint, gint, gint, gint); +// extern void _goglib_gstgl1_GLWindow_show(GstGLWindow*); +// void _goglib_gstgl1_GLWindow_virtual_close(void* fnptr, GstGLWindow* carg0) { // return ((void (*) (GstGLWindow*))(fnptr))(carg0); // } -// gboolean _gotk4_gstgl1_GLWindow_virtual_controls_viewport(void* fnptr, GstGLWindow* carg0) { +// gboolean _goglib_gstgl1_GLWindow_virtual_controls_viewport(void* fnptr, GstGLWindow* carg0) { // return ((gboolean (*) (GstGLWindow*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLWindow_virtual_draw(void* fnptr, GstGLWindow* carg0) { +// void _goglib_gstgl1_GLWindow_virtual_draw(void* fnptr, GstGLWindow* carg0) { // return ((void (*) (GstGLWindow*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLWindow_virtual_handle_events(void* fnptr, GstGLWindow* carg0, gboolean carg1) { +// void _goglib_gstgl1_GLWindow_virtual_handle_events(void* fnptr, GstGLWindow* carg0, gboolean carg1) { // return ((void (*) (GstGLWindow*, gboolean))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstgl1_GLWindow_virtual_has_output_surface(void* fnptr, GstGLWindow* carg0) { +// gboolean _goglib_gstgl1_GLWindow_virtual_has_output_surface(void* fnptr, GstGLWindow* carg0) { // return ((gboolean (*) (GstGLWindow*))(fnptr))(carg0); // } -// gboolean _gotk4_gstgl1_GLWindow_virtual_open(void* fnptr, GstGLWindow* carg0, GError** _cerr) { +// gboolean _goglib_gstgl1_GLWindow_virtual_open(void* fnptr, GstGLWindow* carg0, GError** _cerr) { // return ((gboolean (*) (GstGLWindow*, GError**))(fnptr))(carg0, _cerr); // } -// void _gotk4_gstgl1_GLWindow_virtual_queue_resize(void* fnptr, GstGLWindow* carg0) { +// void _goglib_gstgl1_GLWindow_virtual_queue_resize(void* fnptr, GstGLWindow* carg0) { // return ((void (*) (GstGLWindow*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLWindow_virtual_quit(void* fnptr, GstGLWindow* carg0) { +// void _goglib_gstgl1_GLWindow_virtual_quit(void* fnptr, GstGLWindow* carg0) { // return ((void (*) (GstGLWindow*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLWindow_virtual_run(void* fnptr, GstGLWindow* carg0) { +// void _goglib_gstgl1_GLWindow_virtual_run(void* fnptr, GstGLWindow* carg0) { // return ((void (*) (GstGLWindow*))(fnptr))(carg0); // } -// void _gotk4_gstgl1_GLWindow_virtual_set_preferred_size(void* fnptr, GstGLWindow* carg0, gint carg1, gint carg2) { +// void _goglib_gstgl1_GLWindow_virtual_set_preferred_size(void* fnptr, GstGLWindow* carg0, gint carg1, gint carg2) { // return ((void (*) (GstGLWindow*, gint, gint))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstgl1_GLWindow_virtual_set_render_rectangle(void* fnptr, GstGLWindow* carg0, gint carg1, gint carg2, gint carg3, gint carg4) { +// gboolean _goglib_gstgl1_GLWindow_virtual_set_render_rectangle(void* fnptr, GstGLWindow* carg0, gint carg1, gint carg2, gint carg3, gint carg4) { // return ((gboolean (*) (GstGLWindow*, gint, gint, gint, gint))(fnptr))(carg0, carg1, carg2, carg3, carg4); // } -// void _gotk4_gstgl1_GLWindow_virtual_show(void* fnptr, GstGLWindow* carg0) { +// void _goglib_gstgl1_GLWindow_virtual_show(void* fnptr, GstGLWindow* carg0) { // return ((void (*) (GstGLWindow*))(fnptr))(carg0); // } import "C" @@ -2632,12 +2632,16 @@ func GlHandleSetContext(element gst.Element, _context *gst.Context) (GLDisplay, // NDC coordinates in @matrix. func GlSetAffineTransformationMetaFromNdc(meta *gstvideo.VideoAffineTransformationMeta, matrix [16]float32) { var carg1 *C.GstVideoAffineTransformationMeta // in, none, converted - var carg2 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner: *typesystem.CastablePrimitive, fixed-size: 16) + var carg2 *C.gfloat // in, none, array fixed size (inner: gfloat, size: 16) carg1 = (*C.GstVideoAffineTransformationMeta)(gstvideo.UnsafeVideoAffineTransformationMetaToGlibNone(meta)) - _ = matrix - _ = carg2 - panic("unimplemented conversion of [16]float32 (const gfloat*)") + { + var carr [16]C.gfloat + for i := range 16 { + carr[i] = C.gfloat(matrix[i]) + carg2 = unsafe.SliceData(carr[:]) + } + } C.gst_gl_set_affine_transformation_meta_from_ndc(carg1, carg2) runtime.KeepAlive(meta) @@ -3220,10 +3224,10 @@ func UnsafeApplyGLBaseFilterOverrides[Instance GLBaseFilter](gclass unsafe.Point pclass := (*C.GstGLBaseFilterClass)(gclass) if overrides.GlSetCaps != nil { - pclass.gl_set_caps = (*[0]byte)(C._gotk4_gstgl1_GLBaseFilter_gl_set_caps) + pclass.gl_set_caps = (*[0]byte)(C._goglib_gstgl1_GLBaseFilter_gl_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseFilter_gl_set_caps", + "_goglib_gstgl1_GLBaseFilter_gl_set_caps", func(carg0 *C.GstGLBaseFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { var filter Instance // go GstGLBaseFilter subclass var incaps *gst.Caps // in, none, converted @@ -3246,10 +3250,10 @@ func UnsafeApplyGLBaseFilterOverrides[Instance GLBaseFilter](gclass unsafe.Point } if overrides.GlStart != nil { - pclass.gl_start = (*[0]byte)(C._gotk4_gstgl1_GLBaseFilter_gl_start) + pclass.gl_start = (*[0]byte)(C._goglib_gstgl1_GLBaseFilter_gl_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseFilter_gl_start", + "_goglib_gstgl1_GLBaseFilter_gl_start", func(carg0 *C.GstGLBaseFilter) (cret C.gboolean) { var filter Instance // go GstGLBaseFilter subclass var goret bool // return @@ -3268,10 +3272,10 @@ func UnsafeApplyGLBaseFilterOverrides[Instance GLBaseFilter](gclass unsafe.Point } if overrides.GlStop != nil { - pclass.gl_stop = (*[0]byte)(C._gotk4_gstgl1_GLBaseFilter_gl_stop) + pclass.gl_stop = (*[0]byte)(C._goglib_gstgl1_GLBaseFilter_gl_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseFilter_gl_stop", + "_goglib_gstgl1_GLBaseFilter_gl_stop", func(carg0 *C.GstGLBaseFilter) { var filter Instance // go GstGLBaseFilter subclass @@ -3310,7 +3314,7 @@ func (filter *GLBaseFilterInstance) ParentGlSetCaps(incaps *gst.Caps, outcaps *g carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(incaps)) carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(outcaps)) - cret = C._gotk4_gstgl1_GLBaseFilter_virtual_gl_set_caps(unsafe.Pointer(parentclass.gl_set_caps), carg0, carg1, carg2) + cret = C._goglib_gstgl1_GLBaseFilter_virtual_gl_set_caps(unsafe.Pointer(parentclass.gl_set_caps), carg0, carg1, carg2) runtime.KeepAlive(filter) runtime.KeepAlive(incaps) runtime.KeepAlive(outcaps) @@ -3340,7 +3344,7 @@ func (filter *GLBaseFilterInstance) ParentGlStart() bool { carg0 = (*C.GstGLBaseFilter)(UnsafeGLBaseFilterToGlibNone(filter)) - cret = C._gotk4_gstgl1_GLBaseFilter_virtual_gl_start(unsafe.Pointer(parentclass.gl_start), carg0) + cret = C._goglib_gstgl1_GLBaseFilter_virtual_gl_start(unsafe.Pointer(parentclass.gl_start), carg0) runtime.KeepAlive(filter) var goret bool @@ -3363,7 +3367,7 @@ func (filter *GLBaseFilterInstance) ParentGlStop() { carg0 = (*C.GstGLBaseFilter)(UnsafeGLBaseFilterToGlibNone(filter)) - C._gotk4_gstgl1_GLBaseFilter_virtual_gl_stop(unsafe.Pointer(parentclass.gl_stop), carg0) + C._goglib_gstgl1_GLBaseFilter_virtual_gl_stop(unsafe.Pointer(parentclass.gl_stop), carg0) runtime.KeepAlive(filter) } @@ -3507,10 +3511,10 @@ func UnsafeApplyGLBaseMemoryAllocatorOverrides[Instance GLBaseMemoryAllocator](g pclass := (*C.GstGLBaseMemoryAllocatorClass)(gclass) if overrides.Alloc != nil { - pclass.alloc = (*[0]byte)(C._gotk4_gstgl1_GLBaseMemoryAllocator_alloc) + pclass.alloc = (*[0]byte)(C._goglib_gstgl1_GLBaseMemoryAllocator_alloc) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseMemoryAllocator_alloc", + "_goglib_gstgl1_GLBaseMemoryAllocator_alloc", func(carg0 *C.GstGLBaseMemoryAllocator, carg1 *C.GstGLAllocationParams) (cret *C.GstGLBaseMemory) { var allocator Instance // go GstGLBaseMemoryAllocator subclass var params *GLAllocationParams // in, none, converted @@ -3553,7 +3557,7 @@ func (allocator *GLBaseMemoryAllocatorInstance) ParentAllocGLBaseMemoryAllocator carg0 = (*C.GstGLBaseMemoryAllocator)(UnsafeGLBaseMemoryAllocatorToGlibNone(allocator)) carg1 = (*C.GstGLAllocationParams)(UnsafeGLAllocationParamsToGlibNone(params)) - cret = C._gotk4_gstgl1_GLBaseMemoryAllocator_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, carg1) + cret = C._goglib_gstgl1_GLBaseMemoryAllocator_virtual_alloc(unsafe.Pointer(parentclass.alloc), carg0, carg1) runtime.KeepAlive(allocator) runtime.KeepAlive(params) @@ -3743,10 +3747,10 @@ func UnsafeApplyGLBaseMixerOverrides[Instance GLBaseMixer](gclass unsafe.Pointer pclass := (*C.GstGLBaseMixerClass)(gclass) if overrides.GlStart != nil { - pclass.gl_start = (*[0]byte)(C._gotk4_gstgl1_GLBaseMixer_gl_start) + pclass.gl_start = (*[0]byte)(C._goglib_gstgl1_GLBaseMixer_gl_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseMixer_gl_start", + "_goglib_gstgl1_GLBaseMixer_gl_start", func(carg0 *C.GstGLBaseMixer) (cret C.gboolean) { var mix Instance // go GstGLBaseMixer subclass var goret bool // return @@ -3765,10 +3769,10 @@ func UnsafeApplyGLBaseMixerOverrides[Instance GLBaseMixer](gclass unsafe.Pointer } if overrides.GlStop != nil { - pclass.gl_stop = (*[0]byte)(C._gotk4_gstgl1_GLBaseMixer_gl_stop) + pclass.gl_stop = (*[0]byte)(C._goglib_gstgl1_GLBaseMixer_gl_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseMixer_gl_stop", + "_goglib_gstgl1_GLBaseMixer_gl_stop", func(carg0 *C.GstGLBaseMixer) { var mix Instance // go GstGLBaseMixer subclass @@ -3796,7 +3800,7 @@ func (mix *GLBaseMixerInstance) ParentGlStart() bool { carg0 = (*C.GstGLBaseMixer)(UnsafeGLBaseMixerToGlibNone(mix)) - cret = C._gotk4_gstgl1_GLBaseMixer_virtual_gl_start(unsafe.Pointer(parentclass.gl_start), carg0) + cret = C._goglib_gstgl1_GLBaseMixer_virtual_gl_start(unsafe.Pointer(parentclass.gl_start), carg0) runtime.KeepAlive(mix) var goret bool @@ -3819,7 +3823,7 @@ func (mix *GLBaseMixerInstance) ParentGlStop() { carg0 = (*C.GstGLBaseMixer)(UnsafeGLBaseMixerToGlibNone(mix)) - C._gotk4_gstgl1_GLBaseMixer_virtual_gl_stop(unsafe.Pointer(parentclass.gl_stop), carg0) + C._goglib_gstgl1_GLBaseMixer_virtual_gl_stop(unsafe.Pointer(parentclass.gl_stop), carg0) runtime.KeepAlive(mix) } @@ -4110,10 +4114,10 @@ func UnsafeApplyGLBaseSrcOverrides[Instance GLBaseSrc](gclass unsafe.Pointer, ov pclass := (*C.GstGLBaseSrcClass)(gclass) if overrides.FillGlMemory != nil { - pclass.fill_gl_memory = (*[0]byte)(C._gotk4_gstgl1_GLBaseSrc_fill_gl_memory) + pclass.fill_gl_memory = (*[0]byte)(C._goglib_gstgl1_GLBaseSrc_fill_gl_memory) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseSrc_fill_gl_memory", + "_goglib_gstgl1_GLBaseSrc_fill_gl_memory", func(carg0 *C.GstGLBaseSrc, carg1 *C.GstGLMemory) (cret C.gboolean) { var src Instance // go GstGLBaseSrc subclass var mem *GLMemory // in, none, converted @@ -4134,10 +4138,10 @@ func UnsafeApplyGLBaseSrcOverrides[Instance GLBaseSrc](gclass unsafe.Pointer, ov } if overrides.GlStart != nil { - pclass.gl_start = (*[0]byte)(C._gotk4_gstgl1_GLBaseSrc_gl_start) + pclass.gl_start = (*[0]byte)(C._goglib_gstgl1_GLBaseSrc_gl_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseSrc_gl_start", + "_goglib_gstgl1_GLBaseSrc_gl_start", func(carg0 *C.GstGLBaseSrc) (cret C.gboolean) { var src Instance // go GstGLBaseSrc subclass var goret bool // return @@ -4156,10 +4160,10 @@ func UnsafeApplyGLBaseSrcOverrides[Instance GLBaseSrc](gclass unsafe.Pointer, ov } if overrides.GlStop != nil { - pclass.gl_stop = (*[0]byte)(C._gotk4_gstgl1_GLBaseSrc_gl_stop) + pclass.gl_stop = (*[0]byte)(C._goglib_gstgl1_GLBaseSrc_gl_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLBaseSrc_gl_stop", + "_goglib_gstgl1_GLBaseSrc_gl_stop", func(carg0 *C.GstGLBaseSrc) { var src Instance // go GstGLBaseSrc subclass @@ -4193,7 +4197,7 @@ func (src *GLBaseSrcInstance) ParentFillGlMemory(mem *GLMemory) bool { carg0 = (*C.GstGLBaseSrc)(UnsafeGLBaseSrcToGlibNone(src)) carg1 = (*C.GstGLMemory)(UnsafeGLMemoryToGlibNone(mem)) - cret = C._gotk4_gstgl1_GLBaseSrc_virtual_fill_gl_memory(unsafe.Pointer(parentclass.fill_gl_memory), carg0, carg1) + cret = C._goglib_gstgl1_GLBaseSrc_virtual_fill_gl_memory(unsafe.Pointer(parentclass.fill_gl_memory), carg0, carg1) runtime.KeepAlive(src) runtime.KeepAlive(mem) @@ -4222,7 +4226,7 @@ func (src *GLBaseSrcInstance) ParentGlStart() bool { carg0 = (*C.GstGLBaseSrc)(UnsafeGLBaseSrcToGlibNone(src)) - cret = C._gotk4_gstgl1_GLBaseSrc_virtual_gl_start(unsafe.Pointer(parentclass.gl_start), carg0) + cret = C._goglib_gstgl1_GLBaseSrc_virtual_gl_start(unsafe.Pointer(parentclass.gl_start), carg0) runtime.KeepAlive(src) var goret bool @@ -4245,7 +4249,7 @@ func (src *GLBaseSrcInstance) ParentGlStop() { carg0 = (*C.GstGLBaseSrc)(UnsafeGLBaseSrcToGlibNone(src)) - C._gotk4_gstgl1_GLBaseSrc_virtual_gl_stop(unsafe.Pointer(parentclass.gl_stop), carg0) + C._goglib_gstgl1_GLBaseSrc_virtual_gl_stop(unsafe.Pointer(parentclass.gl_stop), carg0) runtime.KeepAlive(src) } @@ -5212,12 +5216,6 @@ type GLContext interface { // gst_gl_context_get_gl_api() for retrieving the OpenGL api implemented by // @context. GetGlVersion() (int32, int32) - // GetThread wraps gst_gl_context_get_thread - // - // The function returns the following values: - // - // - goret *glib.Thread (nullable) - GetThread() *glib.Thread // GetWindow wraps gst_gl_context_get_window // // The function returns the following values: @@ -6059,29 +6057,6 @@ func (_context *GLContextInstance) GetGlVersion() (int32, int32) { return maj, min } -// GetThread wraps gst_gl_context_get_thread -// -// The function returns the following values: -// -// - goret *glib.Thread (nullable) -func (_context *GLContextInstance) GetThread() *glib.Thread { - var carg0 *C.GstGLContext // in, none, converted - var cret *C.GThread // return, full, converted, nullable - - carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - - cret = C.gst_gl_context_get_thread(carg0) - runtime.KeepAlive(_context) - - var goret *glib.Thread - - if cret != nil { - goret = glib.UnsafeThreadFromGlibFull(unsafe.Pointer(cret)) - } - - return goret -} - // GetWindow wraps gst_gl_context_get_window // // The function returns the following values: @@ -6486,10 +6461,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov pclass := (*C.GstGLContextClass)(gclass) if overrides.Activate != nil { - pclass.activate = (*[0]byte)(C._gotk4_gstgl1_GLContext_activate) + pclass.activate = (*[0]byte)(C._goglib_gstgl1_GLContext_activate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_activate", + "_goglib_gstgl1_GLContext_activate", func(carg0 *C.GstGLContext, carg1 C.gboolean) (cret C.gboolean) { var _context Instance // go GstGLContext subclass var activate bool // in @@ -6512,10 +6487,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.CheckFeature != nil { - pclass.check_feature = (*[0]byte)(C._gotk4_gstgl1_GLContext_check_feature) + pclass.check_feature = (*[0]byte)(C._goglib_gstgl1_GLContext_check_feature) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_check_feature", + "_goglib_gstgl1_GLContext_check_feature", func(carg0 *C.GstGLContext, carg1 *C.gchar) (cret C.gboolean) { var _context Instance // go GstGLContext subclass var feature string // in, none, string @@ -6536,10 +6511,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.ChooseFormat != nil { - pclass.choose_format = (*[0]byte)(C._gotk4_gstgl1_GLContext_choose_format) + pclass.choose_format = (*[0]byte)(C._goglib_gstgl1_GLContext_choose_format) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_choose_format", + "_goglib_gstgl1_GLContext_choose_format", func(carg0 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { var _context Instance // go GstGLContext subclass var goret bool // return @@ -6560,10 +6535,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.CreateContext != nil { - pclass.create_context = (*[0]byte)(C._gotk4_gstgl1_GLContext_create_context) + pclass.create_context = (*[0]byte)(C._goglib_gstgl1_GLContext_create_context) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_create_context", + "_goglib_gstgl1_GLContext_create_context", func(carg0 *C.GstGLContext, carg1 C.GstGLAPI, carg2 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { var _context Instance // go GstGLContext subclass var glApi GLAPI // in, none, casted @@ -6588,10 +6563,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.DestroyContext != nil { - pclass.destroy_context = (*[0]byte)(C._gotk4_gstgl1_GLContext_destroy_context) + pclass.destroy_context = (*[0]byte)(C._goglib_gstgl1_GLContext_destroy_context) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_destroy_context", + "_goglib_gstgl1_GLContext_destroy_context", func(carg0 *C.GstGLContext) { var _context Instance // go GstGLContext subclass @@ -6603,10 +6578,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.GetConfig != nil { - pclass.get_config = (*[0]byte)(C._gotk4_gstgl1_GLContext_get_config) + pclass.get_config = (*[0]byte)(C._goglib_gstgl1_GLContext_get_config) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_get_config", + "_goglib_gstgl1_GLContext_get_config", func(carg0 *C.GstGLContext) (cret *C.GstStructure) { var _context Instance // go GstGLContext subclass var goret *gst.Structure // return, full, converted, nullable @@ -6625,10 +6600,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.GetGlAPI != nil { - pclass.get_gl_api = (*[0]byte)(C._gotk4_gstgl1_GLContext_get_gl_api) + pclass.get_gl_api = (*[0]byte)(C._goglib_gstgl1_GLContext_get_gl_api) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_get_gl_api", + "_goglib_gstgl1_GLContext_get_gl_api", func(carg0 *C.GstGLContext) (cret C.GstGLAPI) { var _context Instance // go GstGLContext subclass var goret GLAPI // return, none, casted @@ -6645,10 +6620,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.GetGlPlatform != nil { - pclass.get_gl_platform = (*[0]byte)(C._gotk4_gstgl1_GLContext_get_gl_platform) + pclass.get_gl_platform = (*[0]byte)(C._goglib_gstgl1_GLContext_get_gl_platform) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_get_gl_platform", + "_goglib_gstgl1_GLContext_get_gl_platform", func(carg0 *C.GstGLContext) (cret C.GstGLPlatform) { var _context Instance // go GstGLContext subclass var goret GLPlatform // return, none, casted @@ -6665,10 +6640,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.GetGlPlatformVersion != nil { - pclass.get_gl_platform_version = (*[0]byte)(C._gotk4_gstgl1_GLContext_get_gl_platform_version) + pclass.get_gl_platform_version = (*[0]byte)(C._goglib_gstgl1_GLContext_get_gl_platform_version) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_get_gl_platform_version", + "_goglib_gstgl1_GLContext_get_gl_platform_version", func(carg0 *C.GstGLContext, carg1 *C.gint, carg2 *C.gint) { var _context Instance // go GstGLContext subclass var major int32 // out, full, casted @@ -6685,10 +6660,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.RequestConfig != nil { - pclass.request_config = (*[0]byte)(C._gotk4_gstgl1_GLContext_request_config) + pclass.request_config = (*[0]byte)(C._goglib_gstgl1_GLContext_request_config) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_request_config", + "_goglib_gstgl1_GLContext_request_config", func(carg0 *C.GstGLContext, carg1 *C.GstStructure) (cret C.gboolean) { var _context Instance // go GstGLContext subclass var glConfig *gst.Structure // in, full, converted, nullable @@ -6711,10 +6686,10 @@ func UnsafeApplyGLContextOverrides[Instance GLContext](gclass unsafe.Pointer, ov } if overrides.SwapBuffers != nil { - pclass.swap_buffers = (*[0]byte)(C._gotk4_gstgl1_GLContext_swap_buffers) + pclass.swap_buffers = (*[0]byte)(C._goglib_gstgl1_GLContext_swap_buffers) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLContext_swap_buffers", + "_goglib_gstgl1_GLContext_swap_buffers", func(carg0 *C.GstGLContext) { var _context Instance // go GstGLContext subclass @@ -6753,7 +6728,7 @@ func (_context *GLContextInstance) ParentActivate(activate bool) bool { carg1 = C.TRUE } - cret = C._gotk4_gstgl1_GLContext_virtual_activate(unsafe.Pointer(parentclass.activate), carg0, carg1) + cret = C._goglib_gstgl1_GLContext_virtual_activate(unsafe.Pointer(parentclass.activate), carg0, carg1) runtime.KeepAlive(_context) runtime.KeepAlive(activate) @@ -6793,7 +6768,7 @@ func (_context *GLContextInstance) ParentCheckFeature(feature string) bool { carg1 = (*C.gchar)(unsafe.Pointer(C.CString(feature))) defer C.free(unsafe.Pointer(carg1)) - cret = C._gotk4_gstgl1_GLContext_virtual_check_feature(unsafe.Pointer(parentclass.check_feature), carg0, carg1) + cret = C._goglib_gstgl1_GLContext_virtual_check_feature(unsafe.Pointer(parentclass.check_feature), carg0, carg1) runtime.KeepAlive(_context) runtime.KeepAlive(feature) @@ -6824,7 +6799,7 @@ func (_context *GLContextInstance) ParentChooseFormat() (bool, error) { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - cret = C._gotk4_gstgl1_GLContext_virtual_choose_format(unsafe.Pointer(parentclass.choose_format), carg0, &_cerr) + cret = C._goglib_gstgl1_GLContext_virtual_choose_format(unsafe.Pointer(parentclass.choose_format), carg0, &_cerr) runtime.KeepAlive(_context) var goret bool @@ -6867,7 +6842,7 @@ func (_context *GLContextInstance) ParentCreateContext(glApi GLAPI, otherContext carg1 = C.GstGLAPI(glApi) carg2 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(otherContext)) - cret = C._gotk4_gstgl1_GLContext_virtual_create_context(unsafe.Pointer(parentclass.create_context), carg0, carg1, carg2, &_cerr) + cret = C._goglib_gstgl1_GLContext_virtual_create_context(unsafe.Pointer(parentclass.create_context), carg0, carg1, carg2, &_cerr) runtime.KeepAlive(_context) runtime.KeepAlive(glApi) runtime.KeepAlive(otherContext) @@ -6896,7 +6871,7 @@ func (_context *GLContextInstance) ParentDestroyContext() { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - C._gotk4_gstgl1_GLContext_virtual_destroy_context(unsafe.Pointer(parentclass.destroy_context), carg0) + C._goglib_gstgl1_GLContext_virtual_destroy_context(unsafe.Pointer(parentclass.destroy_context), carg0) runtime.KeepAlive(_context) } @@ -6920,7 +6895,7 @@ func (_context *GLContextInstance) ParentGetConfig() *gst.Structure { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - cret = C._gotk4_gstgl1_GLContext_virtual_get_config(unsafe.Pointer(parentclass.get_config), carg0) + cret = C._goglib_gstgl1_GLContext_virtual_get_config(unsafe.Pointer(parentclass.get_config), carg0) runtime.KeepAlive(_context) var goret *gst.Structure @@ -6951,7 +6926,7 @@ func (_context *GLContextInstance) ParentGetGlAPI() GLAPI { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - cret = C._gotk4_gstgl1_GLContext_virtual_get_gl_api(unsafe.Pointer(parentclass.get_gl_api), carg0) + cret = C._goglib_gstgl1_GLContext_virtual_get_gl_api(unsafe.Pointer(parentclass.get_gl_api), carg0) runtime.KeepAlive(_context) var goret GLAPI @@ -6977,7 +6952,7 @@ func (_context *GLContextInstance) ParentGetGlPlatform() GLPlatform { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - cret = C._gotk4_gstgl1_GLContext_virtual_get_gl_platform(unsafe.Pointer(parentclass.get_gl_platform), carg0) + cret = C._goglib_gstgl1_GLContext_virtual_get_gl_platform(unsafe.Pointer(parentclass.get_gl_platform), carg0) runtime.KeepAlive(_context) var goret GLPlatform @@ -7006,7 +6981,7 @@ func (_context *GLContextInstance) ParentGetGlPlatformVersion() (int32, int32) { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - C._gotk4_gstgl1_GLContext_virtual_get_gl_platform_version(unsafe.Pointer(parentclass.get_gl_platform_version), carg0, &carg1, &carg2) + C._goglib_gstgl1_GLContext_virtual_get_gl_platform_version(unsafe.Pointer(parentclass.get_gl_platform_version), carg0, &carg1, &carg2) runtime.KeepAlive(_context) var major int32 @@ -7054,7 +7029,7 @@ func (_context *GLContextInstance) ParentRequestConfig(glConfig *gst.Structure) carg1 = (*C.GstStructure)(gst.UnsafeStructureToGlibFull(glConfig)) } - cret = C._gotk4_gstgl1_GLContext_virtual_request_config(unsafe.Pointer(parentclass.request_config), carg0, carg1) + cret = C._goglib_gstgl1_GLContext_virtual_request_config(unsafe.Pointer(parentclass.request_config), carg0, carg1) runtime.KeepAlive(_context) runtime.KeepAlive(glConfig) @@ -7079,7 +7054,7 @@ func (_context *GLContextInstance) ParentSwapBuffers() { carg0 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) - C._gotk4_gstgl1_GLContext_virtual_swap_buffers(unsafe.Pointer(parentclass.swap_buffers), carg0) + C._goglib_gstgl1_GLContext_virtual_swap_buffers(unsafe.Pointer(parentclass.swap_buffers), carg0) runtime.KeepAlive(_context) } @@ -7198,16 +7173,6 @@ type GLDisplay interface { // // - goret GLAPI GetGlAPIUnlocked() GLAPI - // GetGlContextForThread wraps gst_gl_display_get_gl_context_for_thread - // - // The function takes the following parameters: - // - // - thread *glib.Thread: a #GThread - // - // The function returns the following values: - // - // - goret GLContext (nullable) - GetGlContextForThread(*glib.Thread) GLContext // GetHandleType wraps gst_gl_display_get_handle_type // // The function returns the following values: @@ -7514,36 +7479,6 @@ func (display *GLDisplayInstance) GetGlAPIUnlocked() GLAPI { return goret } -// GetGlContextForThread wraps gst_gl_display_get_gl_context_for_thread -// -// The function takes the following parameters: -// -// - thread *glib.Thread: a #GThread -// -// The function returns the following values: -// -// - goret GLContext (nullable) -func (display *GLDisplayInstance) GetGlContextForThread(thread *glib.Thread) GLContext { - var carg0 *C.GstGLDisplay // in, none, converted - var carg1 *C.GThread // in, none, converted - var cret *C.GstGLContext // return, full, converted, nullable - - carg0 = (*C.GstGLDisplay)(UnsafeGLDisplayToGlibNone(display)) - carg1 = (*C.GThread)(glib.UnsafeThreadToGlibNone(thread)) - - cret = C.gst_gl_display_get_gl_context_for_thread(carg0, carg1) - runtime.KeepAlive(display) - runtime.KeepAlive(thread) - - var goret GLContext - - if cret != nil { - goret = UnsafeGLContextFromGlibFull(unsafe.Pointer(cret)) - } - - return goret -} - // GetHandleType wraps gst_gl_display_get_handle_type // // The function returns the following values: @@ -7645,10 +7580,10 @@ func UnsafeApplyGLDisplayOverrides[Instance GLDisplay](gclass unsafe.Pointer, ov pclass := (*C.GstGLDisplayClass)(gclass) if overrides.CreateWindow != nil { - pclass.create_window = (*[0]byte)(C._gotk4_gstgl1_GLDisplay_create_window) + pclass.create_window = (*[0]byte)(C._goglib_gstgl1_GLDisplay_create_window) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLDisplay_create_window", + "_goglib_gstgl1_GLDisplay_create_window", func(carg0 *C.GstGLDisplay) (cret *C.GstGLWindow) { var display Instance // go GstGLDisplay subclass var goret GLWindow // return, full, converted, nullable @@ -7681,7 +7616,7 @@ func (display *GLDisplayInstance) ParentCreateWindow() GLWindow { carg0 = (*C.GstGLDisplay)(UnsafeGLDisplayToGlibNone(display)) - cret = C._gotk4_gstgl1_GLDisplay_virtual_create_window(unsafe.Pointer(parentclass.create_window), carg0) + cret = C._goglib_gstgl1_GLDisplay_virtual_create_window(unsafe.Pointer(parentclass.create_window), carg0) runtime.KeepAlive(display) var goret GLWindow @@ -8003,7 +7938,7 @@ func (filter *GLFilterInstance) RenderToTarget(input *GLMemory, output *GLMemory carg0 = (*C.GstGLFilter)(UnsafeGLFilterToGlibNone(filter)) carg1 = (*C.GstGLMemory)(UnsafeGLMemoryToGlibNone(input)) carg2 = (*C.GstGLMemory)(UnsafeGLMemoryToGlibNone(output)) - carg3 = (*[0]byte)(C._gotk4_gstgl1_GLFilterRenderFunc) + carg3 = (*[0]byte)(C._goglib_gstgl1_GLFilterRenderFunc) carg4 = C.gpointer(userdata.Register(fn)) defer userdata.Delete(unsafe.Pointer(carg4)) @@ -8132,10 +8067,10 @@ func UnsafeApplyGLFilterOverrides[Instance GLFilter](gclass unsafe.Pointer, over pclass := (*C.GstGLFilterClass)(gclass) if overrides.Filter != nil { - pclass.filter = (*[0]byte)(C._gotk4_gstgl1_GLFilter_filter) + pclass.filter = (*[0]byte)(C._goglib_gstgl1_GLFilter_filter) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLFilter_filter", + "_goglib_gstgl1_GLFilter_filter", func(carg0 *C.GstGLFilter, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { var filter Instance // go GstGLFilter subclass var inbuf *gst.Buffer // in, none, converted @@ -8158,10 +8093,10 @@ func UnsafeApplyGLFilterOverrides[Instance GLFilter](gclass unsafe.Pointer, over } if overrides.FilterTexture != nil { - pclass.filter_texture = (*[0]byte)(C._gotk4_gstgl1_GLFilter_filter_texture) + pclass.filter_texture = (*[0]byte)(C._goglib_gstgl1_GLFilter_filter_texture) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLFilter_filter_texture", + "_goglib_gstgl1_GLFilter_filter_texture", func(carg0 *C.GstGLFilter, carg1 *C.GstGLMemory, carg2 *C.GstGLMemory) (cret C.gboolean) { var filter Instance // go GstGLFilter subclass var input *GLMemory // in, none, converted @@ -8184,10 +8119,10 @@ func UnsafeApplyGLFilterOverrides[Instance GLFilter](gclass unsafe.Pointer, over } if overrides.InitFbo != nil { - pclass.init_fbo = (*[0]byte)(C._gotk4_gstgl1_GLFilter_init_fbo) + pclass.init_fbo = (*[0]byte)(C._goglib_gstgl1_GLFilter_init_fbo) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLFilter_init_fbo", + "_goglib_gstgl1_GLFilter_init_fbo", func(carg0 *C.GstGLFilter) (cret C.gboolean) { var filter Instance // go GstGLFilter subclass var goret bool // return @@ -8206,10 +8141,10 @@ func UnsafeApplyGLFilterOverrides[Instance GLFilter](gclass unsafe.Pointer, over } if overrides.SetCaps != nil { - pclass.set_caps = (*[0]byte)(C._gotk4_gstgl1_GLFilter_set_caps) + pclass.set_caps = (*[0]byte)(C._goglib_gstgl1_GLFilter_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLFilter_set_caps", + "_goglib_gstgl1_GLFilter_set_caps", func(carg0 *C.GstGLFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { var filter Instance // go GstGLFilter subclass var incaps *gst.Caps // in, none, converted @@ -8232,10 +8167,10 @@ func UnsafeApplyGLFilterOverrides[Instance GLFilter](gclass unsafe.Pointer, over } if overrides.TransformInternalCaps != nil { - pclass.transform_internal_caps = (*[0]byte)(C._gotk4_gstgl1_GLFilter_transform_internal_caps) + pclass.transform_internal_caps = (*[0]byte)(C._goglib_gstgl1_GLFilter_transform_internal_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLFilter_transform_internal_caps", + "_goglib_gstgl1_GLFilter_transform_internal_caps", func(carg0 *C.GstGLFilter, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { var filter Instance // go GstGLFilter subclass var direction gst.PadDirection // in, none, casted @@ -8286,7 +8221,7 @@ func (filter *GLFilterInstance) ParentFilter(inbuf *gst.Buffer, outbuf *gst.Buff carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(inbuf)) carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(outbuf)) - cret = C._gotk4_gstgl1_GLFilter_virtual_filter(unsafe.Pointer(parentclass.filter), carg0, carg1, carg2) + cret = C._goglib_gstgl1_GLFilter_virtual_filter(unsafe.Pointer(parentclass.filter), carg0, carg1, carg2) runtime.KeepAlive(filter) runtime.KeepAlive(inbuf) runtime.KeepAlive(outbuf) @@ -8325,7 +8260,7 @@ func (filter *GLFilterInstance) ParentFilterTexture(input *GLMemory, output *GLM carg1 = (*C.GstGLMemory)(UnsafeGLMemoryToGlibNone(input)) carg2 = (*C.GstGLMemory)(UnsafeGLMemoryToGlibNone(output)) - cret = C._gotk4_gstgl1_GLFilter_virtual_filter_texture(unsafe.Pointer(parentclass.filter_texture), carg0, carg1, carg2) + cret = C._goglib_gstgl1_GLFilter_virtual_filter_texture(unsafe.Pointer(parentclass.filter_texture), carg0, carg1, carg2) runtime.KeepAlive(filter) runtime.KeepAlive(input) runtime.KeepAlive(output) @@ -8355,7 +8290,7 @@ func (filter *GLFilterInstance) ParentInitFbo() bool { carg0 = (*C.GstGLFilter)(UnsafeGLFilterToGlibNone(filter)) - cret = C._gotk4_gstgl1_GLFilter_virtual_init_fbo(unsafe.Pointer(parentclass.init_fbo), carg0) + cret = C._goglib_gstgl1_GLFilter_virtual_init_fbo(unsafe.Pointer(parentclass.init_fbo), carg0) runtime.KeepAlive(filter) var goret bool @@ -8392,7 +8327,7 @@ func (filter *GLFilterInstance) ParentSetCaps(incaps *gst.Caps, outcaps *gst.Cap carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(incaps)) carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(outcaps)) - cret = C._gotk4_gstgl1_GLFilter_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1, carg2) + cret = C._goglib_gstgl1_GLFilter_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1, carg2) runtime.KeepAlive(filter) runtime.KeepAlive(incaps) runtime.KeepAlive(outcaps) @@ -8435,7 +8370,7 @@ func (filter *GLFilterInstance) ParentTransformInternalCaps(direction gst.PadDir carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) carg3 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filterCaps)) - cret = C._gotk4_gstgl1_GLFilter_virtual_transform_internal_caps(unsafe.Pointer(parentclass.transform_internal_caps), carg0, carg1, carg2, carg3) + cret = C._goglib_gstgl1_GLFilter_virtual_transform_internal_caps(unsafe.Pointer(parentclass.transform_internal_caps), carg0, carg1, carg2, carg3) runtime.KeepAlive(filter) runtime.KeepAlive(direction) runtime.KeepAlive(caps) @@ -9265,10 +9200,10 @@ func UnsafeApplyGLMixerOverrides[Instance GLMixer](gclass unsafe.Pointer, overri pclass := (*C.GstGLMixerClass)(gclass) if overrides.ProcessBuffers != nil { - pclass.process_buffers = (*[0]byte)(C._gotk4_gstgl1_GLMixer_process_buffers) + pclass.process_buffers = (*[0]byte)(C._goglib_gstgl1_GLMixer_process_buffers) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLMixer_process_buffers", + "_goglib_gstgl1_GLMixer_process_buffers", func(carg0 *C.GstGLMixer, carg1 *C.GstBuffer) (cret C.gboolean) { var mix Instance // go GstGLMixer subclass var outbuf *gst.Buffer // in, none, converted @@ -9289,10 +9224,10 @@ func UnsafeApplyGLMixerOverrides[Instance GLMixer](gclass unsafe.Pointer, overri } if overrides.ProcessTextures != nil { - pclass.process_textures = (*[0]byte)(C._gotk4_gstgl1_GLMixer_process_textures) + pclass.process_textures = (*[0]byte)(C._goglib_gstgl1_GLMixer_process_textures) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLMixer_process_textures", + "_goglib_gstgl1_GLMixer_process_textures", func(carg0 *C.GstGLMixer, carg1 *C.GstGLMemory) (cret C.gboolean) { var mix Instance // go GstGLMixer subclass var outTex *GLMemory // in, none, converted @@ -9336,7 +9271,7 @@ func (mix *GLMixerInstance) ParentProcessBuffers(outbuf *gst.Buffer) bool { carg0 = (*C.GstGLMixer)(UnsafeGLMixerToGlibNone(mix)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(outbuf)) - cret = C._gotk4_gstgl1_GLMixer_virtual_process_buffers(unsafe.Pointer(parentclass.process_buffers), carg0, carg1) + cret = C._goglib_gstgl1_GLMixer_virtual_process_buffers(unsafe.Pointer(parentclass.process_buffers), carg0, carg1) runtime.KeepAlive(mix) runtime.KeepAlive(outbuf) @@ -9373,7 +9308,7 @@ func (mix *GLMixerInstance) ParentProcessTextures(outTex *GLMemory) bool { carg0 = (*C.GstGLMixer)(UnsafeGLMixerToGlibNone(mix)) carg1 = (*C.GstGLMemory)(UnsafeGLMemoryToGlibNone(outTex)) - cret = C._gotk4_gstgl1_GLMixer_virtual_process_textures(unsafe.Pointer(parentclass.process_textures), carg0, carg1) + cret = C._goglib_gstgl1_GLMixer_virtual_process_textures(unsafe.Pointer(parentclass.process_textures), carg0, carg1) runtime.KeepAlive(mix) runtime.KeepAlive(outTex) @@ -10107,7 +10042,7 @@ func NewGLSLStageWithStrings(_context GLContext, typ uint, version GLSLVersion, var carg3 C.GstGLSLVersion // in, none, casted var carg4 C.GstGLSLProfile // in, none, casted var carg5 C.gint // implicit - var carg6 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, length-by: carg5) + var carg6 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), length-by: carg5) var cret *C.GstGLSLStage // return, none, converted carg1 = (*C.GstGLContext)(UnsafeGLContextToGlibNone(_context)) @@ -10117,7 +10052,7 @@ func NewGLSLStageWithStrings(_context GLContext, typ uint, version GLSLVersion, _ = str _ = carg6 _ = carg5 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_glsl_stage_new_with_strings(carg1, carg2, carg3, carg4, carg5, carg6) runtime.KeepAlive(_context) @@ -10264,7 +10199,7 @@ func (stage *GLSLStageInstance) SetStrings(version GLSLVersion, profile GLSLProf var carg1 C.GstGLSLVersion // in, none, casted var carg2 C.GstGLSLProfile // in, none, casted var carg3 C.gint // implicit - var carg4 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, length-by: carg3) + var carg4 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), length-by: carg3) var cret C.gboolean // return carg0 = (*C.GstGLSLStage)(UnsafeGLSLStageToGlibNone(stage)) @@ -10273,7 +10208,7 @@ func (stage *GLSLStageInstance) SetStrings(version GLSLVersion, profile GLSLProf _ = str _ = carg4 _ = carg3 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_glsl_stage_set_strings(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(stage) @@ -11339,7 +11274,7 @@ func (shader *GLShaderInstance) SetUniform1fv(name string, value []float32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner gfloat (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11347,7 +11282,7 @@ func (shader *GLShaderInstance) SetUniform1fv(name string, value []float32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []float32 (const gfloat*)") + panic("unimplemented conversion of []float32 (const gfloat*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_1fv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11391,7 +11326,7 @@ func (shader *GLShaderInstance) SetUniform1iv(name string, value []int32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner gint (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11399,7 +11334,7 @@ func (shader *GLShaderInstance) SetUniform1iv(name string, value []int32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []int32 (const gint*)") + panic("unimplemented conversion of []int32 (const gint*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_1iv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11447,7 +11382,7 @@ func (shader *GLShaderInstance) SetUniform2fv(name string, value []float32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner gfloat (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11455,7 +11390,7 @@ func (shader *GLShaderInstance) SetUniform2fv(name string, value []float32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []float32 (const gfloat*)") + panic("unimplemented conversion of []float32 (const gfloat*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_2fv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11503,7 +11438,7 @@ func (shader *GLShaderInstance) SetUniform2iv(name string, value []int32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner gint (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11511,7 +11446,7 @@ func (shader *GLShaderInstance) SetUniform2iv(name string, value []int32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []int32 (const gint*)") + panic("unimplemented conversion of []int32 (const gint*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_2iv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11563,7 +11498,7 @@ func (shader *GLShaderInstance) SetUniform3fv(name string, value []float32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner gfloat (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11571,7 +11506,7 @@ func (shader *GLShaderInstance) SetUniform3fv(name string, value []float32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []float32 (const gfloat*)") + panic("unimplemented conversion of []float32 (const gfloat*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_3fv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11623,7 +11558,7 @@ func (shader *GLShaderInstance) SetUniform3iv(name string, value []int32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner gint (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11631,7 +11566,7 @@ func (shader *GLShaderInstance) SetUniform3iv(name string, value []int32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []int32 (const gint*)") + panic("unimplemented conversion of []int32 (const gint*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_3iv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11687,7 +11622,7 @@ func (shader *GLShaderInstance) SetUniform4fv(name string, value []float32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner gfloat (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11695,7 +11630,7 @@ func (shader *GLShaderInstance) SetUniform4fv(name string, value []float32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []float32 (const gfloat*)") + panic("unimplemented conversion of []float32 (const gfloat*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_4fv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11751,7 +11686,7 @@ func (shader *GLShaderInstance) SetUniform4iv(name string, value []int32) { var carg0 *C.GstGLShader // in, none, converted var carg1 *C.gchar // in, none, string var carg2 C.guint // implicit - var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner gint (*typesystem.CastablePrimitive), length-by: carg2) carg0 = (*C.GstGLShader)(UnsafeGLShaderToGlibNone(shader)) carg1 = (*C.gchar)(unsafe.Pointer(C.CString(name))) @@ -11759,7 +11694,7 @@ func (shader *GLShaderInstance) SetUniform4iv(name string, value []int32) { _ = value _ = carg3 _ = carg2 - panic("unimplemented conversion of []int32 (const gint*)") + panic("unimplemented conversion of []int32 (const gint*) because of unimplemented: non-fixed size array") C.gst_gl_shader_set_uniform_4iv(carg0, carg1, carg2, carg3) runtime.KeepAlive(shader) @@ -11793,7 +11728,7 @@ func (shader *GLShaderInstance) SetUniformMatrix2fv(name string, count int32, tr } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_2fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -11829,7 +11764,7 @@ func (shader *GLShaderInstance) SetUniformMatrix2x3fv(name string, count int32, } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_2x3fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -11865,7 +11800,7 @@ func (shader *GLShaderInstance) SetUniformMatrix2x4fv(name string, count int32, } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_2x4fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -11901,7 +11836,7 @@ func (shader *GLShaderInstance) SetUniformMatrix3fv(name string, count int32, tr } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_3fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -11937,7 +11872,7 @@ func (shader *GLShaderInstance) SetUniformMatrix3x2fv(name string, count int32, } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_3x2fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -11973,7 +11908,7 @@ func (shader *GLShaderInstance) SetUniformMatrix3x4fv(name string, count int32, } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_3x4fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -12009,7 +11944,7 @@ func (shader *GLShaderInstance) SetUniformMatrix4fv(name string, count int32, tr } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_4fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -12045,7 +11980,7 @@ func (shader *GLShaderInstance) SetUniformMatrix4x2fv(name string, count int32, } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_4x2fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -12081,7 +12016,7 @@ func (shader *GLShaderInstance) SetUniformMatrix4x3fv(name string, count int32, } _ = value _ = carg4 - panic("unimplemented conversion of *float32 (const gfloat*)") + panic("unimplemented conversion of *float32 (const gfloat*) because of no basic converter found") C.gst_gl_shader_set_uniform_matrix_4x3fv(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(shader) @@ -13881,10 +13816,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over pclass := (*C.GstGLWindowClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstgl1_GLWindow_close) + pclass.close = (*[0]byte)(C._goglib_gstgl1_GLWindow_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_close", + "_goglib_gstgl1_GLWindow_close", func(carg0 *C.GstGLWindow) { var window Instance // go GstGLWindow subclass @@ -13896,10 +13831,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.ControlsViewport != nil { - pclass.controls_viewport = (*[0]byte)(C._gotk4_gstgl1_GLWindow_controls_viewport) + pclass.controls_viewport = (*[0]byte)(C._goglib_gstgl1_GLWindow_controls_viewport) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_controls_viewport", + "_goglib_gstgl1_GLWindow_controls_viewport", func(carg0 *C.GstGLWindow) (cret C.gboolean) { var window Instance // go GstGLWindow subclass var goret bool // return @@ -13918,10 +13853,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.Draw != nil { - pclass.draw = (*[0]byte)(C._gotk4_gstgl1_GLWindow_draw) + pclass.draw = (*[0]byte)(C._goglib_gstgl1_GLWindow_draw) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_draw", + "_goglib_gstgl1_GLWindow_draw", func(carg0 *C.GstGLWindow) { var window Instance // go GstGLWindow subclass @@ -13933,10 +13868,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.HandleEvents != nil { - pclass.handle_events = (*[0]byte)(C._gotk4_gstgl1_GLWindow_handle_events) + pclass.handle_events = (*[0]byte)(C._goglib_gstgl1_GLWindow_handle_events) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_handle_events", + "_goglib_gstgl1_GLWindow_handle_events", func(carg0 *C.GstGLWindow, carg1 C.gboolean) { var window Instance // go GstGLWindow subclass var handleEvents bool // in @@ -13952,10 +13887,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.HasOutputSurface != nil { - pclass.has_output_surface = (*[0]byte)(C._gotk4_gstgl1_GLWindow_has_output_surface) + pclass.has_output_surface = (*[0]byte)(C._goglib_gstgl1_GLWindow_has_output_surface) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_has_output_surface", + "_goglib_gstgl1_GLWindow_has_output_surface", func(carg0 *C.GstGLWindow) (cret C.gboolean) { var window Instance // go GstGLWindow subclass var goret bool // return @@ -13974,10 +13909,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstgl1_GLWindow_open) + pclass.open = (*[0]byte)(C._goglib_gstgl1_GLWindow_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_open", + "_goglib_gstgl1_GLWindow_open", func(carg0 *C.GstGLWindow, _cerr **C.GError) (cret C.gboolean) { var window Instance // go GstGLWindow subclass var goret bool // return @@ -13998,10 +13933,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.QueueResize != nil { - pclass.queue_resize = (*[0]byte)(C._gotk4_gstgl1_GLWindow_queue_resize) + pclass.queue_resize = (*[0]byte)(C._goglib_gstgl1_GLWindow_queue_resize) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_queue_resize", + "_goglib_gstgl1_GLWindow_queue_resize", func(carg0 *C.GstGLWindow) { var window Instance // go GstGLWindow subclass @@ -14013,10 +13948,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.Quit != nil { - pclass.quit = (*[0]byte)(C._gotk4_gstgl1_GLWindow_quit) + pclass.quit = (*[0]byte)(C._goglib_gstgl1_GLWindow_quit) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_quit", + "_goglib_gstgl1_GLWindow_quit", func(carg0 *C.GstGLWindow) { var window Instance // go GstGLWindow subclass @@ -14028,10 +13963,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.Run != nil { - pclass.run = (*[0]byte)(C._gotk4_gstgl1_GLWindow_run) + pclass.run = (*[0]byte)(C._goglib_gstgl1_GLWindow_run) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_run", + "_goglib_gstgl1_GLWindow_run", func(carg0 *C.GstGLWindow) { var window Instance // go GstGLWindow subclass @@ -14043,10 +13978,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.SetPreferredSize != nil { - pclass.set_preferred_size = (*[0]byte)(C._gotk4_gstgl1_GLWindow_set_preferred_size) + pclass.set_preferred_size = (*[0]byte)(C._goglib_gstgl1_GLWindow_set_preferred_size) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_set_preferred_size", + "_goglib_gstgl1_GLWindow_set_preferred_size", func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint) { var window Instance // go GstGLWindow subclass var width int32 // in, none, casted @@ -14062,10 +13997,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.SetRenderRectangle != nil { - pclass.set_render_rectangle = (*[0]byte)(C._gotk4_gstgl1_GLWindow_set_render_rectangle) + pclass.set_render_rectangle = (*[0]byte)(C._goglib_gstgl1_GLWindow_set_render_rectangle) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_set_render_rectangle", + "_goglib_gstgl1_GLWindow_set_render_rectangle", func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint, carg3 C.gint, carg4 C.gint) (cret C.gboolean) { var window Instance // go GstGLWindow subclass var x int32 // in, none, casted @@ -14092,10 +14027,10 @@ func UnsafeApplyGLWindowOverrides[Instance GLWindow](gclass unsafe.Pointer, over } if overrides.Show != nil { - pclass.show = (*[0]byte)(C._gotk4_gstgl1_GLWindow_show) + pclass.show = (*[0]byte)(C._goglib_gstgl1_GLWindow_show) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstgl1_GLWindow_show", + "_goglib_gstgl1_GLWindow_show", func(carg0 *C.GstGLWindow) { var window Instance // go GstGLWindow subclass @@ -14118,7 +14053,7 @@ func (window *GLWindowInstance) ParentClose() { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - C._gotk4_gstgl1_GLWindow_virtual_close(unsafe.Pointer(parentclass.close), carg0) + C._goglib_gstgl1_GLWindow_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(window) } @@ -14138,7 +14073,7 @@ func (window *GLWindowInstance) ParentControlsViewport() bool { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - cret = C._gotk4_gstgl1_GLWindow_virtual_controls_viewport(unsafe.Pointer(parentclass.controls_viewport), carg0) + cret = C._goglib_gstgl1_GLWindow_virtual_controls_viewport(unsafe.Pointer(parentclass.controls_viewport), carg0) runtime.KeepAlive(window) var goret bool @@ -14161,7 +14096,7 @@ func (window *GLWindowInstance) ParentDraw() { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - C._gotk4_gstgl1_GLWindow_virtual_draw(unsafe.Pointer(parentclass.draw), carg0) + C._goglib_gstgl1_GLWindow_virtual_draw(unsafe.Pointer(parentclass.draw), carg0) runtime.KeepAlive(window) } @@ -14188,7 +14123,7 @@ func (window *GLWindowInstance) ParentHandleEvents(handleEvents bool) { carg1 = C.TRUE } - C._gotk4_gstgl1_GLWindow_virtual_handle_events(unsafe.Pointer(parentclass.handle_events), carg0, carg1) + C._goglib_gstgl1_GLWindow_virtual_handle_events(unsafe.Pointer(parentclass.handle_events), carg0, carg1) runtime.KeepAlive(window) runtime.KeepAlive(handleEvents) } @@ -14209,7 +14144,7 @@ func (window *GLWindowInstance) ParentHasOutputSurface() bool { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - cret = C._gotk4_gstgl1_GLWindow_virtual_has_output_surface(unsafe.Pointer(parentclass.has_output_surface), carg0) + cret = C._goglib_gstgl1_GLWindow_virtual_has_output_surface(unsafe.Pointer(parentclass.has_output_surface), carg0) runtime.KeepAlive(window) var goret bool @@ -14239,7 +14174,7 @@ func (window *GLWindowInstance) ParentOpen() (bool, error) { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - cret = C._gotk4_gstgl1_GLWindow_virtual_open(unsafe.Pointer(parentclass.open), carg0, &_cerr) + cret = C._goglib_gstgl1_GLWindow_virtual_open(unsafe.Pointer(parentclass.open), carg0, &_cerr) runtime.KeepAlive(window) var goret bool @@ -14266,7 +14201,7 @@ func (window *GLWindowInstance) ParentQueueResize() { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - C._gotk4_gstgl1_GLWindow_virtual_queue_resize(unsafe.Pointer(parentclass.queue_resize), carg0) + C._goglib_gstgl1_GLWindow_virtual_queue_resize(unsafe.Pointer(parentclass.queue_resize), carg0) runtime.KeepAlive(window) } @@ -14281,7 +14216,7 @@ func (window *GLWindowInstance) ParentQuit() { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - C._gotk4_gstgl1_GLWindow_virtual_quit(unsafe.Pointer(parentclass.quit), carg0) + C._goglib_gstgl1_GLWindow_virtual_quit(unsafe.Pointer(parentclass.quit), carg0) runtime.KeepAlive(window) } @@ -14296,7 +14231,7 @@ func (window *GLWindowInstance) ParentRun() { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - C._gotk4_gstgl1_GLWindow_virtual_run(unsafe.Pointer(parentclass.run), carg0) + C._goglib_gstgl1_GLWindow_virtual_run(unsafe.Pointer(parentclass.run), carg0) runtime.KeepAlive(window) } @@ -14321,7 +14256,7 @@ func (window *GLWindowInstance) ParentSetPreferredSize(width int32, height int32 carg1 = C.gint(width) carg2 = C.gint(height) - C._gotk4_gstgl1_GLWindow_virtual_set_preferred_size(unsafe.Pointer(parentclass.set_preferred_size), carg0, carg1, carg2) + C._goglib_gstgl1_GLWindow_virtual_set_preferred_size(unsafe.Pointer(parentclass.set_preferred_size), carg0, carg1, carg2) runtime.KeepAlive(window) runtime.KeepAlive(width) runtime.KeepAlive(height) @@ -14359,7 +14294,7 @@ func (window *GLWindowInstance) ParentSetRenderRectangle(x int32, y int32, width carg3 = C.gint(width) carg4 = C.gint(height) - cret = C._gotk4_gstgl1_GLWindow_virtual_set_render_rectangle(unsafe.Pointer(parentclass.set_render_rectangle), carg0, carg1, carg2, carg3, carg4) + cret = C._goglib_gstgl1_GLWindow_virtual_set_render_rectangle(unsafe.Pointer(parentclass.set_render_rectangle), carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(window) runtime.KeepAlive(x) runtime.KeepAlive(y) @@ -14386,7 +14321,7 @@ func (window *GLWindowInstance) ParentShow() { carg0 = (*C.GstGLWindow)(UnsafeGLWindowToGlibNone(window)) - C._gotk4_gstgl1_GLWindow_virtual_show(unsafe.Pointer(parentclass.show), carg0) + C._goglib_gstgl1_GLWindow_virtual_show(unsafe.Pointer(parentclass.show), carg0) runtime.KeepAlive(window) } diff --git a/pkg/gstgl/gstgl_export.gen.go b/pkg/gstgl/gstgl_export.gen.go index e33a0d0..cf5321a 100644 --- a/pkg/gstgl/gstgl_export.gen.go +++ b/pkg/gstgl/gstgl_export.gen.go @@ -5,15 +5,15 @@ package gstgl import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" ) // #include import "C" -//export _gotk4_gstgl1_GLAsyncDebugLogGetMessage -func _gotk4_gstgl1_GLAsyncDebugLogGetMessage(carg1 C.gpointer) (cret *C.gchar) { +//export _goglib_gstgl1_GLAsyncDebugLogGetMessage +func _goglib_gstgl1_GLAsyncDebugLogGetMessage(carg1 C.gpointer) (cret *C.gchar) { var fn GLAsyncDebugLogGetMessage { v := userdata.Load(unsafe.Pointer(carg1)) @@ -32,8 +32,8 @@ func _gotk4_gstgl1_GLAsyncDebugLogGetMessage(carg1 C.gpointer) (cret *C.gchar) { return cret } -//export _gotk4_gstgl1_GLFilterRenderFunc -func _gotk4_gstgl1_GLFilterRenderFunc(carg1 *C.GstGLFilter, carg2 *C.GstGLMemory, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gstgl1_GLFilterRenderFunc +func _goglib_gstgl1_GLFilterRenderFunc(carg1 *C.GstGLFilter, carg2 *C.GstGLMemory, carg3 C.gpointer) (cret C.gboolean) { var fn GLFilterRenderFunc { v := userdata.Load(unsafe.Pointer(carg3)) @@ -59,481 +59,481 @@ func _gotk4_gstgl1_GLFilterRenderFunc(carg1 *C.GstGLFilter, carg2 *C.GstGLMemory return cret } -//export _gotk4_gstgl1_GLBaseFilter_gl_set_caps -func _gotk4_gstgl1_GLBaseFilter_gl_set_caps(carg0 *C.GstGLBaseFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstgl1_GLBaseFilter_gl_set_caps +func _goglib_gstgl1_GLBaseFilter_gl_set_caps(carg0 *C.GstGLBaseFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstGLBaseFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseFilter_gl_set_caps").(func(carg0 *C.GstGLBaseFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseFilter_gl_set_caps").(func(carg0 *C.GstGLBaseFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseFilter_gl_set_caps: no function pointer found") + panic("_goglib_gstgl1_GLBaseFilter_gl_set_caps: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstgl1_GLBaseFilter_gl_start -func _gotk4_gstgl1_GLBaseFilter_gl_start(carg0 *C.GstGLBaseFilter) (cret C.gboolean) { +//export _goglib_gstgl1_GLBaseFilter_gl_start +func _goglib_gstgl1_GLBaseFilter_gl_start(carg0 *C.GstGLBaseFilter) (cret C.gboolean) { var fn func(carg0 *C.GstGLBaseFilter) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseFilter_gl_start").(func(carg0 *C.GstGLBaseFilter) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseFilter_gl_start").(func(carg0 *C.GstGLBaseFilter) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseFilter_gl_start: no function pointer found") + panic("_goglib_gstgl1_GLBaseFilter_gl_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLBaseFilter_gl_stop -func _gotk4_gstgl1_GLBaseFilter_gl_stop(carg0 *C.GstGLBaseFilter) { +//export _goglib_gstgl1_GLBaseFilter_gl_stop +func _goglib_gstgl1_GLBaseFilter_gl_stop(carg0 *C.GstGLBaseFilter) { var fn func(carg0 *C.GstGLBaseFilter) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseFilter_gl_stop").(func(carg0 *C.GstGLBaseFilter)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseFilter_gl_stop").(func(carg0 *C.GstGLBaseFilter)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseFilter_gl_stop: no function pointer found") + panic("_goglib_gstgl1_GLBaseFilter_gl_stop: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLBaseMemoryAllocator_alloc -func _gotk4_gstgl1_GLBaseMemoryAllocator_alloc(carg0 *C.GstGLBaseMemoryAllocator, carg1 *C.GstGLAllocationParams) (cret *C.GstGLBaseMemory) { +//export _goglib_gstgl1_GLBaseMemoryAllocator_alloc +func _goglib_gstgl1_GLBaseMemoryAllocator_alloc(carg0 *C.GstGLBaseMemoryAllocator, carg1 *C.GstGLAllocationParams) (cret *C.GstGLBaseMemory) { var fn func(carg0 *C.GstGLBaseMemoryAllocator, carg1 *C.GstGLAllocationParams) (cret *C.GstGLBaseMemory) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseMemoryAllocator_alloc").(func(carg0 *C.GstGLBaseMemoryAllocator, carg1 *C.GstGLAllocationParams) (cret *C.GstGLBaseMemory)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseMemoryAllocator_alloc").(func(carg0 *C.GstGLBaseMemoryAllocator, carg1 *C.GstGLAllocationParams) (cret *C.GstGLBaseMemory)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseMemoryAllocator_alloc: no function pointer found") + panic("_goglib_gstgl1_GLBaseMemoryAllocator_alloc: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLBaseMixer_gl_start -func _gotk4_gstgl1_GLBaseMixer_gl_start(carg0 *C.GstGLBaseMixer) (cret C.gboolean) { +//export _goglib_gstgl1_GLBaseMixer_gl_start +func _goglib_gstgl1_GLBaseMixer_gl_start(carg0 *C.GstGLBaseMixer) (cret C.gboolean) { var fn func(carg0 *C.GstGLBaseMixer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseMixer_gl_start").(func(carg0 *C.GstGLBaseMixer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseMixer_gl_start").(func(carg0 *C.GstGLBaseMixer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseMixer_gl_start: no function pointer found") + panic("_goglib_gstgl1_GLBaseMixer_gl_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLBaseMixer_gl_stop -func _gotk4_gstgl1_GLBaseMixer_gl_stop(carg0 *C.GstGLBaseMixer) { +//export _goglib_gstgl1_GLBaseMixer_gl_stop +func _goglib_gstgl1_GLBaseMixer_gl_stop(carg0 *C.GstGLBaseMixer) { var fn func(carg0 *C.GstGLBaseMixer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseMixer_gl_stop").(func(carg0 *C.GstGLBaseMixer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseMixer_gl_stop").(func(carg0 *C.GstGLBaseMixer)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseMixer_gl_stop: no function pointer found") + panic("_goglib_gstgl1_GLBaseMixer_gl_stop: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLBaseSrc_fill_gl_memory -func _gotk4_gstgl1_GLBaseSrc_fill_gl_memory(carg0 *C.GstGLBaseSrc, carg1 *C.GstGLMemory) (cret C.gboolean) { +//export _goglib_gstgl1_GLBaseSrc_fill_gl_memory +func _goglib_gstgl1_GLBaseSrc_fill_gl_memory(carg0 *C.GstGLBaseSrc, carg1 *C.GstGLMemory) (cret C.gboolean) { var fn func(carg0 *C.GstGLBaseSrc, carg1 *C.GstGLMemory) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseSrc_fill_gl_memory").(func(carg0 *C.GstGLBaseSrc, carg1 *C.GstGLMemory) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseSrc_fill_gl_memory").(func(carg0 *C.GstGLBaseSrc, carg1 *C.GstGLMemory) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseSrc_fill_gl_memory: no function pointer found") + panic("_goglib_gstgl1_GLBaseSrc_fill_gl_memory: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLBaseSrc_gl_start -func _gotk4_gstgl1_GLBaseSrc_gl_start(carg0 *C.GstGLBaseSrc) (cret C.gboolean) { +//export _goglib_gstgl1_GLBaseSrc_gl_start +func _goglib_gstgl1_GLBaseSrc_gl_start(carg0 *C.GstGLBaseSrc) (cret C.gboolean) { var fn func(carg0 *C.GstGLBaseSrc) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseSrc_gl_start").(func(carg0 *C.GstGLBaseSrc) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseSrc_gl_start").(func(carg0 *C.GstGLBaseSrc) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseSrc_gl_start: no function pointer found") + panic("_goglib_gstgl1_GLBaseSrc_gl_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLBaseSrc_gl_stop -func _gotk4_gstgl1_GLBaseSrc_gl_stop(carg0 *C.GstGLBaseSrc) { +//export _goglib_gstgl1_GLBaseSrc_gl_stop +func _goglib_gstgl1_GLBaseSrc_gl_stop(carg0 *C.GstGLBaseSrc) { var fn func(carg0 *C.GstGLBaseSrc) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLBaseSrc_gl_stop").(func(carg0 *C.GstGLBaseSrc)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLBaseSrc_gl_stop").(func(carg0 *C.GstGLBaseSrc)) if fn == nil { - panic("_gotk4_gstgl1_GLBaseSrc_gl_stop: no function pointer found") + panic("_goglib_gstgl1_GLBaseSrc_gl_stop: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLContext_activate -func _gotk4_gstgl1_GLContext_activate(carg0 *C.GstGLContext, carg1 C.gboolean) (cret C.gboolean) { +//export _goglib_gstgl1_GLContext_activate +func _goglib_gstgl1_GLContext_activate(carg0 *C.GstGLContext, carg1 C.gboolean) (cret C.gboolean) { var fn func(carg0 *C.GstGLContext, carg1 C.gboolean) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_activate").(func(carg0 *C.GstGLContext, carg1 C.gboolean) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_activate").(func(carg0 *C.GstGLContext, carg1 C.gboolean) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_activate: no function pointer found") + panic("_goglib_gstgl1_GLContext_activate: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLContext_check_feature -func _gotk4_gstgl1_GLContext_check_feature(carg0 *C.GstGLContext, carg1 *C.gchar) (cret C.gboolean) { +//export _goglib_gstgl1_GLContext_check_feature +func _goglib_gstgl1_GLContext_check_feature(carg0 *C.GstGLContext, carg1 *C.gchar) (cret C.gboolean) { var fn func(carg0 *C.GstGLContext, carg1 *C.gchar) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_check_feature").(func(carg0 *C.GstGLContext, carg1 *C.gchar) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_check_feature").(func(carg0 *C.GstGLContext, carg1 *C.gchar) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_check_feature: no function pointer found") + panic("_goglib_gstgl1_GLContext_check_feature: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLContext_choose_format -func _gotk4_gstgl1_GLContext_choose_format(carg0 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { +//export _goglib_gstgl1_GLContext_choose_format +func _goglib_gstgl1_GLContext_choose_format(carg0 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { var fn func(carg0 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_choose_format").(func(carg0 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_choose_format").(func(carg0 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_choose_format: no function pointer found") + panic("_goglib_gstgl1_GLContext_choose_format: no function pointer found") } } return fn(carg0, _cerr) } -//export _gotk4_gstgl1_GLContext_create_context -func _gotk4_gstgl1_GLContext_create_context(carg0 *C.GstGLContext, carg1 C.GstGLAPI, carg2 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { +//export _goglib_gstgl1_GLContext_create_context +func _goglib_gstgl1_GLContext_create_context(carg0 *C.GstGLContext, carg1 C.GstGLAPI, carg2 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { var fn func(carg0 *C.GstGLContext, carg1 C.GstGLAPI, carg2 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_create_context").(func(carg0 *C.GstGLContext, carg1 C.GstGLAPI, carg2 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_create_context").(func(carg0 *C.GstGLContext, carg1 C.GstGLAPI, carg2 *C.GstGLContext, _cerr **C.GError) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_create_context: no function pointer found") + panic("_goglib_gstgl1_GLContext_create_context: no function pointer found") } } return fn(carg0, carg1, carg2, _cerr) } -//export _gotk4_gstgl1_GLContext_destroy_context -func _gotk4_gstgl1_GLContext_destroy_context(carg0 *C.GstGLContext) { +//export _goglib_gstgl1_GLContext_destroy_context +func _goglib_gstgl1_GLContext_destroy_context(carg0 *C.GstGLContext) { var fn func(carg0 *C.GstGLContext) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_destroy_context").(func(carg0 *C.GstGLContext)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_destroy_context").(func(carg0 *C.GstGLContext)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_destroy_context: no function pointer found") + panic("_goglib_gstgl1_GLContext_destroy_context: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLContext_get_config -func _gotk4_gstgl1_GLContext_get_config(carg0 *C.GstGLContext) (cret *C.GstStructure) { +//export _goglib_gstgl1_GLContext_get_config +func _goglib_gstgl1_GLContext_get_config(carg0 *C.GstGLContext) (cret *C.GstStructure) { var fn func(carg0 *C.GstGLContext) (cret *C.GstStructure) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_get_config").(func(carg0 *C.GstGLContext) (cret *C.GstStructure)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_get_config").(func(carg0 *C.GstGLContext) (cret *C.GstStructure)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_get_config: no function pointer found") + panic("_goglib_gstgl1_GLContext_get_config: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLContext_get_gl_api -func _gotk4_gstgl1_GLContext_get_gl_api(carg0 *C.GstGLContext) (cret C.GstGLAPI) { +//export _goglib_gstgl1_GLContext_get_gl_api +func _goglib_gstgl1_GLContext_get_gl_api(carg0 *C.GstGLContext) (cret C.GstGLAPI) { var fn func(carg0 *C.GstGLContext) (cret C.GstGLAPI) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_get_gl_api").(func(carg0 *C.GstGLContext) (cret C.GstGLAPI)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_get_gl_api").(func(carg0 *C.GstGLContext) (cret C.GstGLAPI)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_get_gl_api: no function pointer found") + panic("_goglib_gstgl1_GLContext_get_gl_api: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLContext_get_gl_platform -func _gotk4_gstgl1_GLContext_get_gl_platform(carg0 *C.GstGLContext) (cret C.GstGLPlatform) { +//export _goglib_gstgl1_GLContext_get_gl_platform +func _goglib_gstgl1_GLContext_get_gl_platform(carg0 *C.GstGLContext) (cret C.GstGLPlatform) { var fn func(carg0 *C.GstGLContext) (cret C.GstGLPlatform) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_get_gl_platform").(func(carg0 *C.GstGLContext) (cret C.GstGLPlatform)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_get_gl_platform").(func(carg0 *C.GstGLContext) (cret C.GstGLPlatform)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_get_gl_platform: no function pointer found") + panic("_goglib_gstgl1_GLContext_get_gl_platform: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLContext_get_gl_platform_version -func _gotk4_gstgl1_GLContext_get_gl_platform_version(carg0 *C.GstGLContext, carg1 *C.gint, carg2 *C.gint) { +//export _goglib_gstgl1_GLContext_get_gl_platform_version +func _goglib_gstgl1_GLContext_get_gl_platform_version(carg0 *C.GstGLContext, carg1 *C.gint, carg2 *C.gint) { var fn func(carg0 *C.GstGLContext, carg1 *C.gint, carg2 *C.gint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_get_gl_platform_version").(func(carg0 *C.GstGLContext, carg1 *C.gint, carg2 *C.gint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_get_gl_platform_version").(func(carg0 *C.GstGLContext, carg1 *C.gint, carg2 *C.gint)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_get_gl_platform_version: no function pointer found") + panic("_goglib_gstgl1_GLContext_get_gl_platform_version: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gstgl1_GLContext_request_config -func _gotk4_gstgl1_GLContext_request_config(carg0 *C.GstGLContext, carg1 *C.GstStructure) (cret C.gboolean) { +//export _goglib_gstgl1_GLContext_request_config +func _goglib_gstgl1_GLContext_request_config(carg0 *C.GstGLContext, carg1 *C.GstStructure) (cret C.gboolean) { var fn func(carg0 *C.GstGLContext, carg1 *C.GstStructure) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_request_config").(func(carg0 *C.GstGLContext, carg1 *C.GstStructure) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_request_config").(func(carg0 *C.GstGLContext, carg1 *C.GstStructure) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_request_config: no function pointer found") + panic("_goglib_gstgl1_GLContext_request_config: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLContext_swap_buffers -func _gotk4_gstgl1_GLContext_swap_buffers(carg0 *C.GstGLContext) { +//export _goglib_gstgl1_GLContext_swap_buffers +func _goglib_gstgl1_GLContext_swap_buffers(carg0 *C.GstGLContext) { var fn func(carg0 *C.GstGLContext) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLContext_swap_buffers").(func(carg0 *C.GstGLContext)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLContext_swap_buffers").(func(carg0 *C.GstGLContext)) if fn == nil { - panic("_gotk4_gstgl1_GLContext_swap_buffers: no function pointer found") + panic("_goglib_gstgl1_GLContext_swap_buffers: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLDisplay_create_window -func _gotk4_gstgl1_GLDisplay_create_window(carg0 *C.GstGLDisplay) (cret *C.GstGLWindow) { +//export _goglib_gstgl1_GLDisplay_create_window +func _goglib_gstgl1_GLDisplay_create_window(carg0 *C.GstGLDisplay) (cret *C.GstGLWindow) { var fn func(carg0 *C.GstGLDisplay) (cret *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLDisplay_create_window").(func(carg0 *C.GstGLDisplay) (cret *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLDisplay_create_window").(func(carg0 *C.GstGLDisplay) (cret *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLDisplay_create_window: no function pointer found") + panic("_goglib_gstgl1_GLDisplay_create_window: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLFilter_filter -func _gotk4_gstgl1_GLFilter_filter(carg0 *C.GstGLFilter, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstgl1_GLFilter_filter +func _goglib_gstgl1_GLFilter_filter(carg0 *C.GstGLFilter, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstGLFilter, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLFilter_filter").(func(carg0 *C.GstGLFilter, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLFilter_filter").(func(carg0 *C.GstGLFilter, carg1 *C.GstBuffer, carg2 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLFilter_filter: no function pointer found") + panic("_goglib_gstgl1_GLFilter_filter: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstgl1_GLFilter_filter_texture -func _gotk4_gstgl1_GLFilter_filter_texture(carg0 *C.GstGLFilter, carg1 *C.GstGLMemory, carg2 *C.GstGLMemory) (cret C.gboolean) { +//export _goglib_gstgl1_GLFilter_filter_texture +func _goglib_gstgl1_GLFilter_filter_texture(carg0 *C.GstGLFilter, carg1 *C.GstGLMemory, carg2 *C.GstGLMemory) (cret C.gboolean) { var fn func(carg0 *C.GstGLFilter, carg1 *C.GstGLMemory, carg2 *C.GstGLMemory) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLFilter_filter_texture").(func(carg0 *C.GstGLFilter, carg1 *C.GstGLMemory, carg2 *C.GstGLMemory) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLFilter_filter_texture").(func(carg0 *C.GstGLFilter, carg1 *C.GstGLMemory, carg2 *C.GstGLMemory) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLFilter_filter_texture: no function pointer found") + panic("_goglib_gstgl1_GLFilter_filter_texture: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstgl1_GLFilter_init_fbo -func _gotk4_gstgl1_GLFilter_init_fbo(carg0 *C.GstGLFilter) (cret C.gboolean) { +//export _goglib_gstgl1_GLFilter_init_fbo +func _goglib_gstgl1_GLFilter_init_fbo(carg0 *C.GstGLFilter) (cret C.gboolean) { var fn func(carg0 *C.GstGLFilter) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLFilter_init_fbo").(func(carg0 *C.GstGLFilter) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLFilter_init_fbo").(func(carg0 *C.GstGLFilter) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLFilter_init_fbo: no function pointer found") + panic("_goglib_gstgl1_GLFilter_init_fbo: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLFilter_set_caps -func _gotk4_gstgl1_GLFilter_set_caps(carg0 *C.GstGLFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstgl1_GLFilter_set_caps +func _goglib_gstgl1_GLFilter_set_caps(carg0 *C.GstGLFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstGLFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLFilter_set_caps").(func(carg0 *C.GstGLFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLFilter_set_caps").(func(carg0 *C.GstGLFilter, carg1 *C.GstCaps, carg2 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLFilter_set_caps: no function pointer found") + panic("_goglib_gstgl1_GLFilter_set_caps: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstgl1_GLFilter_transform_internal_caps -func _gotk4_gstgl1_GLFilter_transform_internal_caps(carg0 *C.GstGLFilter, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstgl1_GLFilter_transform_internal_caps +func _goglib_gstgl1_GLFilter_transform_internal_caps(carg0 *C.GstGLFilter, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstGLFilter, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLFilter_transform_internal_caps").(func(carg0 *C.GstGLFilter, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLFilter_transform_internal_caps").(func(carg0 *C.GstGLFilter, carg1 C.GstPadDirection, carg2 *C.GstCaps, carg3 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstgl1_GLFilter_transform_internal_caps: no function pointer found") + panic("_goglib_gstgl1_GLFilter_transform_internal_caps: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstgl1_GLMixer_process_buffers -func _gotk4_gstgl1_GLMixer_process_buffers(carg0 *C.GstGLMixer, carg1 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstgl1_GLMixer_process_buffers +func _goglib_gstgl1_GLMixer_process_buffers(carg0 *C.GstGLMixer, carg1 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstGLMixer, carg1 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLMixer_process_buffers").(func(carg0 *C.GstGLMixer, carg1 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLMixer_process_buffers").(func(carg0 *C.GstGLMixer, carg1 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLMixer_process_buffers: no function pointer found") + panic("_goglib_gstgl1_GLMixer_process_buffers: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLMixer_process_textures -func _gotk4_gstgl1_GLMixer_process_textures(carg0 *C.GstGLMixer, carg1 *C.GstGLMemory) (cret C.gboolean) { +//export _goglib_gstgl1_GLMixer_process_textures +func _goglib_gstgl1_GLMixer_process_textures(carg0 *C.GstGLMixer, carg1 *C.GstGLMemory) (cret C.gboolean) { var fn func(carg0 *C.GstGLMixer, carg1 *C.GstGLMemory) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLMixer_process_textures").(func(carg0 *C.GstGLMixer, carg1 *C.GstGLMemory) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLMixer_process_textures").(func(carg0 *C.GstGLMixer, carg1 *C.GstGLMemory) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLMixer_process_textures: no function pointer found") + panic("_goglib_gstgl1_GLMixer_process_textures: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstgl1_GLWindow_close -func _gotk4_gstgl1_GLWindow_close(carg0 *C.GstGLWindow) { +//export _goglib_gstgl1_GLWindow_close +func _goglib_gstgl1_GLWindow_close(carg0 *C.GstGLWindow) { var fn func(carg0 *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_close").(func(carg0 *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_close").(func(carg0 *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_close: no function pointer found") + panic("_goglib_gstgl1_GLWindow_close: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLWindow_controls_viewport -func _gotk4_gstgl1_GLWindow_controls_viewport(carg0 *C.GstGLWindow) (cret C.gboolean) { +//export _goglib_gstgl1_GLWindow_controls_viewport +func _goglib_gstgl1_GLWindow_controls_viewport(carg0 *C.GstGLWindow) (cret C.gboolean) { var fn func(carg0 *C.GstGLWindow) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_controls_viewport").(func(carg0 *C.GstGLWindow) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_controls_viewport").(func(carg0 *C.GstGLWindow) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_controls_viewport: no function pointer found") + panic("_goglib_gstgl1_GLWindow_controls_viewport: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLWindow_draw -func _gotk4_gstgl1_GLWindow_draw(carg0 *C.GstGLWindow) { +//export _goglib_gstgl1_GLWindow_draw +func _goglib_gstgl1_GLWindow_draw(carg0 *C.GstGLWindow) { var fn func(carg0 *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_draw").(func(carg0 *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_draw").(func(carg0 *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_draw: no function pointer found") + panic("_goglib_gstgl1_GLWindow_draw: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLWindow_handle_events -func _gotk4_gstgl1_GLWindow_handle_events(carg0 *C.GstGLWindow, carg1 C.gboolean) { +//export _goglib_gstgl1_GLWindow_handle_events +func _goglib_gstgl1_GLWindow_handle_events(carg0 *C.GstGLWindow, carg1 C.gboolean) { var fn func(carg0 *C.GstGLWindow, carg1 C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_handle_events").(func(carg0 *C.GstGLWindow, carg1 C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_handle_events").(func(carg0 *C.GstGLWindow, carg1 C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_handle_events: no function pointer found") + panic("_goglib_gstgl1_GLWindow_handle_events: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstgl1_GLWindow_has_output_surface -func _gotk4_gstgl1_GLWindow_has_output_surface(carg0 *C.GstGLWindow) (cret C.gboolean) { +//export _goglib_gstgl1_GLWindow_has_output_surface +func _goglib_gstgl1_GLWindow_has_output_surface(carg0 *C.GstGLWindow) (cret C.gboolean) { var fn func(carg0 *C.GstGLWindow) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_has_output_surface").(func(carg0 *C.GstGLWindow) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_has_output_surface").(func(carg0 *C.GstGLWindow) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_has_output_surface: no function pointer found") + panic("_goglib_gstgl1_GLWindow_has_output_surface: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstgl1_GLWindow_open -func _gotk4_gstgl1_GLWindow_open(carg0 *C.GstGLWindow, _cerr **C.GError) (cret C.gboolean) { +//export _goglib_gstgl1_GLWindow_open +func _goglib_gstgl1_GLWindow_open(carg0 *C.GstGLWindow, _cerr **C.GError) (cret C.gboolean) { var fn func(carg0 *C.GstGLWindow, _cerr **C.GError) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_open").(func(carg0 *C.GstGLWindow, _cerr **C.GError) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_open").(func(carg0 *C.GstGLWindow, _cerr **C.GError) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_open: no function pointer found") + panic("_goglib_gstgl1_GLWindow_open: no function pointer found") } } return fn(carg0, _cerr) } -//export _gotk4_gstgl1_GLWindow_queue_resize -func _gotk4_gstgl1_GLWindow_queue_resize(carg0 *C.GstGLWindow) { +//export _goglib_gstgl1_GLWindow_queue_resize +func _goglib_gstgl1_GLWindow_queue_resize(carg0 *C.GstGLWindow) { var fn func(carg0 *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_queue_resize").(func(carg0 *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_queue_resize").(func(carg0 *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_queue_resize: no function pointer found") + panic("_goglib_gstgl1_GLWindow_queue_resize: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLWindow_quit -func _gotk4_gstgl1_GLWindow_quit(carg0 *C.GstGLWindow) { +//export _goglib_gstgl1_GLWindow_quit +func _goglib_gstgl1_GLWindow_quit(carg0 *C.GstGLWindow) { var fn func(carg0 *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_quit").(func(carg0 *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_quit").(func(carg0 *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_quit: no function pointer found") + panic("_goglib_gstgl1_GLWindow_quit: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLWindow_run -func _gotk4_gstgl1_GLWindow_run(carg0 *C.GstGLWindow) { +//export _goglib_gstgl1_GLWindow_run +func _goglib_gstgl1_GLWindow_run(carg0 *C.GstGLWindow) { var fn func(carg0 *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_run").(func(carg0 *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_run").(func(carg0 *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_run: no function pointer found") + panic("_goglib_gstgl1_GLWindow_run: no function pointer found") } } fn(carg0) } -//export _gotk4_gstgl1_GLWindow_set_preferred_size -func _gotk4_gstgl1_GLWindow_set_preferred_size(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint) { +//export _goglib_gstgl1_GLWindow_set_preferred_size +func _goglib_gstgl1_GLWindow_set_preferred_size(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint) { var fn func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_set_preferred_size").(func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_set_preferred_size").(func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_set_preferred_size: no function pointer found") + panic("_goglib_gstgl1_GLWindow_set_preferred_size: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gstgl1_GLWindow_set_render_rectangle -func _gotk4_gstgl1_GLWindow_set_render_rectangle(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint, carg3 C.gint, carg4 C.gint) (cret C.gboolean) { +//export _goglib_gstgl1_GLWindow_set_render_rectangle +func _goglib_gstgl1_GLWindow_set_render_rectangle(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint, carg3 C.gint, carg4 C.gint) (cret C.gboolean) { var fn func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint, carg3 C.gint, carg4 C.gint) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_set_render_rectangle").(func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint, carg3 C.gint, carg4 C.gint) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_set_render_rectangle").(func(carg0 *C.GstGLWindow, carg1 C.gint, carg2 C.gint, carg3 C.gint, carg4 C.gint) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_set_render_rectangle: no function pointer found") + panic("_goglib_gstgl1_GLWindow_set_render_rectangle: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4) } -//export _gotk4_gstgl1_GLWindow_show -func _gotk4_gstgl1_GLWindow_show(carg0 *C.GstGLWindow) { +//export _goglib_gstgl1_GLWindow_show +func _goglib_gstgl1_GLWindow_show(carg0 *C.GstGLWindow) { var fn func(carg0 *C.GstGLWindow) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstgl1_GLWindow_show").(func(carg0 *C.GstGLWindow)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstgl1_GLWindow_show").(func(carg0 *C.GstGLWindow)) if fn == nil { - panic("_gotk4_gstgl1_GLWindow_show: no function pointer found") + panic("_goglib_gstgl1_GLWindow_show: no function pointer found") } } fn(carg0) diff --git a/pkg/gstmpegts/gstmpegts.gen.go b/pkg/gstmpegts/gstmpegts.gen.go index b60a9a7..3212040 100644 --- a/pkg/gstmpegts/gstmpegts.gen.go +++ b/pkg/gstmpegts/gstmpegts.gen.go @@ -9,8 +9,8 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) @@ -6019,7 +6019,7 @@ func UnsafeDescriptorToGlibFull(d *Descriptor) unsafe.Pointer { // Creates a #GstMpegtsDescriptor with custom @tag and @data func DescriptorFromCustom(tag uint8, data []uint8) *Descriptor { var carg1 C.guint8 // in, none, casted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var cret *C.GstMpegtsDescriptor // return, full, converted, nullable @@ -6027,7 +6027,7 @@ func DescriptorFromCustom(tag uint8, data []uint8) *Descriptor { _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mpegts_descriptor_from_custom(carg1, carg2, carg3) runtime.KeepAlive(tag) @@ -6058,7 +6058,7 @@ func DescriptorFromCustom(tag uint8, data []uint8) *Descriptor { func DescriptorFromCustomWithExtension(tag uint8, tagExtension uint8, data []uint8) *Descriptor { var carg1 C.guint8 // in, none, casted var carg2 C.guint8 // in, none, casted - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg4) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg4) var carg4 C.gsize // implicit var cret *C.GstMpegtsDescriptor // return, full, converted @@ -6067,7 +6067,7 @@ func DescriptorFromCustomWithExtension(tag uint8, tagExtension uint8, data []uin _ = data _ = carg3 _ = carg4 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mpegts_descriptor_from_custom_with_extension(carg1, carg2, carg3, carg4) runtime.KeepAlive(tag) @@ -6316,7 +6316,7 @@ func DescriptorFromMetadataPointer(metadataPointerDescriptor *MetadataPointerDes // Creates a %GST_MTS_DESC_REGISTRATION #GstMpegtsDescriptor func DescriptorFromRegistration(formatIdentifier string, additionalInfo []uint8) *Descriptor { var carg1 *C.gchar // in, none, string - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], nullable, array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], nullable, array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var cret *C.GstMpegtsDescriptor // return, full, converted @@ -6325,7 +6325,7 @@ func DescriptorFromRegistration(formatIdentifier string, additionalInfo []uint8) _ = additionalInfo _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mpegts_descriptor_from_registration(carg1, carg2, carg3) runtime.KeepAlive(formatIdentifier) @@ -6412,7 +6412,7 @@ func (descriptor *Descriptor) ParseCableDeliverySystem() (CableDeliverySystemDes _ = res _ = carg1 - panic("unimplemented conversion of CableDeliverySystemDescriptor (GstMpegtsCableDeliverySystemDescriptor)") + panic("unimplemented conversion of CableDeliverySystemDescriptor (GstMpegtsCableDeliverySystemDescriptor) because of unknown reason") if cret != 0 { goret = true } @@ -6760,7 +6760,7 @@ func (descriptor *Descriptor) ParseDvbStuffing() (*uint8, bool) { _ = stuffingBytes _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of unknown reason") if cret != 0 { goret = true } @@ -7062,7 +7062,7 @@ func (descriptor *Descriptor) ParseJpegXs() (JpegXsDescriptor, bool) { _ = res _ = carg1 - panic("unimplemented conversion of JpegXsDescriptor (GstMpegtsJpegXsDescriptor)") + panic("unimplemented conversion of JpegXsDescriptor (GstMpegtsJpegXsDescriptor) because of unknown reason") if cret != 0 { goret = true } @@ -7093,7 +7093,7 @@ func (descriptor *Descriptor) ParseLogicalChannel() (LogicalChannelDescriptor, b _ = res _ = carg1 - panic("unimplemented conversion of LogicalChannelDescriptor (GstMpegtsLogicalChannelDescriptor)") + panic("unimplemented conversion of LogicalChannelDescriptor (GstMpegtsLogicalChannelDescriptor) because of unknown reason") if cret != 0 { goret = true } @@ -7159,13 +7159,13 @@ func (descriptor *Descriptor) ParseMetadataStd(metadataInputLeakRate *uint32, me carg0 = (*C.GstMpegtsDescriptor)(UnsafeDescriptorToGlibNone(descriptor)) _ = metadataInputLeakRate _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = metadataBufferSize _ = carg2 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = metadataOutputLeakRate _ = carg3 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_mpegts_descriptor_parse_metadata_std(carg0, carg1, carg2, carg3) runtime.KeepAlive(descriptor) @@ -7205,7 +7205,7 @@ func (descriptor *Descriptor) ParseSatelliteDeliverySystem() (SatelliteDeliveryS _ = res _ = carg1 - panic("unimplemented conversion of SatelliteDeliverySystemDescriptor (GstMpegtsSatelliteDeliverySystemDescriptor)") + panic("unimplemented conversion of SatelliteDeliverySystemDescriptor (GstMpegtsSatelliteDeliverySystemDescriptor) because of unknown reason") if cret != 0 { goret = true } @@ -7236,7 +7236,7 @@ func (descriptor *Descriptor) ParseTerrestrialDeliverySystem() (TerrestrialDeliv _ = res _ = carg1 - panic("unimplemented conversion of TerrestrialDeliverySystemDescriptor (GstMpegtsTerrestrialDeliverySystemDescriptor)") + panic("unimplemented conversion of TerrestrialDeliverySystemDescriptor (GstMpegtsTerrestrialDeliverySystemDescriptor) because of unknown reason") if cret != 0 { goret = true } @@ -10309,7 +10309,7 @@ func UnsafeSectionToGlibFull(s *Section) unsafe.Pointer { // to the beginning of the section. func NewSection(pid uint16, data []uint8) *Section { var carg1 C.guint16 // in, none, casted - var carg2 *C.guint8 // in, transfer: full, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: full, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var cret *C.GstMpegtsSection // return, full, converted @@ -10317,7 +10317,7 @@ func NewSection(pid uint16, data []uint8) *Section { _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mpegts_section_new(carg1, carg2, carg3) runtime.KeepAlive(pid) @@ -10972,7 +10972,7 @@ func (section *Section) Packetize() (uint, *uint8) { outputSize = uint(carg1) _ = goret _ = cret - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of unknown reason") return outputSize, goret } diff --git a/pkg/gstnet/gstnet.gen.go b/pkg/gstnet/gstnet.gen.go index 7cba5b7..eb55573 100644 --- a/pkg/gstnet/gstnet.gen.go +++ b/pkg/gstnet/gstnet.gen.go @@ -7,17 +7,17 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/gio/v2" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/gio/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) // #cgo pkg-config: gstreamer-net-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern gboolean _gotk4_gstnet1_PtpStatisticsCallback(guint8, const GstStructure*, gpointer); +// extern gboolean _goglib_gstnet1_PtpStatisticsCallback(guint8, const GstStructure*, gpointer); // extern void destroyUserdata(gpointer); import "C" @@ -288,13 +288,13 @@ func PtpDeinit() { // parameters if it wasn't called before. func PtpInit(clockId uint64, interfaces []string) bool { var carg1 C.guint64 // in, none, casted - var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg2 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], nullable, array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret C.gboolean // return carg1 = C.guint64(clockId) _ = interfaces _ = carg2 - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unimplemented: inner pointers in array") cret = C.gst_ptp_init(carg1, carg2) runtime.KeepAlive(clockId) @@ -413,7 +413,7 @@ func PtpStatisticsCallbackAdd(callback PtpStatisticsCallback) uint32 { var carg3 C.GDestroyNotify // implicit var cret C.gulong // return, none, casted - carg1 = (*[0]byte)(C._gotk4_gstnet1_PtpStatisticsCallback) + carg1 = (*[0]byte)(C._goglib_gstnet1_PtpStatisticsCallback) carg2 = C.gpointer(userdata.Register(callback)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -1497,12 +1497,16 @@ func UnsafeNetTimePacketToGlibFull(n *NetTimePacket) unsafe.Pointer { // // MT safe. Caller owns return value (gst_net_time_packet_free to free). func NewNetTimePacket(buffer [16]uint8) *NetTimePacket { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], nullable, array (inner: *typesystem.CastablePrimitive, fixed-size: 16) + var carg1 *C.guint8 // in, none, array fixed size (inner: guint8, size: 16) var cret *C.GstNetTimePacket // return, full, converted - _ = buffer - _ = carg1 - panic("unimplemented conversion of [16]uint8 (const guint8*)") + { + var carr [16]C.guint8 + for i := range 16 { + carr[i] = C.guint8(buffer[i]) + carg1 = unsafe.SliceData(carr[:]) + } + } cret = C.gst_net_time_packet_new(carg1) runtime.KeepAlive(buffer) @@ -1633,7 +1637,7 @@ func (packet *NetTimePacket) Send(socket gio.Socket, destAddress gio.SocketAddre // MT safe. Caller owns return value (g_free to free). func (packet *NetTimePacket) Serialize() [16]uint8 { var carg0 *C.GstNetTimePacket // in, none, converted - var cret *C.guint8 // return, transfer: full, C Pointers: 1, Name: array[guint8], scope: , array (inner: *typesystem.CastablePrimitive, fixed-size: 16) + var cret *C.guint8 // return, transfer: full, C Pointers: 1, Name: array[guint8], scope: , array (inner guint8 (*typesystem.CastablePrimitive), fixed-size: 16) carg0 = (*C.GstNetTimePacket)(UnsafeNetTimePacketToGlibNone(packet)) @@ -1644,7 +1648,7 @@ func (packet *NetTimePacket) Serialize() [16]uint8 { _ = goret _ = cret - panic("unimplemented conversion of [16]uint8 (guint8*)") + panic("unimplemented conversion of [16]uint8 (guint8*) because of unknown reason") return goret } diff --git a/pkg/gstnet/gstnet_export.gen.go b/pkg/gstnet/gstnet_export.gen.go index 8d6a6f8..d4c6d4d 100644 --- a/pkg/gstnet/gstnet_export.gen.go +++ b/pkg/gstnet/gstnet_export.gen.go @@ -5,15 +5,15 @@ package gstnet import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/userdata" "github.com/go-gst/go-gst/pkg/gst" ) // #include import "C" -//export _gotk4_gstnet1_PtpStatisticsCallback -func _gotk4_gstnet1_PtpStatisticsCallback(carg1 C.guint8, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { +//export _goglib_gstnet1_PtpStatisticsCallback +func _goglib_gstnet1_PtpStatisticsCallback(carg1 C.guint8, carg2 *C.GstStructure, carg3 C.gpointer) (cret C.gboolean) { var fn PtpStatisticsCallback { v := userdata.Load(unsafe.Pointer(carg3)) diff --git a/pkg/gstpbutils/gstpbutils.gen.go b/pkg/gstpbutils/gstpbutils.gen.go index b966d19..1abad26 100644 --- a/pkg/gstpbutils/gstpbutils.gen.go +++ b/pkg/gstpbutils/gstpbutils.gen.go @@ -8,10 +8,10 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstvideo" ) @@ -19,37 +19,33 @@ import ( // #cgo pkg-config: gstreamer-pbutils-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern void _gotk4_gstpbutils1_InstallPluginsResultFunc(GstInstallPluginsReturn, gpointer); -// extern gboolean _gotk4_gstpbutils1_AudioVisualizer_decide_allocation(GstAudioVisualizer*, GstQuery*); -// extern gboolean _gotk4_gstpbutils1_AudioVisualizer_render(GstAudioVisualizer*, GstBuffer*, GstVideoFrame*); -// extern gboolean _gotk4_gstpbutils1_AudioVisualizer_setup(GstAudioVisualizer*); -// gboolean _gotk4_gstpbutils1_AudioVisualizer_virtual_decide_allocation(void* fnptr, GstAudioVisualizer* carg0, GstQuery* carg1) { +// extern void _goglib_gstpbutils1_InstallPluginsResultFunc(GstInstallPluginsReturn, gpointer); +// extern gboolean _goglib_gstpbutils1_AudioVisualizer_decide_allocation(GstAudioVisualizer*, GstQuery*); +// extern gboolean _goglib_gstpbutils1_AudioVisualizer_render(GstAudioVisualizer*, GstBuffer*, GstVideoFrame*); +// extern gboolean _goglib_gstpbutils1_AudioVisualizer_setup(GstAudioVisualizer*); +// gboolean _goglib_gstpbutils1_AudioVisualizer_virtual_decide_allocation(void* fnptr, GstAudioVisualizer* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstAudioVisualizer*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstpbutils1_AudioVisualizer_virtual_render(void* fnptr, GstAudioVisualizer* carg0, GstBuffer* carg1, GstVideoFrame* carg2) { +// gboolean _goglib_gstpbutils1_AudioVisualizer_virtual_render(void* fnptr, GstAudioVisualizer* carg0, GstBuffer* carg1, GstVideoFrame* carg2) { // return ((gboolean (*) (GstAudioVisualizer*, GstBuffer*, GstVideoFrame*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstpbutils1_AudioVisualizer_virtual_setup(void* fnptr, GstAudioVisualizer* carg0) { +// gboolean _goglib_gstpbutils1_AudioVisualizer_virtual_setup(void* fnptr, GstAudioVisualizer* carg0) { // return ((gboolean (*) (GstAudioVisualizer*))(fnptr))(carg0); // } -// extern void _gotk4_gstpbutils1_Discoverer_discovered(GstDiscoverer*, GstDiscovererInfo*, const GError*); -// extern void _gotk4_gstpbutils1_Discoverer_finished(GstDiscoverer*); -// extern GstDiscovererInfo* _gotk4_gstpbutils1_Discoverer_load_serialize_info(GstDiscoverer*, gchar*); -// extern void _gotk4_gstpbutils1_Discoverer_source_setup(GstDiscoverer*, GstElement*); -// extern void _gotk4_gstpbutils1_Discoverer_starting(GstDiscoverer*); -// void _gotk4_gstpbutils1_Discoverer_virtual_discovered(void* fnptr, GstDiscoverer* carg0, GstDiscovererInfo* carg1, const GError* carg2) { -// return ((void (*) (GstDiscoverer*, GstDiscovererInfo*, const GError*))(fnptr))(carg0, carg1, carg2); -// } -// void _gotk4_gstpbutils1_Discoverer_virtual_finished(void* fnptr, GstDiscoverer* carg0) { +// extern void _goglib_gstpbutils1_Discoverer_finished(GstDiscoverer*); +// extern GstDiscovererInfo* _goglib_gstpbutils1_Discoverer_load_serialize_info(GstDiscoverer*, gchar*); +// extern void _goglib_gstpbutils1_Discoverer_source_setup(GstDiscoverer*, GstElement*); +// extern void _goglib_gstpbutils1_Discoverer_starting(GstDiscoverer*); +// void _goglib_gstpbutils1_Discoverer_virtual_finished(void* fnptr, GstDiscoverer* carg0) { // return ((void (*) (GstDiscoverer*))(fnptr))(carg0); // } -// GstDiscovererInfo* _gotk4_gstpbutils1_Discoverer_virtual_load_serialize_info(void* fnptr, GstDiscoverer* carg0, gchar* carg1) { +// GstDiscovererInfo* _goglib_gstpbutils1_Discoverer_virtual_load_serialize_info(void* fnptr, GstDiscoverer* carg0, gchar* carg1) { // return ((GstDiscovererInfo* (*) (GstDiscoverer*, gchar*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstpbutils1_Discoverer_virtual_source_setup(void* fnptr, GstDiscoverer* carg0, GstElement* carg1) { +// void _goglib_gstpbutils1_Discoverer_virtual_source_setup(void* fnptr, GstDiscoverer* carg0, GstElement* carg1) { // return ((void (*) (GstDiscoverer*, GstElement*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstpbutils1_Discoverer_virtual_starting(void* fnptr, GstDiscoverer* carg0) { +// void _goglib_gstpbutils1_Discoverer_virtual_starting(void* fnptr, GstDiscoverer* carg0) { // return ((void (*) (GstDiscoverer*))(fnptr))(carg0); // } import "C" @@ -587,7 +583,7 @@ type InstallPluginsResultFunc func(result InstallPluginsReturn) // If mpegversion is 4, the "base-profile" field is also set in @caps. func CodecUtilsAacCapsSetLevelAndProfile(caps *gst.Caps, audioConfig []uint8) bool { var carg1 *C.GstCaps // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var cret C.gboolean // return @@ -595,7 +591,7 @@ func CodecUtilsAacCapsSetLevelAndProfile(caps *gst.Caps, audioConfig []uint8) bo _ = audioConfig _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_aac_caps_set_level_and_profile(carg1, carg2, carg3) runtime.KeepAlive(caps) @@ -624,14 +620,14 @@ func CodecUtilsAacCapsSetLevelAndProfile(caps *gst.Caps, audioConfig []uint8) bo // // Returns the channels of the given AAC stream. func CodecUtilsAacGetChannels(audioConfig []uint8) uint { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.guint // return, none, casted _ = audioConfig _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_aac_get_channels(carg1, carg2) runtime.KeepAlive(audioConfig) @@ -696,14 +692,14 @@ func CodecUtilsAacGetIndexFromSampleRate(rate uint) int32 { // fields are appropriately shifted). // * Bit 9:12 contains the channel configuration func CodecUtilsAacGetLevel(audioConfig []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = audioConfig _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_aac_get_level(carg1, carg2) runtime.KeepAlive(audioConfig) @@ -733,14 +729,14 @@ func CodecUtilsAacGetLevel(audioConfig []uint8) string { // normally determined using the AudioObjectType field which is in the first // 5 bits of @audio_config func CodecUtilsAacGetProfile(audioConfig []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = audioConfig _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_aac_get_profile(carg1, carg2) runtime.KeepAlive(audioConfig) @@ -769,14 +765,14 @@ func CodecUtilsAacGetProfile(audioConfig []uint8) string { // Translates the sample rate index found in AAC headers to the actual sample // rate. func CodecUtilsAacGetSampleRate(audioConfig []uint8) uint { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.guint // return, none, casted _ = audioConfig _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_aac_get_sample_rate(carg1, carg2) runtime.KeepAlive(audioConfig) @@ -1016,7 +1012,7 @@ func CodecUtilsCapsGetMimeCodec(caps *gst.Caps) string { // for more details on the parameters. func CodecUtilsH264CapsSetLevelAndProfile(caps *gst.Caps, sps []uint8) bool { var carg1 *C.GstCaps // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var cret C.gboolean // return @@ -1024,7 +1020,7 @@ func CodecUtilsH264CapsSetLevelAndProfile(caps *gst.Caps, sps []uint8) bool { _ = sps _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h264_caps_set_level_and_profile(carg1, carg2, carg3) runtime.KeepAlive(caps) @@ -1053,14 +1049,14 @@ func CodecUtilsH264CapsSetLevelAndProfile(caps *gst.Caps, sps []uint8) bool { // sequence parameter set into a string. The SPS is expected to have the // same format as for gst_codec_utils_h264_get_profile(). func CodecUtilsH264GetLevel(sps []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = sps _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h264_get_level(carg1, carg2) runtime.KeepAlive(sps) @@ -1127,14 +1123,14 @@ func CodecUtilsH264GetLevelIdc(level string) uint8 { // * Bit 13:15 - Reserved // * Bit 16:24 - Level indication func CodecUtilsH264GetProfile(sps []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = sps _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h264_get_profile(carg1, carg2) runtime.KeepAlive(sps) @@ -1169,7 +1165,7 @@ func CodecUtilsH264GetProfile(sps []uint8) string { // ITU-T H.264 specification section 7.3.2.1.1 as well as in ISO/IEC 14496-15 // section 5.3.3.1.2. func CodecUtilsH264GetProfileFlagsLevel(codecData []uint8) (uint8, uint8, uint8, bool) { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.guint8 // out, full, casted var carg4 C.guint8 // out, full, casted @@ -1179,7 +1175,7 @@ func CodecUtilsH264GetProfileFlagsLevel(codecData []uint8) (uint8, uint8, uint8, _ = codecData _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h264_get_profile_flags_level(carg1, carg2, &carg3, &carg4, &carg5) runtime.KeepAlive(codecData) @@ -1217,7 +1213,7 @@ func CodecUtilsH264GetProfileFlagsLevel(codecData []uint8) (uint8, uint8, uint8, // for more details on the parameters. func CodecUtilsH265CapsSetLevelTierAndProfile(caps *gst.Caps, profileTierLevel []uint8) bool { var carg1 *C.GstCaps // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var cret C.gboolean // return @@ -1225,7 +1221,7 @@ func CodecUtilsH265CapsSetLevelTierAndProfile(caps *gst.Caps, profileTierLevel [ _ = profileTierLevel _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h265_caps_set_level_tier_and_profile(carg1, carg2, carg3) runtime.KeepAlive(caps) @@ -1255,14 +1251,14 @@ func CodecUtilsH265CapsSetLevelTierAndProfile(caps *gst.Caps, profileTierLevel [ // profile_tier_level structure into a string. The profiel_tier_level is // expected to have the same format as for gst_codec_utils_h264_get_profile(). func CodecUtilsH265GetLevel(profileTierLevel []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = profileTierLevel _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h265_get_level(carg1, carg2) runtime.KeepAlive(profileTierLevel) @@ -1332,14 +1328,14 @@ func CodecUtilsH265GetLevelIdc(level string) uint8 { // * Bit 44:87 - See below // * Bit 88:95 - general_level_idc func CodecUtilsH265GetProfile(profileTierLevel []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = profileTierLevel _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h265_get_profile(carg1, carg2) runtime.KeepAlive(profileTierLevel) @@ -1368,14 +1364,14 @@ func CodecUtilsH265GetProfile(profileTierLevel []uint8) string { // profile_tier_level structure into a string. The profile_tier_level // is expected to have the same format as for gst_codec_utils_h264_get_profile(). func CodecUtilsH265GetTier(profileTierLevel []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = profileTierLevel _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h265_get_tier(carg1, carg2) runtime.KeepAlive(profileTierLevel) @@ -1406,7 +1402,7 @@ func CodecUtilsH265GetTier(profileTierLevel []uint8) string { // for more details on the parameters. func CodecUtilsH266CapsSetLevelTierAndProfile(caps *gst.Caps, decoderConfiguration []uint8) bool { var carg1 *C.GstCaps // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var cret C.gboolean // return @@ -1414,7 +1410,7 @@ func CodecUtilsH266CapsSetLevelTierAndProfile(caps *gst.Caps, decoderConfigurati _ = decoderConfiguration _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h266_caps_set_level_tier_and_profile(carg1, carg2, carg3) runtime.KeepAlive(caps) @@ -1442,14 +1438,14 @@ func CodecUtilsH266CapsSetLevelTierAndProfile(caps *gst.Caps, decoderConfigurati // Converts the level indication (general_level_idc) in the stream's // ptl_record structure into a string. func CodecUtilsH266GetLevel(ptlRecord []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = ptlRecord _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h266_get_level(carg1, carg2) runtime.KeepAlive(ptlRecord) @@ -1504,14 +1500,14 @@ func CodecUtilsH266GetLevelIdc(level string) uint8 { // Converts the profile indication (general_profile_idc) in the stream's // ptl_record structure into a string. func CodecUtilsH266GetProfile(ptlRecord []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = ptlRecord _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h266_get_profile(carg1, carg2) runtime.KeepAlive(ptlRecord) @@ -1538,14 +1534,14 @@ func CodecUtilsH266GetProfile(ptlRecord []uint8) string { // Converts the tier indication (general_tier_flag) in the stream's // ptl_record structure into a string. func CodecUtilsH266GetTier(ptlRecord []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = ptlRecord _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_h266_get_tier(carg1, carg2) runtime.KeepAlive(ptlRecord) @@ -1577,7 +1573,7 @@ func CodecUtilsH266GetTier(ptlRecord []uint8) string { // parameters. func CodecUtilsMpeg4videoCapsSetLevelAndProfile(caps *gst.Caps, visObjSeq []uint8) bool { var carg1 *C.GstCaps // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var cret C.gboolean // return @@ -1585,7 +1581,7 @@ func CodecUtilsMpeg4videoCapsSetLevelAndProfile(caps *gst.Caps, visObjSeq []uint _ = visObjSeq _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_mpeg4video_caps_set_level_and_profile(carg1, carg2, carg3) runtime.KeepAlive(caps) @@ -1616,14 +1612,14 @@ func CodecUtilsMpeg4videoCapsSetLevelAndProfile(caps *gst.Caps, visObjSeq []uint // object sequence start code. Only the first byte // (profile_and_level_indication) is used. func CodecUtilsMpeg4videoGetLevel(visObjSeq []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = visObjSeq _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_mpeg4video_get_level(carg1, carg2) runtime.KeepAlive(visObjSeq) @@ -1653,14 +1649,14 @@ func CodecUtilsMpeg4videoGetLevel(visObjSeq []uint8) string { // object sequence start code. Only the first byte // (profile_and_level_indication) is used. func CodecUtilsMpeg4videoGetProfile(visObjSeq []uint8) string { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret *C.gchar // return, none, string, nullable-string _ = visObjSeq _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_codec_utils_mpeg4video_get_profile(carg1, carg2) runtime.KeepAlive(visObjSeq) @@ -1807,7 +1803,7 @@ func EncodingListAvailableCategories() []string { // one go (as might be required if there is a demuxer for a certain format // installed but no suitable video decoder and no suitable audio decoder). func InstallPluginsAsync(details []string, ctx *InstallPluginsContext, fn InstallPluginsResultFunc) InstallPluginsReturn { - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var carg2 *C.GstInstallPluginsContext // in, none, converted, nullable var carg3 C.GstInstallPluginsResultFunc // callback, scope: async, closure: carg4 var carg4 C.gpointer // implicit @@ -1815,11 +1811,11 @@ func InstallPluginsAsync(details []string, ctx *InstallPluginsContext, fn Instal _ = details _ = carg1 - panic("unimplemented conversion of []string (const gchar* const*)") + panic("unimplemented conversion of []string (const gchar* const*) because of unimplemented: inner pointers in array") if ctx != nil { carg2 = (*C.GstInstallPluginsContext)(UnsafeInstallPluginsContextToGlibNone(ctx)) } - carg3 = (*[0]byte)(C._gotk4_gstpbutils1_InstallPluginsResultFunc) + carg3 = (*[0]byte)(C._goglib_gstpbutils1_InstallPluginsResultFunc) carg4 = C.gpointer(userdata.RegisterOnce(fn)) cret = C.gst_install_plugins_async(carg1, carg2, carg3, carg4) @@ -1901,13 +1897,13 @@ func InstallPluginsSupported() bool { // using the other non-GLib main loop. You should almost always use // gst_install_plugins_async() instead of this function. func InstallPluginsSync(details []string, ctx *InstallPluginsContext) InstallPluginsReturn { - var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg1 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var carg2 *C.GstInstallPluginsContext // in, none, converted, nullable var cret C.GstInstallPluginsReturn // return, none, casted _ = details _ = carg1 - panic("unimplemented conversion of []string (const gchar* const*)") + panic("unimplemented conversion of []string (const gchar* const*) because of unimplemented: inner pointers in array") if ctx != nil { carg2 = (*C.GstInstallPluginsContext)(UnsafeInstallPluginsContextToGlibNone(ctx)) } @@ -2946,10 +2942,10 @@ func UnsafeApplyAudioVisualizerOverrides[Instance AudioVisualizer](gclass unsafe pclass := (*C.GstAudioVisualizerClass)(gclass) if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstpbutils1_AudioVisualizer_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstpbutils1_AudioVisualizer_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_AudioVisualizer_decide_allocation", + "_goglib_gstpbutils1_AudioVisualizer_decide_allocation", func(carg0 *C.GstAudioVisualizer, carg1 *C.GstQuery) (cret C.gboolean) { var scope Instance // go GstAudioVisualizer subclass var query *gst.Query // in, none, converted @@ -2970,10 +2966,10 @@ func UnsafeApplyAudioVisualizerOverrides[Instance AudioVisualizer](gclass unsafe } if overrides.Render != nil { - pclass.render = (*[0]byte)(C._gotk4_gstpbutils1_AudioVisualizer_render) + pclass.render = (*[0]byte)(C._goglib_gstpbutils1_AudioVisualizer_render) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_AudioVisualizer_render", + "_goglib_gstpbutils1_AudioVisualizer_render", func(carg0 *C.GstAudioVisualizer, carg1 *C.GstBuffer, carg2 *C.GstVideoFrame) (cret C.gboolean) { var scope Instance // go GstAudioVisualizer subclass var audio *gst.Buffer // in, none, converted @@ -2996,10 +2992,10 @@ func UnsafeApplyAudioVisualizerOverrides[Instance AudioVisualizer](gclass unsafe } if overrides.Setup != nil { - pclass.setup = (*[0]byte)(C._gotk4_gstpbutils1_AudioVisualizer_setup) + pclass.setup = (*[0]byte)(C._goglib_gstpbutils1_AudioVisualizer_setup) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_AudioVisualizer_setup", + "_goglib_gstpbutils1_AudioVisualizer_setup", func(carg0 *C.GstAudioVisualizer) (cret C.gboolean) { var scope Instance // go GstAudioVisualizer subclass var goret bool // return @@ -3038,7 +3034,7 @@ func (scope *AudioVisualizerInstance) ParentDecideAllocation(query *gst.Query) b carg0 = (*C.GstAudioVisualizer)(UnsafeAudioVisualizerToGlibNone(scope)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstpbutils1_AudioVisualizer_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstpbutils1_AudioVisualizer_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(scope) runtime.KeepAlive(query) @@ -3074,7 +3070,7 @@ func (scope *AudioVisualizerInstance) ParentRender(audio *gst.Buffer, video *gst carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(audio)) carg2 = (*C.GstVideoFrame)(gstvideo.UnsafeVideoFrameToGlibNone(video)) - cret = C._gotk4_gstpbutils1_AudioVisualizer_virtual_render(unsafe.Pointer(parentclass.render), carg0, carg1, carg2) + cret = C._goglib_gstpbutils1_AudioVisualizer_virtual_render(unsafe.Pointer(parentclass.render), carg0, carg1, carg2) runtime.KeepAlive(scope) runtime.KeepAlive(audio) runtime.KeepAlive(video) @@ -3102,7 +3098,7 @@ func (scope *AudioVisualizerInstance) ParentSetup() bool { carg0 = (*C.GstAudioVisualizer)(UnsafeAudioVisualizerToGlibNone(scope)) - cret = C._gotk4_gstpbutils1_AudioVisualizer_virtual_setup(unsafe.Pointer(parentclass.setup), carg0) + cret = C._goglib_gstpbutils1_AudioVisualizer_virtual_setup(unsafe.Pointer(parentclass.setup), carg0) runtime.KeepAlive(scope) var goret bool @@ -3249,14 +3245,6 @@ type Discoverer interface { // chain up virtual methods: - // ParentDiscovered calls the default implementations of the `GstDiscoverer.discovered` virtual method. - // This function's behavior is not defined when the parent does not implement the virtual method. - // - // The function takes the following parameters: - // - // - info DiscovererInfo - // - err error - ParentDiscovered(info DiscovererInfo, err error) // ParentFinished calls the default implementations of the `GstDiscoverer.finished` virtual method. // This function's behavior is not defined when the parent does not implement the virtual method. ParentFinished() @@ -3525,13 +3513,6 @@ type DiscovererOverrides[Instance Discoverer] struct { // gobject.ObjectOverrides allows you to override virtual methods from the parent class gobject.Object gobject.ObjectOverrides[Instance] - // // Discovered allows you to override the implementation of the virtual method discovered. - // - // The function takes the following parameters: - // - // - info DiscovererInfo - // - err error - Discovered func(Instance, DiscovererInfo, error) // // Finished allows you to override the implementation of the virtual method finished. Finished func(Instance) // // LoadSerializeInfo allows you to override the implementation of the virtual method load_serialize_info. @@ -3563,30 +3544,11 @@ func UnsafeApplyDiscovererOverrides[Instance Discoverer](gclass unsafe.Pointer, pclass := (*C.GstDiscovererClass)(gclass) - if overrides.Discovered != nil { - pclass.discovered = (*[0]byte)(C._gotk4_gstpbutils1_Discoverer_discovered) - classdata.StoreVirtualMethod( - unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_Discoverer_discovered", - func(carg0 *C.GstDiscoverer, carg1 *C.GstDiscovererInfo, carg2 *C.GError) { - var discoverer Instance // go GstDiscoverer subclass - var info DiscovererInfo // in, none, converted - var err error // in, none, converted - - discoverer = UnsafeDiscovererFromGlibBorrow(unsafe.Pointer(carg0)).UnsafeLoadInstanceFromPrivateData().(Instance) - info = UnsafeDiscovererInfoFromGlibNone(unsafe.Pointer(carg1)) - err = glib.UnsafeErrorFromGlibNone(unsafe.Pointer(carg2)) - - overrides.Discovered(discoverer, info, err) - }, - ) - } - if overrides.Finished != nil { - pclass.finished = (*[0]byte)(C._gotk4_gstpbutils1_Discoverer_finished) + pclass.finished = (*[0]byte)(C._goglib_gstpbutils1_Discoverer_finished) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_Discoverer_finished", + "_goglib_gstpbutils1_Discoverer_finished", func(carg0 *C.GstDiscoverer) { var discoverer Instance // go GstDiscoverer subclass @@ -3598,10 +3560,10 @@ func UnsafeApplyDiscovererOverrides[Instance Discoverer](gclass unsafe.Pointer, } if overrides.LoadSerializeInfo != nil { - pclass.load_serialize_info = (*[0]byte)(C._gotk4_gstpbutils1_Discoverer_load_serialize_info) + pclass.load_serialize_info = (*[0]byte)(C._goglib_gstpbutils1_Discoverer_load_serialize_info) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_Discoverer_load_serialize_info", + "_goglib_gstpbutils1_Discoverer_load_serialize_info", func(carg0 *C.GstDiscoverer, carg1 *C.gchar) (cret *C.GstDiscovererInfo) { var dc Instance // go GstDiscoverer subclass var uri string // in, none, string @@ -3620,10 +3582,10 @@ func UnsafeApplyDiscovererOverrides[Instance Discoverer](gclass unsafe.Pointer, } if overrides.SourceSetup != nil { - pclass.source_setup = (*[0]byte)(C._gotk4_gstpbutils1_Discoverer_source_setup) + pclass.source_setup = (*[0]byte)(C._goglib_gstpbutils1_Discoverer_source_setup) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_Discoverer_source_setup", + "_goglib_gstpbutils1_Discoverer_source_setup", func(carg0 *C.GstDiscoverer, carg1 *C.GstElement) { var discoverer Instance // go GstDiscoverer subclass var source gst.Element // in, none, converted @@ -3637,10 +3599,10 @@ func UnsafeApplyDiscovererOverrides[Instance Discoverer](gclass unsafe.Pointer, } if overrides.Starting != nil { - pclass.starting = (*[0]byte)(C._gotk4_gstpbutils1_Discoverer_starting) + pclass.starting = (*[0]byte)(C._goglib_gstpbutils1_Discoverer_starting) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstpbutils1_Discoverer_starting", + "_goglib_gstpbutils1_Discoverer_starting", func(carg0 *C.GstDiscoverer) { var discoverer Instance // go GstDiscoverer subclass @@ -3652,30 +3614,6 @@ func UnsafeApplyDiscovererOverrides[Instance Discoverer](gclass unsafe.Pointer, } } -// ParentDiscovered calls the default implementations of the `GstDiscoverer.discovered` virtual method. -// This function's behavior is not defined when the parent does not implement the virtual method. -// -// The function takes the following parameters: -// -// - info DiscovererInfo -// - err error -func (discoverer *DiscovererInstance) ParentDiscovered(info DiscovererInfo, err error) { - var carg0 *C.GstDiscoverer - var carg1 *C.GstDiscovererInfo // in, none, converted - var carg2 *C.GError // in, none, converted - - parentclass := (*C.GstDiscovererClass)(classdata.PeekParentClass(UnsafeDiscovererToGlibNone(discoverer))) - - carg0 = (*C.GstDiscoverer)(UnsafeDiscovererToGlibNone(discoverer)) - carg1 = (*C.GstDiscovererInfo)(UnsafeDiscovererInfoToGlibNone(info)) - carg2 = (*C.GError)(glib.UnsafeErrorToGlibNone(err)) - - C._gotk4_gstpbutils1_Discoverer_virtual_discovered(unsafe.Pointer(parentclass.discovered), carg0, carg1, carg2) - runtime.KeepAlive(discoverer) - runtime.KeepAlive(info) - runtime.KeepAlive(err) -} - // ParentFinished calls the default implementations of the `GstDiscoverer.finished` virtual method. // This function's behavior is not defined when the parent does not implement the virtual method. func (discoverer *DiscovererInstance) ParentFinished() { @@ -3685,7 +3623,7 @@ func (discoverer *DiscovererInstance) ParentFinished() { carg0 = (*C.GstDiscoverer)(UnsafeDiscovererToGlibNone(discoverer)) - C._gotk4_gstpbutils1_Discoverer_virtual_finished(unsafe.Pointer(parentclass.finished), carg0) + C._goglib_gstpbutils1_Discoverer_virtual_finished(unsafe.Pointer(parentclass.finished), carg0) runtime.KeepAlive(discoverer) } @@ -3712,7 +3650,7 @@ func (dc *DiscovererInstance) ParentLoadSerializeInfo(uri string) DiscovererInfo carg1 = (*C.gchar)(unsafe.Pointer(C.CString(uri))) defer C.free(unsafe.Pointer(carg1)) - cret = C._gotk4_gstpbutils1_Discoverer_virtual_load_serialize_info(unsafe.Pointer(parentclass.load_serialize_info), carg0, carg1) + cret = C._goglib_gstpbutils1_Discoverer_virtual_load_serialize_info(unsafe.Pointer(parentclass.load_serialize_info), carg0, carg1) runtime.KeepAlive(dc) runtime.KeepAlive(uri) @@ -3738,7 +3676,7 @@ func (discoverer *DiscovererInstance) ParentSourceSetup(source gst.Element) { carg0 = (*C.GstDiscoverer)(UnsafeDiscovererToGlibNone(discoverer)) carg1 = (*C.GstElement)(gst.UnsafeElementToGlibNone(source)) - C._gotk4_gstpbutils1_Discoverer_virtual_source_setup(unsafe.Pointer(parentclass.source_setup), carg0, carg1) + C._goglib_gstpbutils1_Discoverer_virtual_source_setup(unsafe.Pointer(parentclass.source_setup), carg0, carg1) runtime.KeepAlive(discoverer) runtime.KeepAlive(source) } @@ -3752,7 +3690,7 @@ func (discoverer *DiscovererInstance) ParentStarting() { carg0 = (*C.GstDiscoverer)(UnsafeDiscovererToGlibNone(discoverer)) - C._gotk4_gstpbutils1_Discoverer_virtual_starting(unsafe.Pointer(parentclass.starting), carg0) + C._goglib_gstpbutils1_Discoverer_virtual_starting(unsafe.Pointer(parentclass.starting), carg0) runtime.KeepAlive(discoverer) } @@ -4088,7 +4026,7 @@ func (info *DiscovererInfoInstance) GetLive() bool { // Get the installer details for missing elements func (info *DiscovererInfoInstance) GetMissingElementsInstallerDetails() []string { var carg0 *C.GstDiscovererInfo // in, none, converted - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstDiscovererInfo)(UnsafeDiscovererInfoToGlibNone(info)) @@ -4099,7 +4037,7 @@ func (info *DiscovererInfoInstance) GetMissingElementsInstallerDetails() []strin _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unknown reason") return goret } diff --git a/pkg/gstpbutils/gstpbutils_export.gen.go b/pkg/gstpbutils/gstpbutils_export.gen.go index a83872e..d41756f 100644 --- a/pkg/gstpbutils/gstpbutils_export.gen.go +++ b/pkg/gstpbutils/gstpbutils_export.gen.go @@ -5,15 +5,15 @@ package gstpbutils import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" ) // #include import "C" -//export _gotk4_gstpbutils1_InstallPluginsResultFunc -func _gotk4_gstpbutils1_InstallPluginsResultFunc(carg1 C.GstInstallPluginsReturn, carg2 C.gpointer) { +//export _goglib_gstpbutils1_InstallPluginsResultFunc +func _goglib_gstpbutils1_InstallPluginsResultFunc(carg1 C.GstInstallPluginsReturn, carg2 C.gpointer) { var fn InstallPluginsResultFunc { v := userdata.Load(unsafe.Pointer(carg2)) @@ -30,97 +30,85 @@ func _gotk4_gstpbutils1_InstallPluginsResultFunc(carg1 C.GstInstallPluginsReturn fn(result) } -//export _gotk4_gstpbutils1_AudioVisualizer_decide_allocation -func _gotk4_gstpbutils1_AudioVisualizer_decide_allocation(carg0 *C.GstAudioVisualizer, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstpbutils1_AudioVisualizer_decide_allocation +func _goglib_gstpbutils1_AudioVisualizer_decide_allocation(carg0 *C.GstAudioVisualizer, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstAudioVisualizer, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_AudioVisualizer_decide_allocation").(func(carg0 *C.GstAudioVisualizer, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_AudioVisualizer_decide_allocation").(func(carg0 *C.GstAudioVisualizer, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstpbutils1_AudioVisualizer_decide_allocation: no function pointer found") + panic("_goglib_gstpbutils1_AudioVisualizer_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstpbutils1_AudioVisualizer_render -func _gotk4_gstpbutils1_AudioVisualizer_render(carg0 *C.GstAudioVisualizer, carg1 *C.GstBuffer, carg2 *C.GstVideoFrame) (cret C.gboolean) { +//export _goglib_gstpbutils1_AudioVisualizer_render +func _goglib_gstpbutils1_AudioVisualizer_render(carg0 *C.GstAudioVisualizer, carg1 *C.GstBuffer, carg2 *C.GstVideoFrame) (cret C.gboolean) { var fn func(carg0 *C.GstAudioVisualizer, carg1 *C.GstBuffer, carg2 *C.GstVideoFrame) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_AudioVisualizer_render").(func(carg0 *C.GstAudioVisualizer, carg1 *C.GstBuffer, carg2 *C.GstVideoFrame) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_AudioVisualizer_render").(func(carg0 *C.GstAudioVisualizer, carg1 *C.GstBuffer, carg2 *C.GstVideoFrame) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstpbutils1_AudioVisualizer_render: no function pointer found") + panic("_goglib_gstpbutils1_AudioVisualizer_render: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstpbutils1_AudioVisualizer_setup -func _gotk4_gstpbutils1_AudioVisualizer_setup(carg0 *C.GstAudioVisualizer) (cret C.gboolean) { +//export _goglib_gstpbutils1_AudioVisualizer_setup +func _goglib_gstpbutils1_AudioVisualizer_setup(carg0 *C.GstAudioVisualizer) (cret C.gboolean) { var fn func(carg0 *C.GstAudioVisualizer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_AudioVisualizer_setup").(func(carg0 *C.GstAudioVisualizer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_AudioVisualizer_setup").(func(carg0 *C.GstAudioVisualizer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstpbutils1_AudioVisualizer_setup: no function pointer found") + panic("_goglib_gstpbutils1_AudioVisualizer_setup: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstpbutils1_Discoverer_discovered -func _gotk4_gstpbutils1_Discoverer_discovered(carg0 *C.GstDiscoverer, carg1 *C.GstDiscovererInfo, carg2 *C.GError) { - var fn func(carg0 *C.GstDiscoverer, carg1 *C.GstDiscovererInfo, carg2 *C.GError) - { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_Discoverer_discovered").(func(carg0 *C.GstDiscoverer, carg1 *C.GstDiscovererInfo, carg2 *C.GError)) - if fn == nil { - panic("_gotk4_gstpbutils1_Discoverer_discovered: no function pointer found") - } - } - fn(carg0, carg1, carg2) -} - -//export _gotk4_gstpbutils1_Discoverer_finished -func _gotk4_gstpbutils1_Discoverer_finished(carg0 *C.GstDiscoverer) { +//export _goglib_gstpbutils1_Discoverer_finished +func _goglib_gstpbutils1_Discoverer_finished(carg0 *C.GstDiscoverer) { var fn func(carg0 *C.GstDiscoverer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_Discoverer_finished").(func(carg0 *C.GstDiscoverer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_Discoverer_finished").(func(carg0 *C.GstDiscoverer)) if fn == nil { - panic("_gotk4_gstpbutils1_Discoverer_finished: no function pointer found") + panic("_goglib_gstpbutils1_Discoverer_finished: no function pointer found") } } fn(carg0) } -//export _gotk4_gstpbutils1_Discoverer_load_serialize_info -func _gotk4_gstpbutils1_Discoverer_load_serialize_info(carg0 *C.GstDiscoverer, carg1 *C.gchar) (cret *C.GstDiscovererInfo) { +//export _goglib_gstpbutils1_Discoverer_load_serialize_info +func _goglib_gstpbutils1_Discoverer_load_serialize_info(carg0 *C.GstDiscoverer, carg1 *C.gchar) (cret *C.GstDiscovererInfo) { var fn func(carg0 *C.GstDiscoverer, carg1 *C.gchar) (cret *C.GstDiscovererInfo) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_Discoverer_load_serialize_info").(func(carg0 *C.GstDiscoverer, carg1 *C.gchar) (cret *C.GstDiscovererInfo)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_Discoverer_load_serialize_info").(func(carg0 *C.GstDiscoverer, carg1 *C.gchar) (cret *C.GstDiscovererInfo)) if fn == nil { - panic("_gotk4_gstpbutils1_Discoverer_load_serialize_info: no function pointer found") + panic("_goglib_gstpbutils1_Discoverer_load_serialize_info: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstpbutils1_Discoverer_source_setup -func _gotk4_gstpbutils1_Discoverer_source_setup(carg0 *C.GstDiscoverer, carg1 *C.GstElement) { +//export _goglib_gstpbutils1_Discoverer_source_setup +func _goglib_gstpbutils1_Discoverer_source_setup(carg0 *C.GstDiscoverer, carg1 *C.GstElement) { var fn func(carg0 *C.GstDiscoverer, carg1 *C.GstElement) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_Discoverer_source_setup").(func(carg0 *C.GstDiscoverer, carg1 *C.GstElement)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_Discoverer_source_setup").(func(carg0 *C.GstDiscoverer, carg1 *C.GstElement)) if fn == nil { - panic("_gotk4_gstpbutils1_Discoverer_source_setup: no function pointer found") + panic("_goglib_gstpbutils1_Discoverer_source_setup: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstpbutils1_Discoverer_starting -func _gotk4_gstpbutils1_Discoverer_starting(carg0 *C.GstDiscoverer) { +//export _goglib_gstpbutils1_Discoverer_starting +func _goglib_gstpbutils1_Discoverer_starting(carg0 *C.GstDiscoverer) { var fn func(carg0 *C.GstDiscoverer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstpbutils1_Discoverer_starting").(func(carg0 *C.GstDiscoverer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstpbutils1_Discoverer_starting").(func(carg0 *C.GstDiscoverer)) if fn == nil { - panic("_gotk4_gstpbutils1_Discoverer_starting: no function pointer found") + panic("_goglib_gstpbutils1_Discoverer_starting: no function pointer found") } } fn(carg0) diff --git a/pkg/gstplay/gstplay.gen.go b/pkg/gstplay/gstplay.gen.go index b95252d..162cb65 100644 --- a/pkg/gstplay/gstplay.gen.go +++ b/pkg/gstplay/gstplay.gen.go @@ -8,8 +8,8 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstvideo" ) diff --git a/pkg/gstplayer/gstplayer.gen.go b/pkg/gstplayer/gstplayer.gen.go index 73754e8..4bcb558 100644 --- a/pkg/gstplayer/gstplayer.gen.go +++ b/pkg/gstplayer/gstplayer.gen.go @@ -8,8 +8,8 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstvideo" ) diff --git a/pkg/gstrtp/gstrtp.gen.go b/pkg/gstrtp/gstrtp.gen.go index cb0a39f..2e288d1 100644 --- a/pkg/gstrtp/gstrtp.gen.go +++ b/pkg/gstrtp/gstrtp.gen.go @@ -9,9 +9,9 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstbase" ) @@ -19,80 +19,80 @@ import ( // #cgo pkg-config: gstreamer-rtp-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern gboolean _gotk4_gstrtp1_RTPBaseDepayload_handle_event(GstRTPBaseDepayload*, GstEvent*); -// extern gboolean _gotk4_gstrtp1_RTPBaseDepayload_packet_lost(GstRTPBaseDepayload*, GstEvent*); -// extern GstBuffer* _gotk4_gstrtp1_RTPBaseDepayload_process(GstRTPBaseDepayload*, GstBuffer*); -// extern GstBuffer* _gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet(GstRTPBaseDepayload*, GstRTPBuffer*); -// extern gboolean _gotk4_gstrtp1_RTPBaseDepayload_set_caps(GstRTPBaseDepayload*, GstCaps*); -// gboolean _gotk4_gstrtp1_RTPBaseDepayload_virtual_handle_event(void* fnptr, GstRTPBaseDepayload* carg0, GstEvent* carg1) { +// extern gboolean _goglib_gstrtp1_RTPBaseDepayload_handle_event(GstRTPBaseDepayload*, GstEvent*); +// extern gboolean _goglib_gstrtp1_RTPBaseDepayload_packet_lost(GstRTPBaseDepayload*, GstEvent*); +// extern GstBuffer* _goglib_gstrtp1_RTPBaseDepayload_process(GstRTPBaseDepayload*, GstBuffer*); +// extern GstBuffer* _goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet(GstRTPBaseDepayload*, GstRTPBuffer*); +// extern gboolean _goglib_gstrtp1_RTPBaseDepayload_set_caps(GstRTPBaseDepayload*, GstCaps*); +// gboolean _goglib_gstrtp1_RTPBaseDepayload_virtual_handle_event(void* fnptr, GstRTPBaseDepayload* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstRTPBaseDepayload*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPBaseDepayload_virtual_packet_lost(void* fnptr, GstRTPBaseDepayload* carg0, GstEvent* carg1) { +// gboolean _goglib_gstrtp1_RTPBaseDepayload_virtual_packet_lost(void* fnptr, GstRTPBaseDepayload* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstRTPBaseDepayload*, GstEvent*))(fnptr))(carg0, carg1); // } -// GstBuffer* _gotk4_gstrtp1_RTPBaseDepayload_virtual_process(void* fnptr, GstRTPBaseDepayload* carg0, GstBuffer* carg1) { +// GstBuffer* _goglib_gstrtp1_RTPBaseDepayload_virtual_process(void* fnptr, GstRTPBaseDepayload* carg0, GstBuffer* carg1) { // return ((GstBuffer* (*) (GstRTPBaseDepayload*, GstBuffer*))(fnptr))(carg0, carg1); // } -// GstBuffer* _gotk4_gstrtp1_RTPBaseDepayload_virtual_process_rtp_packet(void* fnptr, GstRTPBaseDepayload* carg0, GstRTPBuffer* carg1) { +// GstBuffer* _goglib_gstrtp1_RTPBaseDepayload_virtual_process_rtp_packet(void* fnptr, GstRTPBaseDepayload* carg0, GstRTPBuffer* carg1) { // return ((GstBuffer* (*) (GstRTPBaseDepayload*, GstRTPBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPBaseDepayload_virtual_set_caps(void* fnptr, GstRTPBaseDepayload* carg0, GstCaps* carg1) { +// gboolean _goglib_gstrtp1_RTPBaseDepayload_virtual_set_caps(void* fnptr, GstRTPBaseDepayload* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstRTPBaseDepayload*, GstCaps*))(fnptr))(carg0, carg1); // } -// extern GstCaps* _gotk4_gstrtp1_RTPBasePayload_get_caps(GstRTPBasePayload*, GstPad*, GstCaps*); -// extern GstFlowReturn _gotk4_gstrtp1_RTPBasePayload_handle_buffer(GstRTPBasePayload*, GstBuffer*); -// extern gboolean _gotk4_gstrtp1_RTPBasePayload_query(GstRTPBasePayload*, GstPad*, GstQuery*); -// extern gboolean _gotk4_gstrtp1_RTPBasePayload_set_caps(GstRTPBasePayload*, GstCaps*); -// extern gboolean _gotk4_gstrtp1_RTPBasePayload_sink_event(GstRTPBasePayload*, GstEvent*); -// extern gboolean _gotk4_gstrtp1_RTPBasePayload_src_event(GstRTPBasePayload*, GstEvent*); -// GstCaps* _gotk4_gstrtp1_RTPBasePayload_virtual_get_caps(void* fnptr, GstRTPBasePayload* carg0, GstPad* carg1, GstCaps* carg2) { +// extern GstCaps* _goglib_gstrtp1_RTPBasePayload_get_caps(GstRTPBasePayload*, GstPad*, GstCaps*); +// extern GstFlowReturn _goglib_gstrtp1_RTPBasePayload_handle_buffer(GstRTPBasePayload*, GstBuffer*); +// extern gboolean _goglib_gstrtp1_RTPBasePayload_query(GstRTPBasePayload*, GstPad*, GstQuery*); +// extern gboolean _goglib_gstrtp1_RTPBasePayload_set_caps(GstRTPBasePayload*, GstCaps*); +// extern gboolean _goglib_gstrtp1_RTPBasePayload_sink_event(GstRTPBasePayload*, GstEvent*); +// extern gboolean _goglib_gstrtp1_RTPBasePayload_src_event(GstRTPBasePayload*, GstEvent*); +// GstCaps* _goglib_gstrtp1_RTPBasePayload_virtual_get_caps(void* fnptr, GstRTPBasePayload* carg0, GstPad* carg1, GstCaps* carg2) { // return ((GstCaps* (*) (GstRTPBasePayload*, GstPad*, GstCaps*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstrtp1_RTPBasePayload_virtual_handle_buffer(void* fnptr, GstRTPBasePayload* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstrtp1_RTPBasePayload_virtual_handle_buffer(void* fnptr, GstRTPBasePayload* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstRTPBasePayload*, GstBuffer*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPBasePayload_virtual_query(void* fnptr, GstRTPBasePayload* carg0, GstPad* carg1, GstQuery* carg2) { +// gboolean _goglib_gstrtp1_RTPBasePayload_virtual_query(void* fnptr, GstRTPBasePayload* carg0, GstPad* carg1, GstQuery* carg2) { // return ((gboolean (*) (GstRTPBasePayload*, GstPad*, GstQuery*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstrtp1_RTPBasePayload_virtual_set_caps(void* fnptr, GstRTPBasePayload* carg0, GstCaps* carg1) { +// gboolean _goglib_gstrtp1_RTPBasePayload_virtual_set_caps(void* fnptr, GstRTPBasePayload* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstRTPBasePayload*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPBasePayload_virtual_sink_event(void* fnptr, GstRTPBasePayload* carg0, GstEvent* carg1) { +// gboolean _goglib_gstrtp1_RTPBasePayload_virtual_sink_event(void* fnptr, GstRTPBasePayload* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstRTPBasePayload*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPBasePayload_virtual_src_event(void* fnptr, GstRTPBasePayload* carg0, GstEvent* carg1) { +// gboolean _goglib_gstrtp1_RTPBasePayload_virtual_src_event(void* fnptr, GstRTPBasePayload* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstRTPBasePayload*, GstEvent*))(fnptr))(carg0, carg1); // } -// extern gsize _gotk4_gstrtp1_RTPHeaderExtension_get_max_size(GstRTPHeaderExtension*, const GstBuffer*); -// extern GstRTPHeaderExtensionFlags _gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags(GstRTPHeaderExtension*); -// extern gboolean _gotk4_gstrtp1_RTPHeaderExtension_read(GstRTPHeaderExtension*, GstRTPHeaderExtensionFlags, const guint8*, gsize, GstBuffer*); -// extern gboolean _gotk4_gstrtp1_RTPHeaderExtension_set_attributes(GstRTPHeaderExtension*, GstRTPHeaderExtensionDirection, const gchar*); -// extern gboolean _gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes(GstRTPHeaderExtension*, GstCaps*); -// extern gboolean _gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps(GstRTPHeaderExtension*, const GstCaps*); -// extern gboolean _gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps(GstRTPHeaderExtension*, GstCaps*); -// extern gssize _gotk4_gstrtp1_RTPHeaderExtension_write(GstRTPHeaderExtension*, const GstBuffer*, GstRTPHeaderExtensionFlags, GstBuffer*, guint8*, gsize); -// gsize _gotk4_gstrtp1_RTPHeaderExtension_virtual_get_max_size(void* fnptr, GstRTPHeaderExtension* carg0, const GstBuffer* carg1) { +// extern gsize _goglib_gstrtp1_RTPHeaderExtension_get_max_size(GstRTPHeaderExtension*, const GstBuffer*); +// extern GstRTPHeaderExtensionFlags _goglib_gstrtp1_RTPHeaderExtension_get_supported_flags(GstRTPHeaderExtension*); +// extern gboolean _goglib_gstrtp1_RTPHeaderExtension_read(GstRTPHeaderExtension*, GstRTPHeaderExtensionFlags, const guint8*, gsize, GstBuffer*); +// extern gboolean _goglib_gstrtp1_RTPHeaderExtension_set_attributes(GstRTPHeaderExtension*, GstRTPHeaderExtensionDirection, const gchar*); +// extern gboolean _goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes(GstRTPHeaderExtension*, GstCaps*); +// extern gboolean _goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps(GstRTPHeaderExtension*, const GstCaps*); +// extern gboolean _goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps(GstRTPHeaderExtension*, GstCaps*); +// extern gssize _goglib_gstrtp1_RTPHeaderExtension_write(GstRTPHeaderExtension*, const GstBuffer*, GstRTPHeaderExtensionFlags, GstBuffer*, guint8*, gsize); +// gsize _goglib_gstrtp1_RTPHeaderExtension_virtual_get_max_size(void* fnptr, GstRTPHeaderExtension* carg0, const GstBuffer* carg1) { // return ((gsize (*) (GstRTPHeaderExtension*, const GstBuffer*))(fnptr))(carg0, carg1); // } -// GstRTPHeaderExtensionFlags _gotk4_gstrtp1_RTPHeaderExtension_virtual_get_supported_flags(void* fnptr, GstRTPHeaderExtension* carg0) { +// GstRTPHeaderExtensionFlags _goglib_gstrtp1_RTPHeaderExtension_virtual_get_supported_flags(void* fnptr, GstRTPHeaderExtension* carg0) { // return ((GstRTPHeaderExtensionFlags (*) (GstRTPHeaderExtension*))(fnptr))(carg0); // } -// gboolean _gotk4_gstrtp1_RTPHeaderExtension_virtual_read(void* fnptr, GstRTPHeaderExtension* carg0, GstRTPHeaderExtensionFlags carg1, const guint8* carg2, gsize carg3, GstBuffer* carg4) { +// gboolean _goglib_gstrtp1_RTPHeaderExtension_virtual_read(void* fnptr, GstRTPHeaderExtension* carg0, GstRTPHeaderExtensionFlags carg1, const guint8* carg2, gsize carg3, GstBuffer* carg4) { // return ((gboolean (*) (GstRTPHeaderExtension*, GstRTPHeaderExtensionFlags, const guint8*, gsize, GstBuffer*))(fnptr))(carg0, carg1, carg2, carg3, carg4); // } -// gboolean _gotk4_gstrtp1_RTPHeaderExtension_virtual_set_attributes(void* fnptr, GstRTPHeaderExtension* carg0, GstRTPHeaderExtensionDirection carg1, const gchar* carg2) { +// gboolean _goglib_gstrtp1_RTPHeaderExtension_virtual_set_attributes(void* fnptr, GstRTPHeaderExtension* carg0, GstRTPHeaderExtensionDirection carg1, const gchar* carg2) { // return ((gboolean (*) (GstRTPHeaderExtension*, GstRTPHeaderExtensionDirection, const gchar*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstrtp1_RTPHeaderExtension_virtual_set_caps_from_attributes(void* fnptr, GstRTPHeaderExtension* carg0, GstCaps* carg1) { +// gboolean _goglib_gstrtp1_RTPHeaderExtension_virtual_set_caps_from_attributes(void* fnptr, GstRTPHeaderExtension* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstRTPHeaderExtension*, GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPHeaderExtension_virtual_set_non_rtp_sink_caps(void* fnptr, GstRTPHeaderExtension* carg0, const GstCaps* carg1) { +// gboolean _goglib_gstrtp1_RTPHeaderExtension_virtual_set_non_rtp_sink_caps(void* fnptr, GstRTPHeaderExtension* carg0, const GstCaps* carg1) { // return ((gboolean (*) (GstRTPHeaderExtension*, const GstCaps*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstrtp1_RTPHeaderExtension_virtual_update_non_rtp_src_caps(void* fnptr, GstRTPHeaderExtension* carg0, GstCaps* carg1) { +// gboolean _goglib_gstrtp1_RTPHeaderExtension_virtual_update_non_rtp_src_caps(void* fnptr, GstRTPHeaderExtension* carg0, GstCaps* carg1) { // return ((gboolean (*) (GstRTPHeaderExtension*, GstCaps*))(fnptr))(carg0, carg1); // } -// gssize _gotk4_gstrtp1_RTPHeaderExtension_virtual_write(void* fnptr, GstRTPHeaderExtension* carg0, const GstBuffer* carg1, GstRTPHeaderExtensionFlags carg2, GstBuffer* carg3, guint8* carg4, gsize carg5) { +// gssize _goglib_gstrtp1_RTPHeaderExtension_virtual_write(void* fnptr, GstRTPHeaderExtension* carg0, const GstBuffer* carg1, GstRTPHeaderExtensionFlags carg2, GstBuffer* carg3, guint8* carg4, gsize carg5) { // return ((gssize (*) (GstRTPHeaderExtension*, const GstBuffer*, GstRTPHeaderExtensionFlags, GstBuffer*, guint8*, gsize))(fnptr))(carg0, carg1, carg2, carg3, carg4, carg5); // } import "C" @@ -1013,7 +1013,7 @@ func (f RTPHeaderExtensionFlags) String() string { func BufferAddRtpSourceMeta(buffer *gst.Buffer, ssrc *uint32, csrc []uint32) *RTPSourceMeta { var carg1 *C.GstBuffer // in, none, converted var carg2 *C.guint32 // in, transfer: none, C Pointers: 1, Name: guint32, nullable, nullable - var carg3 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], nullable, array (inner: *typesystem.CastablePrimitive, length-by: carg4) + var carg3 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], nullable, array (inner guint32 (*typesystem.CastablePrimitive), length-by: carg4) var carg4 C.guint // implicit var cret *C.GstRTPSourceMeta // return, none, converted @@ -1021,12 +1021,12 @@ func BufferAddRtpSourceMeta(buffer *gst.Buffer, ssrc *uint32, csrc []uint32) *RT if ssrc != nil { _ = ssrc _ = carg2 - panic("unimplemented conversion of *uint32 (const guint32*)") + panic("unimplemented conversion of *uint32 (const guint32*) because of no basic converter found") } _ = csrc _ = carg3 _ = carg4 - panic("unimplemented conversion of []uint32 (const guint32*)") + panic("unimplemented conversion of []uint32 (const guint32*) because of unimplemented: non-fixed size array") cret = C.gst_buffer_add_rtp_source_meta(carg1, carg2, carg3, carg4) runtime.KeepAlive(buffer) @@ -1891,10 +1891,10 @@ func UnsafeApplyRTPBaseDepayloadOverrides[Instance RTPBaseDepayload](gclass unsa pclass := (*C.GstRTPBaseDepayloadClass)(gclass) if overrides.HandleEvent != nil { - pclass.handle_event = (*[0]byte)(C._gotk4_gstrtp1_RTPBaseDepayload_handle_event) + pclass.handle_event = (*[0]byte)(C._goglib_gstrtp1_RTPBaseDepayload_handle_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBaseDepayload_handle_event", + "_goglib_gstrtp1_RTPBaseDepayload_handle_event", func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { var filter Instance // go GstRTPBaseDepayload subclass var event *gst.Event // in, none, converted @@ -1915,10 +1915,10 @@ func UnsafeApplyRTPBaseDepayloadOverrides[Instance RTPBaseDepayload](gclass unsa } if overrides.PacketLost != nil { - pclass.packet_lost = (*[0]byte)(C._gotk4_gstrtp1_RTPBaseDepayload_packet_lost) + pclass.packet_lost = (*[0]byte)(C._goglib_gstrtp1_RTPBaseDepayload_packet_lost) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBaseDepayload_packet_lost", + "_goglib_gstrtp1_RTPBaseDepayload_packet_lost", func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { var filter Instance // go GstRTPBaseDepayload subclass var event *gst.Event // in, none, converted @@ -1939,10 +1939,10 @@ func UnsafeApplyRTPBaseDepayloadOverrides[Instance RTPBaseDepayload](gclass unsa } if overrides.Process != nil { - pclass.process = (*[0]byte)(C._gotk4_gstrtp1_RTPBaseDepayload_process) + pclass.process = (*[0]byte)(C._goglib_gstrtp1_RTPBaseDepayload_process) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBaseDepayload_process", + "_goglib_gstrtp1_RTPBaseDepayload_process", func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstBuffer) (cret *C.GstBuffer) { var base Instance // go GstRTPBaseDepayload subclass var in *gst.Buffer // in, none, converted @@ -1961,10 +1961,10 @@ func UnsafeApplyRTPBaseDepayloadOverrides[Instance RTPBaseDepayload](gclass unsa } if overrides.ProcessRtpPacket != nil { - pclass.process_rtp_packet = (*[0]byte)(C._gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet) + pclass.process_rtp_packet = (*[0]byte)(C._goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet", + "_goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet", func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstRTPBuffer) (cret *C.GstBuffer) { var base Instance // go GstRTPBaseDepayload subclass var rtpBuffer *RTPBuffer // in, none, converted @@ -1983,10 +1983,10 @@ func UnsafeApplyRTPBaseDepayloadOverrides[Instance RTPBaseDepayload](gclass unsa } if overrides.SetCaps != nil { - pclass.set_caps = (*[0]byte)(C._gotk4_gstrtp1_RTPBaseDepayload_set_caps) + pclass.set_caps = (*[0]byte)(C._goglib_gstrtp1_RTPBaseDepayload_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBaseDepayload_set_caps", + "_goglib_gstrtp1_RTPBaseDepayload_set_caps", func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstCaps) (cret C.gboolean) { var filter Instance // go GstRTPBaseDepayload subclass var caps *gst.Caps // in, none, converted @@ -2029,7 +2029,7 @@ func (filter *RTPBaseDepayloadInstance) ParentHandleEvent(event *gst.Event) bool carg0 = (*C.GstRTPBaseDepayload)(UnsafeRTPBaseDepayloadToGlibNone(filter)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstrtp1_RTPBaseDepayload_virtual_handle_event(unsafe.Pointer(parentclass.handle_event), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBaseDepayload_virtual_handle_event(unsafe.Pointer(parentclass.handle_event), carg0, carg1) runtime.KeepAlive(filter) runtime.KeepAlive(event) @@ -2064,7 +2064,7 @@ func (filter *RTPBaseDepayloadInstance) ParentPacketLost(event *gst.Event) bool carg0 = (*C.GstRTPBaseDepayload)(UnsafeRTPBaseDepayloadToGlibNone(filter)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstrtp1_RTPBaseDepayload_virtual_packet_lost(unsafe.Pointer(parentclass.packet_lost), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBaseDepayload_virtual_packet_lost(unsafe.Pointer(parentclass.packet_lost), carg0, carg1) runtime.KeepAlive(filter) runtime.KeepAlive(event) @@ -2103,7 +2103,7 @@ func (base *RTPBaseDepayloadInstance) ParentProcess(in *gst.Buffer) *gst.Buffer carg0 = (*C.GstRTPBaseDepayload)(UnsafeRTPBaseDepayloadToGlibNone(base)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(in)) - cret = C._gotk4_gstrtp1_RTPBaseDepayload_virtual_process(unsafe.Pointer(parentclass.process), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBaseDepayload_virtual_process(unsafe.Pointer(parentclass.process), carg0, carg1) runtime.KeepAlive(base) runtime.KeepAlive(in) @@ -2143,7 +2143,7 @@ func (base *RTPBaseDepayloadInstance) ParentProcessRtpPacket(rtpBuffer *RTPBuffe carg0 = (*C.GstRTPBaseDepayload)(UnsafeRTPBaseDepayloadToGlibNone(base)) carg1 = (*C.GstRTPBuffer)(UnsafeRTPBufferToGlibNone(rtpBuffer)) - cret = C._gotk4_gstrtp1_RTPBaseDepayload_virtual_process_rtp_packet(unsafe.Pointer(parentclass.process_rtp_packet), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBaseDepayload_virtual_process_rtp_packet(unsafe.Pointer(parentclass.process_rtp_packet), carg0, carg1) runtime.KeepAlive(base) runtime.KeepAlive(rtpBuffer) @@ -2176,7 +2176,7 @@ func (filter *RTPBaseDepayloadInstance) ParentSetCaps(caps *gst.Caps) bool { carg0 = (*C.GstRTPBaseDepayload)(UnsafeRTPBaseDepayloadToGlibNone(filter)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstrtp1_RTPBaseDepayload_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBaseDepayload_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) runtime.KeepAlive(filter) runtime.KeepAlive(caps) @@ -2909,10 +2909,10 @@ func UnsafeApplyRTPBasePayloadOverrides[Instance RTPBasePayload](gclass unsafe.P pclass := (*C.GstRTPBasePayloadClass)(gclass) if overrides.GetCaps != nil { - pclass.get_caps = (*[0]byte)(C._gotk4_gstrtp1_RTPBasePayload_get_caps) + pclass.get_caps = (*[0]byte)(C._goglib_gstrtp1_RTPBasePayload_get_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBasePayload_get_caps", + "_goglib_gstrtp1_RTPBasePayload_get_caps", func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstCaps) (cret *C.GstCaps) { var payload Instance // go GstRTPBasePayload subclass var pad gst.Pad // in, none, converted @@ -2933,10 +2933,10 @@ func UnsafeApplyRTPBasePayloadOverrides[Instance RTPBasePayload](gclass unsafe.P } if overrides.HandleBuffer != nil { - pclass.handle_buffer = (*[0]byte)(C._gotk4_gstrtp1_RTPBasePayload_handle_buffer) + pclass.handle_buffer = (*[0]byte)(C._goglib_gstrtp1_RTPBasePayload_handle_buffer) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBasePayload_handle_buffer", + "_goglib_gstrtp1_RTPBasePayload_handle_buffer", func(carg0 *C.GstRTPBasePayload, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var payload Instance // go GstRTPBasePayload subclass var buffer *gst.Buffer // in, none, converted @@ -2955,10 +2955,10 @@ func UnsafeApplyRTPBasePayloadOverrides[Instance RTPBasePayload](gclass unsafe.P } if overrides.Query != nil { - pclass.query = (*[0]byte)(C._gotk4_gstrtp1_RTPBasePayload_query) + pclass.query = (*[0]byte)(C._goglib_gstrtp1_RTPBasePayload_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBasePayload_query", + "_goglib_gstrtp1_RTPBasePayload_query", func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstQuery) (cret C.gboolean) { var payload Instance // go GstRTPBasePayload subclass var pad gst.Pad // in, none, converted @@ -2981,10 +2981,10 @@ func UnsafeApplyRTPBasePayloadOverrides[Instance RTPBasePayload](gclass unsafe.P } if overrides.SetCaps != nil { - pclass.set_caps = (*[0]byte)(C._gotk4_gstrtp1_RTPBasePayload_set_caps) + pclass.set_caps = (*[0]byte)(C._goglib_gstrtp1_RTPBasePayload_set_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBasePayload_set_caps", + "_goglib_gstrtp1_RTPBasePayload_set_caps", func(carg0 *C.GstRTPBasePayload, carg1 *C.GstCaps) (cret C.gboolean) { var payload Instance // go GstRTPBasePayload subclass var caps *gst.Caps // in, none, converted @@ -3005,10 +3005,10 @@ func UnsafeApplyRTPBasePayloadOverrides[Instance RTPBasePayload](gclass unsafe.P } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstrtp1_RTPBasePayload_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstrtp1_RTPBasePayload_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBasePayload_sink_event", + "_goglib_gstrtp1_RTPBasePayload_sink_event", func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { var payload Instance // go GstRTPBasePayload subclass var event *gst.Event // in, none, converted @@ -3029,10 +3029,10 @@ func UnsafeApplyRTPBasePayloadOverrides[Instance RTPBasePayload](gclass unsafe.P } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstrtp1_RTPBasePayload_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstrtp1_RTPBasePayload_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPBasePayload_src_event", + "_goglib_gstrtp1_RTPBasePayload_src_event", func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { var payload Instance // go GstRTPBasePayload subclass var event *gst.Event // in, none, converted @@ -3078,7 +3078,7 @@ func (payload *RTPBasePayloadInstance) ParentGetCaps(pad gst.Pad, filter *gst.Ca carg1 = (*C.GstPad)(gst.UnsafePadToGlibNone(pad)) carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstrtp1_RTPBasePayload_virtual_get_caps(unsafe.Pointer(parentclass.get_caps), carg0, carg1, carg2) + cret = C._goglib_gstrtp1_RTPBasePayload_virtual_get_caps(unsafe.Pointer(parentclass.get_caps), carg0, carg1, carg2) runtime.KeepAlive(payload) runtime.KeepAlive(pad) runtime.KeepAlive(filter) @@ -3112,7 +3112,7 @@ func (payload *RTPBasePayloadInstance) ParentHandleBuffer(buffer *gst.Buffer) gs carg0 = (*C.GstRTPBasePayload)(UnsafeRTPBasePayloadToGlibNone(payload)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstrtp1_RTPBasePayload_virtual_handle_buffer(unsafe.Pointer(parentclass.handle_buffer), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBasePayload_virtual_handle_buffer(unsafe.Pointer(parentclass.handle_buffer), carg0, carg1) runtime.KeepAlive(payload) runtime.KeepAlive(buffer) @@ -3148,7 +3148,7 @@ func (payload *RTPBasePayloadInstance) ParentQueryRTPBasePayload(pad gst.Pad, qu carg1 = (*C.GstPad)(gst.UnsafePadToGlibNone(pad)) carg2 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstrtp1_RTPBasePayload_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1, carg2) + cret = C._goglib_gstrtp1_RTPBasePayload_virtual_query(unsafe.Pointer(parentclass.query), carg0, carg1, carg2) runtime.KeepAlive(payload) runtime.KeepAlive(pad) runtime.KeepAlive(query) @@ -3184,7 +3184,7 @@ func (payload *RTPBasePayloadInstance) ParentSetCaps(caps *gst.Caps) bool { carg0 = (*C.GstRTPBasePayload)(UnsafeRTPBasePayloadToGlibNone(payload)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstrtp1_RTPBasePayload_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBasePayload_virtual_set_caps(unsafe.Pointer(parentclass.set_caps), carg0, carg1) runtime.KeepAlive(payload) runtime.KeepAlive(caps) @@ -3219,7 +3219,7 @@ func (payload *RTPBasePayloadInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstRTPBasePayload)(UnsafeRTPBasePayloadToGlibNone(payload)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstrtp1_RTPBasePayload_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBasePayload_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(payload) runtime.KeepAlive(event) @@ -3254,7 +3254,7 @@ func (payload *RTPBasePayloadInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstRTPBasePayload)(UnsafeRTPBasePayloadToGlibNone(payload)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstrtp1_RTPBasePayload_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstrtp1_RTPBasePayload_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(payload) runtime.KeepAlive(event) @@ -3879,7 +3879,7 @@ func (ext *RTPHeaderExtensionInstance) GetURI() string { func (ext *RTPHeaderExtensionInstance) Read(readFlags RTPHeaderExtensionFlags, data []uint8, buffer *gst.Buffer) bool { var carg0 *C.GstRTPHeaderExtension // in, none, converted var carg1 C.GstRTPHeaderExtensionFlags // in, none, casted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.gsize // implicit var carg4 *C.GstBuffer // in, none, converted var cret C.gboolean // return @@ -3889,7 +3889,7 @@ func (ext *RTPHeaderExtensionInstance) Read(readFlags RTPHeaderExtensionFlags, d _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg4 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) cret = C.gst_rtp_header_extension_read(carg0, carg1, carg2, carg3, carg4) @@ -4203,7 +4203,7 @@ func (ext *RTPHeaderExtensionInstance) Write(inputMeta *gst.Buffer, writeFlags R var carg1 *C.GstBuffer // in, none, converted var carg2 C.GstRTPHeaderExtensionFlags // in, none, casted var carg3 *C.GstBuffer // in, none, converted - var carg4 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg5) + var carg4 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg5) var carg5 C.gsize // implicit var cret C.gssize // return, none, casted @@ -4214,7 +4214,7 @@ func (ext *RTPHeaderExtensionInstance) Write(inputMeta *gst.Buffer, writeFlags R _ = data _ = carg4 _ = carg5 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtp_header_extension_write(carg0, carg1, carg2, carg3, carg4, carg5) runtime.KeepAlive(ext) @@ -4360,10 +4360,10 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass pclass := (*C.GstRTPHeaderExtensionClass)(gclass) if overrides.GetMaxSize != nil { - pclass.get_max_size = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_get_max_size) + pclass.get_max_size = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_get_max_size) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_get_max_size", + "_goglib_gstrtp1_RTPHeaderExtension_get_max_size", func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer) (cret C.gsize) { var ext Instance // go GstRTPHeaderExtension subclass var inputMeta *gst.Buffer // in, none, converted @@ -4382,10 +4382,10 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.GetSupportedFlags != nil { - pclass.get_supported_flags = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags) + pclass.get_supported_flags = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_get_supported_flags) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags", + "_goglib_gstrtp1_RTPHeaderExtension_get_supported_flags", func(carg0 *C.GstRTPHeaderExtension) (cret C.GstRTPHeaderExtensionFlags) { var ext Instance // go GstRTPHeaderExtension subclass var goret RTPHeaderExtensionFlags // return, none, casted @@ -4402,14 +4402,14 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.Read != nil { - pclass.read = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_read) + pclass.read = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_read) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_read", + "_goglib_gstrtp1_RTPHeaderExtension_read", func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionFlags, carg2 *C.guint8, carg3 C.gsize, carg4 *C.GstBuffer) (cret C.gboolean) { var ext Instance // go GstRTPHeaderExtension subclass var readFlags RTPHeaderExtensionFlags // in, none, casted - var data []uint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var data []uint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var buffer *gst.Buffer // in, none, converted var goret bool // return @@ -4418,7 +4418,7 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unknown reason") buffer = gst.UnsafeBufferFromGlibNone(unsafe.Pointer(carg4)) goret = overrides.Read(ext, readFlags, data, buffer) @@ -4433,10 +4433,10 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.SetAttributes != nil { - pclass.set_attributes = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_set_attributes) + pclass.set_attributes = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_set_attributes) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_set_attributes", + "_goglib_gstrtp1_RTPHeaderExtension_set_attributes", func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionDirection, carg2 *C.gchar) (cret C.gboolean) { var ext Instance // go GstRTPHeaderExtension subclass var direction RTPHeaderExtensionDirection // in, none, casted @@ -4459,10 +4459,10 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.SetCapsFromAttributes != nil { - pclass.set_caps_from_attributes = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes) + pclass.set_caps_from_attributes = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes", + "_goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes", func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { var ext Instance // go GstRTPHeaderExtension subclass var caps *gst.Caps // in, none, converted @@ -4483,10 +4483,10 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.SetNonRtpSinkCaps != nil { - pclass.set_non_rtp_sink_caps = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps) + pclass.set_non_rtp_sink_caps = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps", + "_goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps", func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { var ext Instance // go GstRTPHeaderExtension subclass var caps *gst.Caps // in, none, converted @@ -4507,10 +4507,10 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.UpdateNonRtpSrcCaps != nil { - pclass.update_non_rtp_src_caps = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps) + pclass.update_non_rtp_src_caps = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps", + "_goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps", func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { var ext Instance // go GstRTPHeaderExtension subclass var caps *gst.Caps // in, none, converted @@ -4531,16 +4531,16 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass } if overrides.Write != nil { - pclass.write = (*[0]byte)(C._gotk4_gstrtp1_RTPHeaderExtension_write) + pclass.write = (*[0]byte)(C._goglib_gstrtp1_RTPHeaderExtension_write) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstrtp1_RTPHeaderExtension_write", + "_goglib_gstrtp1_RTPHeaderExtension_write", func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer, carg2 C.GstRTPHeaderExtensionFlags, carg3 *C.GstBuffer, carg4 *C.guint8, carg5 C.gsize) (cret C.gssize) { var ext Instance // go GstRTPHeaderExtension subclass var inputMeta *gst.Buffer // in, none, converted var writeFlags RTPHeaderExtensionFlags // in, none, casted var output *gst.Buffer // in, none, converted - var data []uint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg5) + var data []uint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg5) var goret int // return, none, casted ext = UnsafeRTPHeaderExtensionFromGlibBorrow(unsafe.Pointer(carg0)).UnsafeLoadInstanceFromPrivateData().(Instance) @@ -4550,7 +4550,7 @@ func UnsafeApplyRTPHeaderExtensionOverrides[Instance RTPHeaderExtension](gclass _ = data _ = carg4 _ = carg5 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unknown reason") goret = overrides.Write(ext, inputMeta, writeFlags, output, data) @@ -4589,7 +4589,7 @@ func (ext *RTPHeaderExtensionInstance) ParentGetMaxSize(inputMeta *gst.Buffer) u carg0 = (*C.GstRTPHeaderExtension)(UnsafeRTPHeaderExtensionToGlibNone(ext)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(inputMeta)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_get_max_size(unsafe.Pointer(parentclass.get_max_size), carg0, carg1) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_get_max_size(unsafe.Pointer(parentclass.get_max_size), carg0, carg1) runtime.KeepAlive(ext) runtime.KeepAlive(inputMeta) @@ -4616,7 +4616,7 @@ func (ext *RTPHeaderExtensionInstance) ParentGetSupportedFlags() RTPHeaderExtens carg0 = (*C.GstRTPHeaderExtension)(UnsafeRTPHeaderExtensionToGlibNone(ext)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_get_supported_flags(unsafe.Pointer(parentclass.get_supported_flags), carg0) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_get_supported_flags(unsafe.Pointer(parentclass.get_supported_flags), carg0) runtime.KeepAlive(ext) var goret RTPHeaderExtensionFlags @@ -4645,7 +4645,7 @@ func (ext *RTPHeaderExtensionInstance) ParentRead(readFlags RTPHeaderExtensionFl var carg0 *C.GstRTPHeaderExtension var carg1 C.GstRTPHeaderExtensionFlags // in, none, converted var carg2 *C.guint8 // in, none, casted - var carg3 C.gsize // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg3 C.gsize // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg4 *C.GstBuffer // implicit var cret C.gboolean // return @@ -4656,10 +4656,10 @@ func (ext *RTPHeaderExtensionInstance) ParentRead(readFlags RTPHeaderExtensionFl _ = data _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg4 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_read(unsafe.Pointer(parentclass.read), carg0, carg1, carg2, carg3, carg4) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_read(unsafe.Pointer(parentclass.read), carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(ext) runtime.KeepAlive(readFlags) runtime.KeepAlive(data) @@ -4701,7 +4701,7 @@ func (ext *RTPHeaderExtensionInstance) ParentSetAttributes(direction RTPHeaderEx carg2 = (*C.gchar)(unsafe.Pointer(C.CString(attributes))) defer C.free(unsafe.Pointer(carg2)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_set_attributes(unsafe.Pointer(parentclass.set_attributes), carg0, carg1, carg2) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_set_attributes(unsafe.Pointer(parentclass.set_attributes), carg0, carg1, carg2) runtime.KeepAlive(ext) runtime.KeepAlive(direction) runtime.KeepAlive(attributes) @@ -4741,7 +4741,7 @@ func (ext *RTPHeaderExtensionInstance) ParentSetCapsFromAttributes(caps *gst.Cap carg0 = (*C.GstRTPHeaderExtension)(UnsafeRTPHeaderExtensionToGlibNone(ext)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_set_caps_from_attributes(unsafe.Pointer(parentclass.set_caps_from_attributes), carg0, carg1) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_set_caps_from_attributes(unsafe.Pointer(parentclass.set_caps_from_attributes), carg0, carg1) runtime.KeepAlive(ext) runtime.KeepAlive(caps) @@ -4777,7 +4777,7 @@ func (ext *RTPHeaderExtensionInstance) ParentSetNonRtpSinkCaps(caps *gst.Caps) b carg0 = (*C.GstRTPHeaderExtension)(UnsafeRTPHeaderExtensionToGlibNone(ext)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_set_non_rtp_sink_caps(unsafe.Pointer(parentclass.set_non_rtp_sink_caps), carg0, carg1) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_set_non_rtp_sink_caps(unsafe.Pointer(parentclass.set_non_rtp_sink_caps), carg0, carg1) runtime.KeepAlive(ext) runtime.KeepAlive(caps) @@ -4813,7 +4813,7 @@ func (ext *RTPHeaderExtensionInstance) ParentUpdateNonRtpSrcCaps(caps *gst.Caps) carg0 = (*C.GstRTPHeaderExtension)(UnsafeRTPHeaderExtensionToGlibNone(ext)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_update_non_rtp_src_caps(unsafe.Pointer(parentclass.update_non_rtp_src_caps), carg0, carg1) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_update_non_rtp_src_caps(unsafe.Pointer(parentclass.update_non_rtp_src_caps), carg0, carg1) runtime.KeepAlive(ext) runtime.KeepAlive(caps) @@ -4850,7 +4850,7 @@ func (ext *RTPHeaderExtensionInstance) ParentWrite(inputMeta *gst.Buffer, writeF var carg2 C.GstRTPHeaderExtensionFlags // in, none, converted var carg3 *C.GstBuffer // in, none, casted var carg4 *C.guint8 // in, none, converted - var carg5 C.gsize // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg5) + var carg5 C.gsize // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg5) var cret C.gssize // return, none, casted parentclass := (*C.GstRTPHeaderExtensionClass)(classdata.PeekParentClass(UnsafeRTPHeaderExtensionToGlibNone(ext))) @@ -4862,9 +4862,9 @@ func (ext *RTPHeaderExtensionInstance) ParentWrite(inputMeta *gst.Buffer, writeF _ = data _ = carg4 _ = carg5 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") - cret = C._gotk4_gstrtp1_RTPHeaderExtension_virtual_write(unsafe.Pointer(parentclass.write), carg0, carg1, carg2, carg3, carg4, carg5) + cret = C._goglib_gstrtp1_RTPHeaderExtension_virtual_write(unsafe.Pointer(parentclass.write), carg0, carg1, carg2, carg3, carg4, carg5) runtime.KeepAlive(ext) runtime.KeepAlive(inputMeta) runtime.KeepAlive(writeFlags) @@ -5160,7 +5160,7 @@ func (rtpbaseaudiopayload *RTPBaseAudioPayloadInstance) GetAdapter() gstbase.Ada // the buffer downstream. func (baseaudiopayload *RTPBaseAudioPayloadInstance) Push(data []uint8, timestamp gst.ClockTime) gst.FlowReturn { var carg0 *C.GstRTPBaseAudioPayload // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.GstClockTime // in, none, casted, alias var cret C.GstFlowReturn // return, none, casted @@ -5169,7 +5169,7 @@ func (baseaudiopayload *RTPBaseAudioPayloadInstance) Push(data []uint8, timestam _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg3 = C.GstClockTime(timestamp) cret = C.gst_rtp_base_audio_payload_push(carg0, carg1, carg2, carg3) @@ -5512,14 +5512,14 @@ func RTCPBufferValidate(buffer *gst.Buffer) bool { // Use this function to validate a packet before using the other functions in // this module. func RTCPBufferValidateData(data []uint8) bool { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.gboolean // return _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtcp_buffer_validate_data(carg1, carg2) runtime.KeepAlive(data) @@ -5551,14 +5551,14 @@ func RTCPBufferValidateData(data []uint8) bool { // RFC 5506 and will validate full compound RTCP packets as well as reduced // size RTCP packets. func RTCPBufferValidateDataReduced(data []uint8) bool { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.gboolean // return _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtcp_buffer_validate_data_reduced(carg1, carg2) runtime.KeepAlive(data) @@ -5821,7 +5821,7 @@ func UnsafeRTCPPacketToGlibFull(r *RTCPPacket) unsafe.Pointer { // extension. func (packet *RTCPPacket) AddProfileSpecificExt(data []uint8) bool { var carg0 *C.GstRTCPPacket // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.gboolean // return @@ -5829,7 +5829,7 @@ func (packet *RTCPPacket) AddProfileSpecificExt(data []uint8) bool { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtcp_packet_add_profile_specific_ext(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -5920,7 +5920,7 @@ func (packet *RTCPPacket) AppGetData() *uint8 { _ = goret _ = cret - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of unknown reason") return goret } @@ -6154,7 +6154,7 @@ func (packet *RTCPPacket) ByeAddSsrc(ssrc uint32) bool { // Adds @len SSRCs in @ssrc to BYE @packet. func (packet *RTCPPacket) ByeAddSsrcs(ssrc []uint32) bool { var carg0 *C.GstRTCPPacket // in, none, converted - var carg1 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], array (inner guint32 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.gboolean // return @@ -6162,7 +6162,7 @@ func (packet *RTCPPacket) ByeAddSsrcs(ssrc []uint32) bool { _ = ssrc _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint32 (guint32*)") + panic("unimplemented conversion of []uint32 (guint32*) because of unimplemented: non-fixed size array") cret = C.gst_rtcp_packet_bye_add_ssrcs(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -6332,7 +6332,7 @@ func (packet *RTCPPacket) FbGetFci() *uint8 { _ = goret _ = cret - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of unknown reason") return goret } @@ -6823,7 +6823,7 @@ func (packet *RTCPPacket) SdesAddEntry(typ RTCPSDESType, data []uint8) bool { var carg0 *C.GstRTCPPacket // in, none, converted var carg1 C.GstRTCPSDESType // in, none, casted var carg2 C.guint8 // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var cret C.gboolean // return carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) @@ -6831,7 +6831,7 @@ func (packet *RTCPPacket) SdesAddEntry(typ RTCPSDESType, data []uint8) bool { _ = data _ = carg3 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtcp_packet_sdes_add_entry(carg0, carg1, carg2, carg3) runtime.KeepAlive(packet) @@ -7243,13 +7243,13 @@ func (packet *RTCPPacket) XrGetDlrrBlock(nth uint, ssrc *uint32, lastRr *uint32, carg1 = C.guint(nth) _ = ssrc _ = carg2 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = lastRr _ = carg3 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = delay _ = carg4 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_dlrr_block(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(packet) @@ -7289,7 +7289,7 @@ func (packet *RTCPPacket) XrGetPrtBySeq(seq uint16, receiptTime *uint32) bool { carg1 = C.guint16(seq) _ = receiptTime _ = carg2 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_prt_by_seq(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -7330,16 +7330,16 @@ func (packet *RTCPPacket) XrGetPrtInfo(ssrc *uint32, thinning *uint8, beginSeq * carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = ssrc _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = thinning _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = beginSeq _ = carg3 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = endSeq _ = carg4 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_prt_info(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(packet) @@ -7384,19 +7384,19 @@ func (packet *RTCPPacket) XrGetRleInfo(ssrc *uint32, thinning *uint8, beginSeq * carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = ssrc _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = thinning _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = beginSeq _ = carg3 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = endSeq _ = carg4 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = chunkCount _ = carg5 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_rle_info(carg0, carg1, carg2, carg3, carg4, carg5) runtime.KeepAlive(packet) @@ -7437,7 +7437,7 @@ func (packet *RTCPPacket) XrGetRleNthChunk(nth uint, chunk *uint16) bool { carg1 = C.guint(nth) _ = chunk _ = carg2 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_rle_nth_chunk(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -7470,7 +7470,7 @@ func (packet *RTCPPacket) XrGetRrt(timestamp *uint64) bool { carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = timestamp _ = carg1 - panic("unimplemented conversion of *uint64 (guint64*)") + panic("unimplemented conversion of *uint64 (guint64*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_rrt(carg0, carg1) runtime.KeepAlive(packet) @@ -7531,13 +7531,13 @@ func (packet *RTCPPacket) XrGetSummaryInfo(ssrc *uint32, beginSeq *uint16, endSe carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = ssrc _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = beginSeq _ = carg2 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = endSeq _ = carg3 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_summary_info(carg0, carg1, carg2, carg3) runtime.KeepAlive(packet) @@ -7580,16 +7580,16 @@ func (packet *RTCPPacket) XrGetSummaryJitter(minJitter *uint32, maxJitter *uint3 carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = minJitter _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = maxJitter _ = carg2 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = meanJitter _ = carg3 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = devJitter _ = carg4 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_summary_jitter(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(packet) @@ -7629,10 +7629,10 @@ func (packet *RTCPPacket) XrGetSummaryPkt(lostPackets *uint32, dupPackets *uint3 carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = lostPackets _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") _ = dupPackets _ = carg2 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_summary_pkt(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -7675,19 +7675,19 @@ func (packet *RTCPPacket) XrGetSummaryTtl(isIpv4 *bool, minTtl *uint8, maxTtl *u carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = isIpv4 _ = carg1 - panic("unimplemented conversion of *bool (gboolean*)") + panic("unimplemented conversion of *bool (gboolean*) because of no basic converter found") _ = minTtl _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = maxTtl _ = carg3 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = meanTtl _ = carg4 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = devTtl _ = carg5 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_summary_ttl(carg0, carg1, carg2, carg3, carg4, carg5) runtime.KeepAlive(packet) @@ -7729,16 +7729,16 @@ func (packet *RTCPPacket) XrGetVoipBurstMetrics(burstDensity *uint8, gapDensity carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = burstDensity _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = gapDensity _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = burstDuration _ = carg3 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = gapDuration _ = carg4 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_burst_metrics(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(packet) @@ -7775,10 +7775,10 @@ func (packet *RTCPPacket) XrGetVoipConfigurationParams(gmin *uint8, rxConfig *ui carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = gmin _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = rxConfig _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_configuration_params(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -7813,10 +7813,10 @@ func (packet *RTCPPacket) XrGetVoipDelayMetrics(roundtripDelay *uint16, endSyste carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = roundtripDelay _ = carg1 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = endSystemDelay _ = carg2 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_delay_metrics(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -7853,13 +7853,13 @@ func (packet *RTCPPacket) XrGetVoipJitterBufferParams(jbNominal *uint16, jbMaxim carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = jbNominal _ = carg1 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = jbMaximum _ = carg2 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") _ = jbAbsMax _ = carg3 - panic("unimplemented conversion of *uint16 (guint16*)") + panic("unimplemented conversion of *uint16 (guint16*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_jitter_buffer_params(carg0, carg1, carg2, carg3) runtime.KeepAlive(packet) @@ -7893,7 +7893,7 @@ func (packet *RTCPPacket) XrGetVoipMetricsSsrc(ssrc *uint32) bool { carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = ssrc _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_metrics_ssrc(carg0, carg1) runtime.KeepAlive(packet) @@ -7927,10 +7927,10 @@ func (packet *RTCPPacket) XrGetVoipPacketMetrics(lossRate *uint8, discardRate *u carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = lossRate _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = discardRate _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_packet_metrics(carg0, carg1, carg2) runtime.KeepAlive(packet) @@ -7969,16 +7969,16 @@ func (packet *RTCPPacket) XrGetVoipQualityMetrics(rFactor *uint8, extRFactor *ui carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = rFactor _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = extRFactor _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = mosLq _ = carg3 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = mosCq _ = carg4 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_quality_metrics(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(packet) @@ -8019,16 +8019,16 @@ func (packet *RTCPPacket) XrGetVoipSignalMetrics(signalLevel *uint8, noiseLevel carg0 = (*C.GstRTCPPacket)(UnsafeRTCPPacketToGlibNone(packet)) _ = signalLevel _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = noiseLevel _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = rerl _ = carg3 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") _ = gmin _ = carg4 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") cret = C.gst_rtcp_packet_xr_get_voip_signal_metrics(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(packet) @@ -8538,7 +8538,7 @@ func RTPBufferMap(buffer *gst.Buffer, flags gst.MapFlags) (RTPBuffer, bool) { _ = rtp _ = carg3 - panic("unimplemented conversion of RTPBuffer (GstRTPBuffer)") + panic("unimplemented conversion of RTPBuffer (GstRTPBuffer) because of unknown reason") if cret != 0 { goret = true } @@ -9687,7 +9687,7 @@ func RTPSourceMetaGetInfo() *gst.MetaInfo { // Appends @csrc to the list of contributing sources in @meta. func (meta *RTPSourceMeta) AppendCsrc(csrc []uint32) bool { var carg0 *C.GstRTPSourceMeta // in, none, converted - var carg1 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint32 // in, transfer: none, C Pointers: 1, Name: array[guint32], array (inner guint32 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.gboolean // return @@ -9695,7 +9695,7 @@ func (meta *RTPSourceMeta) AppendCsrc(csrc []uint32) bool { _ = csrc _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint32 (const guint32*)") + panic("unimplemented conversion of []uint32 (const guint32*) because of unimplemented: non-fixed size array") cret = C.gst_rtp_source_meta_append_csrc(carg0, carg1, carg2) runtime.KeepAlive(meta) @@ -9753,7 +9753,7 @@ func (meta *RTPSourceMeta) SetSsrc(ssrc *uint32) bool { if ssrc != nil { _ = ssrc _ = carg1 - panic("unimplemented conversion of *uint32 (guint32*)") + panic("unimplemented conversion of *uint32 (guint32*) because of no basic converter found") } cret = C.gst_rtp_source_meta_set_ssrc(carg0, carg1) diff --git a/pkg/gstrtp/gstrtp_export.gen.go b/pkg/gstrtp/gstrtp_export.gen.go index f453280..0524318 100644 --- a/pkg/gstrtp/gstrtp_export.gen.go +++ b/pkg/gstrtp/gstrtp_export.gen.go @@ -5,235 +5,235 @@ package gstrtp import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/classdata" ) // #include import "C" -//export _gotk4_gstrtp1_RTPBaseDepayload_handle_event -func _gotk4_gstrtp1_RTPBaseDepayload_handle_event(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBaseDepayload_handle_event +func _goglib_gstrtp1_RTPBaseDepayload_handle_event(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBaseDepayload_handle_event").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBaseDepayload_handle_event").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBaseDepayload_handle_event: no function pointer found") + panic("_goglib_gstrtp1_RTPBaseDepayload_handle_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBaseDepayload_packet_lost -func _gotk4_gstrtp1_RTPBaseDepayload_packet_lost(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBaseDepayload_packet_lost +func _goglib_gstrtp1_RTPBaseDepayload_packet_lost(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBaseDepayload_packet_lost").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBaseDepayload_packet_lost").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBaseDepayload_packet_lost: no function pointer found") + panic("_goglib_gstrtp1_RTPBaseDepayload_packet_lost: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBaseDepayload_process -func _gotk4_gstrtp1_RTPBaseDepayload_process(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstBuffer) (cret *C.GstBuffer) { +//export _goglib_gstrtp1_RTPBaseDepayload_process +func _goglib_gstrtp1_RTPBaseDepayload_process(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstBuffer) (cret *C.GstBuffer) { var fn func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstBuffer) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBaseDepayload_process").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstBuffer) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBaseDepayload_process").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstBuffer) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBaseDepayload_process: no function pointer found") + panic("_goglib_gstrtp1_RTPBaseDepayload_process: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet -func _gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstRTPBuffer) (cret *C.GstBuffer) { +//export _goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet +func _goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstRTPBuffer) (cret *C.GstBuffer) { var fn func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstRTPBuffer) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstRTPBuffer) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstRTPBuffer) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBaseDepayload_process_rtp_packet: no function pointer found") + panic("_goglib_gstrtp1_RTPBaseDepayload_process_rtp_packet: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBaseDepayload_set_caps -func _gotk4_gstrtp1_RTPBaseDepayload_set_caps(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBaseDepayload_set_caps +func _goglib_gstrtp1_RTPBaseDepayload_set_caps(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBaseDepayload_set_caps").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBaseDepayload_set_caps").(func(carg0 *C.GstRTPBaseDepayload, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBaseDepayload_set_caps: no function pointer found") + panic("_goglib_gstrtp1_RTPBaseDepayload_set_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBasePayload_get_caps -func _gotk4_gstrtp1_RTPBasePayload_get_caps(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstrtp1_RTPBasePayload_get_caps +func _goglib_gstrtp1_RTPBasePayload_get_caps(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBasePayload_get_caps").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBasePayload_get_caps").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBasePayload_get_caps: no function pointer found") + panic("_goglib_gstrtp1_RTPBasePayload_get_caps: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstrtp1_RTPBasePayload_handle_buffer -func _gotk4_gstrtp1_RTPBasePayload_handle_buffer(carg0 *C.GstRTPBasePayload, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstrtp1_RTPBasePayload_handle_buffer +func _goglib_gstrtp1_RTPBasePayload_handle_buffer(carg0 *C.GstRTPBasePayload, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstRTPBasePayload, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBasePayload_handle_buffer").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBasePayload_handle_buffer").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBasePayload_handle_buffer: no function pointer found") + panic("_goglib_gstrtp1_RTPBasePayload_handle_buffer: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBasePayload_query -func _gotk4_gstrtp1_RTPBasePayload_query(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBasePayload_query +func _goglib_gstrtp1_RTPBasePayload_query(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBasePayload_query").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBasePayload_query").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstPad, carg2 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBasePayload_query: no function pointer found") + panic("_goglib_gstrtp1_RTPBasePayload_query: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstrtp1_RTPBasePayload_set_caps -func _gotk4_gstrtp1_RTPBasePayload_set_caps(carg0 *C.GstRTPBasePayload, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBasePayload_set_caps +func _goglib_gstrtp1_RTPBasePayload_set_caps(carg0 *C.GstRTPBasePayload, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBasePayload, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBasePayload_set_caps").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBasePayload_set_caps").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBasePayload_set_caps: no function pointer found") + panic("_goglib_gstrtp1_RTPBasePayload_set_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBasePayload_sink_event -func _gotk4_gstrtp1_RTPBasePayload_sink_event(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBasePayload_sink_event +func _goglib_gstrtp1_RTPBasePayload_sink_event(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBasePayload_sink_event").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBasePayload_sink_event").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBasePayload_sink_event: no function pointer found") + panic("_goglib_gstrtp1_RTPBasePayload_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPBasePayload_src_event -func _gotk4_gstrtp1_RTPBasePayload_src_event(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPBasePayload_src_event +func _goglib_gstrtp1_RTPBasePayload_src_event(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPBasePayload_src_event").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPBasePayload_src_event").(func(carg0 *C.GstRTPBasePayload, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPBasePayload_src_event: no function pointer found") + panic("_goglib_gstrtp1_RTPBasePayload_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPHeaderExtension_get_max_size -func _gotk4_gstrtp1_RTPHeaderExtension_get_max_size(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer) (cret C.gsize) { +//export _goglib_gstrtp1_RTPHeaderExtension_get_max_size +func _goglib_gstrtp1_RTPHeaderExtension_get_max_size(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer) (cret C.gsize) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer) (cret C.gsize) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_get_max_size").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer) (cret C.gsize)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_get_max_size").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer) (cret C.gsize)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_get_max_size: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_get_max_size: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags -func _gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags(carg0 *C.GstRTPHeaderExtension) (cret C.GstRTPHeaderExtensionFlags) { +//export _goglib_gstrtp1_RTPHeaderExtension_get_supported_flags +func _goglib_gstrtp1_RTPHeaderExtension_get_supported_flags(carg0 *C.GstRTPHeaderExtension) (cret C.GstRTPHeaderExtensionFlags) { var fn func(carg0 *C.GstRTPHeaderExtension) (cret C.GstRTPHeaderExtensionFlags) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags").(func(carg0 *C.GstRTPHeaderExtension) (cret C.GstRTPHeaderExtensionFlags)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_get_supported_flags").(func(carg0 *C.GstRTPHeaderExtension) (cret C.GstRTPHeaderExtensionFlags)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_get_supported_flags: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_get_supported_flags: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstrtp1_RTPHeaderExtension_read -func _gotk4_gstrtp1_RTPHeaderExtension_read(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionFlags, carg2 *C.guint8, carg3 C.gsize, carg4 *C.GstBuffer) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPHeaderExtension_read +func _goglib_gstrtp1_RTPHeaderExtension_read(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionFlags, carg2 *C.guint8, carg3 C.gsize, carg4 *C.GstBuffer) (cret C.gboolean) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionFlags, carg2 *C.guint8, carg3 C.gsize, carg4 *C.GstBuffer) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_read").(func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionFlags, carg2 *C.guint8, carg3 C.gsize, carg4 *C.GstBuffer) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_read").(func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionFlags, carg2 *C.guint8, carg3 C.gsize, carg4 *C.GstBuffer) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_read: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_read: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4) } -//export _gotk4_gstrtp1_RTPHeaderExtension_set_attributes -func _gotk4_gstrtp1_RTPHeaderExtension_set_attributes(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionDirection, carg2 *C.gchar) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPHeaderExtension_set_attributes +func _goglib_gstrtp1_RTPHeaderExtension_set_attributes(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionDirection, carg2 *C.gchar) (cret C.gboolean) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionDirection, carg2 *C.gchar) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_set_attributes").(func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionDirection, carg2 *C.gchar) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_set_attributes").(func(carg0 *C.GstRTPHeaderExtension, carg1 C.GstRTPHeaderExtensionDirection, carg2 *C.gchar) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_set_attributes: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_set_attributes: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes -func _gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes +func _goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_set_caps_from_attributes: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_set_caps_from_attributes: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps -func _gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps +func _goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_set_non_rtp_sink_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps -func _gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { +//export _goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps +func _goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstCaps) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_update_non_rtp_src_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstrtp1_RTPHeaderExtension_write -func _gotk4_gstrtp1_RTPHeaderExtension_write(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer, carg2 C.GstRTPHeaderExtensionFlags, carg3 *C.GstBuffer, carg4 *C.guint8, carg5 C.gsize) (cret C.gssize) { +//export _goglib_gstrtp1_RTPHeaderExtension_write +func _goglib_gstrtp1_RTPHeaderExtension_write(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer, carg2 C.GstRTPHeaderExtensionFlags, carg3 *C.GstBuffer, carg4 *C.guint8, carg5 C.gsize) (cret C.gssize) { var fn func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer, carg2 C.GstRTPHeaderExtensionFlags, carg3 *C.GstBuffer, carg4 *C.guint8, carg5 C.gsize) (cret C.gssize) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstrtp1_RTPHeaderExtension_write").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer, carg2 C.GstRTPHeaderExtensionFlags, carg3 *C.GstBuffer, carg4 *C.guint8, carg5 C.gsize) (cret C.gssize)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstrtp1_RTPHeaderExtension_write").(func(carg0 *C.GstRTPHeaderExtension, carg1 *C.GstBuffer, carg2 C.GstRTPHeaderExtensionFlags, carg3 *C.GstBuffer, carg4 *C.guint8, carg5 C.gsize) (cret C.gssize)) if fn == nil { - panic("_gotk4_gstrtp1_RTPHeaderExtension_write: no function pointer found") + panic("_goglib_gstrtp1_RTPHeaderExtension_write: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4, carg5) diff --git a/pkg/gstrtsp/gstrtsp.gen.go b/pkg/gstrtsp/gstrtsp.gen.go index 7623cd5..77cfc02 100644 --- a/pkg/gstrtsp/gstrtsp.gen.go +++ b/pkg/gstrtsp/gstrtsp.gen.go @@ -3,17 +3,16 @@ package gstrtsp import ( - "context" "fmt" "log" "runtime" "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/gio/v2" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/gio/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstsdp" ) @@ -21,7 +20,7 @@ import ( // #cgo pkg-config: gstreamer-rtsp-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern gboolean _gotk4_gstrtsp1_RTSPConnectionAcceptCertificateFunc(GTlsConnection*, GTlsCertificate*, GTlsCertificateFlags, gpointer); +// extern gboolean _goglib_gstrtsp1_RTSPConnectionAcceptCertificateFunc(GTlsConnection*, GTlsCertificate*, GTlsCertificateFlags, gpointer); // extern void destroyUserdata(gpointer); import "C" @@ -2705,8 +2704,8 @@ func UnsafeRTSPConnectionToGlibFull(r *RTSPConnection) unsafe.Pointer { // // The function takes the following parameters: // -// - cancellable context.Context (nullable): a #GCancellable to cancel the operation // - socket gio.Socket: a socket +// - cancellable gio.Cancellable (nullable): a #GCancellable to cancel the operation // // The function returns the following values: // @@ -2715,20 +2714,20 @@ func UnsafeRTSPConnectionToGlibFull(r *RTSPConnection) unsafe.Pointer { // // Accept a new connection on @socket and create a new #GstRTSPConnection for // handling communication on new socket. -func RTSPConnectionAccept(cancellable context.Context, socket gio.Socket) (*RTSPConnection, RTSPResult) { - var carg3 *C.GCancellable // in, none, converted, nullable +func RTSPConnectionAccept(socket gio.Socket, cancellable gio.Cancellable) (*RTSPConnection, RTSPResult) { var carg1 *C.GSocket // in, none, converted + var carg3 *C.GCancellable // in, none, converted, nullable var carg2 *C.GstRTSPConnection // out, full, converted, nullable var cret C.GstRTSPResult // return, none, casted - if cancellable != nil { - carg3 = (*C.GCancellable)(gio.UnsafeGCancellableToGlibNone(cancellable)) - } carg1 = (*C.GSocket)(gio.UnsafeSocketToGlibNone(socket)) + if cancellable != nil { + carg3 = (*C.GCancellable)(gio.UnsafeCancellableToGlibNone(cancellable)) + } cret = C.gst_rtsp_connection_accept(carg1, &carg2, carg3) - runtime.KeepAlive(cancellable) runtime.KeepAlive(socket) + runtime.KeepAlive(cancellable) var conn *RTSPConnection var goret RTSPResult @@ -3419,7 +3418,7 @@ func (conn *RTSPConnection) PollUsec(events RTSPEvent, timeout int64) (RTSPEvent _ = revents _ = carg2 - panic("unimplemented conversion of RTSPEvent (GstRTSPEvent)") + panic("unimplemented conversion of RTSPEvent (GstRTSPEvent) because of unknown reason") goret = RTSPResult(cret) return revents, goret @@ -3443,7 +3442,7 @@ func (conn *RTSPConnection) PollUsec(events RTSPEvent, timeout int64) (RTSPEvent // This function can be cancelled with gst_rtsp_connection_flush(). func (conn *RTSPConnection) ReadUsec(data []uint8, timeout int64) RTSPResult { var carg0 *C.GstRTSPConnection // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.gint64 // in, none, casted var cret C.GstRTSPResult // return, none, casted @@ -3452,7 +3451,7 @@ func (conn *RTSPConnection) ReadUsec(data []uint8, timeout int64) RTSPResult { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") carg3 = C.gint64(timeout) cret = C.gst_rtsp_connection_read_usec(carg0, carg1, carg2, carg3) @@ -3546,7 +3545,7 @@ func (conn *RTSPConnection) ResetTimeout() RTSPResult { // This function can be cancelled with gst_rtsp_connection_flush(). func (conn *RTSPConnection) SendMessagesUsec(messages []RTSPMessage, timeout int64) RTSPResult { var carg0 *C.GstRTSPConnection // in, none, converted - var carg1 *C.GstRTSPMessage // in, transfer: none, C Pointers: 1, Name: array[RTSPMessage], array (inner: *typesystem.Record, length-by: carg2) + var carg1 *C.GstRTSPMessage // in, transfer: none, C Pointers: 1, Name: array[RTSPMessage], array (inner GstRTSPMessage (*typesystem.Record), length-by: carg2) var carg2 C.guint // implicit var carg3 C.gint64 // in, none, casted var cret C.GstRTSPResult // return, none, casted @@ -3555,7 +3554,7 @@ func (conn *RTSPConnection) SendMessagesUsec(messages []RTSPMessage, timeout int _ = messages _ = carg1 _ = carg2 - panic("unimplemented conversion of []RTSPMessage (GstRTSPMessage*)") + panic("unimplemented conversion of []RTSPMessage (GstRTSPMessage*) because of unimplemented: non-fixed size array") carg3 = C.gint64(timeout) cret = C.gst_rtsp_connection_send_messages_usec(carg0, carg1, carg2, carg3) @@ -3627,7 +3626,7 @@ func (conn *RTSPConnection) SetAcceptCertificateFunc(fn RTSPConnectionAcceptCert var carg3 C.GDestroyNotify // implicit carg0 = (*C.GstRTSPConnection)(UnsafeRTSPConnectionToGlibNone(conn)) - carg1 = (*[0]byte)(C._gotk4_gstrtsp1_RTSPConnectionAcceptCertificateFunc) + carg1 = (*[0]byte)(C._goglib_gstrtsp1_RTSPConnectionAcceptCertificateFunc) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -4010,7 +4009,7 @@ func (conn *RTSPConnection) SetTunneled(tunneled bool) { // This function can be cancelled with gst_rtsp_connection_flush(). func (conn *RTSPConnection) WriteUsec(data []uint8, timeout int64) RTSPResult { var carg0 *C.GstRTSPConnection // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.gint64 // in, none, casted var cret C.GstRTSPResult // return, none, casted @@ -4019,7 +4018,7 @@ func (conn *RTSPConnection) WriteUsec(data []uint8, timeout int64) RTSPResult { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg3 = C.gint64(timeout) cret = C.gst_rtsp_connection_write_usec(carg0, carg1, carg2, carg3) @@ -4652,7 +4651,7 @@ func (msg *RTSPMessage) InitResponse(code RTSPStatusCode, reason string, request func (msg *RTSPMessage) ParseAuthCredentials(field RTSPHeaderField) []*RTSPAuthCredential { var carg0 *C.GstRTSPMessage // in, none, converted var carg1 C.GstRTSPHeaderField // in, none, casted - var cret **C.GstRTSPAuthCredential // return, transfer: full, C Pointers: 2, Name: array[RTSPAuthCredential], scope: , array (inner: *typesystem.Record, zero-terminated) + var cret **C.GstRTSPAuthCredential // return, transfer: full, C Pointers: 2, Name: array[RTSPAuthCredential], scope: , array (inner GstRTSPAuthCredential* (*typesystem.Record), zero-terminated) carg0 = (*C.GstRTSPMessage)(UnsafeRTSPMessageToGlibNone(msg)) carg1 = C.GstRTSPHeaderField(field) @@ -4665,7 +4664,7 @@ func (msg *RTSPMessage) ParseAuthCredentials(field RTSPHeaderField) []*RTSPAuthC _ = goret _ = cret - panic("unimplemented conversion of []*RTSPAuthCredential (GstRTSPAuthCredential**)") + panic("unimplemented conversion of []*RTSPAuthCredential (GstRTSPAuthCredential**) because of unknown reason") return goret } @@ -4860,7 +4859,7 @@ func (msg *RTSPMessage) RemoveHeaderByName(header string, index int32) RTSPResul // will be replaced by the new body. func (msg *RTSPMessage) SetBody(data []uint8) RTSPResult { var carg0 *C.GstRTSPMessage // in, none, converted - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.GstRTSPResult // return, none, casted @@ -4868,7 +4867,7 @@ func (msg *RTSPMessage) SetBody(data []uint8) RTSPResult { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtsp_message_set_body(carg0, carg1, carg2) runtime.KeepAlive(msg) @@ -4958,7 +4957,7 @@ func (msg *RTSPMessage) StealBodyBuffer() (*gst.Buffer, RTSPResult) { // @data. Any existing body or body buffer will be replaced by the new body. func (msg *RTSPMessage) TakeBody(data []uint8) RTSPResult { var carg0 *C.GstRTSPMessage // in, none, converted - var carg1 *C.guint8 // in, transfer: full, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: full, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var cret C.GstRTSPResult // return, none, casted @@ -4966,7 +4965,7 @@ func (msg *RTSPMessage) TakeBody(data []uint8) RTSPResult { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (guint8*)") + panic("unimplemented conversion of []uint8 (guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtsp_message_take_body(carg0, carg1, carg2) runtime.KeepAlive(msg) @@ -5764,7 +5763,7 @@ func RTSPTransportInit() (RTSPTransport, RTSPResult) { _ = transport _ = carg1 - panic("unimplemented conversion of RTSPTransport (GstRTSPTransport)") + panic("unimplemented conversion of RTSPTransport (GstRTSPTransport) because of unknown reason") goret = RTSPResult(cret) return transport, goret @@ -5822,7 +5821,7 @@ func RTSPTransportParse(str string) (RTSPTransport, RTSPResult) { _ = transport _ = carg2 - panic("unimplemented conversion of RTSPTransport (GstRTSPTransport)") + panic("unimplemented conversion of RTSPTransport (GstRTSPTransport) because of unknown reason") goret = RTSPResult(cret) return transport, goret @@ -6056,7 +6055,7 @@ func (url *RTSPUrl) Copy() *RTSPUrl { // will usually be the empty string. func (url *RTSPUrl) DecodePathComponents() []string { var carg0 *C.GstRTSPUrl // in, none, converted - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) carg0 = (*C.GstRTSPUrl)(UnsafeRTSPUrlToGlibNone(url)) @@ -6067,7 +6066,7 @@ func (url *RTSPUrl) DecodePathComponents() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -6400,7 +6399,7 @@ func (watch *RTSPWatch) SendMessage(message *RTSPMessage) (uint, RTSPResult) { // once for the last message. func (watch *RTSPWatch) SendMessages(messages []RTSPMessage) (uint, RTSPResult) { var carg0 *C.GstRTSPWatch // in, none, converted - var carg1 *C.GstRTSPMessage // in, transfer: none, C Pointers: 1, Name: array[RTSPMessage], array (inner: *typesystem.Record, length-by: carg2) + var carg1 *C.GstRTSPMessage // in, transfer: none, C Pointers: 1, Name: array[RTSPMessage], array (inner GstRTSPMessage (*typesystem.Record), length-by: carg2) var carg2 C.guint // implicit var carg3 C.guint // out, full, casted var cret C.GstRTSPResult // return, none, casted @@ -6409,7 +6408,7 @@ func (watch *RTSPWatch) SendMessages(messages []RTSPMessage) (uint, RTSPResult) _ = messages _ = carg1 _ = carg2 - panic("unimplemented conversion of []RTSPMessage (GstRTSPMessage*)") + panic("unimplemented conversion of []RTSPMessage (GstRTSPMessage*) because of unimplemented: non-fixed size array") cret = C.gst_rtsp_watch_send_messages(carg0, carg1, carg2, &carg3) runtime.KeepAlive(watch) @@ -6538,7 +6537,7 @@ func (watch *RTSPWatch) WaitBacklogUsec(timeout int64) RTSPResult { // #GST_RTSP_ENOMEM. func (watch *RTSPWatch) WriteData(data []uint8) (uint, RTSPResult) { var carg0 *C.GstRTSPWatch // in, none, converted - var carg1 *C.guint8 // in, transfer: full, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: full, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.guint // out, full, casted var cret C.GstRTSPResult // return, none, casted @@ -6547,7 +6546,7 @@ func (watch *RTSPWatch) WriteData(data []uint8) (uint, RTSPResult) { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_rtsp_watch_write_data(carg0, carg1, carg2, &carg3) runtime.KeepAlive(watch) diff --git a/pkg/gstrtsp/gstrtsp_export.gen.go b/pkg/gstrtsp/gstrtsp_export.gen.go index 06a4680..5f1cb23 100644 --- a/pkg/gstrtsp/gstrtsp_export.gen.go +++ b/pkg/gstrtsp/gstrtsp_export.gen.go @@ -5,15 +5,15 @@ package gstrtsp import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/gio/v2" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/gio/v2" ) // #include import "C" -//export _gotk4_gstrtsp1_RTSPConnectionAcceptCertificateFunc -func _gotk4_gstrtsp1_RTSPConnectionAcceptCertificateFunc(carg1 *C.GTlsConnection, carg2 *C.GTlsCertificate, carg3 C.GTlsCertificateFlags, carg4 C.gpointer) (cret C.gboolean) { +//export _goglib_gstrtsp1_RTSPConnectionAcceptCertificateFunc +func _goglib_gstrtsp1_RTSPConnectionAcceptCertificateFunc(carg1 *C.GTlsConnection, carg2 *C.GTlsCertificate, carg3 C.GTlsCertificateFlags, carg4 C.gpointer) (cret C.gboolean) { var fn RTSPConnectionAcceptCertificateFunc { v := userdata.Load(unsafe.Pointer(carg4)) diff --git a/pkg/gstsdp/gstsdp.gen.go b/pkg/gstsdp/gstsdp.gen.go index 66cc976..fb5d340 100644 --- a/pkg/gstsdp/gstsdp.gen.go +++ b/pkg/gstsdp/gstsdp.gen.go @@ -8,8 +8,8 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) @@ -1114,7 +1114,7 @@ func (msg *MIKEYMessage) AddPke(c MIKEYCacheType, data []uint8) bool { var carg0 *C.GstMIKEYMessage // in, none, converted var carg1 C.GstMIKEYCacheType // in, none, casted var carg2 C.guint16 // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var cret C.gboolean // return carg0 = (*C.GstMIKEYMessage)(UnsafeMIKEYMessageToGlibNone(msg)) @@ -1122,7 +1122,7 @@ func (msg *MIKEYMessage) AddPke(c MIKEYCacheType, data []uint8) bool { _ = data _ = carg3 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_message_add_pke(carg0, carg1, carg2, carg3) runtime.KeepAlive(msg) @@ -1152,14 +1152,14 @@ func (msg *MIKEYMessage) AddPke(c MIKEYCacheType, data []uint8) bool { func (msg *MIKEYMessage) AddRand(rand []uint8) bool { var carg0 *C.GstMIKEYMessage // in, none, converted var carg1 C.guint8 // implicit - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg1) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg1) var cret C.gboolean // return carg0 = (*C.GstMIKEYMessage)(UnsafeMIKEYMessageToGlibNone(msg)) _ = rand _ = carg2 _ = carg1 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_message_add_rand(carg0, carg1, carg2) runtime.KeepAlive(msg) @@ -2029,20 +2029,20 @@ func (payload *MIKEYPayload) KemacSet(encAlg MIKEYEncAlg, macAlg MIKEYMacAlg) bo func (payload *MIKEYPayload) KeyDataSetInterval(vfData []uint8, vtData []uint8) bool { var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.guint8 // implicit - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg1) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg1) var carg3 C.guint8 // implicit - var carg4 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg4 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) _ = vfData _ = carg2 _ = carg1 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") _ = vtData _ = carg4 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_key_data_set_interval(carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(payload) @@ -2075,7 +2075,7 @@ func (payload *MIKEYPayload) KeyDataSetKey(keyType MIKEYKeyDataType, keyData []u var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.GstMIKEYKeyDataType // in, none, casted var carg2 C.guint16 // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) @@ -2083,7 +2083,7 @@ func (payload *MIKEYPayload) KeyDataSetKey(keyType MIKEYKeyDataType, keyData []u _ = keyData _ = carg3 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_key_data_set_key(carg0, carg1, carg2, carg3) runtime.KeepAlive(payload) @@ -2114,14 +2114,14 @@ func (payload *MIKEYPayload) KeyDataSetKey(keyType MIKEYKeyDataType, keyData []u func (payload *MIKEYPayload) KeyDataSetSalt(saltData []uint8) bool { var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.guint16 // implicit - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], nullable, array (inner: *typesystem.CastablePrimitive, length-by: carg1) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], nullable, array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg1) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) _ = saltData _ = carg2 _ = carg1 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_key_data_set_salt(carg0, carg1, carg2) runtime.KeepAlive(payload) @@ -2150,14 +2150,14 @@ func (payload *MIKEYPayload) KeyDataSetSalt(saltData []uint8) bool { func (payload *MIKEYPayload) KeyDataSetSpi(spiData []uint8) bool { var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.guint8 // implicit - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg1) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg1) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) _ = spiData _ = carg2 _ = carg1 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_key_data_set_spi(carg0, carg1, carg2) runtime.KeepAlive(payload) @@ -2189,7 +2189,7 @@ func (payload *MIKEYPayload) PkeSet(c MIKEYCacheType, data []uint8) bool { var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.GstMIKEYCacheType // in, none, casted var carg2 C.guint16 // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) @@ -2197,7 +2197,7 @@ func (payload *MIKEYPayload) PkeSet(c MIKEYCacheType, data []uint8) bool { _ = data _ = carg3 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_pke_set(carg0, carg1, carg2, carg3) runtime.KeepAlive(payload) @@ -2227,14 +2227,14 @@ func (payload *MIKEYPayload) PkeSet(c MIKEYCacheType, data []uint8) bool { func (payload *MIKEYPayload) RandSet(rand []uint8) bool { var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.guint8 // implicit - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg1) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg1) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) _ = rand _ = carg2 _ = carg1 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_rand_set(carg0, carg1, carg2) runtime.KeepAlive(payload) @@ -2266,7 +2266,7 @@ func (payload *MIKEYPayload) SpAddParam(typ uint8, val []uint8) bool { var carg0 *C.GstMIKEYPayload // in, none, converted var carg1 C.guint8 // in, none, casted var carg2 C.guint8 // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var cret C.gboolean // return carg0 = (*C.GstMIKEYPayload)(UnsafeMIKEYPayloadToGlibNone(payload)) @@ -2274,7 +2274,7 @@ func (payload *MIKEYPayload) SpAddParam(typ uint8, val []uint8) bool { _ = val _ = carg3 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_mikey_payload_sp_add_param(carg0, carg1, carg2, carg3) runtime.KeepAlive(payload) @@ -3611,7 +3611,7 @@ func SDPMediaInit() (SDPMedia, SDPResult) { _ = media _ = carg1 - panic("unimplemented conversion of SDPMedia (GstSDPMedia)") + panic("unimplemented conversion of SDPMedia (GstSDPMedia) because of unknown reason") goret = SDPResult(cret) return media, goret @@ -3677,7 +3677,7 @@ func SDPMediaSetMediaFromCaps(caps *gst.Caps) (SDPMedia, SDPResult) { _ = media _ = carg2 - panic("unimplemented conversion of SDPMedia (GstSDPMedia)") + panic("unimplemented conversion of SDPMedia (GstSDPMedia) because of unknown reason") goret = SDPResult(cret) return media, goret @@ -5154,7 +5154,7 @@ func SDPMessageInit() (SDPMessage, SDPResult) { _ = msg _ = carg1 - panic("unimplemented conversion of SDPMessage (GstSDPMessage)") + panic("unimplemented conversion of SDPMessage (GstSDPMessage) because of unknown reason") goret = SDPResult(cret) return msg, goret @@ -5229,7 +5229,7 @@ func NewSDPMessageFromText(text string) (*SDPMessage, SDPResult) { // Parse the contents of @size bytes pointed to by @data and store the result in // @msg. func SDPMessageParseBuffer(data []uint8, msg *SDPMessage) SDPResult { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 *C.GstSDPMessage // in, none, converted var cret C.GstSDPResult // return, none, casted @@ -5237,7 +5237,7 @@ func SDPMessageParseBuffer(data []uint8, msg *SDPMessage) SDPResult { _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg3 = (*C.GstSDPMessage)(UnsafeSDPMessageToGlibNone(msg)) cret = C.gst_sdp_message_parse_buffer(carg1, carg2, carg3) @@ -5475,7 +5475,7 @@ func (msg *SDPMessage) AddTime(start string, stop string, repeat []string) SDPRe var carg0 *C.GstSDPMessage // in, none, converted var carg1 *C.gchar // in, none, string var carg2 *C.gchar // in, none, string - var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret C.GstSDPResult // return, none, casted carg0 = (*C.GstSDPMessage)(UnsafeSDPMessageToGlibNone(msg)) @@ -5485,7 +5485,7 @@ func (msg *SDPMessage) AddTime(start string, stop string, repeat []string) SDPRe defer C.free(unsafe.Pointer(carg2)) _ = repeat _ = carg3 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_sdp_message_add_time(carg0, carg1, carg2, carg3) runtime.KeepAlive(msg) @@ -7404,7 +7404,7 @@ func (t *SDPTime) Set(start string, stop string, repeat []string) SDPResult { var carg0 *C.GstSDPTime // in, none, converted var carg1 *C.gchar // in, none, string var carg2 *C.gchar // in, none, string - var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret C.GstSDPResult // return, none, casted carg0 = (*C.GstSDPTime)(UnsafeSDPTimeToGlibNone(t)) @@ -7414,7 +7414,7 @@ func (t *SDPTime) Set(start string, stop string, repeat []string) SDPResult { defer C.free(unsafe.Pointer(carg2)) _ = repeat _ = carg3 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_sdp_time_set(carg0, carg1, carg2, carg3) runtime.KeepAlive(t) diff --git a/pkg/gsttag/gsttag.gen.go b/pkg/gsttag/gsttag.gen.go index 9bcd2a8..e833f74 100644 --- a/pkg/gsttag/gsttag.gen.go +++ b/pkg/gsttag/gsttag.gen.go @@ -9,29 +9,29 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" ) // #cgo pkg-config: gstreamer-tag-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern gboolean _gotk4_gsttag1_TagDemux_identify_tag(GstTagDemux*, GstBuffer*, gboolean, guint*); -// extern GstTagList* _gotk4_gsttag1_TagDemux_merge_tags(GstTagDemux*, const GstTagList*, const GstTagList*); -// gboolean _gotk4_gsttag1_TagDemux_virtual_identify_tag(void* fnptr, GstTagDemux* carg0, GstBuffer* carg1, gboolean carg2, guint* carg3) { +// extern gboolean _goglib_gsttag1_TagDemux_identify_tag(GstTagDemux*, GstBuffer*, gboolean, guint*); +// extern GstTagList* _goglib_gsttag1_TagDemux_merge_tags(GstTagDemux*, const GstTagList*, const GstTagList*); +// gboolean _goglib_gsttag1_TagDemux_virtual_identify_tag(void* fnptr, GstTagDemux* carg0, GstBuffer* carg1, gboolean carg2, guint* carg3) { // return ((gboolean (*) (GstTagDemux*, GstBuffer*, gboolean, guint*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstTagList* _gotk4_gsttag1_TagDemux_virtual_merge_tags(void* fnptr, GstTagDemux* carg0, const GstTagList* carg1, const GstTagList* carg2) { +// GstTagList* _goglib_gsttag1_TagDemux_virtual_merge_tags(void* fnptr, GstTagDemux* carg0, const GstTagList* carg1, const GstTagList* carg2) { // return ((GstTagList* (*) (GstTagDemux*, const GstTagList*, const GstTagList*))(fnptr))(carg0, carg1, carg2); // } -// extern GstBuffer* _gotk4_gsttag1_TagMux_render_end_tag(GstTagMux*, const GstTagList*); -// extern GstBuffer* _gotk4_gsttag1_TagMux_render_start_tag(GstTagMux*, const GstTagList*); -// GstBuffer* _gotk4_gsttag1_TagMux_virtual_render_end_tag(void* fnptr, GstTagMux* carg0, const GstTagList* carg1) { +// extern GstBuffer* _goglib_gsttag1_TagMux_render_end_tag(GstTagMux*, const GstTagList*); +// extern GstBuffer* _goglib_gsttag1_TagMux_render_start_tag(GstTagMux*, const GstTagList*); +// GstBuffer* _goglib_gsttag1_TagMux_virtual_render_end_tag(void* fnptr, GstTagMux* carg0, const GstTagList* carg1) { // return ((GstBuffer* (*) (GstTagMux*, const GstTagList*))(fnptr))(carg0, carg1); // } -// GstBuffer* _gotk4_gsttag1_TagMux_virtual_render_start_tag(void* fnptr, GstTagMux* carg0, const GstTagList* carg1) { +// GstBuffer* _goglib_gsttag1_TagMux_virtual_render_start_tag(void* fnptr, GstTagMux* carg0, const GstTagList* carg1) { // return ((GstBuffer* (*) (GstTagMux*, const GstTagList*))(fnptr))(carg0, carg1); // } import "C" @@ -443,18 +443,18 @@ func TagCheckLanguageCode(langCode string) bool { // are specified, the current locale will be tried. If that also doesn't work, // WINDOWS-1252/ISO-8859-1 is assumed (which will almost always succeed). func TagFreeformStringToUTF8(data string, envVars []string) string { - var carg1 *C.gchar // in, transfer: none, C Pointers: 1, Name: array[unknown], array (inner: , length-by: carg2) + var carg1 *C.gchar // in, transfer: none, C Pointers: 1, Name: array[unknown], array (inner unknown, length-by: carg2) var carg2 C.gint // implicit - var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret *C.gchar // return, full, string, nullable-string _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of string (const gchar*)") + panic("unimplemented conversion of string (const gchar*) because of unimplemented: non-fixed size array") _ = envVars _ = carg3 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_tag_freeform_string_to_utf8(carg1, carg2, carg3) runtime.KeepAlive(data) @@ -715,7 +715,7 @@ func TagGetLanguageCodeIso6392t(langCode string) string { // tagging purposes (e.g. to tag an audio track appropriately in a video or // audio editor). func TagGetLanguageCodes() []string { - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) cret = C.gst_tag_get_language_codes() @@ -723,7 +723,7 @@ func TagGetLanguageCodes() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -968,7 +968,7 @@ func TagGetLicenseVersion(licenseRef string) string { // (e.g. to tag an audio track appropriately in a video or audio editor, or // an image in a camera application). func TagGetLicenses() []string { - var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: full, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) cret = C.gst_tag_get_licenses() @@ -976,7 +976,7 @@ func TagGetLicenses() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (gchar**)") + panic("unimplemented conversion of []string (gchar**) because of unknown reason") return goret } @@ -1066,7 +1066,7 @@ func TagId3GenreGet(id uint) string { // This function will do various checks and typefind the encoded image // data (we can't trust the declared mime type). func TagImageDataToImageSample(imageData []uint8, imageType TagImageType) *gst.Sample { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.guint // implicit var carg3 C.GstTagImageType // in, none, casted var cret *C.GstSample // return, full, converted, nullable @@ -1074,7 +1074,7 @@ func TagImageDataToImageSample(imageData []uint8, imageType TagImageType) *gst.S _ = imageData _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg3 = C.GstTagImageType(imageType) cret = C.gst_tag_image_data_to_image_sample(carg1, carg2, carg3) @@ -1108,7 +1108,7 @@ func TagImageDataToImageSample(imageData []uint8, imageType TagImageType) *gst.S // more information on image tags in GStreamer. func TagListAddId3Image(tagList *gst.TagList, imageData []uint8, id3PictureType uint) bool { var carg1 *C.GstTagList // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var carg4 C.guint // in, none, casted var cret C.gboolean // return @@ -1117,7 +1117,7 @@ func TagListAddId3Image(tagList *gst.TagList, imageData []uint8, id3PictureType _ = imageData _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") carg4 = C.guint(id3PictureType) cret = C.gst_tag_list_add_id3_image(carg1, carg2, carg3, carg4) @@ -1245,9 +1245,9 @@ func TagListFromId3v2Tag(buffer *gst.Buffer) *gst.TagList { // Creates a new tag list that contains the information parsed out of a // vorbiscomment packet. func TagListFromVorbiscomment(data []uint8, idData []uint8) (string, *gst.TagList) { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg2) + var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg2) var carg2 C.gsize // implicit - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg4) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg4) var carg4 C.guint // implicit var carg5 *C.gchar // out, full, string var cret *C.GstTagList // return, full, converted, nullable @@ -1255,11 +1255,11 @@ func TagListFromVorbiscomment(data []uint8, idData []uint8) (string, *gst.TagLis _ = data _ = carg1 _ = carg2 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") _ = idData _ = carg3 _ = carg4 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_tag_list_from_vorbiscomment(carg1, carg2, carg3, carg4, &carg5) runtime.KeepAlive(data) @@ -1294,7 +1294,7 @@ func TagListFromVorbiscomment(data []uint8, idData []uint8) (string, *gst.TagLis // vorbiscomment packet. func TagListFromVorbiscommentBuffer(buffer *gst.Buffer, idData []uint8) (string, *gst.TagList) { var carg1 *C.GstBuffer // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var carg4 *C.gchar // out, full, string var cret *C.GstTagList // return, full, converted, nullable @@ -1303,7 +1303,7 @@ func TagListFromVorbiscommentBuffer(buffer *gst.Buffer, idData []uint8) (string, _ = idData _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_tag_list_from_vorbiscomment_buffer(carg1, carg2, carg3, &carg4) runtime.KeepAlive(buffer) @@ -1363,12 +1363,16 @@ func TagListFromXmpBuffer(buffer *gst.Buffer) *gst.TagList { // Parses the data containing an ID3v1 tag and returns a #GstTagList from the // parsed data. func TagListNewFromId3v1(data [128]uint8) *gst.TagList { - var carg1 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, fixed-size: 128) + var carg1 *C.guint8 // in, none, array fixed size (inner: guint8, size: 128) var cret *C.GstTagList // return, full, converted, nullable - _ = data - _ = carg1 - panic("unimplemented conversion of [128]uint8 (const guint8*)") + { + var carr [128]C.guint8 + for i := range 128 { + carr[i] = C.guint8(data[i]) + carg1 = unsafe.SliceData(carr[:]) + } + } cret = C.gst_tag_list_new_from_id3v1(carg1) runtime.KeepAlive(data) @@ -1461,7 +1465,7 @@ func TagListToExifBufferWithTiffHeader(taglist *gst.TagList) *gst.Buffer { // Creates a new vorbiscomment buffer from a tag list. func TagListToVorbiscommentBuffer(list *gst.TagList, idData []uint8, vendorString string) *gst.Buffer { var carg1 *C.GstTagList // in, none, converted - var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg3) + var carg2 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg3) var carg3 C.guint // implicit var carg4 *C.gchar // in, none, string, nullable-string var cret *C.GstBuffer // return, full, converted @@ -1470,7 +1474,7 @@ func TagListToVorbiscommentBuffer(list *gst.TagList, idData []uint8, vendorStrin _ = idData _ = carg2 _ = carg3 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") if vendorString != "" { carg4 = (*C.gchar)(unsafe.Pointer(C.CString(vendorString))) defer C.free(unsafe.Pointer(carg4)) @@ -1507,7 +1511,7 @@ func TagListToVorbiscommentBuffer(list *gst.TagList, idData []uint8, vendorStrin func TagListToXmpBuffer(list *gst.TagList, readOnly bool, schemas []string) *gst.Buffer { var carg1 *C.GstTagList // in, none, converted var carg2 C.gboolean // in - var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner: *typesystem.StringPrimitive, zero-terminated) + var carg3 **C.gchar // in, transfer: none, C Pointers: 2, Name: array[utf8], array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) var cret *C.GstBuffer // return, full, converted, nullable carg1 = (*C.GstTagList)(gst.UnsafeTagListToGlibNone(list)) @@ -1516,7 +1520,7 @@ func TagListToXmpBuffer(list *gst.TagList, readOnly bool, schemas []string) *gst } _ = schemas _ = carg3 - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unimplemented: inner pointers in array") cret = C.gst_tag_list_to_xmp_buffer(carg1, carg2, carg3) runtime.KeepAlive(list) @@ -1714,7 +1718,7 @@ func TagToVorbisTag(gstTag string) string { // // Gets the list of supported schemas in the xmp lib func TagXmpListSchemas() []string { - var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner: *typesystem.StringPrimitive, zero-terminated) + var cret **C.gchar // return, transfer: none, C Pointers: 2, Name: array[utf8], scope: , array (inner gchar* (*typesystem.StringPrimitive), zero-terminated) cret = C.gst_tag_xmp_list_schemas() @@ -1722,7 +1726,7 @@ func TagXmpListSchemas() []string { _ = goret _ = cret - panic("unimplemented conversion of []string (const gchar**)") + panic("unimplemented conversion of []string (const gchar**) because of unknown reason") return goret } @@ -2189,10 +2193,10 @@ func UnsafeApplyTagDemuxOverrides[Instance TagDemux](gclass unsafe.Pointer, over pclass := (*C.GstTagDemuxClass)(gclass) if overrides.IdentifyTag != nil { - pclass.identify_tag = (*[0]byte)(C._gotk4_gsttag1_TagDemux_identify_tag) + pclass.identify_tag = (*[0]byte)(C._goglib_gsttag1_TagDemux_identify_tag) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gsttag1_TagDemux_identify_tag", + "_goglib_gsttag1_TagDemux_identify_tag", func(carg0 *C.GstTagDemux, carg1 *C.GstBuffer, carg2 C.gboolean, carg3 *C.guint) (cret C.gboolean) { var demux Instance // go GstTagDemux subclass var buffer *gst.Buffer // in, none, converted @@ -2207,7 +2211,7 @@ func UnsafeApplyTagDemuxOverrides[Instance TagDemux](gclass unsafe.Pointer, over } _ = tagSize _ = carg3 - panic("unimplemented conversion of *uint (guint*)") + panic("unimplemented conversion of *uint (guint*) because of unknown reason") goret = overrides.IdentifyTag(demux, buffer, startTag, tagSize) @@ -2221,10 +2225,10 @@ func UnsafeApplyTagDemuxOverrides[Instance TagDemux](gclass unsafe.Pointer, over } if overrides.MergeTags != nil { - pclass.merge_tags = (*[0]byte)(C._gotk4_gsttag1_TagDemux_merge_tags) + pclass.merge_tags = (*[0]byte)(C._goglib_gsttag1_TagDemux_merge_tags) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gsttag1_TagDemux_merge_tags", + "_goglib_gsttag1_TagDemux_merge_tags", func(carg0 *C.GstTagDemux, carg1 *C.GstTagList, carg2 *C.GstTagList) (cret *C.GstTagList) { var demux Instance // go GstTagDemux subclass var startTags *gst.TagList // in, none, converted @@ -2277,9 +2281,9 @@ func (demux *TagDemuxInstance) ParentIdentifyTag(buffer *gst.Buffer, startTag bo } _ = tagSize _ = carg3 - panic("unimplemented conversion of *uint (guint*)") + panic("unimplemented conversion of *uint (guint*) because of no basic converter found") - cret = C._gotk4_gsttag1_TagDemux_virtual_identify_tag(unsafe.Pointer(parentclass.identify_tag), carg0, carg1, carg2, carg3) + cret = C._goglib_gsttag1_TagDemux_virtual_identify_tag(unsafe.Pointer(parentclass.identify_tag), carg0, carg1, carg2, carg3) runtime.KeepAlive(demux) runtime.KeepAlive(buffer) runtime.KeepAlive(startTag) @@ -2322,7 +2326,7 @@ func (demux *TagDemuxInstance) ParentMergeTags(startTags *gst.TagList, endTags * carg1 = (*C.GstTagList)(gst.UnsafeTagListToGlibNone(startTags)) carg2 = (*C.GstTagList)(gst.UnsafeTagListToGlibNone(endTags)) - cret = C._gotk4_gsttag1_TagDemux_virtual_merge_tags(unsafe.Pointer(parentclass.merge_tags), carg0, carg1, carg2) + cret = C._goglib_gsttag1_TagDemux_virtual_merge_tags(unsafe.Pointer(parentclass.merge_tags), carg0, carg1, carg2) runtime.KeepAlive(demux) runtime.KeepAlive(startTags) runtime.KeepAlive(endTags) @@ -2522,10 +2526,10 @@ func UnsafeApplyTagMuxOverrides[Instance TagMux](gclass unsafe.Pointer, override pclass := (*C.GstTagMuxClass)(gclass) if overrides.RenderEndTag != nil { - pclass.render_end_tag = (*[0]byte)(C._gotk4_gsttag1_TagMux_render_end_tag) + pclass.render_end_tag = (*[0]byte)(C._goglib_gsttag1_TagMux_render_end_tag) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gsttag1_TagMux_render_end_tag", + "_goglib_gsttag1_TagMux_render_end_tag", func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { var mux Instance // go GstTagMux subclass var tagList *gst.TagList // in, none, converted @@ -2544,10 +2548,10 @@ func UnsafeApplyTagMuxOverrides[Instance TagMux](gclass unsafe.Pointer, override } if overrides.RenderStartTag != nil { - pclass.render_start_tag = (*[0]byte)(C._gotk4_gsttag1_TagMux_render_start_tag) + pclass.render_start_tag = (*[0]byte)(C._goglib_gsttag1_TagMux_render_start_tag) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gsttag1_TagMux_render_start_tag", + "_goglib_gsttag1_TagMux_render_start_tag", func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { var mux Instance // go GstTagMux subclass var tagList *gst.TagList // in, none, converted @@ -2589,7 +2593,7 @@ func (mux *TagMuxInstance) ParentRenderEndTag(tagList *gst.TagList) *gst.Buffer carg0 = (*C.GstTagMux)(UnsafeTagMuxToGlibNone(mux)) carg1 = (*C.GstTagList)(gst.UnsafeTagListToGlibNone(tagList)) - cret = C._gotk4_gsttag1_TagMux_virtual_render_end_tag(unsafe.Pointer(parentclass.render_end_tag), carg0, carg1) + cret = C._goglib_gsttag1_TagMux_virtual_render_end_tag(unsafe.Pointer(parentclass.render_end_tag), carg0, carg1) runtime.KeepAlive(mux) runtime.KeepAlive(tagList) @@ -2623,7 +2627,7 @@ func (mux *TagMuxInstance) ParentRenderStartTag(tagList *gst.TagList) *gst.Buffe carg0 = (*C.GstTagMux)(UnsafeTagMuxToGlibNone(mux)) carg1 = (*C.GstTagList)(gst.UnsafeTagListToGlibNone(tagList)) - cret = C._gotk4_gsttag1_TagMux_virtual_render_start_tag(unsafe.Pointer(parentclass.render_start_tag), carg0, carg1) + cret = C._goglib_gsttag1_TagMux_virtual_render_start_tag(unsafe.Pointer(parentclass.render_start_tag), carg0, carg1) runtime.KeepAlive(mux) runtime.KeepAlive(tagList) diff --git a/pkg/gsttag/gsttag_export.gen.go b/pkg/gsttag/gsttag_export.gen.go index f3160c8..a259a5a 100644 --- a/pkg/gsttag/gsttag_export.gen.go +++ b/pkg/gsttag/gsttag_export.gen.go @@ -5,55 +5,55 @@ package gsttag import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/classdata" ) // #include import "C" -//export _gotk4_gsttag1_TagDemux_identify_tag -func _gotk4_gsttag1_TagDemux_identify_tag(carg0 *C.GstTagDemux, carg1 *C.GstBuffer, carg2 C.gboolean, carg3 *C.guint) (cret C.gboolean) { +//export _goglib_gsttag1_TagDemux_identify_tag +func _goglib_gsttag1_TagDemux_identify_tag(carg0 *C.GstTagDemux, carg1 *C.GstBuffer, carg2 C.gboolean, carg3 *C.guint) (cret C.gboolean) { var fn func(carg0 *C.GstTagDemux, carg1 *C.GstBuffer, carg2 C.gboolean, carg3 *C.guint) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gsttag1_TagDemux_identify_tag").(func(carg0 *C.GstTagDemux, carg1 *C.GstBuffer, carg2 C.gboolean, carg3 *C.guint) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gsttag1_TagDemux_identify_tag").(func(carg0 *C.GstTagDemux, carg1 *C.GstBuffer, carg2 C.gboolean, carg3 *C.guint) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gsttag1_TagDemux_identify_tag: no function pointer found") + panic("_goglib_gsttag1_TagDemux_identify_tag: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gsttag1_TagDemux_merge_tags -func _gotk4_gsttag1_TagDemux_merge_tags(carg0 *C.GstTagDemux, carg1 *C.GstTagList, carg2 *C.GstTagList) (cret *C.GstTagList) { +//export _goglib_gsttag1_TagDemux_merge_tags +func _goglib_gsttag1_TagDemux_merge_tags(carg0 *C.GstTagDemux, carg1 *C.GstTagList, carg2 *C.GstTagList) (cret *C.GstTagList) { var fn func(carg0 *C.GstTagDemux, carg1 *C.GstTagList, carg2 *C.GstTagList) (cret *C.GstTagList) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gsttag1_TagDemux_merge_tags").(func(carg0 *C.GstTagDemux, carg1 *C.GstTagList, carg2 *C.GstTagList) (cret *C.GstTagList)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gsttag1_TagDemux_merge_tags").(func(carg0 *C.GstTagDemux, carg1 *C.GstTagList, carg2 *C.GstTagList) (cret *C.GstTagList)) if fn == nil { - panic("_gotk4_gsttag1_TagDemux_merge_tags: no function pointer found") + panic("_goglib_gsttag1_TagDemux_merge_tags: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gsttag1_TagMux_render_end_tag -func _gotk4_gsttag1_TagMux_render_end_tag(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { +//export _goglib_gsttag1_TagMux_render_end_tag +func _goglib_gsttag1_TagMux_render_end_tag(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { var fn func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gsttag1_TagMux_render_end_tag").(func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gsttag1_TagMux_render_end_tag").(func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gsttag1_TagMux_render_end_tag: no function pointer found") + panic("_goglib_gsttag1_TagMux_render_end_tag: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gsttag1_TagMux_render_start_tag -func _gotk4_gsttag1_TagMux_render_start_tag(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { +//export _goglib_gsttag1_TagMux_render_start_tag +func _goglib_gsttag1_TagMux_render_start_tag(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { var fn func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gsttag1_TagMux_render_start_tag").(func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gsttag1_TagMux_render_start_tag").(func(carg0 *C.GstTagMux, carg1 *C.GstTagList) (cret *C.GstBuffer)) if fn == nil { - panic("_gotk4_gsttag1_TagMux_render_start_tag: no function pointer found") + panic("_goglib_gsttag1_TagMux_render_start_tag: no function pointer found") } } return fn(carg0, carg1) diff --git a/pkg/gstvideo/gstvideo.gen.go b/pkg/gstvideo/gstvideo.gen.go index 8e367eb..cf4a3d6 100644 --- a/pkg/gstvideo/gstvideo.gen.go +++ b/pkg/gstvideo/gstvideo.gen.go @@ -9,10 +9,9 @@ import ( "strings" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstbase" ) @@ -20,226 +19,224 @@ import ( // #cgo pkg-config: gstreamer-video-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern void _gotk4_gstvideo1_VideoConvertSampleCallback(GstSample*, GError*, gpointer); -// extern void destroyUserdata(gpointer); -// extern void _gotk4_gstvideo1_ColorBalanceChannel_value_changed(GstColorBalanceChannel*, gint); -// void _gotk4_gstvideo1_ColorBalanceChannel_virtual_value_changed(void* fnptr, GstColorBalanceChannel* carg0, gint carg1) { +// extern void _goglib_gstvideo1_ColorBalanceChannel_value_changed(GstColorBalanceChannel*, gint); +// void _goglib_gstvideo1_ColorBalanceChannel_virtual_value_changed(void* fnptr, GstColorBalanceChannel* carg0, gint carg1) { // return ((void (*) (GstColorBalanceChannel*, gint))(fnptr))(carg0, carg1); // } -// extern GstFlowReturn _gotk4_gstvideo1_VideoAggregator_aggregate_frames(GstVideoAggregator*, GstBuffer*); -// extern void _gotk4_gstvideo1_VideoAggregator_find_best_format(GstVideoAggregator*, GstCaps*, GstVideoInfo*, gboolean); -// extern GstCaps* _gotk4_gstvideo1_VideoAggregator_update_caps(GstVideoAggregator*, GstCaps*); -// GstFlowReturn _gotk4_gstvideo1_VideoAggregator_virtual_aggregate_frames(void* fnptr, GstVideoAggregator* carg0, GstBuffer* carg1) { +// extern GstFlowReturn _goglib_gstvideo1_VideoAggregator_aggregate_frames(GstVideoAggregator*, GstBuffer*); +// extern void _goglib_gstvideo1_VideoAggregator_find_best_format(GstVideoAggregator*, GstCaps*, GstVideoInfo*, gboolean); +// extern GstCaps* _goglib_gstvideo1_VideoAggregator_update_caps(GstVideoAggregator*, GstCaps*); +// GstFlowReturn _goglib_gstvideo1_VideoAggregator_virtual_aggregate_frames(void* fnptr, GstVideoAggregator* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstVideoAggregator*, GstBuffer*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstvideo1_VideoAggregator_virtual_find_best_format(void* fnptr, GstVideoAggregator* carg0, GstCaps* carg1, GstVideoInfo* carg2, gboolean* carg3) { +// void _goglib_gstvideo1_VideoAggregator_virtual_find_best_format(void* fnptr, GstVideoAggregator* carg0, GstCaps* carg1, GstVideoInfo* carg2, gboolean* carg3) { // return ((void (*) (GstVideoAggregator*, GstCaps*, GstVideoInfo*, gboolean*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstCaps* _gotk4_gstvideo1_VideoAggregator_virtual_update_caps(void* fnptr, GstVideoAggregator* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstvideo1_VideoAggregator_virtual_update_caps(void* fnptr, GstVideoAggregator* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstVideoAggregator*, GstCaps*))(fnptr))(carg0, carg1); // } -// extern void _gotk4_gstvideo1_VideoAggregatorPad_clean_frame(GstVideoAggregatorPad*, GstVideoAggregator*, GstVideoFrame*); -// extern gboolean _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame(GstVideoAggregatorPad*, GstVideoAggregator*, GstBuffer*, GstVideoFrame*); -// extern void _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish(GstVideoAggregatorPad*, GstVideoAggregator*, GstVideoFrame*); -// extern void _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start(GstVideoAggregatorPad*, GstVideoAggregator*, GstBuffer*, GstVideoFrame*); -// extern void _gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info(GstVideoAggregatorPad*); -// void _gotk4_gstvideo1_VideoAggregatorPad_virtual_clean_frame(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstVideoFrame* carg2) { +// extern void _goglib_gstvideo1_VideoAggregatorPad_clean_frame(GstVideoAggregatorPad*, GstVideoAggregator*, GstVideoFrame*); +// extern gboolean _goglib_gstvideo1_VideoAggregatorPad_prepare_frame(GstVideoAggregatorPad*, GstVideoAggregator*, GstBuffer*, GstVideoFrame*); +// extern void _goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish(GstVideoAggregatorPad*, GstVideoAggregator*, GstVideoFrame*); +// extern void _goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start(GstVideoAggregatorPad*, GstVideoAggregator*, GstBuffer*, GstVideoFrame*); +// extern void _goglib_gstvideo1_VideoAggregatorPad_update_conversion_info(GstVideoAggregatorPad*); +// void _goglib_gstvideo1_VideoAggregatorPad_virtual_clean_frame(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstVideoFrame* carg2) { // return ((void (*) (GstVideoAggregatorPad*, GstVideoAggregator*, GstVideoFrame*))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstvideo1_VideoAggregatorPad_virtual_prepare_frame(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstBuffer* carg2, GstVideoFrame* carg3) { +// gboolean _goglib_gstvideo1_VideoAggregatorPad_virtual_prepare_frame(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstBuffer* carg2, GstVideoFrame* carg3) { // return ((gboolean (*) (GstVideoAggregatorPad*, GstVideoAggregator*, GstBuffer*, GstVideoFrame*))(fnptr))(carg0, carg1, carg2, carg3); // } -// void _gotk4_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_finish(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstVideoFrame* carg2) { +// void _goglib_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_finish(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstVideoFrame* carg2) { // return ((void (*) (GstVideoAggregatorPad*, GstVideoAggregator*, GstVideoFrame*))(fnptr))(carg0, carg1, carg2); // } -// void _gotk4_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_start(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstBuffer* carg2, GstVideoFrame* carg3) { +// void _goglib_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_start(void* fnptr, GstVideoAggregatorPad* carg0, GstVideoAggregator* carg1, GstBuffer* carg2, GstVideoFrame* carg3) { // return ((void (*) (GstVideoAggregatorPad*, GstVideoAggregator*, GstBuffer*, GstVideoFrame*))(fnptr))(carg0, carg1, carg2, carg3); // } -// void _gotk4_gstvideo1_VideoAggregatorPad_virtual_update_conversion_info(void* fnptr, GstVideoAggregatorPad* carg0) { +// void _goglib_gstvideo1_VideoAggregatorPad_virtual_update_conversion_info(void* fnptr, GstVideoAggregatorPad* carg0) { // return ((void (*) (GstVideoAggregatorPad*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstvideo1_VideoDecoder_close(GstVideoDecoder*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_decide_allocation(GstVideoDecoder*, GstQuery*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoDecoder_drain(GstVideoDecoder*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoDecoder_finish(GstVideoDecoder*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_flush(GstVideoDecoder*); -// extern GstCaps* _gotk4_gstvideo1_VideoDecoder_getcaps(GstVideoDecoder*, GstCaps*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoDecoder_handle_frame(GstVideoDecoder*, GstVideoCodecFrame*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_handle_missing_data(GstVideoDecoder*, GstClockTime, GstClockTime); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_negotiate(GstVideoDecoder*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_open(GstVideoDecoder*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoDecoder_parse(GstVideoDecoder*, GstVideoCodecFrame*, GstAdapter*, gboolean); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_propose_allocation(GstVideoDecoder*, GstQuery*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_reset(GstVideoDecoder*, gboolean); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_set_format(GstVideoDecoder*, GstVideoCodecState*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_sink_event(GstVideoDecoder*, GstEvent*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_sink_query(GstVideoDecoder*, GstQuery*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_src_event(GstVideoDecoder*, GstEvent*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_src_query(GstVideoDecoder*, GstQuery*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_start(GstVideoDecoder*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_stop(GstVideoDecoder*); -// extern gboolean _gotk4_gstvideo1_VideoDecoder_transform_meta(GstVideoDecoder*, GstVideoCodecFrame*, GstMeta*); -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_close(void* fnptr, GstVideoDecoder* carg0) { +// extern gboolean _goglib_gstvideo1_VideoDecoder_close(GstVideoDecoder*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_decide_allocation(GstVideoDecoder*, GstQuery*); +// extern GstFlowReturn _goglib_gstvideo1_VideoDecoder_drain(GstVideoDecoder*); +// extern GstFlowReturn _goglib_gstvideo1_VideoDecoder_finish(GstVideoDecoder*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_flush(GstVideoDecoder*); +// extern GstCaps* _goglib_gstvideo1_VideoDecoder_getcaps(GstVideoDecoder*, GstCaps*); +// extern GstFlowReturn _goglib_gstvideo1_VideoDecoder_handle_frame(GstVideoDecoder*, GstVideoCodecFrame*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_handle_missing_data(GstVideoDecoder*, GstClockTime, GstClockTime); +// extern gboolean _goglib_gstvideo1_VideoDecoder_negotiate(GstVideoDecoder*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_open(GstVideoDecoder*); +// extern GstFlowReturn _goglib_gstvideo1_VideoDecoder_parse(GstVideoDecoder*, GstVideoCodecFrame*, GstAdapter*, gboolean); +// extern gboolean _goglib_gstvideo1_VideoDecoder_propose_allocation(GstVideoDecoder*, GstQuery*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_reset(GstVideoDecoder*, gboolean); +// extern gboolean _goglib_gstvideo1_VideoDecoder_set_format(GstVideoDecoder*, GstVideoCodecState*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_sink_event(GstVideoDecoder*, GstEvent*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_sink_query(GstVideoDecoder*, GstQuery*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_src_event(GstVideoDecoder*, GstEvent*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_src_query(GstVideoDecoder*, GstQuery*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_start(GstVideoDecoder*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_stop(GstVideoDecoder*); +// extern gboolean _goglib_gstvideo1_VideoDecoder_transform_meta(GstVideoDecoder*, GstVideoCodecFrame*, GstMeta*); +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_close(void* fnptr, GstVideoDecoder* carg0) { // return ((gboolean (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_decide_allocation(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_decide_allocation(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstvideo1_VideoDecoder_virtual_drain(void* fnptr, GstVideoDecoder* carg0) { +// GstFlowReturn _goglib_gstvideo1_VideoDecoder_virtual_drain(void* fnptr, GstVideoDecoder* carg0) { // return ((GstFlowReturn (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstvideo1_VideoDecoder_virtual_finish(void* fnptr, GstVideoDecoder* carg0) { +// GstFlowReturn _goglib_gstvideo1_VideoDecoder_virtual_finish(void* fnptr, GstVideoDecoder* carg0) { // return ((GstFlowReturn (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_flush(void* fnptr, GstVideoDecoder* carg0) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_flush(void* fnptr, GstVideoDecoder* carg0) { // return ((gboolean (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// GstCaps* _gotk4_gstvideo1_VideoDecoder_virtual_getcaps(void* fnptr, GstVideoDecoder* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstvideo1_VideoDecoder_virtual_getcaps(void* fnptr, GstVideoDecoder* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstVideoDecoder*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstvideo1_VideoDecoder_virtual_handle_frame(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecFrame* carg1) { +// GstFlowReturn _goglib_gstvideo1_VideoDecoder_virtual_handle_frame(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecFrame* carg1) { // return ((GstFlowReturn (*) (GstVideoDecoder*, GstVideoCodecFrame*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_handle_missing_data(void* fnptr, GstVideoDecoder* carg0, GstClockTime carg1, GstClockTime carg2) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_handle_missing_data(void* fnptr, GstVideoDecoder* carg0, GstClockTime carg1, GstClockTime carg2) { // return ((gboolean (*) (GstVideoDecoder*, GstClockTime, GstClockTime))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_negotiate(void* fnptr, GstVideoDecoder* carg0) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_negotiate(void* fnptr, GstVideoDecoder* carg0) { // return ((gboolean (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_open(void* fnptr, GstVideoDecoder* carg0) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_open(void* fnptr, GstVideoDecoder* carg0) { // return ((gboolean (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstvideo1_VideoDecoder_virtual_parse(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecFrame* carg1, GstAdapter* carg2, gboolean carg3) { +// GstFlowReturn _goglib_gstvideo1_VideoDecoder_virtual_parse(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecFrame* carg1, GstAdapter* carg2, gboolean carg3) { // return ((GstFlowReturn (*) (GstVideoDecoder*, GstVideoCodecFrame*, GstAdapter*, gboolean))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_propose_allocation(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_propose_allocation(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_reset(void* fnptr, GstVideoDecoder* carg0, gboolean carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_reset(void* fnptr, GstVideoDecoder* carg0, gboolean carg1) { // return ((gboolean (*) (GstVideoDecoder*, gboolean))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_set_format(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecState* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_set_format(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecState* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstVideoCodecState*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_sink_event(void* fnptr, GstVideoDecoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_sink_event(void* fnptr, GstVideoDecoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_sink_query(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_sink_query(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_src_event(void* fnptr, GstVideoDecoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_src_event(void* fnptr, GstVideoDecoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_src_query(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_src_query(void* fnptr, GstVideoDecoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoDecoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_start(void* fnptr, GstVideoDecoder* carg0) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_start(void* fnptr, GstVideoDecoder* carg0) { // return ((gboolean (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_stop(void* fnptr, GstVideoDecoder* carg0) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_stop(void* fnptr, GstVideoDecoder* carg0) { // return ((gboolean (*) (GstVideoDecoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoDecoder_virtual_transform_meta(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecFrame* carg1, GstMeta* carg2) { +// gboolean _goglib_gstvideo1_VideoDecoder_virtual_transform_meta(void* fnptr, GstVideoDecoder* carg0, GstVideoCodecFrame* carg1, GstMeta* carg2) { // return ((gboolean (*) (GstVideoDecoder*, GstVideoCodecFrame*, GstMeta*))(fnptr))(carg0, carg1, carg2); // } -// extern gboolean _gotk4_gstvideo1_VideoEncoder_close(GstVideoEncoder*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_decide_allocation(GstVideoEncoder*, GstQuery*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoEncoder_finish(GstVideoEncoder*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_flush(GstVideoEncoder*); -// extern GstCaps* _gotk4_gstvideo1_VideoEncoder_getcaps(GstVideoEncoder*, GstCaps*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoEncoder_handle_frame(GstVideoEncoder*, GstVideoCodecFrame*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_negotiate(GstVideoEncoder*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_open(GstVideoEncoder*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoEncoder_pre_push(GstVideoEncoder*, GstVideoCodecFrame*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_propose_allocation(GstVideoEncoder*, GstQuery*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_reset(GstVideoEncoder*, gboolean); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_set_format(GstVideoEncoder*, GstVideoCodecState*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_sink_event(GstVideoEncoder*, GstEvent*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_sink_query(GstVideoEncoder*, GstQuery*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_src_event(GstVideoEncoder*, GstEvent*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_src_query(GstVideoEncoder*, GstQuery*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_start(GstVideoEncoder*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_stop(GstVideoEncoder*); -// extern gboolean _gotk4_gstvideo1_VideoEncoder_transform_meta(GstVideoEncoder*, GstVideoCodecFrame*, GstMeta*); -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_close(void* fnptr, GstVideoEncoder* carg0) { +// extern gboolean _goglib_gstvideo1_VideoEncoder_close(GstVideoEncoder*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_decide_allocation(GstVideoEncoder*, GstQuery*); +// extern GstFlowReturn _goglib_gstvideo1_VideoEncoder_finish(GstVideoEncoder*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_flush(GstVideoEncoder*); +// extern GstCaps* _goglib_gstvideo1_VideoEncoder_getcaps(GstVideoEncoder*, GstCaps*); +// extern GstFlowReturn _goglib_gstvideo1_VideoEncoder_handle_frame(GstVideoEncoder*, GstVideoCodecFrame*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_negotiate(GstVideoEncoder*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_open(GstVideoEncoder*); +// extern GstFlowReturn _goglib_gstvideo1_VideoEncoder_pre_push(GstVideoEncoder*, GstVideoCodecFrame*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_propose_allocation(GstVideoEncoder*, GstQuery*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_reset(GstVideoEncoder*, gboolean); +// extern gboolean _goglib_gstvideo1_VideoEncoder_set_format(GstVideoEncoder*, GstVideoCodecState*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_sink_event(GstVideoEncoder*, GstEvent*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_sink_query(GstVideoEncoder*, GstQuery*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_src_event(GstVideoEncoder*, GstEvent*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_src_query(GstVideoEncoder*, GstQuery*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_start(GstVideoEncoder*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_stop(GstVideoEncoder*); +// extern gboolean _goglib_gstvideo1_VideoEncoder_transform_meta(GstVideoEncoder*, GstVideoCodecFrame*, GstMeta*); +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_close(void* fnptr, GstVideoEncoder* carg0) { // return ((gboolean (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_decide_allocation(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_decide_allocation(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstvideo1_VideoEncoder_virtual_finish(void* fnptr, GstVideoEncoder* carg0) { +// GstFlowReturn _goglib_gstvideo1_VideoEncoder_virtual_finish(void* fnptr, GstVideoEncoder* carg0) { // return ((GstFlowReturn (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_flush(void* fnptr, GstVideoEncoder* carg0) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_flush(void* fnptr, GstVideoEncoder* carg0) { // return ((gboolean (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// GstCaps* _gotk4_gstvideo1_VideoEncoder_virtual_getcaps(void* fnptr, GstVideoEncoder* carg0, GstCaps* carg1) { +// GstCaps* _goglib_gstvideo1_VideoEncoder_virtual_getcaps(void* fnptr, GstVideoEncoder* carg0, GstCaps* carg1) { // return ((GstCaps* (*) (GstVideoEncoder*, GstCaps*))(fnptr))(carg0, carg1); // } -// GstFlowReturn _gotk4_gstvideo1_VideoEncoder_virtual_handle_frame(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecFrame* carg1) { +// GstFlowReturn _goglib_gstvideo1_VideoEncoder_virtual_handle_frame(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecFrame* carg1) { // return ((GstFlowReturn (*) (GstVideoEncoder*, GstVideoCodecFrame*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_negotiate(void* fnptr, GstVideoEncoder* carg0) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_negotiate(void* fnptr, GstVideoEncoder* carg0) { // return ((gboolean (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_open(void* fnptr, GstVideoEncoder* carg0) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_open(void* fnptr, GstVideoEncoder* carg0) { // return ((gboolean (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// GstFlowReturn _gotk4_gstvideo1_VideoEncoder_virtual_pre_push(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecFrame* carg1) { +// GstFlowReturn _goglib_gstvideo1_VideoEncoder_virtual_pre_push(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecFrame* carg1) { // return ((GstFlowReturn (*) (GstVideoEncoder*, GstVideoCodecFrame*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_propose_allocation(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_propose_allocation(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_reset(void* fnptr, GstVideoEncoder* carg0, gboolean carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_reset(void* fnptr, GstVideoEncoder* carg0, gboolean carg1) { // return ((gboolean (*) (GstVideoEncoder*, gboolean))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_set_format(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecState* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_set_format(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecState* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstVideoCodecState*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_sink_event(void* fnptr, GstVideoEncoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_sink_event(void* fnptr, GstVideoEncoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_sink_query(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_sink_query(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_src_event(void* fnptr, GstVideoEncoder* carg0, GstEvent* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_src_event(void* fnptr, GstVideoEncoder* carg0, GstEvent* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstEvent*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_src_query(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_src_query(void* fnptr, GstVideoEncoder* carg0, GstQuery* carg1) { // return ((gboolean (*) (GstVideoEncoder*, GstQuery*))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_start(void* fnptr, GstVideoEncoder* carg0) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_start(void* fnptr, GstVideoEncoder* carg0) { // return ((gboolean (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_stop(void* fnptr, GstVideoEncoder* carg0) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_stop(void* fnptr, GstVideoEncoder* carg0) { // return ((gboolean (*) (GstVideoEncoder*))(fnptr))(carg0); // } -// gboolean _gotk4_gstvideo1_VideoEncoder_virtual_transform_meta(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecFrame* carg1, GstMeta* carg2) { +// gboolean _goglib_gstvideo1_VideoEncoder_virtual_transform_meta(void* fnptr, GstVideoEncoder* carg0, GstVideoCodecFrame* carg1, GstMeta* carg2) { // return ((gboolean (*) (GstVideoEncoder*, GstVideoCodecFrame*, GstMeta*))(fnptr))(carg0, carg1, carg2); // } -// extern gboolean _gotk4_gstvideo1_VideoFilter_set_info(GstVideoFilter*, GstCaps*, GstVideoInfo*, GstCaps*, GstVideoInfo*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoFilter_transform_frame(GstVideoFilter*, GstVideoFrame*, GstVideoFrame*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoFilter_transform_frame_ip(GstVideoFilter*, GstVideoFrame*); -// gboolean _gotk4_gstvideo1_VideoFilter_virtual_set_info(void* fnptr, GstVideoFilter* carg0, GstCaps* carg1, GstVideoInfo* carg2, GstCaps* carg3, GstVideoInfo* carg4) { +// extern gboolean _goglib_gstvideo1_VideoFilter_set_info(GstVideoFilter*, GstCaps*, GstVideoInfo*, GstCaps*, GstVideoInfo*); +// extern GstFlowReturn _goglib_gstvideo1_VideoFilter_transform_frame(GstVideoFilter*, GstVideoFrame*, GstVideoFrame*); +// extern GstFlowReturn _goglib_gstvideo1_VideoFilter_transform_frame_ip(GstVideoFilter*, GstVideoFrame*); +// gboolean _goglib_gstvideo1_VideoFilter_virtual_set_info(void* fnptr, GstVideoFilter* carg0, GstCaps* carg1, GstVideoInfo* carg2, GstCaps* carg3, GstVideoInfo* carg4) { // return ((gboolean (*) (GstVideoFilter*, GstCaps*, GstVideoInfo*, GstCaps*, GstVideoInfo*))(fnptr))(carg0, carg1, carg2, carg3, carg4); // } -// GstFlowReturn _gotk4_gstvideo1_VideoFilter_virtual_transform_frame(void* fnptr, GstVideoFilter* carg0, GstVideoFrame* carg1, GstVideoFrame* carg2) { +// GstFlowReturn _goglib_gstvideo1_VideoFilter_virtual_transform_frame(void* fnptr, GstVideoFilter* carg0, GstVideoFrame* carg1, GstVideoFrame* carg2) { // return ((GstFlowReturn (*) (GstVideoFilter*, GstVideoFrame*, GstVideoFrame*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstvideo1_VideoFilter_virtual_transform_frame_ip(void* fnptr, GstVideoFilter* carg0, GstVideoFrame* carg1) { +// GstFlowReturn _goglib_gstvideo1_VideoFilter_virtual_transform_frame_ip(void* fnptr, GstVideoFilter* carg0, GstVideoFrame* carg1) { // return ((GstFlowReturn (*) (GstVideoFilter*, GstVideoFrame*))(fnptr))(carg0, carg1); // } -// extern gboolean _gotk4_gstvideo1_VideoSink_set_info(GstVideoSink*, GstCaps*, const GstVideoInfo*); -// extern GstFlowReturn _gotk4_gstvideo1_VideoSink_show_frame(GstVideoSink*, GstBuffer*); -// gboolean _gotk4_gstvideo1_VideoSink_virtual_set_info(void* fnptr, GstVideoSink* carg0, GstCaps* carg1, const GstVideoInfo* carg2) { +// extern gboolean _goglib_gstvideo1_VideoSink_set_info(GstVideoSink*, GstCaps*, const GstVideoInfo*); +// extern GstFlowReturn _goglib_gstvideo1_VideoSink_show_frame(GstVideoSink*, GstBuffer*); +// gboolean _goglib_gstvideo1_VideoSink_virtual_set_info(void* fnptr, GstVideoSink* carg0, GstCaps* carg1, const GstVideoInfo* carg2) { // return ((gboolean (*) (GstVideoSink*, GstCaps*, const GstVideoInfo*))(fnptr))(carg0, carg1, carg2); // } -// GstFlowReturn _gotk4_gstvideo1_VideoSink_virtual_show_frame(void* fnptr, GstVideoSink* carg0, GstBuffer* carg1) { +// GstFlowReturn _goglib_gstvideo1_VideoSink_virtual_show_frame(void* fnptr, GstVideoSink* carg0, GstBuffer* carg1) { // return ((GstFlowReturn (*) (GstVideoSink*, GstBuffer*))(fnptr))(carg0, carg1); // } -// extern void _gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info(GstVideoAggregatorConvertPad*, GstVideoAggregator*, GstVideoInfo*); -// void _gotk4_gstvideo1_VideoAggregatorConvertPad_virtual_create_conversion_info(void* fnptr, GstVideoAggregatorConvertPad* carg0, GstVideoAggregator* carg1, GstVideoInfo* carg2) { +// extern void _goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info(GstVideoAggregatorConvertPad*, GstVideoAggregator*, GstVideoInfo*); +// void _goglib_gstvideo1_VideoAggregatorConvertPad_virtual_create_conversion_info(void* fnptr, GstVideoAggregatorConvertPad* carg0, GstVideoAggregator* carg1, GstVideoInfo* carg2) { // return ((void (*) (GstVideoAggregatorConvertPad*, GstVideoAggregator*, GstVideoInfo*))(fnptr))(carg0, carg1, carg2); // } import "C" @@ -5570,14 +5567,6 @@ func (f VideoTimeCodeFlags) String() string { return "VideoTimeCodeFlags(" + strings.Join(parts, "|") + ")" } -// VideoConvertSampleCallback wraps GstVideoConvertSampleCallback -// -// The function takes the following parameters: -// -// - sample *gst.Sample -// - err error -type VideoConvertSampleCallback func(sample *gst.Sample, err error) - // AncillaryMetaAPIGetType wraps gst_ancillary_meta_api_get_type // // The function returns the following values: @@ -5760,7 +5749,7 @@ func BufferAddVideoBarMeta(buffer *gst.Buffer, field uint8, isLetterbox bool, ba func BufferAddVideoCaptionMeta(buffer *gst.Buffer, captionType VideoCaptionType, data []uint8) *VideoCaptionMeta { var carg1 *C.GstBuffer // in, none, converted var carg2 C.GstVideoCaptionType // in, none, casted - var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg4) + var carg3 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg4) var carg4 C.gsize // implicit var cret *C.GstVideoCaptionMeta // return, none, converted @@ -5769,7 +5758,7 @@ func BufferAddVideoCaptionMeta(buffer *gst.Buffer, captionType VideoCaptionType, _ = data _ = carg3 _ = carg4 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_buffer_add_video_caption_meta(carg1, carg2, carg3, carg4) runtime.KeepAlive(buffer) @@ -5887,8 +5876,8 @@ func BufferAddVideoMetaFull(buffer *gst.Buffer, flags VideoFrameFlags, format Vi var carg4 C.guint // in, none, casted var carg5 C.guint // in, none, casted var carg6 C.guint // in, none, casted - var carg7 *C.gsize // in, transfer: none, C Pointers: 1, Name: array[gsize], array (inner: *typesystem.CastablePrimitive, fixed-size: 4) - var carg8 *C.gint // in, transfer: none, C Pointers: 1, Name: array[gint], array (inner: *typesystem.CastablePrimitive, fixed-size: 4) + var carg7 *C.gsize // in, none, array fixed size (inner: gsize, size: 4) + var carg8 *C.gint // in, none, array fixed size (inner: gint, size: 4) var cret *C.GstVideoMeta // return, none, converted carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) @@ -5897,12 +5886,20 @@ func BufferAddVideoMetaFull(buffer *gst.Buffer, flags VideoFrameFlags, format Vi carg4 = C.guint(width) carg5 = C.guint(height) carg6 = C.guint(nPlanes) - _ = offset - _ = carg7 - panic("unimplemented conversion of [4]uint (const gsize*)") - _ = stride - _ = carg8 - panic("unimplemented conversion of [4]int32 (const gint*)") + { + var carr [4]C.gsize + for i := range 4 { + carr[i] = C.gsize(offset[i]) + carg7 = unsafe.SliceData(carr[:]) + } + } + { + var carr [4]C.gint + for i := range 4 { + carr[i] = C.gint(stride[i]) + carg8 = unsafe.SliceData(carr[:]) + } + } cret = C.gst_buffer_add_video_meta_full(carg1, carg2, carg3, carg4, carg5, carg6, carg7, carg8) runtime.KeepAlive(buffer) @@ -6078,11 +6075,11 @@ func BufferAddVideoSeiUserDataUnregisteredMeta(buffer *gst.Buffer, uuid *uint8, carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) _ = uuid _ = carg2 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") if data != nil { _ = data _ = carg3 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") } carg4 = C.gsize(size) @@ -6463,7 +6460,7 @@ func VideoBlendScaleLinearRgba(src *VideoInfo, srcBuffer *gst.Buffer, destHeight _ = dest _ = carg5 - panic("unimplemented conversion of VideoInfo (GstVideoInfo)") + panic("unimplemented conversion of VideoInfo (GstVideoInfo) because of unknown reason") destBuffer = gst.UnsafeBufferFromGlibFull(unsafe.Pointer(carg6)) return dest, destBuffer @@ -6581,7 +6578,7 @@ func VideoCenterRect(src *VideoRectangle, dst *VideoRectangle, scaling bool) Vid _ = result _ = carg3 - panic("unimplemented conversion of VideoRectangle (GstVideoRectangle)") + panic("unimplemented conversion of VideoRectangle (GstVideoRectangle) because of unknown reason") return result } @@ -6650,50 +6647,6 @@ func VideoConvertSample(sample *gst.Sample, toCaps *gst.Caps, timeout gst.ClockT return goret, _goerr } -// VideoConvertSampleAsync wraps gst_video_convert_sample_async -// -// The function takes the following parameters: -// -// - sample *gst.Sample: a #GstSample -// - toCaps *gst.Caps: the #GstCaps to convert to -// - timeout gst.ClockTime: the maximum amount of time allowed for the processing. -// - callback VideoConvertSampleCallback: %GstVideoConvertSampleCallback that will be called after conversion. -// -// Converts a raw video buffer into the specified output caps. -// -// The output caps can be any raw video formats or any image formats (jpeg, png, ...). -// -// The width, height and pixel-aspect-ratio can also be specified in the output caps. -// -// @callback will be called after conversion, when an error occurred or if conversion didn't -// finish after @timeout. @callback will always be called from the thread default -// %GMainContext, see g_main_context_get_thread_default(). If GLib before 2.22 is used, -// this will always be the global default main context. -// -// @destroy_notify will be called after the callback was called and @user_data is not needed -// anymore. -func VideoConvertSampleAsync(sample *gst.Sample, toCaps *gst.Caps, timeout gst.ClockTime, callback VideoConvertSampleCallback) { - var carg1 *C.GstSample // in, none, converted - var carg2 *C.GstCaps // in, none, converted - var carg3 C.GstClockTime // in, none, casted, alias - var carg4 C.GstVideoConvertSampleCallback // callback, scope: notified, closure: carg5, destroy: carg6 - var carg5 C.gpointer // implicit - var carg6 C.GDestroyNotify // implicit - - carg1 = (*C.GstSample)(gst.UnsafeSampleToGlibNone(sample)) - carg2 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(toCaps)) - carg3 = C.GstClockTime(timeout) - carg4 = (*[0]byte)(C._gotk4_gstvideo1_VideoConvertSampleCallback) - carg5 = C.gpointer(userdata.Register(callback)) - carg6 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) - - C.gst_video_convert_sample_async(carg1, carg2, carg3, carg4, carg5, carg6) - runtime.KeepAlive(sample) - runtime.KeepAlive(toCaps) - runtime.KeepAlive(timeout) - runtime.KeepAlive(callback) -} - // VideoCropMetaAPIGetType wraps gst_video_crop_meta_api_get_type // // The function returns the following values: @@ -6734,7 +6687,7 @@ func VideoDmaDrmFormatFromGstFormat(format VideoFormat, modifier *uint64) uint32 if modifier != nil { _ = modifier _ = carg2 - panic("unimplemented conversion of *uint64 (guint64*)") + panic("unimplemented conversion of *uint64 (guint64*) because of no basic converter found") } cret = C.gst_video_dma_drm_format_from_gst_format(carg1, carg2) @@ -7227,7 +7180,7 @@ func VideoEventParseUpstreamForceKeyUnit(event *gst.Event) (gst.ClockTime, bool, // template cpas. func VideoFormatsAny() (uint, []VideoFormat) { var carg1 C.guint // out, full, casted - var cret *C.GstVideoFormat // return, transfer: none, C Pointers: 1, Name: array[VideoFormat], scope: , array (inner: *typesystem.Enum) + var cret *C.GstVideoFormat // return, transfer: none, C Pointers: 1, Name: array[VideoFormat], scope: , array (inner GstVideoFormat (*typesystem.Enum)) cret = C.gst_video_formats_any(&carg1) @@ -7237,7 +7190,7 @@ func VideoFormatsAny() (uint, []VideoFormat) { len = uint(carg1) _ = goret _ = cret - panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*)") + panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*) because of unknown reason") return len, goret } @@ -7252,7 +7205,7 @@ func VideoFormatsAny() (uint, []VideoFormat) { // Return all the raw video formats supported by GStreamer. func VideoFormatsRaw() (uint, []VideoFormat) { var carg1 C.guint // out, full, casted - var cret *C.GstVideoFormat // return, transfer: none, C Pointers: 1, Name: array[VideoFormat], scope: , array (inner: *typesystem.Enum) + var cret *C.GstVideoFormat // return, transfer: none, C Pointers: 1, Name: array[VideoFormat], scope: , array (inner GstVideoFormat (*typesystem.Enum)) cret = C.gst_video_formats_raw(&carg1) @@ -7262,7 +7215,7 @@ func VideoFormatsRaw() (uint, []VideoFormat) { len = uint(carg1) _ = goret _ = cret - panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*)") + panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*) because of unknown reason") return len, goret } @@ -7415,14 +7368,14 @@ func VideoIsDmaDrmCaps(caps *gst.Caps) bool { // If @formats is %NULL returns a caps for all the supported raw video formats, // see gst_video_formats_raw(). func VideoMakeRawCaps(formats []VideoFormat) *gst.Caps { - var carg1 *C.GstVideoFormat // in, transfer: none, C Pointers: 1, Name: array[VideoFormat], nullable, array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstVideoFormat // in, transfer: none, C Pointers: 1, Name: array[VideoFormat], nullable, array (inner GstVideoFormat (*typesystem.Enum), length-by: carg2) var carg2 C.guint // implicit var cret *C.GstCaps // return, full, converted _ = formats _ = carg1 _ = carg2 - panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*)") + panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*) because of unimplemented: non-fixed size array") cret = C.gst_video_make_raw_caps(carg1, carg2) runtime.KeepAlive(formats) @@ -7450,7 +7403,7 @@ func VideoMakeRawCaps(formats []VideoFormat) *gst.Caps { // If @formats is %NULL returns a caps for all the supported video formats, // see gst_video_formats_raw(). func VideoMakeRawCapsWithFeatures(formats []VideoFormat, features *gst.CapsFeatures) *gst.Caps { - var carg1 *C.GstVideoFormat // in, transfer: none, C Pointers: 1, Name: array[VideoFormat], nullable, array (inner: *typesystem.Enum, length-by: carg2) + var carg1 *C.GstVideoFormat // in, transfer: none, C Pointers: 1, Name: array[VideoFormat], nullable, array (inner GstVideoFormat (*typesystem.Enum), length-by: carg2) var carg2 C.guint // implicit var carg3 *C.GstCapsFeatures // in, full, converted, nullable var cret *C.GstCaps // return, full, converted @@ -7458,7 +7411,7 @@ func VideoMakeRawCapsWithFeatures(formats []VideoFormat, features *gst.CapsFeatu _ = formats _ = carg1 _ = carg2 - panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*)") + panic("unimplemented conversion of []VideoFormat (const GstVideoFormat*) because of unimplemented: non-fixed size array") if features != nil { carg3 = (*C.GstCapsFeatures)(gst.UnsafeCapsFeaturesToGlibFull(features)) } @@ -9606,13 +9559,13 @@ func NavigationQuerySetAngles(query *gst.Query, curAngle uint, nAngles uint) { func NavigationQuerySetCommandsv(query *gst.Query, cmds []NavigationCommand) { var carg1 *C.GstQuery // in, none, converted var carg2 C.gint // implicit - var carg3 *C.GstNavigationCommand // in, transfer: none, C Pointers: 1, Name: array[NavigationCommand], array (inner: *typesystem.Enum, length-by: carg2) + var carg3 *C.GstNavigationCommand // in, transfer: none, C Pointers: 1, Name: array[NavigationCommand], array (inner GstNavigationCommand (*typesystem.Enum), length-by: carg2) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) _ = cmds _ = carg3 _ = carg2 - panic("unimplemented conversion of []NavigationCommand (GstNavigationCommand*)") + panic("unimplemented conversion of []NavigationCommand (GstNavigationCommand*) because of unimplemented: non-fixed size array") C.gst_navigation_query_set_commandsv(carg1, carg2, carg3) runtime.KeepAlive(query) @@ -10891,10 +10844,10 @@ func UnsafeApplyColorBalanceChannelOverrides[Instance ColorBalanceChannel](gclas pclass := (*C.GstColorBalanceChannelClass)(gclass) if overrides.ValueChanged != nil { - pclass.value_changed = (*[0]byte)(C._gotk4_gstvideo1_ColorBalanceChannel_value_changed) + pclass.value_changed = (*[0]byte)(C._goglib_gstvideo1_ColorBalanceChannel_value_changed) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_ColorBalanceChannel_value_changed", + "_goglib_gstvideo1_ColorBalanceChannel_value_changed", func(carg0 *C.GstColorBalanceChannel, carg1 C.gint) { var channel Instance // go GstColorBalanceChannel subclass var value int32 // in, none, casted @@ -10925,7 +10878,7 @@ func (channel *ColorBalanceChannelInstance) ParentValueChanged(value int32) { carg0 = (*C.GstColorBalanceChannel)(UnsafeColorBalanceChannelToGlibNone(channel)) carg1 = C.gint(value) - C._gotk4_gstvideo1_ColorBalanceChannel_virtual_value_changed(unsafe.Pointer(parentclass.value_changed), carg0, carg1) + C._goglib_gstvideo1_ColorBalanceChannel_virtual_value_changed(unsafe.Pointer(parentclass.value_changed), carg0, carg1) runtime.KeepAlive(channel) runtime.KeepAlive(value) } @@ -11182,10 +11135,10 @@ func UnsafeApplyVideoAggregatorOverrides[Instance VideoAggregator](gclass unsafe pclass := (*C.GstVideoAggregatorClass)(gclass) if overrides.AggregateFrames != nil { - pclass.aggregate_frames = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregator_aggregate_frames) + pclass.aggregate_frames = (*[0]byte)(C._goglib_gstvideo1_VideoAggregator_aggregate_frames) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregator_aggregate_frames", + "_goglib_gstvideo1_VideoAggregator_aggregate_frames", func(carg0 *C.GstVideoAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var videoaggregator Instance // go GstVideoAggregator subclass var outbuffer *gst.Buffer // in, none, converted @@ -11204,10 +11157,10 @@ func UnsafeApplyVideoAggregatorOverrides[Instance VideoAggregator](gclass unsafe } if overrides.FindBestFormat != nil { - pclass.find_best_format = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregator_find_best_format) + pclass.find_best_format = (*[0]byte)(C._goglib_gstvideo1_VideoAggregator_find_best_format) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregator_find_best_format", + "_goglib_gstvideo1_VideoAggregator_find_best_format", func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.gboolean) { var vagg Instance // go GstVideoAggregator subclass var downstreamCaps *gst.Caps // in, none, converted @@ -11228,10 +11181,10 @@ func UnsafeApplyVideoAggregatorOverrides[Instance VideoAggregator](gclass unsafe } if overrides.UpdateCaps != nil { - pclass.update_caps = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregator_update_caps) + pclass.update_caps = (*[0]byte)(C._goglib_gstvideo1_VideoAggregator_update_caps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregator_update_caps", + "_goglib_gstvideo1_VideoAggregator_update_caps", func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { var videoaggregator Instance // go GstVideoAggregator subclass var caps *gst.Caps // in, none, converted @@ -11277,7 +11230,7 @@ func (videoaggregator *VideoAggregatorInstance) ParentAggregateFrames(outbuffer carg0 = (*C.GstVideoAggregator)(UnsafeVideoAggregatorToGlibNone(videoaggregator)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(outbuffer)) - cret = C._gotk4_gstvideo1_VideoAggregator_virtual_aggregate_frames(unsafe.Pointer(parentclass.aggregate_frames), carg0, carg1) + cret = C._goglib_gstvideo1_VideoAggregator_virtual_aggregate_frames(unsafe.Pointer(parentclass.aggregate_frames), carg0, carg1) runtime.KeepAlive(videoaggregator) runtime.KeepAlive(outbuffer) @@ -11311,7 +11264,7 @@ func (vagg *VideoAggregatorInstance) ParentFindBestFormat(downstreamCaps *gst.Ca carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(downstreamCaps)) carg2 = (*C.GstVideoInfo)(UnsafeVideoInfoToGlibNone(bestInfo)) - C._gotk4_gstvideo1_VideoAggregator_virtual_find_best_format(unsafe.Pointer(parentclass.find_best_format), carg0, carg1, carg2, &carg3) + C._goglib_gstvideo1_VideoAggregator_virtual_find_best_format(unsafe.Pointer(parentclass.find_best_format), carg0, carg1, carg2, &carg3) runtime.KeepAlive(vagg) runtime.KeepAlive(downstreamCaps) runtime.KeepAlive(bestInfo) @@ -11349,7 +11302,7 @@ func (videoaggregator *VideoAggregatorInstance) ParentUpdateCaps(caps *gst.Caps) carg0 = (*C.GstVideoAggregator)(UnsafeVideoAggregatorToGlibNone(videoaggregator)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) - cret = C._gotk4_gstvideo1_VideoAggregator_virtual_update_caps(unsafe.Pointer(parentclass.update_caps), carg0, carg1) + cret = C._goglib_gstvideo1_VideoAggregator_virtual_update_caps(unsafe.Pointer(parentclass.update_caps), carg0, carg1) runtime.KeepAlive(videoaggregator) runtime.KeepAlive(caps) @@ -11747,10 +11700,10 @@ func UnsafeApplyVideoAggregatorPadOverrides[Instance VideoAggregatorPad](gclass pclass := (*C.GstVideoAggregatorPadClass)(gclass) if overrides.CleanFrame != nil { - pclass.clean_frame = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregatorPad_clean_frame) + pclass.clean_frame = (*[0]byte)(C._goglib_gstvideo1_VideoAggregatorPad_clean_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregatorPad_clean_frame", + "_goglib_gstvideo1_VideoAggregatorPad_clean_frame", func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { var pad Instance // go GstVideoAggregatorPad subclass var videoaggregator VideoAggregator // in, none, converted @@ -11766,10 +11719,10 @@ func UnsafeApplyVideoAggregatorPadOverrides[Instance VideoAggregatorPad](gclass } if overrides.PrepareFrame != nil { - pclass.prepare_frame = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregatorPad_prepare_frame) + pclass.prepare_frame = (*[0]byte)(C._goglib_gstvideo1_VideoAggregatorPad_prepare_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame", + "_goglib_gstvideo1_VideoAggregatorPad_prepare_frame", func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) (cret C.gboolean) { var pad Instance // go GstVideoAggregatorPad subclass var videoaggregator VideoAggregator // in, none, converted @@ -11794,10 +11747,10 @@ func UnsafeApplyVideoAggregatorPadOverrides[Instance VideoAggregatorPad](gclass } if overrides.PrepareFrameFinish != nil { - pclass.prepare_frame_finish = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish) + pclass.prepare_frame_finish = (*[0]byte)(C._goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish", + "_goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish", func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { var pad Instance // go GstVideoAggregatorPad subclass var videoaggregator VideoAggregator // in, none, converted @@ -11813,10 +11766,10 @@ func UnsafeApplyVideoAggregatorPadOverrides[Instance VideoAggregatorPad](gclass } if overrides.PrepareFrameStart != nil { - pclass.prepare_frame_start = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start) + pclass.prepare_frame_start = (*[0]byte)(C._goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start", + "_goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start", func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) { var pad Instance // go GstVideoAggregatorPad subclass var videoaggregator VideoAggregator // in, none, converted @@ -11834,10 +11787,10 @@ func UnsafeApplyVideoAggregatorPadOverrides[Instance VideoAggregatorPad](gclass } if overrides.UpdateConversionInfo != nil { - pclass.update_conversion_info = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info) + pclass.update_conversion_info = (*[0]byte)(C._goglib_gstvideo1_VideoAggregatorPad_update_conversion_info) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info", + "_goglib_gstvideo1_VideoAggregatorPad_update_conversion_info", func(carg0 *C.GstVideoAggregatorPad) { var pad Instance // go GstVideoAggregatorPad subclass @@ -11869,7 +11822,7 @@ func (pad *VideoAggregatorPadInstance) ParentCleanFrame(videoaggregator VideoAgg carg1 = (*C.GstVideoAggregator)(UnsafeVideoAggregatorToGlibNone(videoaggregator)) carg2 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(preparedFrame)) - C._gotk4_gstvideo1_VideoAggregatorPad_virtual_clean_frame(unsafe.Pointer(parentclass.clean_frame), carg0, carg1, carg2) + C._goglib_gstvideo1_VideoAggregatorPad_virtual_clean_frame(unsafe.Pointer(parentclass.clean_frame), carg0, carg1, carg2) runtime.KeepAlive(pad) runtime.KeepAlive(videoaggregator) runtime.KeepAlive(preparedFrame) @@ -11905,7 +11858,7 @@ func (pad *VideoAggregatorPadInstance) ParentPrepareFrame(videoaggregator VideoA carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) carg3 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(preparedFrame)) - cret = C._gotk4_gstvideo1_VideoAggregatorPad_virtual_prepare_frame(unsafe.Pointer(parentclass.prepare_frame), carg0, carg1, carg2, carg3) + cret = C._goglib_gstvideo1_VideoAggregatorPad_virtual_prepare_frame(unsafe.Pointer(parentclass.prepare_frame), carg0, carg1, carg2, carg3) runtime.KeepAlive(pad) runtime.KeepAlive(videoaggregator) runtime.KeepAlive(buffer) @@ -11942,7 +11895,7 @@ func (pad *VideoAggregatorPadInstance) ParentPrepareFrameFinish(videoaggregator carg1 = (*C.GstVideoAggregator)(UnsafeVideoAggregatorToGlibNone(videoaggregator)) carg2 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(preparedFrame)) - C._gotk4_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_finish(unsafe.Pointer(parentclass.prepare_frame_finish), carg0, carg1, carg2) + C._goglib_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_finish(unsafe.Pointer(parentclass.prepare_frame_finish), carg0, carg1, carg2) runtime.KeepAlive(pad) runtime.KeepAlive(videoaggregator) runtime.KeepAlive(preparedFrame) @@ -11973,7 +11926,7 @@ func (pad *VideoAggregatorPadInstance) ParentPrepareFrameStart(videoaggregator V carg2 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buffer)) carg3 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(preparedFrame)) - C._gotk4_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_start(unsafe.Pointer(parentclass.prepare_frame_start), carg0, carg1, carg2, carg3) + C._goglib_gstvideo1_VideoAggregatorPad_virtual_prepare_frame_start(unsafe.Pointer(parentclass.prepare_frame_start), carg0, carg1, carg2, carg3) runtime.KeepAlive(pad) runtime.KeepAlive(videoaggregator) runtime.KeepAlive(buffer) @@ -11992,7 +11945,7 @@ func (pad *VideoAggregatorPadInstance) ParentUpdateConversionInfo() { carg0 = (*C.GstVideoAggregatorPad)(UnsafeVideoAggregatorPadToGlibNone(pad)) - C._gotk4_gstvideo1_VideoAggregatorPad_virtual_update_conversion_info(unsafe.Pointer(parentclass.update_conversion_info), carg0) + C._goglib_gstvideo1_VideoAggregatorPad_virtual_update_conversion_info(unsafe.Pointer(parentclass.update_conversion_info), carg0) runtime.KeepAlive(pad) } @@ -13464,7 +13417,7 @@ func (decoder *VideoDecoderInstance) GetAllocator() (gst.Allocator, gst.Allocati } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -14752,10 +14705,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point pclass := (*C.GstVideoDecoderClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_close) + pclass.close = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_close", + "_goglib_gstvideo1_VideoDecoder_close", func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var goret bool // return @@ -14774,10 +14727,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_decide_allocation", + "_goglib_gstvideo1_VideoDecoder_decide_allocation", func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var query *gst.Query // in, none, converted @@ -14798,10 +14751,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Drain != nil { - pclass.drain = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_drain) + pclass.drain = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_drain) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_drain", + "_goglib_gstvideo1_VideoDecoder_drain", func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { var decoder Instance // go GstVideoDecoder subclass var goret gst.FlowReturn // return, none, casted @@ -14818,10 +14771,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Finish != nil { - pclass.finish = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_finish) + pclass.finish = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_finish) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_finish", + "_goglib_gstvideo1_VideoDecoder_finish", func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { var decoder Instance // go GstVideoDecoder subclass var goret gst.FlowReturn // return, none, casted @@ -14838,10 +14791,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Flush != nil { - pclass.flush = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_flush) + pclass.flush = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_flush) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_flush", + "_goglib_gstvideo1_VideoDecoder_flush", func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var goret bool // return @@ -14860,10 +14813,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Getcaps != nil { - pclass.getcaps = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_getcaps) + pclass.getcaps = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_getcaps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_getcaps", + "_goglib_gstvideo1_VideoDecoder_getcaps", func(carg0 *C.GstVideoDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var decoder Instance // go GstVideoDecoder subclass var filter *gst.Caps // in, none, converted @@ -14882,10 +14835,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.HandleFrame != nil { - pclass.handle_frame = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_handle_frame) + pclass.handle_frame = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_handle_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_handle_frame", + "_goglib_gstvideo1_VideoDecoder_handle_frame", func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { var decoder Instance // go GstVideoDecoder subclass var frame *VideoCodecFrame // in, full, converted @@ -14904,10 +14857,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.HandleMissingData != nil { - pclass.handle_missing_data = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_handle_missing_data) + pclass.handle_missing_data = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_handle_missing_data) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_handle_missing_data", + "_goglib_gstvideo1_VideoDecoder_handle_missing_data", func(carg0 *C.GstVideoDecoder, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var timestamp gst.ClockTime // in, none, casted, alias @@ -14930,10 +14883,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Negotiate != nil { - pclass.negotiate = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_negotiate) + pclass.negotiate = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_negotiate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_negotiate", + "_goglib_gstvideo1_VideoDecoder_negotiate", func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var goret bool // return @@ -14952,10 +14905,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_open) + pclass.open = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_open", + "_goglib_gstvideo1_VideoDecoder_open", func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var goret bool // return @@ -14974,10 +14927,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Parse != nil { - pclass.parse = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_parse) + pclass.parse = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_parse) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_parse", + "_goglib_gstvideo1_VideoDecoder_parse", func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstAdapter, carg3 C.gboolean) (cret C.GstFlowReturn) { var decoder Instance // go GstVideoDecoder subclass var frame *VideoCodecFrame // in, none, converted @@ -15002,10 +14955,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_propose_allocation", + "_goglib_gstvideo1_VideoDecoder_propose_allocation", func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var query *gst.Query // in, none, converted @@ -15026,10 +14979,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Reset != nil { - pclass.reset = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_reset) + pclass.reset = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_reset) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_reset", + "_goglib_gstvideo1_VideoDecoder_reset", func(carg0 *C.GstVideoDecoder, carg1 C.gboolean) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var hard bool // in @@ -15052,10 +15005,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.SetFormat != nil { - pclass.set_format = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_set_format) + pclass.set_format = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_set_format) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_set_format", + "_goglib_gstvideo1_VideoDecoder_set_format", func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var state *VideoCodecState // in, none, converted @@ -15076,10 +15029,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_sink_event", + "_goglib_gstvideo1_VideoDecoder_sink_event", func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var event *gst.Event // in, none, converted @@ -15100,10 +15053,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.SinkQuery != nil { - pclass.sink_query = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_sink_query) + pclass.sink_query = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_sink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_sink_query", + "_goglib_gstvideo1_VideoDecoder_sink_query", func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var query *gst.Query // in, none, converted @@ -15124,10 +15077,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_src_event", + "_goglib_gstvideo1_VideoDecoder_src_event", func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var event *gst.Event // in, none, converted @@ -15148,10 +15101,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.SrcQuery != nil { - pclass.src_query = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_src_query) + pclass.src_query = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_src_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_src_query", + "_goglib_gstvideo1_VideoDecoder_src_query", func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var query *gst.Query // in, none, converted @@ -15172,10 +15125,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_start) + pclass.start = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_start", + "_goglib_gstvideo1_VideoDecoder_start", func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var goret bool // return @@ -15194,10 +15147,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_stop) + pclass.stop = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_stop", + "_goglib_gstvideo1_VideoDecoder_stop", func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var goret bool // return @@ -15216,10 +15169,10 @@ func UnsafeApplyVideoDecoderOverrides[Instance VideoDecoder](gclass unsafe.Point } if overrides.TransformMeta != nil { - pclass.transform_meta = (*[0]byte)(C._gotk4_gstvideo1_VideoDecoder_transform_meta) + pclass.transform_meta = (*[0]byte)(C._goglib_gstvideo1_VideoDecoder_transform_meta) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoDecoder_transform_meta", + "_goglib_gstvideo1_VideoDecoder_transform_meta", func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { var decoder Instance // go GstVideoDecoder subclass var frame *VideoCodecFrame // in, none, converted @@ -15260,7 +15213,7 @@ func (decoder *VideoDecoderInstance) ParentClose() bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(decoder) var goret bool @@ -15299,7 +15252,7 @@ func (decoder *VideoDecoderInstance) ParentDecideAllocation(query *gst.Query) bo carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(query) @@ -15332,7 +15285,7 @@ func (decoder *VideoDecoderInstance) ParentDrain() gst.FlowReturn { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_drain(unsafe.Pointer(parentclass.drain), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_drain(unsafe.Pointer(parentclass.drain), carg0) runtime.KeepAlive(decoder) var goret gst.FlowReturn @@ -15360,7 +15313,7 @@ func (decoder *VideoDecoderInstance) ParentFinish() gst.FlowReturn { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_finish(unsafe.Pointer(parentclass.finish), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_finish(unsafe.Pointer(parentclass.finish), carg0) runtime.KeepAlive(decoder) var goret gst.FlowReturn @@ -15388,7 +15341,7 @@ func (decoder *VideoDecoderInstance) ParentFlush() bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) runtime.KeepAlive(decoder) var goret bool @@ -15426,7 +15379,7 @@ func (decoder *VideoDecoderInstance) ParentGetcaps(filter *gst.Caps) *gst.Caps { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(filter) @@ -15457,7 +15410,7 @@ func (decoder *VideoDecoderInstance) ParentHandleFrame(frame *VideoCodecFrame) g carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstVideoCodecFrame)(UnsafeVideoCodecFrameToGlibFull(frame)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(frame) @@ -15491,7 +15444,7 @@ func (decoder *VideoDecoderInstance) ParentHandleMissingData(timestamp gst.Clock carg1 = C.GstClockTime(timestamp) carg2 = C.GstClockTime(duration) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_handle_missing_data(unsafe.Pointer(parentclass.handle_missing_data), carg0, carg1, carg2) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_handle_missing_data(unsafe.Pointer(parentclass.handle_missing_data), carg0, carg1, carg2) runtime.KeepAlive(decoder) runtime.KeepAlive(timestamp) runtime.KeepAlive(duration) @@ -15523,7 +15476,7 @@ func (decoder *VideoDecoderInstance) ParentNegotiate() bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) runtime.KeepAlive(decoder) var goret bool @@ -15553,7 +15506,7 @@ func (decoder *VideoDecoderInstance) ParentOpen() bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) runtime.KeepAlive(decoder) var goret bool @@ -15597,7 +15550,7 @@ func (decoder *VideoDecoderInstance) ParentParse(frame *VideoCodecFrame, adapter carg3 = C.TRUE } - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_parse(unsafe.Pointer(parentclass.parse), carg0, carg1, carg2, carg3) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_parse(unsafe.Pointer(parentclass.parse), carg0, carg1, carg2, carg3) runtime.KeepAlive(decoder) runtime.KeepAlive(frame) runtime.KeepAlive(adapter) @@ -15635,7 +15588,7 @@ func (decoder *VideoDecoderInstance) ParentProposeAllocation(query *gst.Query) b carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(query) @@ -15674,7 +15627,7 @@ func (decoder *VideoDecoderInstance) ParentReset(hard bool) bool { carg1 = C.TRUE } - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_reset(unsafe.Pointer(parentclass.reset), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_reset(unsafe.Pointer(parentclass.reset), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(hard) @@ -15709,7 +15662,7 @@ func (decoder *VideoDecoderInstance) ParentSetFormat(state *VideoCodecState) boo carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstVideoCodecState)(UnsafeVideoCodecStateToGlibNone(state)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(state) @@ -15749,7 +15702,7 @@ func (decoder *VideoDecoderInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(event) @@ -15788,7 +15741,7 @@ func (decoder *VideoDecoderInstance) ParentSinkQuery(query *gst.Query) bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(query) @@ -15828,7 +15781,7 @@ func (decoder *VideoDecoderInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(event) @@ -15867,7 +15820,7 @@ func (decoder *VideoDecoderInstance) ParentSrcQuery(query *gst.Query) bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) runtime.KeepAlive(decoder) runtime.KeepAlive(query) @@ -15898,7 +15851,7 @@ func (decoder *VideoDecoderInstance) ParentStart() bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(decoder) var goret bool @@ -15928,7 +15881,7 @@ func (decoder *VideoDecoderInstance) ParentStop() bool { carg0 = (*C.GstVideoDecoder)(UnsafeVideoDecoderToGlibNone(decoder)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(decoder) var goret bool @@ -15969,7 +15922,7 @@ func (decoder *VideoDecoderInstance) ParentTransformMeta(frame *VideoCodecFrame, carg1 = (*C.GstVideoCodecFrame)(UnsafeVideoCodecFrameToGlibNone(frame)) carg2 = (*C.GstMeta)(gst.UnsafeMetaToGlibNone(meta)) - cret = C._gotk4_gstvideo1_VideoDecoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2) + cret = C._goglib_gstvideo1_VideoDecoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2) runtime.KeepAlive(decoder) runtime.KeepAlive(frame) runtime.KeepAlive(meta) @@ -16936,7 +16889,7 @@ func (encoder *VideoEncoderInstance) GetAllocator() (gst.Allocator, gst.Allocati } _ = params _ = carg2 - panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams)") + panic("unimplemented conversion of gst.AllocationParams (GstAllocationParams) because of unknown reason") return allocator, params } @@ -17708,10 +17661,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point pclass := (*C.GstVideoEncoderClass)(gclass) if overrides.Close != nil { - pclass.close = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_close) + pclass.close = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_close) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_close", + "_goglib_gstvideo1_VideoEncoder_close", func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var goret bool // return @@ -17730,10 +17683,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.DecideAllocation != nil { - pclass.decide_allocation = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_decide_allocation) + pclass.decide_allocation = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_decide_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_decide_allocation", + "_goglib_gstvideo1_VideoEncoder_decide_allocation", func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var query *gst.Query // in, none, converted @@ -17754,10 +17707,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Finish != nil { - pclass.finish = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_finish) + pclass.finish = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_finish) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_finish", + "_goglib_gstvideo1_VideoEncoder_finish", func(carg0 *C.GstVideoEncoder) (cret C.GstFlowReturn) { var encoder Instance // go GstVideoEncoder subclass var goret gst.FlowReturn // return, none, casted @@ -17774,10 +17727,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Flush != nil { - pclass.flush = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_flush) + pclass.flush = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_flush) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_flush", + "_goglib_gstvideo1_VideoEncoder_flush", func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var goret bool // return @@ -17796,10 +17749,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Getcaps != nil { - pclass.getcaps = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_getcaps) + pclass.getcaps = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_getcaps) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_getcaps", + "_goglib_gstvideo1_VideoEncoder_getcaps", func(carg0 *C.GstVideoEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var enc Instance // go GstVideoEncoder subclass var filter *gst.Caps // in, none, converted @@ -17818,10 +17771,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.HandleFrame != nil { - pclass.handle_frame = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_handle_frame) + pclass.handle_frame = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_handle_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_handle_frame", + "_goglib_gstvideo1_VideoEncoder_handle_frame", func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { var encoder Instance // go GstVideoEncoder subclass var frame *VideoCodecFrame // in, none, converted @@ -17840,10 +17793,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Negotiate != nil { - pclass.negotiate = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_negotiate) + pclass.negotiate = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_negotiate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_negotiate", + "_goglib_gstvideo1_VideoEncoder_negotiate", func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var goret bool // return @@ -17862,10 +17815,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Open != nil { - pclass.open = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_open) + pclass.open = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_open) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_open", + "_goglib_gstvideo1_VideoEncoder_open", func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var goret bool // return @@ -17884,10 +17837,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.PrePush != nil { - pclass.pre_push = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_pre_push) + pclass.pre_push = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_pre_push) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_pre_push", + "_goglib_gstvideo1_VideoEncoder_pre_push", func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { var encoder Instance // go GstVideoEncoder subclass var frame *VideoCodecFrame // in, none, converted @@ -17906,10 +17859,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.ProposeAllocation != nil { - pclass.propose_allocation = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_propose_allocation) + pclass.propose_allocation = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_propose_allocation) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_propose_allocation", + "_goglib_gstvideo1_VideoEncoder_propose_allocation", func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var query *gst.Query // in, none, converted @@ -17930,10 +17883,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Reset != nil { - pclass.reset = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_reset) + pclass.reset = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_reset) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_reset", + "_goglib_gstvideo1_VideoEncoder_reset", func(carg0 *C.GstVideoEncoder, carg1 C.gboolean) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var hard bool // in @@ -17956,10 +17909,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.SetFormat != nil { - pclass.set_format = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_set_format) + pclass.set_format = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_set_format) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_set_format", + "_goglib_gstvideo1_VideoEncoder_set_format", func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var state *VideoCodecState // in, none, converted @@ -17980,10 +17933,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.SinkEvent != nil { - pclass.sink_event = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_sink_event) + pclass.sink_event = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_sink_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_sink_event", + "_goglib_gstvideo1_VideoEncoder_sink_event", func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var event *gst.Event // in, none, converted @@ -18004,10 +17957,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.SinkQuery != nil { - pclass.sink_query = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_sink_query) + pclass.sink_query = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_sink_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_sink_query", + "_goglib_gstvideo1_VideoEncoder_sink_query", func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var query *gst.Query // in, none, converted @@ -18028,10 +17981,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.SrcEvent != nil { - pclass.src_event = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_src_event) + pclass.src_event = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_src_event) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_src_event", + "_goglib_gstvideo1_VideoEncoder_src_event", func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var event *gst.Event // in, none, converted @@ -18052,10 +18005,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.SrcQuery != nil { - pclass.src_query = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_src_query) + pclass.src_query = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_src_query) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_src_query", + "_goglib_gstvideo1_VideoEncoder_src_query", func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var query *gst.Query // in, none, converted @@ -18076,10 +18029,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Start != nil { - pclass.start = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_start) + pclass.start = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_start) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_start", + "_goglib_gstvideo1_VideoEncoder_start", func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var goret bool // return @@ -18098,10 +18051,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.Stop != nil { - pclass.stop = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_stop) + pclass.stop = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_stop) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_stop", + "_goglib_gstvideo1_VideoEncoder_stop", func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var goret bool // return @@ -18120,10 +18073,10 @@ func UnsafeApplyVideoEncoderOverrides[Instance VideoEncoder](gclass unsafe.Point } if overrides.TransformMeta != nil { - pclass.transform_meta = (*[0]byte)(C._gotk4_gstvideo1_VideoEncoder_transform_meta) + pclass.transform_meta = (*[0]byte)(C._goglib_gstvideo1_VideoEncoder_transform_meta) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoEncoder_transform_meta", + "_goglib_gstvideo1_VideoEncoder_transform_meta", func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { var encoder Instance // go GstVideoEncoder subclass var frame *VideoCodecFrame // in, none, converted @@ -18164,7 +18117,7 @@ func (encoder *VideoEncoderInstance) ParentClose() bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_close(unsafe.Pointer(parentclass.close), carg0) runtime.KeepAlive(encoder) var goret bool @@ -18203,7 +18156,7 @@ func (encoder *VideoEncoderInstance) ParentDecideAllocation(query *gst.Query) bo carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_decide_allocation(unsafe.Pointer(parentclass.decide_allocation), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(query) @@ -18234,7 +18187,7 @@ func (encoder *VideoEncoderInstance) ParentFinish() gst.FlowReturn { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_finish(unsafe.Pointer(parentclass.finish), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_finish(unsafe.Pointer(parentclass.finish), carg0) runtime.KeepAlive(encoder) var goret gst.FlowReturn @@ -18262,7 +18215,7 @@ func (encoder *VideoEncoderInstance) ParentFlush() bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_flush(unsafe.Pointer(parentclass.flush), carg0) runtime.KeepAlive(encoder) var goret bool @@ -18300,7 +18253,7 @@ func (enc *VideoEncoderInstance) ParentGetcaps(filter *gst.Caps) *gst.Caps { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(enc)) carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(filter)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_getcaps(unsafe.Pointer(parentclass.getcaps), carg0, carg1) runtime.KeepAlive(enc) runtime.KeepAlive(filter) @@ -18333,7 +18286,7 @@ func (encoder *VideoEncoderInstance) ParentHandleFrame(frame *VideoCodecFrame) g carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstVideoCodecFrame)(UnsafeVideoCodecFrameToGlibNone(frame)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_handle_frame(unsafe.Pointer(parentclass.handle_frame), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(frame) @@ -18362,7 +18315,7 @@ func (encoder *VideoEncoderInstance) ParentNegotiate() bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_negotiate(unsafe.Pointer(parentclass.negotiate), carg0) runtime.KeepAlive(encoder) var goret bool @@ -18392,7 +18345,7 @@ func (encoder *VideoEncoderInstance) ParentOpen() bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_open(unsafe.Pointer(parentclass.open), carg0) runtime.KeepAlive(encoder) var goret bool @@ -18429,7 +18382,7 @@ func (encoder *VideoEncoderInstance) ParentPrePush(frame *VideoCodecFrame) gst.F carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstVideoCodecFrame)(UnsafeVideoCodecFrameToGlibNone(frame)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_pre_push(unsafe.Pointer(parentclass.pre_push), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_pre_push(unsafe.Pointer(parentclass.pre_push), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(frame) @@ -18465,7 +18418,7 @@ func (encoder *VideoEncoderInstance) ParentProposeAllocation(query *gst.Query) b carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_propose_allocation(unsafe.Pointer(parentclass.propose_allocation), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(query) @@ -18504,7 +18457,7 @@ func (encoder *VideoEncoderInstance) ParentReset(hard bool) bool { carg1 = C.TRUE } - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_reset(unsafe.Pointer(parentclass.reset), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_reset(unsafe.Pointer(parentclass.reset), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(hard) @@ -18542,7 +18495,7 @@ func (encoder *VideoEncoderInstance) ParentSetFormat(state *VideoCodecState) boo carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstVideoCodecState)(UnsafeVideoCodecStateToGlibNone(state)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_set_format(unsafe.Pointer(parentclass.set_format), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(state) @@ -18582,7 +18535,7 @@ func (encoder *VideoEncoderInstance) ParentSinkEvent(event *gst.Event) bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_sink_event(unsafe.Pointer(parentclass.sink_event), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(event) @@ -18621,7 +18574,7 @@ func (encoder *VideoEncoderInstance) ParentSinkQuery(query *gst.Query) bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_sink_query(unsafe.Pointer(parentclass.sink_query), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(query) @@ -18661,7 +18614,7 @@ func (encoder *VideoEncoderInstance) ParentSrcEvent(event *gst.Event) bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstEvent)(gst.UnsafeEventToGlibNone(event)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_src_event(unsafe.Pointer(parentclass.src_event), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(event) @@ -18700,7 +18653,7 @@ func (encoder *VideoEncoderInstance) ParentSrcQuery(query *gst.Query) bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) carg1 = (*C.GstQuery)(gst.UnsafeQueryToGlibNone(query)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_src_query(unsafe.Pointer(parentclass.src_query), carg0, carg1) runtime.KeepAlive(encoder) runtime.KeepAlive(query) @@ -18731,7 +18684,7 @@ func (encoder *VideoEncoderInstance) ParentStart() bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_start(unsafe.Pointer(parentclass.start), carg0) runtime.KeepAlive(encoder) var goret bool @@ -18761,7 +18714,7 @@ func (encoder *VideoEncoderInstance) ParentStop() bool { carg0 = (*C.GstVideoEncoder)(UnsafeVideoEncoderToGlibNone(encoder)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_stop(unsafe.Pointer(parentclass.stop), carg0) runtime.KeepAlive(encoder) var goret bool @@ -18802,7 +18755,7 @@ func (encoder *VideoEncoderInstance) ParentTransformMeta(frame *VideoCodecFrame, carg1 = (*C.GstVideoCodecFrame)(UnsafeVideoCodecFrameToGlibNone(frame)) carg2 = (*C.GstMeta)(gst.UnsafeMetaToGlibNone(meta)) - cret = C._gotk4_gstvideo1_VideoEncoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2) + cret = C._goglib_gstvideo1_VideoEncoder_virtual_transform_meta(unsafe.Pointer(parentclass.transform_meta), carg0, carg1, carg2) runtime.KeepAlive(encoder) runtime.KeepAlive(frame) runtime.KeepAlive(meta) @@ -19019,10 +18972,10 @@ func UnsafeApplyVideoFilterOverrides[Instance VideoFilter](gclass unsafe.Pointer pclass := (*C.GstVideoFilterClass)(gclass) if overrides.SetInfo != nil { - pclass.set_info = (*[0]byte)(C._gotk4_gstvideo1_VideoFilter_set_info) + pclass.set_info = (*[0]byte)(C._goglib_gstvideo1_VideoFilter_set_info) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoFilter_set_info", + "_goglib_gstvideo1_VideoFilter_set_info", func(carg0 *C.GstVideoFilter, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.GstCaps, carg4 *C.GstVideoInfo) (cret C.gboolean) { var filter Instance // go GstVideoFilter subclass var incaps *gst.Caps // in, none, converted @@ -19049,10 +19002,10 @@ func UnsafeApplyVideoFilterOverrides[Instance VideoFilter](gclass unsafe.Pointer } if overrides.TransformFrame != nil { - pclass.transform_frame = (*[0]byte)(C._gotk4_gstvideo1_VideoFilter_transform_frame) + pclass.transform_frame = (*[0]byte)(C._goglib_gstvideo1_VideoFilter_transform_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoFilter_transform_frame", + "_goglib_gstvideo1_VideoFilter_transform_frame", func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame, carg2 *C.GstVideoFrame) (cret C.GstFlowReturn) { var filter Instance // go GstVideoFilter subclass var inframe *VideoFrame // in, none, converted @@ -19073,10 +19026,10 @@ func UnsafeApplyVideoFilterOverrides[Instance VideoFilter](gclass unsafe.Pointer } if overrides.TransformFrameIp != nil { - pclass.transform_frame_ip = (*[0]byte)(C._gotk4_gstvideo1_VideoFilter_transform_frame_ip) + pclass.transform_frame_ip = (*[0]byte)(C._goglib_gstvideo1_VideoFilter_transform_frame_ip) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoFilter_transform_frame_ip", + "_goglib_gstvideo1_VideoFilter_transform_frame_ip", func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame) (cret C.GstFlowReturn) { var trans Instance // go GstVideoFilter subclass var frame *VideoFrame // in, none, converted @@ -19126,7 +19079,7 @@ func (filter *VideoFilterInstance) ParentSetInfo(incaps *gst.Caps, inInfo *Video carg3 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(outcaps)) carg4 = (*C.GstVideoInfo)(UnsafeVideoInfoToGlibNone(outInfo)) - cret = C._gotk4_gstvideo1_VideoFilter_virtual_set_info(unsafe.Pointer(parentclass.set_info), carg0, carg1, carg2, carg3, carg4) + cret = C._goglib_gstvideo1_VideoFilter_virtual_set_info(unsafe.Pointer(parentclass.set_info), carg0, carg1, carg2, carg3, carg4) runtime.KeepAlive(filter) runtime.KeepAlive(incaps) runtime.KeepAlive(inInfo) @@ -19167,7 +19120,7 @@ func (filter *VideoFilterInstance) ParentTransformFrame(inframe *VideoFrame, out carg1 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(inframe)) carg2 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(outframe)) - cret = C._gotk4_gstvideo1_VideoFilter_virtual_transform_frame(unsafe.Pointer(parentclass.transform_frame), carg0, carg1, carg2) + cret = C._goglib_gstvideo1_VideoFilter_virtual_transform_frame(unsafe.Pointer(parentclass.transform_frame), carg0, carg1, carg2) runtime.KeepAlive(filter) runtime.KeepAlive(inframe) runtime.KeepAlive(outframe) @@ -19201,7 +19154,7 @@ func (trans *VideoFilterInstance) ParentTransformFrameIp(frame *VideoFrame) gst. carg0 = (*C.GstVideoFilter)(UnsafeVideoFilterToGlibNone(trans)) carg1 = (*C.GstVideoFrame)(UnsafeVideoFrameToGlibNone(frame)) - cret = C._gotk4_gstvideo1_VideoFilter_virtual_transform_frame_ip(unsafe.Pointer(parentclass.transform_frame_ip), carg0, carg1) + cret = C._goglib_gstvideo1_VideoFilter_virtual_transform_frame_ip(unsafe.Pointer(parentclass.transform_frame_ip), carg0, carg1) runtime.KeepAlive(trans) runtime.KeepAlive(frame) @@ -19391,10 +19344,10 @@ func UnsafeApplyVideoSinkOverrides[Instance VideoSink](gclass unsafe.Pointer, ov pclass := (*C.GstVideoSinkClass)(gclass) if overrides.SetInfo != nil { - pclass.set_info = (*[0]byte)(C._gotk4_gstvideo1_VideoSink_set_info) + pclass.set_info = (*[0]byte)(C._goglib_gstvideo1_VideoSink_set_info) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoSink_set_info", + "_goglib_gstvideo1_VideoSink_set_info", func(carg0 *C.GstVideoSink, carg1 *C.GstCaps, carg2 *C.GstVideoInfo) (cret C.gboolean) { var videoSink Instance // go GstVideoSink subclass var caps *gst.Caps // in, none, converted @@ -19417,10 +19370,10 @@ func UnsafeApplyVideoSinkOverrides[Instance VideoSink](gclass unsafe.Pointer, ov } if overrides.ShowFrame != nil { - pclass.show_frame = (*[0]byte)(C._gotk4_gstvideo1_VideoSink_show_frame) + pclass.show_frame = (*[0]byte)(C._goglib_gstvideo1_VideoSink_show_frame) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoSink_show_frame", + "_goglib_gstvideo1_VideoSink_show_frame", func(carg0 *C.GstVideoSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var videoSink Instance // go GstVideoSink subclass var buf *gst.Buffer // in, none, converted @@ -19464,7 +19417,7 @@ func (videoSink *VideoSinkInstance) ParentSetInfo(caps *gst.Caps, info *VideoInf carg1 = (*C.GstCaps)(gst.UnsafeCapsToGlibNone(caps)) carg2 = (*C.GstVideoInfo)(UnsafeVideoInfoToGlibNone(info)) - cret = C._gotk4_gstvideo1_VideoSink_virtual_set_info(unsafe.Pointer(parentclass.set_info), carg0, carg1, carg2) + cret = C._goglib_gstvideo1_VideoSink_virtual_set_info(unsafe.Pointer(parentclass.set_info), carg0, carg1, carg2) runtime.KeepAlive(videoSink) runtime.KeepAlive(caps) runtime.KeepAlive(info) @@ -19503,7 +19456,7 @@ func (videoSink *VideoSinkInstance) ParentShowFrame(buf *gst.Buffer) gst.FlowRet carg0 = (*C.GstVideoSink)(UnsafeVideoSinkToGlibNone(videoSink)) carg1 = (*C.GstBuffer)(gst.UnsafeBufferToGlibNone(buf)) - cret = C._gotk4_gstvideo1_VideoSink_virtual_show_frame(unsafe.Pointer(parentclass.show_frame), carg0, carg1) + cret = C._goglib_gstvideo1_VideoSink_virtual_show_frame(unsafe.Pointer(parentclass.show_frame), carg0, carg1) runtime.KeepAlive(videoSink) runtime.KeepAlive(buf) @@ -19669,10 +19622,10 @@ func UnsafeApplyVideoAggregatorConvertPadOverrides[Instance VideoAggregatorConve pclass := (*C.GstVideoAggregatorConvertPadClass)(gclass) if overrides.CreateConversionInfo != nil { - pclass.create_conversion_info = (*[0]byte)(C._gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info) + pclass.create_conversion_info = (*[0]byte)(C._goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info", + "_goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info", func(carg0 *C.GstVideoAggregatorConvertPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoInfo) { var pad Instance // go GstVideoAggregatorConvertPad subclass var agg VideoAggregator // in, none, converted @@ -19706,7 +19659,7 @@ func (pad *VideoAggregatorConvertPadInstance) ParentCreateConversionInfo(agg Vid carg1 = (*C.GstVideoAggregator)(UnsafeVideoAggregatorToGlibNone(agg)) carg2 = (*C.GstVideoInfo)(UnsafeVideoInfoToGlibNone(conversionInfo)) - C._gotk4_gstvideo1_VideoAggregatorConvertPad_virtual_create_conversion_info(unsafe.Pointer(parentclass.create_conversion_info), carg0, carg1, carg2) + C._goglib_gstvideo1_VideoAggregatorConvertPad_virtual_create_conversion_info(unsafe.Pointer(parentclass.create_conversion_info), carg0, carg1, carg2) runtime.KeepAlive(pad) runtime.KeepAlive(agg) runtime.KeepAlive(conversionInfo) @@ -20401,12 +20354,16 @@ func VideoAffineTransformationMetaGetInfo() *gst.MetaInfo { // Performs the multiplication, meta->matrix X matrix. func (meta *VideoAffineTransformationMeta) ApplyMatrix(matrix [16]float32) { var carg0 *C.GstVideoAffineTransformationMeta // in, none, converted - var carg1 *C.gfloat // in, transfer: none, C Pointers: 1, Name: array[gfloat], array (inner: *typesystem.CastablePrimitive, fixed-size: 16) + var carg1 *C.gfloat // in, none, array fixed size (inner: gfloat, size: 16) carg0 = (*C.GstVideoAffineTransformationMeta)(UnsafeVideoAffineTransformationMetaToGlibNone(meta)) - _ = matrix - _ = carg1 - panic("unimplemented conversion of [16]float32 (const gfloat*)") + { + var carr [16]C.gfloat + for i := range 16 { + carr[i] = C.gfloat(matrix[i]) + carg1 = unsafe.SliceData(carr[:]) + } + } C.gst_video_affine_transformation_meta_apply_matrix(carg0, carg1) runtime.KeepAlive(meta) @@ -23006,7 +22963,7 @@ func VideoFrameMap(info *VideoInfo, buffer *gst.Buffer, flags gst.MapFlags) (Vid _ = frame _ = carg1 - panic("unimplemented conversion of VideoFrame (GstVideoFrame)") + panic("unimplemented conversion of VideoFrame (GstVideoFrame) because of unknown reason") if cret != 0 { goret = true } @@ -23060,7 +23017,7 @@ func VideoFrameMapID(info *VideoInfo, buffer *gst.Buffer, id int32, flags gst.Ma _ = frame _ = carg1 - panic("unimplemented conversion of VideoFrame (GstVideoFrame)") + panic("unimplemented conversion of VideoFrame (GstVideoFrame) because of unknown reason") if cret != 0 { goret = true } @@ -23274,7 +23231,7 @@ func (meta *VideoGLTextureUploadMeta) Upload(textureId *uint) bool { carg0 = (*C.GstVideoGLTextureUploadMeta)(UnsafeVideoGLTextureUploadMetaToGlibNone(meta)) _ = textureId _ = carg1 - panic("unimplemented conversion of *uint (guint*)") + panic("unimplemented conversion of *uint (guint*) because of no basic converter found") cret = C.gst_video_gl_texture_upload_meta_upload(carg0, carg1) runtime.KeepAlive(meta) @@ -23466,7 +23423,7 @@ func VideoInfoFromCaps(caps *gst.Caps) (VideoInfo, bool) { _ = info _ = carg1 - panic("unimplemented conversion of VideoInfo (GstVideoInfo)") + panic("unimplemented conversion of VideoInfo (GstVideoInfo) because of unknown reason") if cret != 0 { goret = true } @@ -23490,7 +23447,7 @@ func VideoInfoInit() VideoInfo { _ = info _ = carg1 - panic("unimplemented conversion of VideoInfo (GstVideoInfo)") + panic("unimplemented conversion of VideoInfo (GstVideoInfo) because of unknown reason") return info } @@ -23967,7 +23924,7 @@ func VideoInfoDmaDrmFromCaps(caps *gst.Caps) (VideoInfoDmaDrm, bool) { _ = drmInfo _ = carg1 - panic("unimplemented conversion of VideoInfoDmaDrm (GstVideoInfoDmaDrm)") + panic("unimplemented conversion of VideoInfoDmaDrm (GstVideoInfoDmaDrm) because of unknown reason") if cret != 0 { goret = true } @@ -24007,7 +23964,7 @@ func VideoInfoDmaDrmFromVideoInfo(info *VideoInfo, modifier uint64) (VideoInfoDm _ = drmInfo _ = carg1 - panic("unimplemented conversion of VideoInfoDmaDrm (GstVideoInfoDmaDrm)") + panic("unimplemented conversion of VideoInfoDmaDrm (GstVideoInfoDmaDrm) because of unknown reason") if cret != 0 { goret = true } @@ -24031,7 +23988,7 @@ func VideoInfoDmaDrmInit() VideoInfoDmaDrm { _ = drmInfo _ = carg1 - panic("unimplemented conversion of VideoInfoDmaDrm (GstVideoInfoDmaDrm)") + panic("unimplemented conversion of VideoInfoDmaDrm (GstVideoInfoDmaDrm) because of unknown reason") return drmInfo } @@ -24091,7 +24048,7 @@ func (drmInfo *VideoInfoDmaDrm) ToVideoInfo() (VideoInfo, bool) { _ = info _ = carg1 - panic("unimplemented conversion of VideoInfo (GstVideoInfo)") + panic("unimplemented conversion of VideoInfo (GstVideoInfo) because of unknown reason") if cret != 0 { goret = true } @@ -24209,7 +24166,7 @@ func VideoMasteringDisplayInfoFromString(mastering string) (VideoMasteringDispla _ = minfo _ = carg1 - panic("unimplemented conversion of VideoMasteringDisplayInfo (GstVideoMasteringDisplayInfo)") + panic("unimplemented conversion of VideoMasteringDisplayInfo (GstVideoMasteringDisplayInfo) because of unknown reason") if cret != 0 { goret = true } @@ -24572,7 +24529,7 @@ func (meta *VideoMeta) SetAlignment(alignment VideoAlignment) bool { carg0 = (*C.GstVideoMeta)(UnsafeVideoMetaToGlibNone(meta)) _ = alignment _ = carg1 - panic("unimplemented conversion of VideoAlignment (GstVideoAlignment)") + panic("unimplemented conversion of VideoAlignment (GstVideoAlignment) because of no basic converter found") cret = C.gst_video_meta_set_alignment(carg0, carg1) runtime.KeepAlive(meta) @@ -26485,7 +26442,7 @@ func (scale *VideoScaler) GetCoeff(outOffset uint) (uint, uint, *float64) { nTaps = uint(carg3) _ = goret _ = cret - panic("unimplemented conversion of *float64 (const gdouble*)") + panic("unimplemented conversion of *float64 (const gdouble*) because of unknown reason") return inOffset, nTaps, goret } @@ -27576,7 +27533,7 @@ func (encoder *VideoVBIEncoder) AddAncillary(composite bool, did uint8, sdidBloc var carg1 C.gboolean // in var carg2 C.guint8 // in, none, casted var carg3 C.guint8 // in, none, casted - var carg4 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner: *typesystem.CastablePrimitive, length-by: carg5) + var carg4 *C.guint8 // in, transfer: none, C Pointers: 1, Name: array[guint8], array (inner guint8 (*typesystem.CastablePrimitive), length-by: carg5) var carg5 C.guint // implicit var cret C.gboolean // return @@ -27589,7 +27546,7 @@ func (encoder *VideoVBIEncoder) AddAncillary(composite bool, did uint8, sdidBloc _ = data _ = carg4 _ = carg5 - panic("unimplemented conversion of []uint8 (const guint8*)") + panic("unimplemented conversion of []uint8 (const guint8*) because of unimplemented: non-fixed size array") cret = C.gst_video_vbi_encoder_add_ancillary(carg0, carg1, carg2, carg3, carg4, carg5) runtime.KeepAlive(encoder) @@ -27640,7 +27597,7 @@ func (encoder *VideoVBIEncoder) WriteLine(data *uint8) { carg0 = (*C.GstVideoVBIEncoder)(UnsafeVideoVBIEncoderToGlibNone(encoder)) _ = data _ = carg1 - panic("unimplemented conversion of *uint8 (guint8*)") + panic("unimplemented conversion of *uint8 (guint8*) because of no basic converter found") C.gst_video_vbi_encoder_write_line(carg0, carg1) runtime.KeepAlive(encoder) @@ -27821,7 +27778,7 @@ func (parser *VideoVBIParser) GetAncillary() (VideoAncillary, VideoVBIParserResu _ = anc _ = carg1 - panic("unimplemented conversion of VideoAncillary (GstVideoAncillary)") + panic("unimplemented conversion of VideoAncillary (GstVideoAncillary) because of unknown reason") goret = VideoVBIParserResult(cret) return anc, goret diff --git a/pkg/gstvideo/gstvideo_export.gen.go b/pkg/gstvideo/gstvideo_export.gen.go index 38e0084..c7e84b0 100644 --- a/pkg/gstvideo/gstvideo_export.gen.go +++ b/pkg/gstvideo/gstvideo_export.gen.go @@ -5,690 +5,667 @@ package gstvideo import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/go-gst/go-gst/pkg/gst" + "github.com/go-gst/go-glib/pkg/core/classdata" ) // #include import "C" -//export _gotk4_gstvideo1_VideoConvertSampleCallback -func _gotk4_gstvideo1_VideoConvertSampleCallback(carg1 *C.GstSample, carg2 *C.GError, carg3 C.gpointer) { - var fn VideoConvertSampleCallback - { - v := userdata.Load(unsafe.Pointer(carg3)) - if v == nil { - panic(`callback not found`) - } - fn = v.(VideoConvertSampleCallback) - } - - var sample *gst.Sample // in, none, converted - var err error // in, none, converted - - sample = gst.UnsafeSampleFromGlibNone(unsafe.Pointer(carg1)) - err = glib.UnsafeErrorFromGlibNone(unsafe.Pointer(carg2)) - - fn(sample, err) -} - -//export _gotk4_gstvideo1_ColorBalanceChannel_value_changed -func _gotk4_gstvideo1_ColorBalanceChannel_value_changed(carg0 *C.GstColorBalanceChannel, carg1 C.gint) { +//export _goglib_gstvideo1_ColorBalanceChannel_value_changed +func _goglib_gstvideo1_ColorBalanceChannel_value_changed(carg0 *C.GstColorBalanceChannel, carg1 C.gint) { var fn func(carg0 *C.GstColorBalanceChannel, carg1 C.gint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_ColorBalanceChannel_value_changed").(func(carg0 *C.GstColorBalanceChannel, carg1 C.gint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_ColorBalanceChannel_value_changed").(func(carg0 *C.GstColorBalanceChannel, carg1 C.gint)) if fn == nil { - panic("_gotk4_gstvideo1_ColorBalanceChannel_value_changed: no function pointer found") + panic("_goglib_gstvideo1_ColorBalanceChannel_value_changed: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoAggregator_aggregate_frames -func _gotk4_gstvideo1_VideoAggregator_aggregate_frames(carg0 *C.GstVideoAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoAggregator_aggregate_frames +func _goglib_gstvideo1_VideoAggregator_aggregate_frames(carg0 *C.GstVideoAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregator_aggregate_frames").(func(carg0 *C.GstVideoAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregator_aggregate_frames").(func(carg0 *C.GstVideoAggregator, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregator_aggregate_frames: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregator_aggregate_frames: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoAggregator_find_best_format -func _gotk4_gstvideo1_VideoAggregator_find_best_format(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.gboolean) { +//export _goglib_gstvideo1_VideoAggregator_find_best_format +func _goglib_gstvideo1_VideoAggregator_find_best_format(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.gboolean) { var fn func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregator_find_best_format").(func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregator_find_best_format").(func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregator_find_best_format: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregator_find_best_format: no function pointer found") } } fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstvideo1_VideoAggregator_update_caps -func _gotk4_gstvideo1_VideoAggregator_update_caps(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstvideo1_VideoAggregator_update_caps +func _goglib_gstvideo1_VideoAggregator_update_caps(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregator_update_caps").(func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregator_update_caps").(func(carg0 *C.GstVideoAggregator, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregator_update_caps: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregator_update_caps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoAggregatorPad_clean_frame -func _gotk4_gstvideo1_VideoAggregatorPad_clean_frame(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { +//export _goglib_gstvideo1_VideoAggregatorPad_clean_frame +func _goglib_gstvideo1_VideoAggregatorPad_clean_frame(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { var fn func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregatorPad_clean_frame").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregatorPad_clean_frame").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregatorPad_clean_frame: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregatorPad_clean_frame: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame -func _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoAggregatorPad_prepare_frame +func _goglib_gstvideo1_VideoAggregatorPad_prepare_frame(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) (cret C.gboolean) { var fn func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregatorPad_prepare_frame").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregatorPad_prepare_frame: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish -func _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { +//export _goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish +func _goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { var fn func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoFrame)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_finish: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregatorPad_prepare_frame_finish: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start -func _gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) { +//export _goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start +func _goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) { var fn func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start").(func(carg0 *C.GstVideoAggregatorPad, carg1 *C.GstVideoAggregator, carg2 *C.GstBuffer, carg3 *C.GstVideoFrame)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregatorPad_prepare_frame_start: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregatorPad_prepare_frame_start: no function pointer found") } } fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info -func _gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info(carg0 *C.GstVideoAggregatorPad) { +//export _goglib_gstvideo1_VideoAggregatorPad_update_conversion_info +func _goglib_gstvideo1_VideoAggregatorPad_update_conversion_info(carg0 *C.GstVideoAggregatorPad) { var fn func(carg0 *C.GstVideoAggregatorPad) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info").(func(carg0 *C.GstVideoAggregatorPad)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregatorPad_update_conversion_info").(func(carg0 *C.GstVideoAggregatorPad)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregatorPad_update_conversion_info: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregatorPad_update_conversion_info: no function pointer found") } } fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_close -func _gotk4_gstvideo1_VideoDecoder_close(carg0 *C.GstVideoDecoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_close +func _goglib_gstvideo1_VideoDecoder_close(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_close").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_close").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_close: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_close: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_decide_allocation -func _gotk4_gstvideo1_VideoDecoder_decide_allocation(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_decide_allocation +func _goglib_gstvideo1_VideoDecoder_decide_allocation(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_decide_allocation").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_decide_allocation").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_decide_allocation: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_drain -func _gotk4_gstvideo1_VideoDecoder_drain(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoDecoder_drain +func _goglib_gstvideo1_VideoDecoder_drain(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_drain").(func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_drain").(func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_drain: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_drain: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_finish -func _gotk4_gstvideo1_VideoDecoder_finish(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoDecoder_finish +func _goglib_gstvideo1_VideoDecoder_finish(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_finish").(func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_finish").(func(carg0 *C.GstVideoDecoder) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_finish: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_finish: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_flush -func _gotk4_gstvideo1_VideoDecoder_flush(carg0 *C.GstVideoDecoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_flush +func _goglib_gstvideo1_VideoDecoder_flush(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_flush").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_flush").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_flush: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_flush: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_getcaps -func _gotk4_gstvideo1_VideoDecoder_getcaps(carg0 *C.GstVideoDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstvideo1_VideoDecoder_getcaps +func _goglib_gstvideo1_VideoDecoder_getcaps(carg0 *C.GstVideoDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_getcaps").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_getcaps").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_getcaps: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_getcaps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_handle_frame -func _gotk4_gstvideo1_VideoDecoder_handle_frame(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoDecoder_handle_frame +func _goglib_gstvideo1_VideoDecoder_handle_frame(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_handle_frame").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_handle_frame").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_handle_frame: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_handle_frame: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_handle_missing_data -func _gotk4_gstvideo1_VideoDecoder_handle_missing_data(carg0 *C.GstVideoDecoder, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_handle_missing_data +func _goglib_gstvideo1_VideoDecoder_handle_missing_data(carg0 *C.GstVideoDecoder, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_handle_missing_data").(func(carg0 *C.GstVideoDecoder, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_handle_missing_data").(func(carg0 *C.GstVideoDecoder, carg1 C.GstClockTime, carg2 C.GstClockTime) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_handle_missing_data: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_handle_missing_data: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoDecoder_negotiate -func _gotk4_gstvideo1_VideoDecoder_negotiate(carg0 *C.GstVideoDecoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_negotiate +func _goglib_gstvideo1_VideoDecoder_negotiate(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_negotiate").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_negotiate").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_negotiate: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_negotiate: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_open -func _gotk4_gstvideo1_VideoDecoder_open(carg0 *C.GstVideoDecoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_open +func _goglib_gstvideo1_VideoDecoder_open(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_open").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_open").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_open: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_open: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_parse -func _gotk4_gstvideo1_VideoDecoder_parse(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstAdapter, carg3 C.gboolean) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoDecoder_parse +func _goglib_gstvideo1_VideoDecoder_parse(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstAdapter, carg3 C.gboolean) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstAdapter, carg3 C.gboolean) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_parse").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstAdapter, carg3 C.gboolean) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_parse").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstAdapter, carg3 C.gboolean) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_parse: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_parse: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstvideo1_VideoDecoder_propose_allocation -func _gotk4_gstvideo1_VideoDecoder_propose_allocation(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_propose_allocation +func _goglib_gstvideo1_VideoDecoder_propose_allocation(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_propose_allocation").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_propose_allocation").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_propose_allocation: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_propose_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_reset -func _gotk4_gstvideo1_VideoDecoder_reset(carg0 *C.GstVideoDecoder, carg1 C.gboolean) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_reset +func _goglib_gstvideo1_VideoDecoder_reset(carg0 *C.GstVideoDecoder, carg1 C.gboolean) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 C.gboolean) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_reset").(func(carg0 *C.GstVideoDecoder, carg1 C.gboolean) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_reset").(func(carg0 *C.GstVideoDecoder, carg1 C.gboolean) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_reset: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_reset: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_set_format -func _gotk4_gstvideo1_VideoDecoder_set_format(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_set_format +func _goglib_gstvideo1_VideoDecoder_set_format(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_set_format").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecState) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_set_format").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecState) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_set_format: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_set_format: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_sink_event -func _gotk4_gstvideo1_VideoDecoder_sink_event(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_sink_event +func _goglib_gstvideo1_VideoDecoder_sink_event(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_sink_event").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_sink_event").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_sink_event: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_sink_query -func _gotk4_gstvideo1_VideoDecoder_sink_query(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_sink_query +func _goglib_gstvideo1_VideoDecoder_sink_query(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_sink_query").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_sink_query").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_sink_query: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_sink_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_src_event -func _gotk4_gstvideo1_VideoDecoder_src_event(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_src_event +func _goglib_gstvideo1_VideoDecoder_src_event(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_src_event").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_src_event").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_src_event: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_src_query -func _gotk4_gstvideo1_VideoDecoder_src_query(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_src_query +func _goglib_gstvideo1_VideoDecoder_src_query(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_src_query").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_src_query").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_src_query: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_src_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoDecoder_start -func _gotk4_gstvideo1_VideoDecoder_start(carg0 *C.GstVideoDecoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_start +func _goglib_gstvideo1_VideoDecoder_start(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_start").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_start").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_start: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_stop -func _gotk4_gstvideo1_VideoDecoder_stop(carg0 *C.GstVideoDecoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_stop +func _goglib_gstvideo1_VideoDecoder_stop(carg0 *C.GstVideoDecoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_stop").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_stop").(func(carg0 *C.GstVideoDecoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_stop: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoDecoder_transform_meta -func _gotk4_gstvideo1_VideoDecoder_transform_meta(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoDecoder_transform_meta +func _goglib_gstvideo1_VideoDecoder_transform_meta(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { var fn func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoDecoder_transform_meta").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoDecoder_transform_meta").(func(carg0 *C.GstVideoDecoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoDecoder_transform_meta: no function pointer found") + panic("_goglib_gstvideo1_VideoDecoder_transform_meta: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoEncoder_close -func _gotk4_gstvideo1_VideoEncoder_close(carg0 *C.GstVideoEncoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_close +func _goglib_gstvideo1_VideoEncoder_close(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_close").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_close").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_close: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_close: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_decide_allocation -func _gotk4_gstvideo1_VideoEncoder_decide_allocation(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_decide_allocation +func _goglib_gstvideo1_VideoEncoder_decide_allocation(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_decide_allocation").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_decide_allocation").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_decide_allocation: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_decide_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_finish -func _gotk4_gstvideo1_VideoEncoder_finish(carg0 *C.GstVideoEncoder) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoEncoder_finish +func _goglib_gstvideo1_VideoEncoder_finish(carg0 *C.GstVideoEncoder) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoEncoder) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_finish").(func(carg0 *C.GstVideoEncoder) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_finish").(func(carg0 *C.GstVideoEncoder) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_finish: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_finish: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_flush -func _gotk4_gstvideo1_VideoEncoder_flush(carg0 *C.GstVideoEncoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_flush +func _goglib_gstvideo1_VideoEncoder_flush(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_flush").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_flush").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_flush: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_flush: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_getcaps -func _gotk4_gstvideo1_VideoEncoder_getcaps(carg0 *C.GstVideoEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { +//export _goglib_gstvideo1_VideoEncoder_getcaps +func _goglib_gstvideo1_VideoEncoder_getcaps(carg0 *C.GstVideoEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstCaps) (cret *C.GstCaps) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_getcaps").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstCaps) (cret *C.GstCaps)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_getcaps").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstCaps) (cret *C.GstCaps)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_getcaps: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_getcaps: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_handle_frame -func _gotk4_gstvideo1_VideoEncoder_handle_frame(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoEncoder_handle_frame +func _goglib_gstvideo1_VideoEncoder_handle_frame(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_handle_frame").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_handle_frame").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_handle_frame: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_handle_frame: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_negotiate -func _gotk4_gstvideo1_VideoEncoder_negotiate(carg0 *C.GstVideoEncoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_negotiate +func _goglib_gstvideo1_VideoEncoder_negotiate(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_negotiate").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_negotiate").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_negotiate: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_negotiate: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_open -func _gotk4_gstvideo1_VideoEncoder_open(carg0 *C.GstVideoEncoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_open +func _goglib_gstvideo1_VideoEncoder_open(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_open").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_open").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_open: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_open: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_pre_push -func _gotk4_gstvideo1_VideoEncoder_pre_push(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoEncoder_pre_push +func _goglib_gstvideo1_VideoEncoder_pre_push(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_pre_push").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_pre_push").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_pre_push: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_pre_push: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_propose_allocation -func _gotk4_gstvideo1_VideoEncoder_propose_allocation(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_propose_allocation +func _goglib_gstvideo1_VideoEncoder_propose_allocation(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_propose_allocation").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_propose_allocation").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_propose_allocation: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_propose_allocation: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_reset -func _gotk4_gstvideo1_VideoEncoder_reset(carg0 *C.GstVideoEncoder, carg1 C.gboolean) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_reset +func _goglib_gstvideo1_VideoEncoder_reset(carg0 *C.GstVideoEncoder, carg1 C.gboolean) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 C.gboolean) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_reset").(func(carg0 *C.GstVideoEncoder, carg1 C.gboolean) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_reset").(func(carg0 *C.GstVideoEncoder, carg1 C.gboolean) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_reset: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_reset: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_set_format -func _gotk4_gstvideo1_VideoEncoder_set_format(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_set_format +func _goglib_gstvideo1_VideoEncoder_set_format(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecState) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_set_format").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecState) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_set_format").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecState) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_set_format: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_set_format: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_sink_event -func _gotk4_gstvideo1_VideoEncoder_sink_event(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_sink_event +func _goglib_gstvideo1_VideoEncoder_sink_event(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_sink_event").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_sink_event").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_sink_event: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_sink_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_sink_query -func _gotk4_gstvideo1_VideoEncoder_sink_query(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_sink_query +func _goglib_gstvideo1_VideoEncoder_sink_query(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_sink_query").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_sink_query").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_sink_query: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_sink_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_src_event -func _gotk4_gstvideo1_VideoEncoder_src_event(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_src_event +func _goglib_gstvideo1_VideoEncoder_src_event(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_src_event").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_src_event").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstEvent) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_src_event: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_src_event: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_src_query -func _gotk4_gstvideo1_VideoEncoder_src_query(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_src_query +func _goglib_gstvideo1_VideoEncoder_src_query(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_src_query").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_src_query").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstQuery) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_src_query: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_src_query: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoEncoder_start -func _gotk4_gstvideo1_VideoEncoder_start(carg0 *C.GstVideoEncoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_start +func _goglib_gstvideo1_VideoEncoder_start(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_start").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_start").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_start: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_start: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_stop -func _gotk4_gstvideo1_VideoEncoder_stop(carg0 *C.GstVideoEncoder) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_stop +func _goglib_gstvideo1_VideoEncoder_stop(carg0 *C.GstVideoEncoder) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_stop").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_stop").(func(carg0 *C.GstVideoEncoder) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_stop: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_stop: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstvideo1_VideoEncoder_transform_meta -func _gotk4_gstvideo1_VideoEncoder_transform_meta(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoEncoder_transform_meta +func _goglib_gstvideo1_VideoEncoder_transform_meta(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { var fn func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoEncoder_transform_meta").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoEncoder_transform_meta").(func(carg0 *C.GstVideoEncoder, carg1 *C.GstVideoCodecFrame, carg2 *C.GstMeta) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoEncoder_transform_meta: no function pointer found") + panic("_goglib_gstvideo1_VideoEncoder_transform_meta: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoFilter_set_info -func _gotk4_gstvideo1_VideoFilter_set_info(carg0 *C.GstVideoFilter, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.GstCaps, carg4 *C.GstVideoInfo) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoFilter_set_info +func _goglib_gstvideo1_VideoFilter_set_info(carg0 *C.GstVideoFilter, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.GstCaps, carg4 *C.GstVideoInfo) (cret C.gboolean) { var fn func(carg0 *C.GstVideoFilter, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.GstCaps, carg4 *C.GstVideoInfo) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoFilter_set_info").(func(carg0 *C.GstVideoFilter, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.GstCaps, carg4 *C.GstVideoInfo) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoFilter_set_info").(func(carg0 *C.GstVideoFilter, carg1 *C.GstCaps, carg2 *C.GstVideoInfo, carg3 *C.GstCaps, carg4 *C.GstVideoInfo) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoFilter_set_info: no function pointer found") + panic("_goglib_gstvideo1_VideoFilter_set_info: no function pointer found") } } return fn(carg0, carg1, carg2, carg3, carg4) } -//export _gotk4_gstvideo1_VideoFilter_transform_frame -func _gotk4_gstvideo1_VideoFilter_transform_frame(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame, carg2 *C.GstVideoFrame) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoFilter_transform_frame +func _goglib_gstvideo1_VideoFilter_transform_frame(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame, carg2 *C.GstVideoFrame) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame, carg2 *C.GstVideoFrame) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoFilter_transform_frame").(func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame, carg2 *C.GstVideoFrame) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoFilter_transform_frame").(func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame, carg2 *C.GstVideoFrame) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoFilter_transform_frame: no function pointer found") + panic("_goglib_gstvideo1_VideoFilter_transform_frame: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoFilter_transform_frame_ip -func _gotk4_gstvideo1_VideoFilter_transform_frame_ip(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoFilter_transform_frame_ip +func _goglib_gstvideo1_VideoFilter_transform_frame_ip(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoFilter_transform_frame_ip").(func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoFilter_transform_frame_ip").(func(carg0 *C.GstVideoFilter, carg1 *C.GstVideoFrame) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoFilter_transform_frame_ip: no function pointer found") + panic("_goglib_gstvideo1_VideoFilter_transform_frame_ip: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoSink_set_info -func _gotk4_gstvideo1_VideoSink_set_info(carg0 *C.GstVideoSink, carg1 *C.GstCaps, carg2 *C.GstVideoInfo) (cret C.gboolean) { +//export _goglib_gstvideo1_VideoSink_set_info +func _goglib_gstvideo1_VideoSink_set_info(carg0 *C.GstVideoSink, carg1 *C.GstCaps, carg2 *C.GstVideoInfo) (cret C.gboolean) { var fn func(carg0 *C.GstVideoSink, carg1 *C.GstCaps, carg2 *C.GstVideoInfo) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoSink_set_info").(func(carg0 *C.GstVideoSink, carg1 *C.GstCaps, carg2 *C.GstVideoInfo) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoSink_set_info").(func(carg0 *C.GstVideoSink, carg1 *C.GstCaps, carg2 *C.GstVideoInfo) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstvideo1_VideoSink_set_info: no function pointer found") + panic("_goglib_gstvideo1_VideoSink_set_info: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstvideo1_VideoSink_show_frame -func _gotk4_gstvideo1_VideoSink_show_frame(carg0 *C.GstVideoSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { +//export _goglib_gstvideo1_VideoSink_show_frame +func _goglib_gstvideo1_VideoSink_show_frame(carg0 *C.GstVideoSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { var fn func(carg0 *C.GstVideoSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoSink_show_frame").(func(carg0 *C.GstVideoSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoSink_show_frame").(func(carg0 *C.GstVideoSink, carg1 *C.GstBuffer) (cret C.GstFlowReturn)) if fn == nil { - panic("_gotk4_gstvideo1_VideoSink_show_frame: no function pointer found") + panic("_goglib_gstvideo1_VideoSink_show_frame: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info -func _gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info(carg0 *C.GstVideoAggregatorConvertPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoInfo) { +//export _goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info +func _goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info(carg0 *C.GstVideoAggregatorConvertPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoInfo) { var fn func(carg0 *C.GstVideoAggregatorConvertPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoInfo) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info").(func(carg0 *C.GstVideoAggregatorConvertPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoInfo)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info").(func(carg0 *C.GstVideoAggregatorConvertPad, carg1 *C.GstVideoAggregator, carg2 *C.GstVideoInfo)) if fn == nil { - panic("_gotk4_gstvideo1_VideoAggregatorConvertPad_create_conversion_info: no function pointer found") + panic("_goglib_gstvideo1_VideoAggregatorConvertPad_create_conversion_info: no function pointer found") } } fn(carg0, carg1, carg2) diff --git a/pkg/gstwebrtc/gstwebrtc.gen.go b/pkg/gstwebrtc/gstwebrtc.gen.go index 76736df..d07cea8 100644 --- a/pkg/gstwebrtc/gstwebrtc.gen.go +++ b/pkg/gstwebrtc/gstwebrtc.gen.go @@ -7,10 +7,10 @@ import ( "runtime" "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" - "github.com/diamondburned/gotk4/pkg/glib/v2" - "github.com/diamondburned/gotk4/pkg/gobject/v2" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/glib/v2" + "github.com/go-gst/go-glib/pkg/gobject/v2" "github.com/go-gst/go-gst/pkg/gst" "github.com/go-gst/go-gst/pkg/gstsdp" ) @@ -18,90 +18,90 @@ import ( // #cgo pkg-config: gstreamer-webrtc-1.0 // #cgo CFLAGS: -Wno-deprecated-declarations // #include -// extern void _gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc(GstWebRTCICE*, guint, const gchar*, gpointer); +// extern void _goglib_gstwebrtc1_WebRTCICEOnCandidateFunc(GstWebRTCICE*, guint, const gchar*, gpointer); // extern void destroyUserdata(gpointer); -// extern void _gotk4_gstwebrtc1_WebRTCICE_add_candidate(GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, GstPromise*); -// extern GstWebRTCICEStream* _gotk4_gstwebrtc1_WebRTCICE_add_stream(GstWebRTCICE*, guint); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICE_add_turn_server(GstWebRTCICE*, const gchar*); -// extern GstWebRTCICETransport* _gotk4_gstwebrtc1_WebRTCICE_find_transport(GstWebRTCICE*, GstWebRTCICEStream*, GstWebRTCICEComponent); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICE_gather_candidates(GstWebRTCICE*, GstWebRTCICEStream*); -// extern gchar* _gotk4_gstwebrtc1_WebRTCICE_get_http_proxy(GstWebRTCICE*); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICE_get_is_controller(GstWebRTCICE*); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICE_get_selected_pair(GstWebRTCICE*, GstWebRTCICEStream*, GstWebRTCICECandidateStats*, GstWebRTCICECandidateStats*); -// extern gchar* _gotk4_gstwebrtc1_WebRTCICE_get_stun_server(GstWebRTCICE*); -// extern gchar* _gotk4_gstwebrtc1_WebRTCICE_get_turn_server(GstWebRTCICE*); -// extern void _gotk4_gstwebrtc1_WebRTCICE_set_force_relay(GstWebRTCICE*, gboolean); -// extern void _gotk4_gstwebrtc1_WebRTCICE_set_http_proxy(GstWebRTCICE*, const gchar*); -// extern void _gotk4_gstwebrtc1_WebRTCICE_set_is_controller(GstWebRTCICE*, gboolean); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICE_set_local_credentials(GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, const gchar*); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials(GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, const gchar*); -// extern void _gotk4_gstwebrtc1_WebRTCICE_set_stun_server(GstWebRTCICE*, const gchar*); -// extern void _gotk4_gstwebrtc1_WebRTCICE_set_tos(GstWebRTCICE*, GstWebRTCICEStream*, guint); -// extern void _gotk4_gstwebrtc1_WebRTCICE_set_turn_server(GstWebRTCICE*, const gchar*); -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_add_candidate(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, const gchar* carg2, GstPromise* carg3) { +// extern void _goglib_gstwebrtc1_WebRTCICE_add_candidate(GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, GstPromise*); +// extern GstWebRTCICEStream* _goglib_gstwebrtc1_WebRTCICE_add_stream(GstWebRTCICE*, guint); +// extern gboolean _goglib_gstwebrtc1_WebRTCICE_add_turn_server(GstWebRTCICE*, const gchar*); +// extern GstWebRTCICETransport* _goglib_gstwebrtc1_WebRTCICE_find_transport(GstWebRTCICE*, GstWebRTCICEStream*, GstWebRTCICEComponent); +// extern gboolean _goglib_gstwebrtc1_WebRTCICE_gather_candidates(GstWebRTCICE*, GstWebRTCICEStream*); +// extern gchar* _goglib_gstwebrtc1_WebRTCICE_get_http_proxy(GstWebRTCICE*); +// extern gboolean _goglib_gstwebrtc1_WebRTCICE_get_is_controller(GstWebRTCICE*); +// extern gboolean _goglib_gstwebrtc1_WebRTCICE_get_selected_pair(GstWebRTCICE*, GstWebRTCICEStream*, GstWebRTCICECandidateStats*, GstWebRTCICECandidateStats*); +// extern gchar* _goglib_gstwebrtc1_WebRTCICE_get_stun_server(GstWebRTCICE*); +// extern gchar* _goglib_gstwebrtc1_WebRTCICE_get_turn_server(GstWebRTCICE*); +// extern void _goglib_gstwebrtc1_WebRTCICE_set_force_relay(GstWebRTCICE*, gboolean); +// extern void _goglib_gstwebrtc1_WebRTCICE_set_http_proxy(GstWebRTCICE*, const gchar*); +// extern void _goglib_gstwebrtc1_WebRTCICE_set_is_controller(GstWebRTCICE*, gboolean); +// extern gboolean _goglib_gstwebrtc1_WebRTCICE_set_local_credentials(GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, const gchar*); +// extern gboolean _goglib_gstwebrtc1_WebRTCICE_set_remote_credentials(GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, const gchar*); +// extern void _goglib_gstwebrtc1_WebRTCICE_set_stun_server(GstWebRTCICE*, const gchar*); +// extern void _goglib_gstwebrtc1_WebRTCICE_set_tos(GstWebRTCICE*, GstWebRTCICEStream*, guint); +// extern void _goglib_gstwebrtc1_WebRTCICE_set_turn_server(GstWebRTCICE*, const gchar*); +// void _goglib_gstwebrtc1_WebRTCICE_virtual_add_candidate(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, const gchar* carg2, GstPromise* carg3) { // return ((void (*) (GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, GstPromise*))(fnptr))(carg0, carg1, carg2, carg3); // } -// GstWebRTCICEStream* _gotk4_gstwebrtc1_WebRTCICE_virtual_add_stream(void* fnptr, GstWebRTCICE* carg0, guint carg1) { +// GstWebRTCICEStream* _goglib_gstwebrtc1_WebRTCICE_virtual_add_stream(void* fnptr, GstWebRTCICE* carg0, guint carg1) { // return ((GstWebRTCICEStream* (*) (GstWebRTCICE*, guint))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICE_virtual_add_turn_server(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { +// gboolean _goglib_gstwebrtc1_WebRTCICE_virtual_add_turn_server(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { // return ((gboolean (*) (GstWebRTCICE*, const gchar*))(fnptr))(carg0, carg1); // } -// GstWebRTCICETransport* _gotk4_gstwebrtc1_WebRTCICE_virtual_find_transport(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, GstWebRTCICEComponent carg2) { +// GstWebRTCICETransport* _goglib_gstwebrtc1_WebRTCICE_virtual_find_transport(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, GstWebRTCICEComponent carg2) { // return ((GstWebRTCICETransport* (*) (GstWebRTCICE*, GstWebRTCICEStream*, GstWebRTCICEComponent))(fnptr))(carg0, carg1, carg2); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICE_virtual_gather_candidates(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1) { +// gboolean _goglib_gstwebrtc1_WebRTCICE_virtual_gather_candidates(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1) { // return ((gboolean (*) (GstWebRTCICE*, GstWebRTCICEStream*))(fnptr))(carg0, carg1); // } -// gchar* _gotk4_gstwebrtc1_WebRTCICE_virtual_get_http_proxy(void* fnptr, GstWebRTCICE* carg0) { +// gchar* _goglib_gstwebrtc1_WebRTCICE_virtual_get_http_proxy(void* fnptr, GstWebRTCICE* carg0) { // return ((gchar* (*) (GstWebRTCICE*))(fnptr))(carg0); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICE_virtual_get_is_controller(void* fnptr, GstWebRTCICE* carg0) { +// gboolean _goglib_gstwebrtc1_WebRTCICE_virtual_get_is_controller(void* fnptr, GstWebRTCICE* carg0) { // return ((gboolean (*) (GstWebRTCICE*))(fnptr))(carg0); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICE_virtual_get_selected_pair(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, GstWebRTCICECandidateStats** carg2, GstWebRTCICECandidateStats** carg3) { +// gboolean _goglib_gstwebrtc1_WebRTCICE_virtual_get_selected_pair(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, GstWebRTCICECandidateStats** carg2, GstWebRTCICECandidateStats** carg3) { // return ((gboolean (*) (GstWebRTCICE*, GstWebRTCICEStream*, GstWebRTCICECandidateStats**, GstWebRTCICECandidateStats**))(fnptr))(carg0, carg1, carg2, carg3); // } -// gchar* _gotk4_gstwebrtc1_WebRTCICE_virtual_get_stun_server(void* fnptr, GstWebRTCICE* carg0) { +// gchar* _goglib_gstwebrtc1_WebRTCICE_virtual_get_stun_server(void* fnptr, GstWebRTCICE* carg0) { // return ((gchar* (*) (GstWebRTCICE*))(fnptr))(carg0); // } -// gchar* _gotk4_gstwebrtc1_WebRTCICE_virtual_get_turn_server(void* fnptr, GstWebRTCICE* carg0) { +// gchar* _goglib_gstwebrtc1_WebRTCICE_virtual_get_turn_server(void* fnptr, GstWebRTCICE* carg0) { // return ((gchar* (*) (GstWebRTCICE*))(fnptr))(carg0); // } -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_set_force_relay(void* fnptr, GstWebRTCICE* carg0, gboolean carg1) { +// void _goglib_gstwebrtc1_WebRTCICE_virtual_set_force_relay(void* fnptr, GstWebRTCICE* carg0, gboolean carg1) { // return ((void (*) (GstWebRTCICE*, gboolean))(fnptr))(carg0, carg1); // } -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_set_http_proxy(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { +// void _goglib_gstwebrtc1_WebRTCICE_virtual_set_http_proxy(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { // return ((void (*) (GstWebRTCICE*, const gchar*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_set_is_controller(void* fnptr, GstWebRTCICE* carg0, gboolean carg1) { +// void _goglib_gstwebrtc1_WebRTCICE_virtual_set_is_controller(void* fnptr, GstWebRTCICE* carg0, gboolean carg1) { // return ((void (*) (GstWebRTCICE*, gboolean))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICE_virtual_set_local_credentials(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, const gchar* carg2, const gchar* carg3) { +// gboolean _goglib_gstwebrtc1_WebRTCICE_virtual_set_local_credentials(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, const gchar* carg2, const gchar* carg3) { // return ((gboolean (*) (GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, const gchar*))(fnptr))(carg0, carg1, carg2, carg3); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICE_virtual_set_remote_credentials(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, const gchar* carg2, const gchar* carg3) { +// gboolean _goglib_gstwebrtc1_WebRTCICE_virtual_set_remote_credentials(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, const gchar* carg2, const gchar* carg3) { // return ((gboolean (*) (GstWebRTCICE*, GstWebRTCICEStream*, const gchar*, const gchar*))(fnptr))(carg0, carg1, carg2, carg3); // } -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_set_stun_server(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { +// void _goglib_gstwebrtc1_WebRTCICE_virtual_set_stun_server(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { // return ((void (*) (GstWebRTCICE*, const gchar*))(fnptr))(carg0, carg1); // } -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_set_tos(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, guint carg2) { +// void _goglib_gstwebrtc1_WebRTCICE_virtual_set_tos(void* fnptr, GstWebRTCICE* carg0, GstWebRTCICEStream* carg1, guint carg2) { // return ((void (*) (GstWebRTCICE*, GstWebRTCICEStream*, guint))(fnptr))(carg0, carg1, carg2); // } -// void _gotk4_gstwebrtc1_WebRTCICE_virtual_set_turn_server(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { +// void _goglib_gstwebrtc1_WebRTCICE_virtual_set_turn_server(void* fnptr, GstWebRTCICE* carg0, const gchar* carg1) { // return ((void (*) (GstWebRTCICE*, const gchar*))(fnptr))(carg0, carg1); // } -// extern GstWebRTCICETransport* _gotk4_gstwebrtc1_WebRTCICEStream_find_transport(GstWebRTCICEStream*, GstWebRTCICEComponent); -// extern gboolean _gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates(GstWebRTCICEStream*); -// GstWebRTCICETransport* _gotk4_gstwebrtc1_WebRTCICEStream_virtual_find_transport(void* fnptr, GstWebRTCICEStream* carg0, GstWebRTCICEComponent carg1) { +// extern GstWebRTCICETransport* _goglib_gstwebrtc1_WebRTCICEStream_find_transport(GstWebRTCICEStream*, GstWebRTCICEComponent); +// extern gboolean _goglib_gstwebrtc1_WebRTCICEStream_gather_candidates(GstWebRTCICEStream*); +// GstWebRTCICETransport* _goglib_gstwebrtc1_WebRTCICEStream_virtual_find_transport(void* fnptr, GstWebRTCICEStream* carg0, GstWebRTCICEComponent carg1) { // return ((GstWebRTCICETransport* (*) (GstWebRTCICEStream*, GstWebRTCICEComponent))(fnptr))(carg0, carg1); // } -// gboolean _gotk4_gstwebrtc1_WebRTCICEStream_virtual_gather_candidates(void* fnptr, GstWebRTCICEStream* carg0) { +// gboolean _goglib_gstwebrtc1_WebRTCICEStream_virtual_gather_candidates(void* fnptr, GstWebRTCICEStream* carg0) { // return ((gboolean (*) (GstWebRTCICEStream*))(fnptr))(carg0); // } -// extern gboolean _gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates(GstWebRTCICETransport*); -// gboolean _gotk4_gstwebrtc1_WebRTCICETransport_virtual_gather_candidates(void* fnptr, GstWebRTCICETransport* carg0) { +// extern gboolean _goglib_gstwebrtc1_WebRTCICETransport_gather_candidates(GstWebRTCICETransport*); +// gboolean _goglib_gstwebrtc1_WebRTCICETransport_virtual_gather_candidates(void* fnptr, GstWebRTCICETransport* carg0) { // return ((gboolean (*) (GstWebRTCICETransport*))(fnptr))(carg0); // } import "C" @@ -2163,7 +2163,7 @@ func (ice *WebRTCICEInstance) GetIsController() bool { func (ice *WebRTCICEInstance) GetLocalCandidates(stream WebRTCICEStream) []*WebRTCICECandidateStats { var carg0 *C.GstWebRTCICE // in, none, converted var carg1 *C.GstWebRTCICEStream // in, none, converted - var cret **C.GstWebRTCICECandidateStats // return, transfer: full, C Pointers: 2, Name: array[WebRTCICECandidateStats], scope: , array (inner: *typesystem.Record, zero-terminated) + var cret **C.GstWebRTCICECandidateStats // return, transfer: full, C Pointers: 2, Name: array[WebRTCICECandidateStats], scope: , array (inner GstWebRTCICECandidateStats* (*typesystem.Record), zero-terminated) carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) carg1 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) @@ -2176,7 +2176,7 @@ func (ice *WebRTCICEInstance) GetLocalCandidates(stream WebRTCICEStream) []*WebR _ = goret _ = cret - panic("unimplemented conversion of []*WebRTCICECandidateStats (GstWebRTCICECandidateStats**)") + panic("unimplemented conversion of []*WebRTCICECandidateStats (GstWebRTCICECandidateStats**) because of unknown reason") return goret } @@ -2193,7 +2193,7 @@ func (ice *WebRTCICEInstance) GetLocalCandidates(stream WebRTCICEStream) []*WebR func (ice *WebRTCICEInstance) GetRemoteCandidates(stream WebRTCICEStream) []*WebRTCICECandidateStats { var carg0 *C.GstWebRTCICE // in, none, converted var carg1 *C.GstWebRTCICEStream // in, none, converted - var cret **C.GstWebRTCICECandidateStats // return, transfer: full, C Pointers: 2, Name: array[WebRTCICECandidateStats], scope: , array (inner: *typesystem.Record, zero-terminated) + var cret **C.GstWebRTCICECandidateStats // return, transfer: full, C Pointers: 2, Name: array[WebRTCICECandidateStats], scope: , array (inner GstWebRTCICECandidateStats* (*typesystem.Record), zero-terminated) carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) carg1 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) @@ -2206,7 +2206,7 @@ func (ice *WebRTCICEInstance) GetRemoteCandidates(stream WebRTCICEStream) []*Web _ = goret _ = cret - panic("unimplemented conversion of []*WebRTCICECandidateStats (GstWebRTCICECandidateStats**)") + panic("unimplemented conversion of []*WebRTCICECandidateStats (GstWebRTCICECandidateStats**) because of unknown reason") return goret } @@ -2408,7 +2408,7 @@ func (ice *WebRTCICEInstance) SetOnIceCandidate(fn WebRTCICEOnCandidateFunc) { var carg3 C.GDestroyNotify // implicit carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) - carg1 = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc) + carg1 = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICEOnCandidateFunc) carg2 = C.gpointer(userdata.Register(fn)) carg3 = (C.GDestroyNotify)((*[0]byte)(C.destroyUserdata)) @@ -2694,10 +2694,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov pclass := (*C.GstWebRTCICEClass)(gclass) if overrides.AddCandidate != nil { - pclass.add_candidate = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_add_candidate) + pclass.add_candidate = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_add_candidate) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_add_candidate", + "_goglib_gstwebrtc1_WebRTCICE_add_candidate", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.GstPromise) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -2717,10 +2717,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.AddStream != nil { - pclass.add_stream = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_add_stream) + pclass.add_stream = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_add_stream) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_add_stream", + "_goglib_gstwebrtc1_WebRTCICE_add_stream", func(carg0 *C.GstWebRTCICE, carg1 C.guint) (cret *C.GstWebRTCICEStream) { var ice Instance // go GstWebRTCICE subclass var sessionId uint // in, none, casted @@ -2741,10 +2741,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.AddTurnServer != nil { - pclass.add_turn_server = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_add_turn_server) + pclass.add_turn_server = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_add_turn_server) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_add_turn_server", + "_goglib_gstwebrtc1_WebRTCICE_add_turn_server", func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) (cret C.gboolean) { var ice Instance // go GstWebRTCICE subclass var uri string // in, none, string @@ -2765,10 +2765,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.FindTransport != nil { - pclass.find_transport = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_find_transport) + pclass.find_transport = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_find_transport) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_find_transport", + "_goglib_gstwebrtc1_WebRTCICE_find_transport", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -2791,10 +2791,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.GatherCandidates != nil { - pclass.gather_candidates = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_gather_candidates) + pclass.gather_candidates = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_gather_candidates) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_gather_candidates", + "_goglib_gstwebrtc1_WebRTCICE_gather_candidates", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream) (cret C.gboolean) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -2815,10 +2815,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.GetHttpProxy != nil { - pclass.get_http_proxy = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_get_http_proxy) + pclass.get_http_proxy = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_get_http_proxy) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_get_http_proxy", + "_goglib_gstwebrtc1_WebRTCICE_get_http_proxy", func(carg0 *C.GstWebRTCICE) (cret *C.gchar) { var ice Instance // go GstWebRTCICE subclass var goret string // return, full, string @@ -2835,10 +2835,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.GetIsController != nil { - pclass.get_is_controller = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_get_is_controller) + pclass.get_is_controller = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_get_is_controller) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_get_is_controller", + "_goglib_gstwebrtc1_WebRTCICE_get_is_controller", func(carg0 *C.GstWebRTCICE) (cret C.gboolean) { var ice Instance // go GstWebRTCICE subclass var goret bool // return @@ -2857,10 +2857,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.GetSelectedPair != nil { - pclass.get_selected_pair = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_get_selected_pair) + pclass.get_selected_pair = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_get_selected_pair) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_get_selected_pair", + "_goglib_gstwebrtc1_WebRTCICE_get_selected_pair", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 **C.GstWebRTCICECandidateStats, carg3 **C.GstWebRTCICECandidateStats) (cret C.gboolean) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -2885,10 +2885,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.GetStunServer != nil { - pclass.get_stun_server = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_get_stun_server) + pclass.get_stun_server = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_get_stun_server) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_get_stun_server", + "_goglib_gstwebrtc1_WebRTCICE_get_stun_server", func(carg0 *C.GstWebRTCICE) (cret *C.gchar) { var ice Instance // go GstWebRTCICE subclass var goret string // return, full, string, nullable-string @@ -2907,10 +2907,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.GetTurnServer != nil { - pclass.get_turn_server = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_get_turn_server) + pclass.get_turn_server = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_get_turn_server) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_get_turn_server", + "_goglib_gstwebrtc1_WebRTCICE_get_turn_server", func(carg0 *C.GstWebRTCICE) (cret *C.gchar) { var ice Instance // go GstWebRTCICE subclass var goret string // return, full, string, nullable-string @@ -2929,10 +2929,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetForceRelay != nil { - pclass.set_force_relay = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_force_relay) + pclass.set_force_relay = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_force_relay) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_force_relay", + "_goglib_gstwebrtc1_WebRTCICE_set_force_relay", func(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { var ice Instance // go GstWebRTCICE subclass var forceRelay bool // in @@ -2948,10 +2948,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetHttpProxy != nil { - pclass.set_http_proxy = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_http_proxy) + pclass.set_http_proxy = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_http_proxy) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_http_proxy", + "_goglib_gstwebrtc1_WebRTCICE_set_http_proxy", func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { var ice Instance // go GstWebRTCICE subclass var uri string // in, none, string @@ -2965,10 +2965,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetIsController != nil { - pclass.set_is_controller = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_is_controller) + pclass.set_is_controller = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_is_controller) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_is_controller", + "_goglib_gstwebrtc1_WebRTCICE_set_is_controller", func(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { var ice Instance // go GstWebRTCICE subclass var controller bool // in @@ -2984,10 +2984,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetLocalCredentials != nil { - pclass.set_local_credentials = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_local_credentials) + pclass.set_local_credentials = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_local_credentials) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_local_credentials", + "_goglib_gstwebrtc1_WebRTCICE_set_local_credentials", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -3012,10 +3012,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetRemoteCredentials != nil { - pclass.set_remote_credentials = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials) + pclass.set_remote_credentials = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_remote_credentials) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials", + "_goglib_gstwebrtc1_WebRTCICE_set_remote_credentials", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -3040,10 +3040,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetStunServer != nil { - pclass.set_stun_server = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_stun_server) + pclass.set_stun_server = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_stun_server) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_stun_server", + "_goglib_gstwebrtc1_WebRTCICE_set_stun_server", func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { var ice Instance // go GstWebRTCICE subclass var uri string // in, none, string, nullable-string @@ -3059,10 +3059,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetTos != nil { - pclass.set_tos = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_tos) + pclass.set_tos = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_tos) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_tos", + "_goglib_gstwebrtc1_WebRTCICE_set_tos", func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.guint) { var ice Instance // go GstWebRTCICE subclass var stream WebRTCICEStream // in, none, converted @@ -3078,10 +3078,10 @@ func UnsafeApplyWebRTCICEOverrides[Instance WebRTCICE](gclass unsafe.Pointer, ov } if overrides.SetTurnServer != nil { - pclass.set_turn_server = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICE_set_turn_server) + pclass.set_turn_server = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICE_set_turn_server) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICE_set_turn_server", + "_goglib_gstwebrtc1_WebRTCICE_set_turn_server", func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { var ice Instance // go GstWebRTCICE subclass var uri string // in, none, string, nullable-string @@ -3121,7 +3121,7 @@ func (ice *WebRTCICEInstance) ParentAddCandidate(stream WebRTCICEStream, candida carg3 = (*C.GstPromise)(gst.UnsafePromiseToGlibNone(promise)) } - C._gotk4_gstwebrtc1_WebRTCICE_virtual_add_candidate(unsafe.Pointer(parentclass.add_candidate), carg0, carg1, carg2, carg3) + C._goglib_gstwebrtc1_WebRTCICE_virtual_add_candidate(unsafe.Pointer(parentclass.add_candidate), carg0, carg1, carg2, carg3) runtime.KeepAlive(ice) runtime.KeepAlive(stream) runtime.KeepAlive(candidate) @@ -3148,7 +3148,7 @@ func (ice *WebRTCICEInstance) ParentAddStream(sessionId uint) WebRTCICEStream { carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) carg1 = C.guint(sessionId) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_add_stream(unsafe.Pointer(parentclass.add_stream), carg0, carg1) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_add_stream(unsafe.Pointer(parentclass.add_stream), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(sessionId) @@ -3182,7 +3182,7 @@ func (ice *WebRTCICEInstance) ParentAddTurnServer(uri string) bool { carg1 = (*C.gchar)(unsafe.Pointer(C.CString(uri))) defer C.free(unsafe.Pointer(carg1)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_add_turn_server(unsafe.Pointer(parentclass.add_turn_server), carg0, carg1) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_add_turn_server(unsafe.Pointer(parentclass.add_turn_server), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(uri) @@ -3218,7 +3218,7 @@ func (ice *WebRTCICEInstance) ParentFindTransport(stream WebRTCICEStream, compon carg1 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) carg2 = C.GstWebRTCICEComponent(component) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_find_transport(unsafe.Pointer(parentclass.find_transport), carg0, carg1, carg2) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_find_transport(unsafe.Pointer(parentclass.find_transport), carg0, carg1, carg2) runtime.KeepAlive(ice) runtime.KeepAlive(stream) runtime.KeepAlive(component) @@ -3252,7 +3252,7 @@ func (ice *WebRTCICEInstance) ParentGatherCandidates(stream WebRTCICEStream) boo carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) carg1 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_gather_candidates(unsafe.Pointer(parentclass.gather_candidates), carg0, carg1) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_gather_candidates(unsafe.Pointer(parentclass.gather_candidates), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(stream) @@ -3281,7 +3281,7 @@ func (ice *WebRTCICEInstance) ParentGetHttpProxy() string { carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_get_http_proxy(unsafe.Pointer(parentclass.get_http_proxy), carg0) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_get_http_proxy(unsafe.Pointer(parentclass.get_http_proxy), carg0) runtime.KeepAlive(ice) var goret string @@ -3306,7 +3306,7 @@ func (ice *WebRTCICEInstance) ParentGetIsController() bool { carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_get_is_controller(unsafe.Pointer(parentclass.get_is_controller), carg0) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_get_is_controller(unsafe.Pointer(parentclass.get_is_controller), carg0) runtime.KeepAlive(ice) var goret bool @@ -3342,7 +3342,7 @@ func (ice *WebRTCICEInstance) ParentGetSelectedPair(stream WebRTCICEStream) (*We carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) carg1 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_get_selected_pair(unsafe.Pointer(parentclass.get_selected_pair), carg0, carg1, &carg2, &carg3) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_get_selected_pair(unsafe.Pointer(parentclass.get_selected_pair), carg0, carg1, &carg2, &carg3) runtime.KeepAlive(ice) runtime.KeepAlive(stream) @@ -3373,7 +3373,7 @@ func (ice *WebRTCICEInstance) ParentGetStunServer() string { carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_get_stun_server(unsafe.Pointer(parentclass.get_stun_server), carg0) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_get_stun_server(unsafe.Pointer(parentclass.get_stun_server), carg0) runtime.KeepAlive(ice) var goret string @@ -3400,7 +3400,7 @@ func (ice *WebRTCICEInstance) ParentGetTurnServer() string { carg0 = (*C.GstWebRTCICE)(UnsafeWebRTCICEToGlibNone(ice)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_get_turn_server(unsafe.Pointer(parentclass.get_turn_server), carg0) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_get_turn_server(unsafe.Pointer(parentclass.get_turn_server), carg0) runtime.KeepAlive(ice) var goret string @@ -3430,7 +3430,7 @@ func (ice *WebRTCICEInstance) ParentSetForceRelay(forceRelay bool) { carg1 = C.TRUE } - C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_force_relay(unsafe.Pointer(parentclass.set_force_relay), carg0, carg1) + C._goglib_gstwebrtc1_WebRTCICE_virtual_set_force_relay(unsafe.Pointer(parentclass.set_force_relay), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(forceRelay) } @@ -3454,7 +3454,7 @@ func (ice *WebRTCICEInstance) ParentSetHttpProxy(uri string) { carg1 = (*C.gchar)(unsafe.Pointer(C.CString(uri))) defer C.free(unsafe.Pointer(carg1)) - C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_http_proxy(unsafe.Pointer(parentclass.set_http_proxy), carg0, carg1) + C._goglib_gstwebrtc1_WebRTCICE_virtual_set_http_proxy(unsafe.Pointer(parentclass.set_http_proxy), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(uri) } @@ -3476,7 +3476,7 @@ func (ice *WebRTCICEInstance) ParentSetIsController(controller bool) { carg1 = C.TRUE } - C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_is_controller(unsafe.Pointer(parentclass.set_is_controller), carg0, carg1) + C._goglib_gstwebrtc1_WebRTCICE_virtual_set_is_controller(unsafe.Pointer(parentclass.set_is_controller), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(controller) } @@ -3509,7 +3509,7 @@ func (ice *WebRTCICEInstance) ParentSetLocalCredentials(stream WebRTCICEStream, carg3 = (*C.gchar)(unsafe.Pointer(C.CString(pwd))) defer C.free(unsafe.Pointer(carg3)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_local_credentials(unsafe.Pointer(parentclass.set_local_credentials), carg0, carg1, carg2, carg3) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_set_local_credentials(unsafe.Pointer(parentclass.set_local_credentials), carg0, carg1, carg2, carg3) runtime.KeepAlive(ice) runtime.KeepAlive(stream) runtime.KeepAlive(ufrag) @@ -3552,7 +3552,7 @@ func (ice *WebRTCICEInstance) ParentSetRemoteCredentials(stream WebRTCICEStream, carg3 = (*C.gchar)(unsafe.Pointer(C.CString(pwd))) defer C.free(unsafe.Pointer(carg3)) - cret = C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_remote_credentials(unsafe.Pointer(parentclass.set_remote_credentials), carg0, carg1, carg2, carg3) + cret = C._goglib_gstwebrtc1_WebRTCICE_virtual_set_remote_credentials(unsafe.Pointer(parentclass.set_remote_credentials), carg0, carg1, carg2, carg3) runtime.KeepAlive(ice) runtime.KeepAlive(stream) runtime.KeepAlive(ufrag) @@ -3585,7 +3585,7 @@ func (ice *WebRTCICEInstance) ParentSetStunServer(uri string) { defer C.free(unsafe.Pointer(carg1)) } - C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_stun_server(unsafe.Pointer(parentclass.set_stun_server), carg0, carg1) + C._goglib_gstwebrtc1_WebRTCICE_virtual_set_stun_server(unsafe.Pointer(parentclass.set_stun_server), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(uri) } @@ -3608,7 +3608,7 @@ func (ice *WebRTCICEInstance) ParentSetTos(stream WebRTCICEStream, tos uint) { carg1 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) carg2 = C.guint(tos) - C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_tos(unsafe.Pointer(parentclass.set_tos), carg0, carg1, carg2) + C._goglib_gstwebrtc1_WebRTCICE_virtual_set_tos(unsafe.Pointer(parentclass.set_tos), carg0, carg1, carg2) runtime.KeepAlive(ice) runtime.KeepAlive(stream) runtime.KeepAlive(tos) @@ -3632,7 +3632,7 @@ func (ice *WebRTCICEInstance) ParentSetTurnServer(uri string) { defer C.free(unsafe.Pointer(carg1)) } - C._gotk4_gstwebrtc1_WebRTCICE_virtual_set_turn_server(unsafe.Pointer(parentclass.set_turn_server), carg0, carg1) + C._goglib_gstwebrtc1_WebRTCICE_virtual_set_turn_server(unsafe.Pointer(parentclass.set_turn_server), carg0, carg1) runtime.KeepAlive(ice) runtime.KeepAlive(uri) } @@ -3852,10 +3852,10 @@ func UnsafeApplyWebRTCICEStreamOverrides[Instance WebRTCICEStream](gclass unsafe pclass := (*C.GstWebRTCICEStreamClass)(gclass) if overrides.FindTransport != nil { - pclass.find_transport = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICEStream_find_transport) + pclass.find_transport = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICEStream_find_transport) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICEStream_find_transport", + "_goglib_gstwebrtc1_WebRTCICEStream_find_transport", func(carg0 *C.GstWebRTCICEStream, carg1 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { var stream Instance // go GstWebRTCICEStream subclass var component WebRTCICEComponent // in, none, casted @@ -3876,10 +3876,10 @@ func UnsafeApplyWebRTCICEStreamOverrides[Instance WebRTCICEStream](gclass unsafe } if overrides.GatherCandidates != nil { - pclass.gather_candidates = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates) + pclass.gather_candidates = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICEStream_gather_candidates) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates", + "_goglib_gstwebrtc1_WebRTCICEStream_gather_candidates", func(carg0 *C.GstWebRTCICEStream) (cret C.gboolean) { var ice Instance // go GstWebRTCICEStream subclass var goret bool // return @@ -3918,7 +3918,7 @@ func (stream *WebRTCICEStreamInstance) ParentFindTransport(component WebRTCICECo carg0 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(stream)) carg1 = C.GstWebRTCICEComponent(component) - cret = C._gotk4_gstwebrtc1_WebRTCICEStream_virtual_find_transport(unsafe.Pointer(parentclass.find_transport), carg0, carg1) + cret = C._goglib_gstwebrtc1_WebRTCICEStream_virtual_find_transport(unsafe.Pointer(parentclass.find_transport), carg0, carg1) runtime.KeepAlive(stream) runtime.KeepAlive(component) @@ -3945,7 +3945,7 @@ func (ice *WebRTCICEStreamInstance) ParentGatherCandidates() bool { carg0 = (*C.GstWebRTCICEStream)(UnsafeWebRTCICEStreamToGlibNone(ice)) - cret = C._gotk4_gstwebrtc1_WebRTCICEStream_virtual_gather_candidates(unsafe.Pointer(parentclass.gather_candidates), carg0) + cret = C._goglib_gstwebrtc1_WebRTCICEStream_virtual_gather_candidates(unsafe.Pointer(parentclass.gather_candidates), carg0) runtime.KeepAlive(ice) var goret bool @@ -4188,10 +4188,10 @@ func UnsafeApplyWebRTCICETransportOverrides[Instance WebRTCICETransport](gclass pclass := (*C.GstWebRTCICETransportClass)(gclass) if overrides.GatherCandidates != nil { - pclass.gather_candidates = (*[0]byte)(C._gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates) + pclass.gather_candidates = (*[0]byte)(C._goglib_gstwebrtc1_WebRTCICETransport_gather_candidates) classdata.StoreVirtualMethod( unsafe.Pointer(pclass), - "_gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates", + "_goglib_gstwebrtc1_WebRTCICETransport_gather_candidates", func(carg0 *C.GstWebRTCICETransport) (cret C.gboolean) { var transport Instance // go GstWebRTCICETransport subclass var goret bool // return @@ -4224,7 +4224,7 @@ func (transport *WebRTCICETransportInstance) ParentGatherCandidates() bool { carg0 = (*C.GstWebRTCICETransport)(UnsafeWebRTCICETransportToGlibNone(transport)) - cret = C._gotk4_gstwebrtc1_WebRTCICETransport_virtual_gather_candidates(unsafe.Pointer(parentclass.gather_candidates), carg0) + cret = C._goglib_gstwebrtc1_WebRTCICETransport_virtual_gather_candidates(unsafe.Pointer(parentclass.gather_candidates), carg0) runtime.KeepAlive(transport) var goret bool diff --git a/pkg/gstwebrtc/gstwebrtc_export.gen.go b/pkg/gstwebrtc/gstwebrtc_export.gen.go index 1ac2240..52e62b7 100644 --- a/pkg/gstwebrtc/gstwebrtc_export.gen.go +++ b/pkg/gstwebrtc/gstwebrtc_export.gen.go @@ -5,15 +5,15 @@ package gstwebrtc import ( "unsafe" - "github.com/diamondburned/gotk4/pkg/core/classdata" - "github.com/diamondburned/gotk4/pkg/core/userdata" + "github.com/go-gst/go-glib/pkg/core/classdata" + "github.com/go-gst/go-glib/pkg/core/userdata" ) // #include import "C" -//export _gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc -func _gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc(carg1 *C.GstWebRTCICE, carg2 C.guint, carg3 *C.gchar, carg4 C.gpointer) { +//export _goglib_gstwebrtc1_WebRTCICEOnCandidateFunc +func _goglib_gstwebrtc1_WebRTCICEOnCandidateFunc(carg1 *C.GstWebRTCICE, carg2 C.guint, carg3 *C.gchar, carg4 C.gpointer) { var fn WebRTCICEOnCandidateFunc { v := userdata.Load(unsafe.Pointer(carg4)) @@ -34,253 +34,253 @@ func _gotk4_gstwebrtc1_WebRTCICEOnCandidateFunc(carg1 *C.GstWebRTCICE, carg2 C.g fn(ice, streamId, candidate) } -//export _gotk4_gstwebrtc1_WebRTCICE_add_candidate -func _gotk4_gstwebrtc1_WebRTCICE_add_candidate(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.GstPromise) { +//export _goglib_gstwebrtc1_WebRTCICE_add_candidate +func _goglib_gstwebrtc1_WebRTCICE_add_candidate(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.GstPromise) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.GstPromise) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_add_candidate").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.GstPromise)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_add_candidate").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.GstPromise)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_add_candidate: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_add_candidate: no function pointer found") } } fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstwebrtc1_WebRTCICE_add_stream -func _gotk4_gstwebrtc1_WebRTCICE_add_stream(carg0 *C.GstWebRTCICE, carg1 C.guint) (cret *C.GstWebRTCICEStream) { +//export _goglib_gstwebrtc1_WebRTCICE_add_stream +func _goglib_gstwebrtc1_WebRTCICE_add_stream(carg0 *C.GstWebRTCICE, carg1 C.guint) (cret *C.GstWebRTCICEStream) { var fn func(carg0 *C.GstWebRTCICE, carg1 C.guint) (cret *C.GstWebRTCICEStream) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_add_stream").(func(carg0 *C.GstWebRTCICE, carg1 C.guint) (cret *C.GstWebRTCICEStream)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_add_stream").(func(carg0 *C.GstWebRTCICE, carg1 C.guint) (cret *C.GstWebRTCICEStream)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_add_stream: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_add_stream: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_add_turn_server -func _gotk4_gstwebrtc1_WebRTCICE_add_turn_server(carg0 *C.GstWebRTCICE, carg1 *C.gchar) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_add_turn_server +func _goglib_gstwebrtc1_WebRTCICE_add_turn_server(carg0 *C.GstWebRTCICE, carg1 *C.gchar) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_add_turn_server").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_add_turn_server").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_add_turn_server: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_add_turn_server: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_find_transport -func _gotk4_gstwebrtc1_WebRTCICE_find_transport(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { +//export _goglib_gstwebrtc1_WebRTCICE_find_transport +func _goglib_gstwebrtc1_WebRTCICE_find_transport(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_find_transport").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_find_transport").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_find_transport: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_find_transport: no function pointer found") } } return fn(carg0, carg1, carg2) } -//export _gotk4_gstwebrtc1_WebRTCICE_gather_candidates -func _gotk4_gstwebrtc1_WebRTCICE_gather_candidates(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_gather_candidates +func _goglib_gstwebrtc1_WebRTCICE_gather_candidates(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_gather_candidates").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_gather_candidates").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_gather_candidates: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_gather_candidates: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_get_http_proxy -func _gotk4_gstwebrtc1_WebRTCICE_get_http_proxy(carg0 *C.GstWebRTCICE) (cret *C.gchar) { +//export _goglib_gstwebrtc1_WebRTCICE_get_http_proxy +func _goglib_gstwebrtc1_WebRTCICE_get_http_proxy(carg0 *C.GstWebRTCICE) (cret *C.gchar) { var fn func(carg0 *C.GstWebRTCICE) (cret *C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_get_http_proxy").(func(carg0 *C.GstWebRTCICE) (cret *C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_get_http_proxy").(func(carg0 *C.GstWebRTCICE) (cret *C.gchar)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_get_http_proxy: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_get_http_proxy: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstwebrtc1_WebRTCICE_get_is_controller -func _gotk4_gstwebrtc1_WebRTCICE_get_is_controller(carg0 *C.GstWebRTCICE) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_get_is_controller +func _goglib_gstwebrtc1_WebRTCICE_get_is_controller(carg0 *C.GstWebRTCICE) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICE) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_get_is_controller").(func(carg0 *C.GstWebRTCICE) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_get_is_controller").(func(carg0 *C.GstWebRTCICE) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_get_is_controller: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_get_is_controller: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstwebrtc1_WebRTCICE_get_selected_pair -func _gotk4_gstwebrtc1_WebRTCICE_get_selected_pair(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 **C.GstWebRTCICECandidateStats, carg3 **C.GstWebRTCICECandidateStats) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_get_selected_pair +func _goglib_gstwebrtc1_WebRTCICE_get_selected_pair(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 **C.GstWebRTCICECandidateStats, carg3 **C.GstWebRTCICECandidateStats) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 **C.GstWebRTCICECandidateStats, carg3 **C.GstWebRTCICECandidateStats) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_get_selected_pair").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 **C.GstWebRTCICECandidateStats, carg3 **C.GstWebRTCICECandidateStats) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_get_selected_pair").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 **C.GstWebRTCICECandidateStats, carg3 **C.GstWebRTCICECandidateStats) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_get_selected_pair: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_get_selected_pair: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstwebrtc1_WebRTCICE_get_stun_server -func _gotk4_gstwebrtc1_WebRTCICE_get_stun_server(carg0 *C.GstWebRTCICE) (cret *C.gchar) { +//export _goglib_gstwebrtc1_WebRTCICE_get_stun_server +func _goglib_gstwebrtc1_WebRTCICE_get_stun_server(carg0 *C.GstWebRTCICE) (cret *C.gchar) { var fn func(carg0 *C.GstWebRTCICE) (cret *C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_get_stun_server").(func(carg0 *C.GstWebRTCICE) (cret *C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_get_stun_server").(func(carg0 *C.GstWebRTCICE) (cret *C.gchar)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_get_stun_server: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_get_stun_server: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstwebrtc1_WebRTCICE_get_turn_server -func _gotk4_gstwebrtc1_WebRTCICE_get_turn_server(carg0 *C.GstWebRTCICE) (cret *C.gchar) { +//export _goglib_gstwebrtc1_WebRTCICE_get_turn_server +func _goglib_gstwebrtc1_WebRTCICE_get_turn_server(carg0 *C.GstWebRTCICE) (cret *C.gchar) { var fn func(carg0 *C.GstWebRTCICE) (cret *C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_get_turn_server").(func(carg0 *C.GstWebRTCICE) (cret *C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_get_turn_server").(func(carg0 *C.GstWebRTCICE) (cret *C.gchar)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_get_turn_server: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_get_turn_server: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_force_relay -func _gotk4_gstwebrtc1_WebRTCICE_set_force_relay(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_set_force_relay +func _goglib_gstwebrtc1_WebRTCICE_set_force_relay(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_force_relay").(func(carg0 *C.GstWebRTCICE, carg1 C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_force_relay").(func(carg0 *C.GstWebRTCICE, carg1 C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_force_relay: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_force_relay: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_http_proxy -func _gotk4_gstwebrtc1_WebRTCICE_set_http_proxy(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { +//export _goglib_gstwebrtc1_WebRTCICE_set_http_proxy +func _goglib_gstwebrtc1_WebRTCICE_set_http_proxy(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_http_proxy").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_http_proxy").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_http_proxy: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_http_proxy: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_is_controller -func _gotk4_gstwebrtc1_WebRTCICE_set_is_controller(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_set_is_controller +func _goglib_gstwebrtc1_WebRTCICE_set_is_controller(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_is_controller").(func(carg0 *C.GstWebRTCICE, carg1 C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_is_controller").(func(carg0 *C.GstWebRTCICE, carg1 C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_is_controller: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_is_controller: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_local_credentials -func _gotk4_gstwebrtc1_WebRTCICE_set_local_credentials(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_set_local_credentials +func _goglib_gstwebrtc1_WebRTCICE_set_local_credentials(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_local_credentials").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_local_credentials").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_local_credentials: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_local_credentials: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials -func _gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICE_set_remote_credentials +func _goglib_gstwebrtc1_WebRTCICE_set_remote_credentials(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_remote_credentials").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 *C.gchar, carg3 *C.gchar) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_remote_credentials: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_remote_credentials: no function pointer found") } } return fn(carg0, carg1, carg2, carg3) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_stun_server -func _gotk4_gstwebrtc1_WebRTCICE_set_stun_server(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { +//export _goglib_gstwebrtc1_WebRTCICE_set_stun_server +func _goglib_gstwebrtc1_WebRTCICE_set_stun_server(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_stun_server").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_stun_server").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_stun_server: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_stun_server: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_tos -func _gotk4_gstwebrtc1_WebRTCICE_set_tos(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.guint) { +//export _goglib_gstwebrtc1_WebRTCICE_set_tos +func _goglib_gstwebrtc1_WebRTCICE_set_tos(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.guint) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.guint) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_tos").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.guint)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_tos").(func(carg0 *C.GstWebRTCICE, carg1 *C.GstWebRTCICEStream, carg2 C.guint)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_tos: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_tos: no function pointer found") } } fn(carg0, carg1, carg2) } -//export _gotk4_gstwebrtc1_WebRTCICE_set_turn_server -func _gotk4_gstwebrtc1_WebRTCICE_set_turn_server(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { +//export _goglib_gstwebrtc1_WebRTCICE_set_turn_server +func _goglib_gstwebrtc1_WebRTCICE_set_turn_server(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { var fn func(carg0 *C.GstWebRTCICE, carg1 *C.gchar) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICE_set_turn_server").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICE_set_turn_server").(func(carg0 *C.GstWebRTCICE, carg1 *C.gchar)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICE_set_turn_server: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICE_set_turn_server: no function pointer found") } } fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICEStream_find_transport -func _gotk4_gstwebrtc1_WebRTCICEStream_find_transport(carg0 *C.GstWebRTCICEStream, carg1 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { +//export _goglib_gstwebrtc1_WebRTCICEStream_find_transport +func _goglib_gstwebrtc1_WebRTCICEStream_find_transport(carg0 *C.GstWebRTCICEStream, carg1 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { var fn func(carg0 *C.GstWebRTCICEStream, carg1 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICEStream_find_transport").(func(carg0 *C.GstWebRTCICEStream, carg1 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICEStream_find_transport").(func(carg0 *C.GstWebRTCICEStream, carg1 C.GstWebRTCICEComponent) (cret *C.GstWebRTCICETransport)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICEStream_find_transport: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICEStream_find_transport: no function pointer found") } } return fn(carg0, carg1) } -//export _gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates -func _gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates(carg0 *C.GstWebRTCICEStream) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICEStream_gather_candidates +func _goglib_gstwebrtc1_WebRTCICEStream_gather_candidates(carg0 *C.GstWebRTCICEStream) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICEStream) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates").(func(carg0 *C.GstWebRTCICEStream) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICEStream_gather_candidates").(func(carg0 *C.GstWebRTCICEStream) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICEStream_gather_candidates: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICEStream_gather_candidates: no function pointer found") } } return fn(carg0) } -//export _gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates -func _gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates(carg0 *C.GstWebRTCICETransport) (cret C.gboolean) { +//export _goglib_gstwebrtc1_WebRTCICETransport_gather_candidates +func _goglib_gstwebrtc1_WebRTCICETransport_gather_candidates(carg0 *C.GstWebRTCICETransport) (cret C.gboolean) { var fn func(carg0 *C.GstWebRTCICETransport) (cret C.gboolean) { - fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates").(func(carg0 *C.GstWebRTCICETransport) (cret C.gboolean)) + fn = classdata.LoadVirtualMethodFromInstance(unsafe.Pointer(carg0), "_goglib_gstwebrtc1_WebRTCICETransport_gather_candidates").(func(carg0 *C.GstWebRTCICETransport) (cret C.gboolean)) if fn == nil { - panic("_gotk4_gstwebrtc1_WebRTCICETransport_gather_candidates: no function pointer found") + panic("_goglib_gstwebrtc1_WebRTCICETransport_gather_candidates: no function pointer found") } } return fn(carg0)