gstreamer-audio-sys-0.8.0/CHANGELOG.md010064400017500001750000000123571350417527100154720ustar0000000000000000# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html), specifically the [variant used by Rust](http://doc.crates.io/manifest.html#the-version-field). ## [0.8.0] - 2019-06-24 ### Added - GstGLDisplayX11 and GstGLDisplayWayland were added to gstreamer-gl-sys in addition to GstGLDisplayEGL that existed before ### Changed - Updated to GStreamer 1.16.0 .gir files, plus backported fixes - Updated to latest gir - Run all code through rustfmt after code generation ## [0.7.0] - 2019-02-22 ### Added - GstGL (OpenGL/GLES) bindings ### Changed - Switch to Rust 1.31 as minimum supported version - Generate GstVideoOverlayFormatFlags as flags type instead of enum - Updates GstMpegts with various annotation fixes from GStreamer git master ## [0.6.1] - 2018-11-10 ### Added - GstCheck and GES (gstreamer editing services) bindings ### Changed - Updated .gir files to 1.14.4 release - All references were updated from GitHub to freedesktop.org GitLab - Various functions take \*const instead of \*mut as parameters now ### Fixed - Various functions and structs having pointer-of-array parameters/fields have now fixed types. They were previously flat arrays instead of pointer-of-arrays. - Set gstreamer-webrtc-sys minimum version to 1.14. It did not exist before that ## [0.6.0] - 2018-09-08 ### Changed - Updated everything to GStreamer 1.14.2 - Various fixes to how the code generator is used - Regenerate with latest GIR code generator ### Fixed - WebRTCICETransport and WebRTCDTLSTransport have the correct parent class struct - gstreamer-webrtc-sys correctly depends/links to gstreamer-sys - Removed unneeded dependencies from the code generator configuration files ## [0.5.0] - 2018-03-20 ### Changed - Updated everything to GStreamer 1.14.0 ### Added - GstSdp, GstRtsp, GstRtspServer and GstWebRTC bindings ### Fixed - Use external_libraries feature of gir to require less manual editing - Remove some unused crates from dependencies - Disale print_system_libs in calls to pkg-config to work better with non-system installs of GStreamer ## [0.4.1] - 2018-02-18 ### Fixed - Fix native library name of GstNet bindings ## [0.4.0] - 2017-12-23 ### Added - GstNet bindings - Debug impls for basically every type - Script to automatically regenerate everything ### Changed - gst_player_[sg]et_multiview_mode() argument types were changed from GstMultiviewMode to GstMultiviewFramePacking, which is the correct subset of the former that is allowed here - gst_plugin_add_dependency() takes *mut *mut c_char as argument type instead of *mut *const c_char ## [0.3.0] - 2017-11-26 ### Added - GstMpegTs bindings ### Changed - GstDebugColorFlags from an enum to a bitfield - Updated to bitflags 1.0 - Added support for the "dox" feature to generate documentation for all possible versions - Depend on glib-sys/gobject-sys 0.5 ### Fixes - GstStackTraceFlags, gst_flow_combiner_ref/unref are only available since 1.12 and 1.12.1 respectively - All C enums are represented as integers + constants now to prevent undefined behaviour when out-of-range values are received ## [0.2.1] - 2017-09-10 ### Changed - Add README.md to all crates directly ### Fixed - Fix various compiler warnings - Fix versioning/feature mess. Now each library has features for all major versions and for the correct minor versions that added API. - Removed Cargo.lock from GIT ## [0.2.0] - 2017-08-28 ### Added - Add GstPlayer bindings ### Changed - Depend on bitflags 0.9 - Update GIR files to 1.12.1 release - Fix various errors in the GIR files, backported from GStreamer GIT master - Depend on gobject-sys/glib-sys 0.4.0 for various improvements - Regenerated everything with latest GIR ## [0.1.1] - 2017-05-10 ### Added - Add GstTag and GstApp bindings - Add lots of missing fields to all the structs thanks to GIR improvements ### Changed - Update GIR files to 1.12.0 release - Depend on gobject-sys/glib-sys 0.3.4 release for more complete structs - Regenerated everything with latest GIR ## 0.1.0 - 2017-04-09 - Initial release of the autogenerated GStreamer FFI bindings. [Unreleased]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.8.0...HEAD [0.8.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.7.0...0.8.0 [0.7.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.6.1...0.7.0 [0.6.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.6.0...0.6.1 [0.6.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.5.0...0.6.0 [0.5.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.4.1...0.5.0 [0.4.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.4.0...0.4.1 [0.4.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.3.0...0.4.0 [0.3.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.2.1...0.3.0 [0.2.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.2.0...0.2.1 [0.2.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.1.1...0.2.0 [0.1.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/compare/0.1.0...0.1.1 gstreamer-audio-sys-0.8.0/Cargo.toml.orig010064400017500001750000000020571350417544000165420ustar0000000000000000[build-dependencies] pkg-config = "0.3.7" [dependencies] libc = "0.2" [dependencies.glib-sys] version = "0.9" [dependencies.gobject-sys] version = "0.9" [dependencies.gstreamer-base-sys] path = "../gstreamer-base-sys" version = "0.8" [dependencies.gstreamer-sys] path = "../gstreamer-sys" version = "0.8" [dev-dependencies] shell-words = "0.1.0" tempdir = "0.3" [features] v1_2 = [] v1_4 = ["v1_2"] v1_6 = ["v1_4"] v1_8 = ["v1_6"] v1_10 = ["v1_8"] v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] dox = [] [lib] name = "gstreamer_audio_sys" [package] authors = ["Sebastian Dröge "] build = "build.rs" description = "FFI bindings to libgstaudio-1.0" documentation = "https://slomo.pages.freedesktop.org/rustdocs/gstreamer-sys/gstreamer_audio_sys/" homepage = "https://gstreamer.freedesktop.org" keywords = ["ffi", "gstreamer", "gnome", "multimedia"] license = "MIT" links = "gstaudio-1.0" name = "gstreamer-audio-sys" readme = "README.md" repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys" version = "0.8.0" gstreamer-audio-sys-0.8.0/Cargo.toml0000644000000030640000000000000130050ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "gstreamer-audio-sys" version = "0.8.0" authors = ["Sebastian Dröge "] build = "build.rs" links = "gstaudio-1.0" description = "FFI bindings to libgstaudio-1.0" homepage = "https://gstreamer.freedesktop.org" documentation = "https://slomo.pages.freedesktop.org/rustdocs/gstreamer-sys/gstreamer_audio_sys/" readme = "README.md" keywords = ["ffi", "gstreamer", "gnome", "multimedia"] license = "MIT" repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys" [lib] name = "gstreamer_audio_sys" [dependencies.glib-sys] version = "0.9" [dependencies.gobject-sys] version = "0.9" [dependencies.gstreamer-base-sys] version = "0.8" [dependencies.gstreamer-sys] version = "0.8" [dependencies.libc] version = "0.2" [dev-dependencies.shell-words] version = "0.1.0" [dev-dependencies.tempdir] version = "0.3" [build-dependencies.pkg-config] version = "0.3.7" [features] dox = [] v1_10 = ["v1_8"] v1_12 = ["v1_10"] v1_14 = ["v1_12"] v1_16 = ["v1_14"] v1_2 = [] v1_4 = ["v1_2"] v1_6 = ["v1_4"] v1_8 = ["v1_6"] gstreamer-audio-sys-0.8.0/LICENSE010064400017500001750000000021321310627133400146470ustar0000000000000000The MIT License (MIT) Copyright (c) 2017 Sebastian Dröge . 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. gstreamer-audio-sys-0.8.0/README.md010064400017500001750000000033501340451366600151340ustar0000000000000000# NOTE: The canonical repository for gstreamer-sys has moved to [freedesktop.org GitLab](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys)! # gstreamer-sys [![crates.io](https://img.shields.io/crates/v/gstreamer-audio-sys.svg)](https://crates.io/crates/gstreamer-audio-sys) [![pipeline status](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/badges/master/pipeline.svg)](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/commits/master) [GStreamer](https://gstreamer.freedesktop.org/) (Audio library) FFI bindings for Rust. These bindings are providing unsafe FFI API that can be used to interface with GStreamer. Generally they are meant to be used as the building block for higher-level abstractions like: * Bindings for GStreamer applications and plugins: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs * Various GStreamer plugins written in Rust: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs The bindings are autogenerated with [gir](https://github.com/gtk-rs/gir/) based on the [GObject-Introspection](https://wiki.gnome.org/Projects/GObjectIntrospection/) API metadata provided by the GStreamer project. ## LICENSE gstreamer-sys and all crates contained here are licensed under the MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT). GStreamer itself is licensed under the Lesser General Public License version 2.1 or (at your option) any later version: https://www.gnu.org/licenses/lgpl-2.1.html ## Contribution Any kinds of contributions are welcome as a pull request. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gstreamer-rs by you shall be licensed under the MIT license as above, without any additional terms or conditions. gstreamer-audio-sys-0.8.0/build.rs010064400017500001750000000051551350417404300153200ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae7210) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT extern crate pkg_config; use pkg_config::{Config, Error}; use std::env; use std::io; use std::io::prelude::*; use std::process; fn main() { if let Err(s) = find() { let _ = writeln!(io::stderr(), "{}", s); process::exit(1); } } fn find() -> Result<(), Error> { let package_name = "gstreamer-audio-1.0"; let shared_libs = ["gstaudio-1.0"]; let version = if cfg!(feature = "v1_16") { "1.16" } else if cfg!(feature = "v1_14") { "1.14" } else if cfg!(feature = "v1_12") { "1.12" } else if cfg!(feature = "v1_10") { "1.10" } else if cfg!(feature = "v1_8") { "1.8" } else if cfg!(feature = "v1_6") { "1.6" } else if cfg!(feature = "v1_4") { "1.4" } else if cfg!(feature = "v1_2") { "1.2" } else { "1.0" }; if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") { println!("cargo:include={}", inc_dir); } if let Ok(lib_dir) = env::var("GTK_LIB_DIR") { for lib_ in shared_libs.iter() { println!("cargo:rustc-link-lib=dylib={}", lib_); } println!("cargo:rustc-link-search=native={}", lib_dir); return Ok(()); } let target = env::var("TARGET").expect("TARGET environment variable doesn't exist"); let hardcode_shared_libs = target.contains("windows"); let mut config = Config::new(); config.atleast_version(version); config.print_system_libs(false); if hardcode_shared_libs { config.cargo_metadata(false); } match config.probe(package_name) { Ok(library) => { if let Ok(paths) = std::env::join_paths(library.include_paths) { println!("cargo:include={}", paths.to_string_lossy()); } if hardcode_shared_libs { for lib_ in shared_libs.iter() { println!("cargo:rustc-link-lib=dylib={}", lib_); } for path in library.link_paths.iter() { println!( "cargo:rustc-link-search=native={}", path.to_str().expect("library path doesn't exist") ); } } Ok(()) } Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => { for lib_ in shared_libs.iter() { println!("cargo:rustc-link-lib=dylib={}", lib_); } Ok(()) } Err(err) => Err(err), } } gstreamer-audio-sys-0.8.0/src/lib.rs010064400017500001750000002641461350417404100155630ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir @ 20feecf) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow( clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal )] extern crate glib_sys as glib; extern crate gobject_sys as gobject; extern crate gstreamer_base_sys as gst_base; extern crate gstreamer_sys as gst; extern crate libc; #[allow(unused_imports)] use libc::{ c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE, }; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; // Enums pub type GstAudioBaseSinkDiscontReason = c_int; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT: GstAudioBaseSinkDiscontReason = 0; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS: GstAudioBaseSinkDiscontReason = 1; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH: GstAudioBaseSinkDiscontReason = 2; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY: GstAudioBaseSinkDiscontReason = 3; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT: GstAudioBaseSinkDiscontReason = 4; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE: GstAudioBaseSinkDiscontReason = 5; pub type GstAudioBaseSinkSlaveMethod = c_int; pub const GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE: GstAudioBaseSinkSlaveMethod = 0; pub const GST_AUDIO_BASE_SINK_SLAVE_SKEW: GstAudioBaseSinkSlaveMethod = 1; pub const GST_AUDIO_BASE_SINK_SLAVE_NONE: GstAudioBaseSinkSlaveMethod = 2; pub const GST_AUDIO_BASE_SINK_SLAVE_CUSTOM: GstAudioBaseSinkSlaveMethod = 3; pub type GstAudioBaseSrcSlaveMethod = c_int; pub const GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE: GstAudioBaseSrcSlaveMethod = 0; pub const GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP: GstAudioBaseSrcSlaveMethod = 1; pub const GST_AUDIO_BASE_SRC_SLAVE_SKEW: GstAudioBaseSrcSlaveMethod = 2; pub const GST_AUDIO_BASE_SRC_SLAVE_NONE: GstAudioBaseSrcSlaveMethod = 3; pub type GstAudioCdSrcMode = c_int; pub const GST_AUDIO_CD_SRC_MODE_NORMAL: GstAudioCdSrcMode = 0; pub const GST_AUDIO_CD_SRC_MODE_CONTINUOUS: GstAudioCdSrcMode = 1; pub type GstAudioChannelPosition = c_int; pub const GST_AUDIO_CHANNEL_POSITION_NONE: GstAudioChannelPosition = -3; pub const GST_AUDIO_CHANNEL_POSITION_MONO: GstAudioChannelPosition = -2; pub const GST_AUDIO_CHANNEL_POSITION_INVALID: GstAudioChannelPosition = -1; pub const GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT: GstAudioChannelPosition = 0; pub const GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT: GstAudioChannelPosition = 1; pub const GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER: GstAudioChannelPosition = 2; pub const GST_AUDIO_CHANNEL_POSITION_LFE1: GstAudioChannelPosition = 3; pub const GST_AUDIO_CHANNEL_POSITION_REAR_LEFT: GstAudioChannelPosition = 4; pub const GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT: GstAudioChannelPosition = 5; pub const GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER: GstAudioChannelPosition = 6; pub const GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER: GstAudioChannelPosition = 7; pub const GST_AUDIO_CHANNEL_POSITION_REAR_CENTER: GstAudioChannelPosition = 8; pub const GST_AUDIO_CHANNEL_POSITION_LFE2: GstAudioChannelPosition = 9; pub const GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT: GstAudioChannelPosition = 10; pub const GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT: GstAudioChannelPosition = 11; pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT: GstAudioChannelPosition = 12; pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT: GstAudioChannelPosition = 13; pub const GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER: GstAudioChannelPosition = 14; pub const GST_AUDIO_CHANNEL_POSITION_TOP_CENTER: GstAudioChannelPosition = 15; pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT: GstAudioChannelPosition = 16; pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT: GstAudioChannelPosition = 17; pub const GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT: GstAudioChannelPosition = 18; pub const GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT: GstAudioChannelPosition = 19; pub const GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER: GstAudioChannelPosition = 20; pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER: GstAudioChannelPosition = 21; pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT: GstAudioChannelPosition = 22; pub const GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT: GstAudioChannelPosition = 23; pub const GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT: GstAudioChannelPosition = 24; pub const GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT: GstAudioChannelPosition = 25; pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT: GstAudioChannelPosition = 26; pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT: GstAudioChannelPosition = 27; pub type GstAudioDitherMethod = c_int; pub const GST_AUDIO_DITHER_NONE: GstAudioDitherMethod = 0; pub const GST_AUDIO_DITHER_RPDF: GstAudioDitherMethod = 1; pub const GST_AUDIO_DITHER_TPDF: GstAudioDitherMethod = 2; pub const GST_AUDIO_DITHER_TPDF_HF: GstAudioDitherMethod = 3; pub type GstAudioFormat = c_int; pub const GST_AUDIO_FORMAT_UNKNOWN: GstAudioFormat = 0; pub const GST_AUDIO_FORMAT_ENCODED: GstAudioFormat = 1; pub const GST_AUDIO_FORMAT_S8: GstAudioFormat = 2; pub const GST_AUDIO_FORMAT_U8: GstAudioFormat = 3; pub const GST_AUDIO_FORMAT_S16LE: GstAudioFormat = 4; pub const GST_AUDIO_FORMAT_S16BE: GstAudioFormat = 5; pub const GST_AUDIO_FORMAT_U16LE: GstAudioFormat = 6; pub const GST_AUDIO_FORMAT_U16BE: GstAudioFormat = 7; pub const GST_AUDIO_FORMAT_S24_32LE: GstAudioFormat = 8; pub const GST_AUDIO_FORMAT_S24_32BE: GstAudioFormat = 9; pub const GST_AUDIO_FORMAT_U24_32LE: GstAudioFormat = 10; pub const GST_AUDIO_FORMAT_U24_32BE: GstAudioFormat = 11; pub const GST_AUDIO_FORMAT_S32LE: GstAudioFormat = 12; pub const GST_AUDIO_FORMAT_S32BE: GstAudioFormat = 13; pub const GST_AUDIO_FORMAT_U32LE: GstAudioFormat = 14; pub const GST_AUDIO_FORMAT_U32BE: GstAudioFormat = 15; pub const GST_AUDIO_FORMAT_S24LE: GstAudioFormat = 16; pub const GST_AUDIO_FORMAT_S24BE: GstAudioFormat = 17; pub const GST_AUDIO_FORMAT_U24LE: GstAudioFormat = 18; pub const GST_AUDIO_FORMAT_U24BE: GstAudioFormat = 19; pub const GST_AUDIO_FORMAT_S20LE: GstAudioFormat = 20; pub const GST_AUDIO_FORMAT_S20BE: GstAudioFormat = 21; pub const GST_AUDIO_FORMAT_U20LE: GstAudioFormat = 22; pub const GST_AUDIO_FORMAT_U20BE: GstAudioFormat = 23; pub const GST_AUDIO_FORMAT_S18LE: GstAudioFormat = 24; pub const GST_AUDIO_FORMAT_S18BE: GstAudioFormat = 25; pub const GST_AUDIO_FORMAT_U18LE: GstAudioFormat = 26; pub const GST_AUDIO_FORMAT_U18BE: GstAudioFormat = 27; pub const GST_AUDIO_FORMAT_F32LE: GstAudioFormat = 28; pub const GST_AUDIO_FORMAT_F32BE: GstAudioFormat = 29; pub const GST_AUDIO_FORMAT_F64LE: GstAudioFormat = 30; pub const GST_AUDIO_FORMAT_F64BE: GstAudioFormat = 31; pub type GstAudioLayout = c_int; pub const GST_AUDIO_LAYOUT_INTERLEAVED: GstAudioLayout = 0; pub const GST_AUDIO_LAYOUT_NON_INTERLEAVED: GstAudioLayout = 1; pub type GstAudioNoiseShapingMethod = c_int; pub const GST_AUDIO_NOISE_SHAPING_NONE: GstAudioNoiseShapingMethod = 0; pub const GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK: GstAudioNoiseShapingMethod = 1; pub const GST_AUDIO_NOISE_SHAPING_SIMPLE: GstAudioNoiseShapingMethod = 2; pub const GST_AUDIO_NOISE_SHAPING_MEDIUM: GstAudioNoiseShapingMethod = 3; pub const GST_AUDIO_NOISE_SHAPING_HIGH: GstAudioNoiseShapingMethod = 4; pub type GstAudioResamplerFilterInterpolation = c_int; pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE: GstAudioResamplerFilterInterpolation = 0; pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR: GstAudioResamplerFilterInterpolation = 1; pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC: GstAudioResamplerFilterInterpolation = 2; pub type GstAudioResamplerFilterMode = c_int; pub const GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED: GstAudioResamplerFilterMode = 0; pub const GST_AUDIO_RESAMPLER_FILTER_MODE_FULL: GstAudioResamplerFilterMode = 1; pub const GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO: GstAudioResamplerFilterMode = 2; pub type GstAudioResamplerMethod = c_int; pub const GST_AUDIO_RESAMPLER_METHOD_NEAREST: GstAudioResamplerMethod = 0; pub const GST_AUDIO_RESAMPLER_METHOD_LINEAR: GstAudioResamplerMethod = 1; pub const GST_AUDIO_RESAMPLER_METHOD_CUBIC: GstAudioResamplerMethod = 2; pub const GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL: GstAudioResamplerMethod = 3; pub const GST_AUDIO_RESAMPLER_METHOD_KAISER: GstAudioResamplerMethod = 4; pub type GstAudioRingBufferFormatType = c_int; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW: GstAudioRingBufferFormatType = 0; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW: GstAudioRingBufferFormatType = 1; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW: GstAudioRingBufferFormatType = 2; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM: GstAudioRingBufferFormatType = 3; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG: GstAudioRingBufferFormatType = 4; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM: GstAudioRingBufferFormatType = 5; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958: GstAudioRingBufferFormatType = 6; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3: GstAudioRingBufferFormatType = 7; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3: GstAudioRingBufferFormatType = 8; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS: GstAudioRingBufferFormatType = 9; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC: GstAudioRingBufferFormatType = 10; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC: GstAudioRingBufferFormatType = 11; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW: GstAudioRingBufferFormatType = 12; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW: GstAudioRingBufferFormatType = 13; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC: GstAudioRingBufferFormatType = 14; pub type GstAudioRingBufferState = c_int; pub const GST_AUDIO_RING_BUFFER_STATE_STOPPED: GstAudioRingBufferState = 0; pub const GST_AUDIO_RING_BUFFER_STATE_PAUSED: GstAudioRingBufferState = 1; pub const GST_AUDIO_RING_BUFFER_STATE_STARTED: GstAudioRingBufferState = 2; pub const GST_AUDIO_RING_BUFFER_STATE_ERROR: GstAudioRingBufferState = 3; pub type GstStreamVolumeFormat = c_int; pub const GST_STREAM_VOLUME_FORMAT_LINEAR: GstStreamVolumeFormat = 0; pub const GST_STREAM_VOLUME_FORMAT_CUBIC: GstStreamVolumeFormat = 1; pub const GST_STREAM_VOLUME_FORMAT_DB: GstStreamVolumeFormat = 2; // Constants pub const GST_AUDIO_CHANNELS_RANGE: *const c_char = b"(int) [ 1, max ]\0" as *const u8 as *const c_char; pub const GST_AUDIO_CONVERTER_OPT_DITHER_METHOD: *const c_char = b"GstAudioConverter.dither-method\0" as *const u8 as *const c_char; pub const GST_AUDIO_CONVERTER_OPT_MIX_MATRIX: *const c_char = b"GstAudioConverter.mix-matrix\0" as *const u8 as *const c_char; pub const GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD: *const c_char = b"GstAudioConverter.noise-shaping-method\0" as *const u8 as *const c_char; pub const GST_AUDIO_CONVERTER_OPT_QUANTIZATION: *const c_char = b"GstAudioConverter.quantization\0" as *const u8 as *const c_char; pub const GST_AUDIO_CONVERTER_OPT_RESAMPLER_METHOD: *const c_char = b"GstAudioConverter.resampler-method\0" as *const u8 as *const c_char; pub const GST_AUDIO_DECODER_MAX_ERRORS: c_int = 10; pub const GST_AUDIO_DECODER_SINK_NAME: *const c_char = b"sink\0" as *const u8 as *const c_char; pub const GST_AUDIO_DECODER_SRC_NAME: *const c_char = b"src\0" as *const u8 as *const c_char; pub const GST_AUDIO_DEF_CHANNELS: c_int = 2; pub const GST_AUDIO_DEF_FORMAT: *const c_char = b"S16LE\0" as *const u8 as *const c_char; pub const GST_AUDIO_DEF_RATE: c_int = 44100; pub const GST_AUDIO_ENCODER_SINK_NAME: *const c_char = b"sink\0" as *const u8 as *const c_char; pub const GST_AUDIO_ENCODER_SRC_NAME: *const c_char = b"src\0" as *const u8 as *const c_char; pub const GST_AUDIO_FORMATS_ALL: *const c_char = b" { S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }\0" as *const u8 as *const c_char; pub const GST_AUDIO_RATE_RANGE: *const c_char = b"(int) [ 1, max ]\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_CUBIC_B: *const c_char = b"GstAudioResampler.cubic-b\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_CUBIC_C: *const c_char = b"GstAudioResampler.cubic-c\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_CUTOFF: *const c_char = b"GstAudioResampler.cutoff\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_FILTER_INTERPOLATION: *const c_char = b"GstAudioResampler.filter-interpolation\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_FILTER_MODE: *const c_char = b"GstAudioResampler.filter-mode\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_FILTER_MODE_THRESHOLD: *const c_char = b"GstAudioResampler.filter-mode-threshold\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_FILTER_OVERSAMPLE: *const c_char = b"GstAudioResampler.filter-oversample\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_MAX_PHASE_ERROR: *const c_char = b"GstAudioResampler.max-phase-error\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_N_TAPS: *const c_char = b"GstAudioResampler.n-taps\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_STOP_ATTENUATION: *const c_char = b"GstAudioResampler.stop-attenutation\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_OPT_TRANSITION_BANDWIDTH: *const c_char = b"GstAudioResampler.transition-bandwidth\0" as *const u8 as *const c_char; pub const GST_AUDIO_RESAMPLER_QUALITY_DEFAULT: c_int = 4; pub const GST_AUDIO_RESAMPLER_QUALITY_MAX: c_int = 10; pub const GST_AUDIO_RESAMPLER_QUALITY_MIN: c_int = 0; pub const GST_META_TAG_AUDIO_CHANNELS_STR: *const c_char = b"channels\0" as *const u8 as *const c_char; pub const GST_META_TAG_AUDIO_RATE_STR: *const c_char = b"rate\0" as *const u8 as *const c_char; pub const GST_META_TAG_AUDIO_STR: *const c_char = b"audio\0" as *const u8 as *const c_char; // Flags pub type GstAudioChannelMixerFlags = c_uint; pub const GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE: GstAudioChannelMixerFlags = 0; pub const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN: GstAudioChannelMixerFlags = 1; pub const GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT: GstAudioChannelMixerFlags = 2; pub const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN: GstAudioChannelMixerFlags = 4; pub const GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT: GstAudioChannelMixerFlags = 8; pub type GstAudioConverterFlags = c_uint; pub const GST_AUDIO_CONVERTER_FLAG_NONE: GstAudioConverterFlags = 0; pub const GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE: GstAudioConverterFlags = 1; pub const GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE: GstAudioConverterFlags = 2; pub type GstAudioFlags = c_uint; pub const GST_AUDIO_FLAG_NONE: GstAudioFlags = 0; pub const GST_AUDIO_FLAG_UNPOSITIONED: GstAudioFlags = 1; pub type GstAudioFormatFlags = c_uint; pub const GST_AUDIO_FORMAT_FLAG_INTEGER: GstAudioFormatFlags = 1; pub const GST_AUDIO_FORMAT_FLAG_FLOAT: GstAudioFormatFlags = 2; pub const GST_AUDIO_FORMAT_FLAG_SIGNED: GstAudioFormatFlags = 4; pub const GST_AUDIO_FORMAT_FLAG_COMPLEX: GstAudioFormatFlags = 16; pub const GST_AUDIO_FORMAT_FLAG_UNPACK: GstAudioFormatFlags = 32; pub type GstAudioPackFlags = c_uint; pub const GST_AUDIO_PACK_FLAG_NONE: GstAudioPackFlags = 0; pub const GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE: GstAudioPackFlags = 1; pub type GstAudioQuantizeFlags = c_uint; pub const GST_AUDIO_QUANTIZE_FLAG_NONE: GstAudioQuantizeFlags = 0; pub const GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED: GstAudioQuantizeFlags = 1; pub type GstAudioResamplerFlags = c_uint; pub const GST_AUDIO_RESAMPLER_FLAG_NONE: GstAudioResamplerFlags = 0; pub const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN: GstAudioResamplerFlags = 1; pub const GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT: GstAudioResamplerFlags = 2; pub const GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE: GstAudioResamplerFlags = 4; // Callbacks pub type GstAudioBaseSinkCustomSlavingCallback = Option< unsafe extern "C" fn( *mut GstAudioBaseSink, gst::GstClockTime, gst::GstClockTime, *mut gst::GstClockTimeDiff, GstAudioBaseSinkDiscontReason, gpointer, ), >; pub type GstAudioClockGetTimeFunc = Option gst::GstClockTime>; pub type GstAudioFormatPack = Option< unsafe extern "C" fn( *const GstAudioFormatInfo, GstAudioPackFlags, gconstpointer, gpointer, c_int, ), >; pub type GstAudioFormatUnpack = Option< unsafe extern "C" fn( *const GstAudioFormatInfo, GstAudioPackFlags, gpointer, gconstpointer, c_int, ), >; pub type GstAudioRingBufferCallback = Option; // Records #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioAggregatorClass { pub parent_class: gst_base::GstAggregatorClass, pub create_output_buffer: Option *mut gst::GstBuffer>, pub aggregate_one_buffer: Option< unsafe extern "C" fn( *mut GstAudioAggregator, *mut GstAudioAggregatorPad, *mut gst::GstBuffer, c_uint, *mut gst::GstBuffer, c_uint, c_uint, ) -> gboolean, >, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstAudioAggregatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioAggregatorClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .field("create_output_buffer", &self.create_output_buffer) .field("aggregate_one_buffer", &self.aggregate_one_buffer) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioAggregatorConvertPadClass { pub parent_class: GstAudioAggregatorPadClass, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioAggregatorConvertPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( "GstAudioAggregatorConvertPadClass @ {:?}", self as *const _ )) .field("parent_class", &self.parent_class) .finish() } } #[repr(C)] pub struct _GstAudioAggregatorConvertPadPrivate(c_void); pub type GstAudioAggregatorConvertPadPrivate = *mut _GstAudioAggregatorConvertPadPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioAggregatorPadClass { pub parent_class: gst_base::GstAggregatorPadClass, pub convert_buffer: Option< unsafe extern "C" fn( *mut GstAudioAggregatorPad, *mut GstAudioInfo, *mut GstAudioInfo, *mut gst::GstBuffer, ) -> *mut gst::GstBuffer, >, pub update_conversion_info: Option, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstAudioAggregatorPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( "GstAudioAggregatorPadClass @ {:?}", self as *const _ )) .field("parent_class", &self.parent_class) .field("convert_buffer", &self.convert_buffer) .field("update_conversion_info", &self.update_conversion_info) .finish() } } #[repr(C)] pub struct _GstAudioAggregatorPadPrivate(c_void); pub type GstAudioAggregatorPadPrivate = *mut _GstAudioAggregatorPadPrivate; #[repr(C)] pub struct _GstAudioAggregatorPrivate(c_void); pub type GstAudioAggregatorPrivate = *mut _GstAudioAggregatorPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioBaseSinkClass { pub parent_class: gst_base::GstBaseSinkClass, pub create_ringbuffer: Option *mut GstAudioRingBuffer>, pub payload: Option< unsafe extern "C" fn(*mut GstAudioBaseSink, *mut gst::GstBuffer) -> *mut gst::GstBuffer, >, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioBaseSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioBaseSinkClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .field("create_ringbuffer", &self.create_ringbuffer) .field("payload", &self.payload) .finish() } } #[repr(C)] pub struct _GstAudioBaseSinkPrivate(c_void); pub type GstAudioBaseSinkPrivate = *mut _GstAudioBaseSinkPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioBaseSrcClass { pub parent_class: gst_base::GstPushSrcClass, pub create_ringbuffer: Option *mut GstAudioRingBuffer>, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioBaseSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioBaseSrcClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .field("create_ringbuffer", &self.create_ringbuffer) .finish() } } #[repr(C)] pub struct _GstAudioBaseSrcPrivate(c_void); pub type GstAudioBaseSrcPrivate = *mut _GstAudioBaseSrcPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioBuffer { pub info: GstAudioInfo, pub n_samples: size_t, pub n_planes: c_int, pub planes: *mut gpointer, pub buffer: *mut gst::GstBuffer, pub map_infos: *mut gst::GstMapInfo, pub priv_planes_arr: [gpointer; 8], pub priv_map_infos_arr: [gst::GstMapInfo; 8], pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioBuffer @ {:?}", self as *const _)) .field("info", &self.info) .field("n_samples", &self.n_samples) .field("n_planes", &self.n_planes) .field("planes", &self.planes) .field("buffer", &self.buffer) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioCdSrcClass { pub pushsrc_class: gst_base::GstPushSrcClass, pub open: Option gboolean>, pub close: Option, pub read_sector: Option *mut gst::GstBuffer>, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstAudioCdSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioCdSrcClass @ {:?}", self as *const _)) .field("pushsrc_class", &self.pushsrc_class) .field("open", &self.open) .field("close", &self.close) .field("read_sector", &self.read_sector) .finish() } } #[repr(C)] pub struct _GstAudioCdSrcPrivate(c_void); pub type GstAudioCdSrcPrivate = *mut _GstAudioCdSrcPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioCdSrcTrack { pub is_audio: gboolean, pub num: c_uint, pub start: c_uint, pub end: c_uint, pub tags: *mut gst::GstTagList, pub _gst_reserved1: [c_uint; 2], pub _gst_reserved2: [gpointer; 2], } impl ::std::fmt::Debug for GstAudioCdSrcTrack { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioCdSrcTrack @ {:?}", self as *const _)) .field("is_audio", &self.is_audio) .field("num", &self.num) .field("start", &self.start) .field("end", &self.end) .field("tags", &self.tags) .finish() } } #[repr(C)] pub struct _GstAudioChannelMixer(c_void); pub type GstAudioChannelMixer = *mut _GstAudioChannelMixer; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioClippingMeta { pub meta: gst::GstMeta, pub format: gst::GstFormat, pub start: u64, pub end: u64, } impl ::std::fmt::Debug for GstAudioClippingMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioClippingMeta @ {:?}", self as *const _)) .field("meta", &self.meta) .field("format", &self.format) .field("start", &self.start) .field("end", &self.end) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioClockClass { pub parent_class: gst::GstSystemClockClass, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioClockClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .finish() } } #[repr(C)] pub struct GstAudioConverter(c_void); impl ::std::fmt::Debug for GstAudioConverter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioConverter @ {:?}", self as *const _)) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioDecoderClass { pub element_class: gst::GstElementClass, pub start: Option gboolean>, pub stop: Option gboolean>, pub set_format: Option gboolean>, pub parse: Option< unsafe extern "C" fn( *mut GstAudioDecoder, *mut gst_base::GstAdapter, *mut c_int, *mut c_int, ) -> gst::GstFlowReturn, >, pub handle_frame: Option< unsafe extern "C" fn(*mut GstAudioDecoder, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn, >, pub flush: Option, pub pre_push: Option< unsafe extern "C" fn(*mut GstAudioDecoder, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn, >, pub sink_event: Option gboolean>, pub src_event: Option gboolean>, pub open: Option gboolean>, pub close: Option gboolean>, pub negotiate: Option gboolean>, pub decide_allocation: Option gboolean>, pub propose_allocation: Option gboolean>, pub sink_query: Option gboolean>, pub src_query: Option gboolean>, pub getcaps: Option *mut gst::GstCaps>, pub transform_meta: Option< unsafe extern "C" fn( *mut GstAudioDecoder, *mut gst::GstBuffer, *mut gst::GstMeta, *mut gst::GstBuffer, ) -> gboolean, >, pub _gst_reserved: [gpointer; 16], } impl ::std::fmt::Debug for GstAudioDecoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioDecoderClass @ {:?}", self as *const _)) .field("element_class", &self.element_class) .field("start", &self.start) .field("stop", &self.stop) .field("set_format", &self.set_format) .field("parse", &self.parse) .field("handle_frame", &self.handle_frame) .field("flush", &self.flush) .field("pre_push", &self.pre_push) .field("sink_event", &self.sink_event) .field("src_event", &self.src_event) .field("open", &self.open) .field("close", &self.close) .field("negotiate", &self.negotiate) .field("decide_allocation", &self.decide_allocation) .field("propose_allocation", &self.propose_allocation) .field("sink_query", &self.sink_query) .field("src_query", &self.src_query) .field("getcaps", &self.getcaps) .field("transform_meta", &self.transform_meta) .finish() } } #[repr(C)] pub struct _GstAudioDecoderPrivate(c_void); pub type GstAudioDecoderPrivate = *mut _GstAudioDecoderPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioDownmixMeta { pub meta: gst::GstMeta, pub from_position: *mut GstAudioChannelPosition, pub to_position: *mut GstAudioChannelPosition, pub from_channels: c_int, pub to_channels: c_int, pub matrix: *mut *mut c_float, } impl ::std::fmt::Debug for GstAudioDownmixMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioDownmixMeta @ {:?}", self as *const _)) .field("meta", &self.meta) .field("from_position", &self.from_position) .field("to_position", &self.to_position) .field("from_channels", &self.from_channels) .field("to_channels", &self.to_channels) .field("matrix", &self.matrix) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioEncoderClass { pub element_class: gst::GstElementClass, pub start: Option gboolean>, pub stop: Option gboolean>, pub set_format: Option gboolean>, pub handle_frame: Option< unsafe extern "C" fn(*mut GstAudioEncoder, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn, >, pub flush: Option, pub pre_push: Option< unsafe extern "C" fn(*mut GstAudioEncoder, *mut *mut gst::GstBuffer) -> gst::GstFlowReturn, >, pub sink_event: Option gboolean>, pub src_event: Option gboolean>, pub getcaps: Option *mut gst::GstCaps>, pub open: Option gboolean>, pub close: Option gboolean>, pub negotiate: Option gboolean>, pub decide_allocation: Option gboolean>, pub propose_allocation: Option gboolean>, pub transform_meta: Option< unsafe extern "C" fn( *mut GstAudioEncoder, *mut gst::GstBuffer, *mut gst::GstMeta, *mut gst::GstBuffer, ) -> gboolean, >, pub sink_query: Option gboolean>, pub src_query: Option gboolean>, pub _gst_reserved: [gpointer; 17], } impl ::std::fmt::Debug for GstAudioEncoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioEncoderClass @ {:?}", self as *const _)) .field("element_class", &self.element_class) .field("start", &self.start) .field("stop", &self.stop) .field("set_format", &self.set_format) .field("handle_frame", &self.handle_frame) .field("flush", &self.flush) .field("pre_push", &self.pre_push) .field("sink_event", &self.sink_event) .field("src_event", &self.src_event) .field("getcaps", &self.getcaps) .field("open", &self.open) .field("close", &self.close) .field("negotiate", &self.negotiate) .field("decide_allocation", &self.decide_allocation) .field("propose_allocation", &self.propose_allocation) .field("transform_meta", &self.transform_meta) .field("sink_query", &self.sink_query) .field("src_query", &self.src_query) .finish() } } #[repr(C)] pub struct _GstAudioEncoderPrivate(c_void); pub type GstAudioEncoderPrivate = *mut _GstAudioEncoderPrivate; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioFilterClass { pub basetransformclass: gst_base::GstBaseTransformClass, pub setup: Option gboolean>, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioFilterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioFilterClass @ {:?}", self as *const _)) .field("basetransformclass", &self.basetransformclass) .field("setup", &self.setup) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioFormatInfo { pub format: GstAudioFormat, pub name: *const c_char, pub description: *const c_char, pub flags: GstAudioFormatFlags, pub endianness: c_int, pub width: c_int, pub depth: c_int, pub silence: [u8; 8], pub unpack_format: GstAudioFormat, pub unpack_func: GstAudioFormatUnpack, pub pack_func: GstAudioFormatPack, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioFormatInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioFormatInfo @ {:?}", self as *const _)) .field("format", &self.format) .field("name", &self.name) .field("description", &self.description) .field("flags", &self.flags) .field("endianness", &self.endianness) .field("width", &self.width) .field("depth", &self.depth) .field("silence", &self.silence) .field("unpack_format", &self.unpack_format) .field("unpack_func", &self.unpack_func) .field("pack_func", &self.pack_func) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioInfo { pub finfo: *const GstAudioFormatInfo, pub flags: GstAudioFlags, pub layout: GstAudioLayout, pub rate: c_int, pub channels: c_int, pub bpf: c_int, pub position: [GstAudioChannelPosition; 64], pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioInfo @ {:?}", self as *const _)) .field("finfo", &self.finfo) .field("flags", &self.flags) .field("layout", &self.layout) .field("rate", &self.rate) .field("channels", &self.channels) .field("bpf", &self.bpf) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioMeta { pub meta: gst::GstMeta, pub info: GstAudioInfo, pub samples: size_t, pub offsets: *mut size_t, pub priv_offsets_arr: [size_t; 8], pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioMeta @ {:?}", self as *const _)) .field("meta", &self.meta) .field("info", &self.info) .field("samples", &self.samples) .field("offsets", &self.offsets) .finish() } } #[repr(C)] pub struct _GstAudioQuantize(c_void); pub type GstAudioQuantize = *mut _GstAudioQuantize; #[repr(C)] pub struct _GstAudioResampler(c_void); pub type GstAudioResampler = *mut _GstAudioResampler; #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioRingBufferClass { pub parent_class: gst::GstObjectClass, pub open_device: Option gboolean>, pub acquire: Option< unsafe extern "C" fn(*mut GstAudioRingBuffer, *mut GstAudioRingBufferSpec) -> gboolean, >, pub release: Option gboolean>, pub close_device: Option gboolean>, pub start: Option gboolean>, pub pause: Option gboolean>, pub resume: Option gboolean>, pub stop: Option gboolean>, pub delay: Option c_uint>, pub activate: Option gboolean>, pub commit: Option< unsafe extern "C" fn( *mut GstAudioRingBuffer, *mut u64, *mut u8, c_int, c_int, *mut c_int, ) -> c_uint, >, pub clear_all: Option, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioRingBufferClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioRingBufferClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .field("open_device", &self.open_device) .field("acquire", &self.acquire) .field("release", &self.release) .field("close_device", &self.close_device) .field("start", &self.start) .field("pause", &self.pause) .field("resume", &self.resume) .field("stop", &self.stop) .field("delay", &self.delay) .field("activate", &self.activate) .field("commit", &self.commit) .field("clear_all", &self.clear_all) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioRingBufferSpec { pub caps: *mut gst::GstCaps, pub type_: GstAudioRingBufferFormatType, pub info: GstAudioInfo, pub latency_time: u64, pub buffer_time: u64, pub segsize: c_int, pub segtotal: c_int, pub seglatency: c_int, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioRingBufferSpec { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioRingBufferSpec @ {:?}", self as *const _)) .field("caps", &self.caps) .field("type_", &self.type_) .field("info", &self.info) .field("latency_time", &self.latency_time) .field("buffer_time", &self.buffer_time) .field("segsize", &self.segsize) .field("segtotal", &self.segtotal) .field("seglatency", &self.seglatency) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioSinkClass { pub parent_class: GstAudioBaseSinkClass, pub open: Option gboolean>, pub prepare: Option gboolean>, pub unprepare: Option gboolean>, pub close: Option gboolean>, pub write: Option c_int>, pub delay: Option c_uint>, pub reset: Option, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioSinkClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .field("open", &self.open) .field("prepare", &self.prepare) .field("unprepare", &self.unprepare) .field("close", &self.close) .field("write", &self.write) .field("delay", &self.delay) .field("reset", &self.reset) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioSrcClass { pub parent_class: GstAudioBaseSrcClass, pub open: Option gboolean>, pub prepare: Option gboolean>, pub unprepare: Option gboolean>, pub close: Option gboolean>, pub read: Option< unsafe extern "C" fn(*mut GstAudioSrc, gpointer, c_uint, *mut gst::GstClockTime) -> c_uint, >, pub delay: Option c_uint>, pub reset: Option, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioSrcClass @ {:?}", self as *const _)) .field("parent_class", &self.parent_class) .field("open", &self.open) .field("prepare", &self.prepare) .field("unprepare", &self.unprepare) .field("close", &self.close) .field("read", &self.read) .field("delay", &self.delay) .field("reset", &self.reset) .finish() } } #[repr(C)] pub struct GstAudioStreamAlign(c_void); impl ::std::fmt::Debug for GstAudioStreamAlign { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioStreamAlign @ {:?}", self as *const _)) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstStreamVolumeInterface { pub iface: gobject::GTypeInterface, } impl ::std::fmt::Debug for GstStreamVolumeInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( "GstStreamVolumeInterface @ {:?}", self as *const _ )) .field("iface", &self.iface) .finish() } } // Classes #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioAggregator { pub parent: gst_base::GstAggregator, pub current_caps: *mut gst::GstCaps, pub priv_: *mut GstAudioAggregatorPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioAggregator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioAggregator @ {:?}", self as *const _)) .field("parent", &self.parent) .field("current_caps", &self.current_caps) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioAggregatorConvertPad { pub parent: GstAudioAggregatorPad, pub priv_: *mut GstAudioAggregatorConvertPadPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioAggregatorConvertPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( "GstAudioAggregatorConvertPad @ {:?}", self as *const _ )) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioAggregatorPad { pub parent: gst_base::GstAggregatorPad, pub info: GstAudioInfo, pub priv_: *mut GstAudioAggregatorPadPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioAggregatorPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioAggregatorPad @ {:?}", self as *const _)) .field("parent", &self.parent) .field("info", &self.info) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioBaseSink { pub element: gst_base::GstBaseSink, pub ringbuffer: *mut GstAudioRingBuffer, pub buffer_time: u64, pub latency_time: u64, pub next_sample: u64, pub provided_clock: *mut gst::GstClock, pub eos_rendering: gboolean, pub priv_: *mut GstAudioBaseSinkPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioBaseSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioBaseSink @ {:?}", self as *const _)) .field("element", &self.element) .field("ringbuffer", &self.ringbuffer) .field("buffer_time", &self.buffer_time) .field("latency_time", &self.latency_time) .field("next_sample", &self.next_sample) .field("provided_clock", &self.provided_clock) .field("eos_rendering", &self.eos_rendering) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioBaseSrc { pub element: gst_base::GstPushSrc, pub ringbuffer: *mut GstAudioRingBuffer, pub buffer_time: gst::GstClockTime, pub latency_time: gst::GstClockTime, pub next_sample: u64, pub clock: *mut gst::GstClock, pub priv_: *mut GstAudioBaseSrcPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioBaseSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioBaseSrc @ {:?}", self as *const _)) .field("element", &self.element) .field("ringbuffer", &self.ringbuffer) .field("buffer_time", &self.buffer_time) .field("latency_time", &self.latency_time) .field("next_sample", &self.next_sample) .field("clock", &self.clock) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioCdSrc { pub pushsrc: gst_base::GstPushSrc, pub tags: *mut gst::GstTagList, pub priv_: *mut GstAudioCdSrcPrivate, pub _gst_reserved1: [c_uint; 2], pub _gst_reserved2: [gpointer; 2], } impl ::std::fmt::Debug for GstAudioCdSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioCdSrc @ {:?}", self as *const _)) .field("pushsrc", &self.pushsrc) .field("tags", &self.tags) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioClock { pub clock: gst::GstSystemClock, pub func: GstAudioClockGetTimeFunc, pub user_data: gpointer, pub destroy_notify: glib::GDestroyNotify, pub last_time: gst::GstClockTime, pub time_offset: gst::GstClockTimeDiff, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioClock @ {:?}", self as *const _)) .field("clock", &self.clock) .field("func", &self.func) .field("user_data", &self.user_data) .field("destroy_notify", &self.destroy_notify) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioDecoder { pub element: gst::GstElement, pub sinkpad: *mut gst::GstPad, pub srcpad: *mut gst::GstPad, pub stream_lock: glib::GRecMutex, pub input_segment: gst::GstSegment, pub output_segment: gst::GstSegment, pub priv_: *mut GstAudioDecoderPrivate, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstAudioDecoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioDecoder @ {:?}", self as *const _)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) .field("stream_lock", &self.stream_lock) .field("input_segment", &self.input_segment) .field("output_segment", &self.output_segment) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioEncoder { pub element: gst::GstElement, pub sinkpad: *mut gst::GstPad, pub srcpad: *mut gst::GstPad, pub stream_lock: glib::GRecMutex, pub input_segment: gst::GstSegment, pub output_segment: gst::GstSegment, pub priv_: *mut GstAudioEncoderPrivate, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstAudioEncoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioEncoder @ {:?}", self as *const _)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) .field("stream_lock", &self.stream_lock) .field("input_segment", &self.input_segment) .field("output_segment", &self.output_segment) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioFilter { pub basetransform: gst_base::GstBaseTransform, pub info: GstAudioInfo, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioFilter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioFilter @ {:?}", self as *const _)) .field("basetransform", &self.basetransform) .field("info", &self.info) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioRingBuffer { pub object: gst::GstObject, pub cond: glib::GCond, pub open: gboolean, pub acquired: gboolean, pub memory: *mut u8, pub size: size_t, pub timestamps: *mut gst::GstClockTime, pub spec: GstAudioRingBufferSpec, pub samples_per_seg: c_int, pub empty_seg: *mut u8, pub state: c_int, pub segdone: c_int, pub segbase: c_int, pub waiting: c_int, pub callback: GstAudioRingBufferCallback, pub cb_data: gpointer, pub need_reorder: gboolean, pub channel_reorder_map: [c_int; 64], pub flushing: gboolean, pub may_start: c_int, pub active: gboolean, pub cb_data_notify: glib::GDestroyNotify, pub _gst_reserved: [gpointer; 3], } impl ::std::fmt::Debug for GstAudioRingBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioRingBuffer @ {:?}", self as *const _)) .field("object", &self.object) .field("cond", &self.cond) .field("open", &self.open) .field("acquired", &self.acquired) .field("memory", &self.memory) .field("size", &self.size) .field("spec", &self.spec) .field("samples_per_seg", &self.samples_per_seg) .field("empty_seg", &self.empty_seg) .field("state", &self.state) .field("segdone", &self.segdone) .field("segbase", &self.segbase) .field("waiting", &self.waiting) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioSink { pub element: GstAudioBaseSink, pub thread: *mut glib::GThread, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioSink @ {:?}", self as *const _)) .field("element", &self.element) .finish() } } #[repr(C)] #[derive(Copy, Clone)] pub struct GstAudioSrc { pub element: GstAudioBaseSrc, pub thread: *mut glib::GThread, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstAudioSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAudioSrc @ {:?}", self as *const _)) .field("element", &self.element) .finish() } } // Interfaces #[repr(C)] pub struct GstStreamVolume(c_void); impl ::std::fmt::Debug for GstStreamVolume { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "GstStreamVolume @ {:?}", self as *const _) } } extern "C" { //========================================================================= // GstAudioBaseSinkDiscontReason //========================================================================= pub fn gst_audio_base_sink_discont_reason_get_type() -> GType; //========================================================================= // GstAudioBaseSinkSlaveMethod //========================================================================= pub fn gst_audio_base_sink_slave_method_get_type() -> GType; //========================================================================= // GstAudioBaseSrcSlaveMethod //========================================================================= pub fn gst_audio_base_src_slave_method_get_type() -> GType; //========================================================================= // GstAudioCdSrcMode //========================================================================= pub fn gst_audio_cd_src_mode_get_type() -> GType; //========================================================================= // GstAudioChannelPosition //========================================================================= pub fn gst_audio_channel_position_get_type() -> GType; //========================================================================= // GstAudioDitherMethod //========================================================================= pub fn gst_audio_dither_method_get_type() -> GType; //========================================================================= // GstAudioFormat //========================================================================= pub fn gst_audio_format_get_type() -> GType; pub fn gst_audio_format_build_integer( sign: gboolean, endianness: c_int, width: c_int, depth: c_int, ) -> GstAudioFormat; pub fn gst_audio_format_fill_silence( info: *const GstAudioFormatInfo, dest: gpointer, length: size_t, ); pub fn gst_audio_format_from_string(format: *const c_char) -> GstAudioFormat; pub fn gst_audio_format_get_info(format: GstAudioFormat) -> *const GstAudioFormatInfo; pub fn gst_audio_format_to_string(format: GstAudioFormat) -> *const c_char; //========================================================================= // GstAudioLayout //========================================================================= pub fn gst_audio_layout_get_type() -> GType; //========================================================================= // GstAudioNoiseShapingMethod //========================================================================= pub fn gst_audio_noise_shaping_method_get_type() -> GType; //========================================================================= // GstAudioResamplerFilterInterpolation //========================================================================= pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType; //========================================================================= // GstAudioResamplerFilterMode //========================================================================= pub fn gst_audio_resampler_filter_mode_get_type() -> GType; //========================================================================= // GstAudioResamplerMethod //========================================================================= pub fn gst_audio_resampler_method_get_type() -> GType; //========================================================================= // GstAudioRingBufferFormatType //========================================================================= pub fn gst_audio_ring_buffer_format_type_get_type() -> GType; //========================================================================= // GstAudioRingBufferState //========================================================================= pub fn gst_audio_ring_buffer_state_get_type() -> GType; //========================================================================= // GstAudioChannelMixerFlags //========================================================================= pub fn gst_audio_channel_mixer_flags_get_type() -> GType; //========================================================================= // GstAudioConverterFlags //========================================================================= pub fn gst_audio_converter_flags_get_type() -> GType; //========================================================================= // GstAudioFlags //========================================================================= pub fn gst_audio_flags_get_type() -> GType; //========================================================================= // GstAudioFormatFlags //========================================================================= pub fn gst_audio_format_flags_get_type() -> GType; //========================================================================= // GstAudioPackFlags //========================================================================= pub fn gst_audio_pack_flags_get_type() -> GType; //========================================================================= // GstAudioQuantizeFlags //========================================================================= pub fn gst_audio_quantize_flags_get_type() -> GType; //========================================================================= // GstAudioResamplerFlags //========================================================================= pub fn gst_audio_resampler_flags_get_type() -> GType; //========================================================================= // GstAudioBuffer //========================================================================= #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_audio_buffer_map( buffer: *mut GstAudioBuffer, info: *const GstAudioInfo, gstbuffer: *mut gst::GstBuffer, flags: gst::GstMapFlags, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer); pub fn gst_audio_buffer_clip( buffer: *mut gst::GstBuffer, segment: *const gst::GstSegment, rate: c_int, bpf: c_int, ) -> *mut gst::GstBuffer; pub fn gst_audio_buffer_reorder_channels( buffer: *mut gst::GstBuffer, format: GstAudioFormat, channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition, ) -> gboolean; #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_audio_buffer_truncate( buffer: *mut gst::GstBuffer, bpf: c_int, trim: size_t, samples: size_t, ) -> *mut gst::GstBuffer; //========================================================================= // GstAudioChannelMixer //========================================================================= pub fn gst_audio_channel_mixer_free(mix: *mut GstAudioChannelMixer); pub fn gst_audio_channel_mixer_is_passthrough(mix: *mut GstAudioChannelMixer) -> gboolean; pub fn gst_audio_channel_mixer_samples( mix: *mut GstAudioChannelMixer, in_: *const gpointer, out: *mut gpointer, samples: c_int, ); pub fn gst_audio_channel_mixer_new( flags: GstAudioChannelMixerFlags, format: GstAudioFormat, in_channels: c_int, in_position: *mut GstAudioChannelPosition, out_channels: c_int, out_position: *mut GstAudioChannelPosition, ) -> *mut GstAudioChannelMixer; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_channel_mixer_new_with_matrix( flags: GstAudioChannelMixerFlags, format: GstAudioFormat, in_channels: c_int, out_channels: c_int, matrix: *mut *mut c_float, ) -> *mut GstAudioChannelMixer; //========================================================================= // GstAudioClippingMeta //========================================================================= pub fn gst_audio_clipping_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstAudioConverter //========================================================================= pub fn gst_audio_converter_get_type() -> GType; pub fn gst_audio_converter_new( flags: GstAudioConverterFlags, in_info: *mut GstAudioInfo, out_info: *mut GstAudioInfo, config: *mut gst::GstStructure, ) -> *mut GstAudioConverter; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_converter_convert( convert: *mut GstAudioConverter, flags: GstAudioConverterFlags, in_: gpointer, in_size: size_t, out: *mut u8, out_size: *mut size_t, ) -> gboolean; pub fn gst_audio_converter_free(convert: *mut GstAudioConverter); pub fn gst_audio_converter_get_config( convert: *mut GstAudioConverter, in_rate: *mut c_int, out_rate: *mut c_int, ) -> *const gst::GstStructure; pub fn gst_audio_converter_get_in_frames( convert: *mut GstAudioConverter, out_frames: size_t, ) -> size_t; pub fn gst_audio_converter_get_max_latency(convert: *mut GstAudioConverter) -> size_t; pub fn gst_audio_converter_get_out_frames( convert: *mut GstAudioConverter, in_frames: size_t, ) -> size_t; #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter); pub fn gst_audio_converter_samples( convert: *mut GstAudioConverter, flags: GstAudioConverterFlags, in_: *mut gpointer, in_frames: size_t, out: *mut gpointer, out_frames: size_t, ) -> gboolean; pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_update_config( convert: *mut GstAudioConverter, in_rate: c_int, out_rate: c_int, config: *mut gst::GstStructure, ) -> gboolean; //========================================================================= // GstAudioDownmixMeta //========================================================================= pub fn gst_audio_downmix_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstAudioFilterClass //========================================================================= pub fn gst_audio_filter_class_add_pad_templates( klass: *mut GstAudioFilterClass, allowed_caps: *mut gst::GstCaps, ); //========================================================================= // GstAudioInfo //========================================================================= pub fn gst_audio_info_get_type() -> GType; pub fn gst_audio_info_new() -> *mut GstAudioInfo; pub fn gst_audio_info_convert( info: *const GstAudioInfo, src_fmt: gst::GstFormat, src_val: i64, dest_fmt: gst::GstFormat, dest_val: *mut i64, ) -> gboolean; pub fn gst_audio_info_copy(info: *const GstAudioInfo) -> *mut GstAudioInfo; pub fn gst_audio_info_free(info: *mut GstAudioInfo); pub fn gst_audio_info_from_caps(info: *mut GstAudioInfo, caps: *const gst::GstCaps) -> gboolean; pub fn gst_audio_info_init(info: *mut GstAudioInfo); #[cfg(any(feature = "v1_2", feature = "dox"))] pub fn gst_audio_info_is_equal( info: *const GstAudioInfo, other: *const GstAudioInfo, ) -> gboolean; pub fn gst_audio_info_set_format( info: *mut GstAudioInfo, format: GstAudioFormat, rate: c_int, channels: c_int, position: *const [GstAudioChannelPosition; 64], ); pub fn gst_audio_info_to_caps(info: *const GstAudioInfo) -> *mut gst::GstCaps; //========================================================================= // GstAudioMeta //========================================================================= pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstAudioQuantize //========================================================================= pub fn gst_audio_quantize_free(quant: *mut GstAudioQuantize); pub fn gst_audio_quantize_reset(quant: *mut GstAudioQuantize); pub fn gst_audio_quantize_samples( quant: *mut GstAudioQuantize, in_: *const gpointer, out: *mut gpointer, samples: c_uint, ); pub fn gst_audio_quantize_new( dither: GstAudioDitherMethod, ns: GstAudioNoiseShapingMethod, flags: GstAudioQuantizeFlags, format: GstAudioFormat, channels: c_uint, quantizer: c_uint, ) -> *mut GstAudioQuantize; //========================================================================= // GstAudioResampler //========================================================================= #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler); pub fn gst_audio_resampler_get_in_frames( resampler: *mut GstAudioResampler, out_frames: size_t, ) -> size_t; pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t; pub fn gst_audio_resampler_get_out_frames( resampler: *mut GstAudioResampler, in_frames: size_t, ) -> size_t; pub fn gst_audio_resampler_resample( resampler: *mut GstAudioResampler, in_: *mut gpointer, in_frames: size_t, out: *mut gpointer, out_frames: size_t, ); pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler); pub fn gst_audio_resampler_update( resampler: *mut GstAudioResampler, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure, ) -> gboolean; #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_resampler_new( method: GstAudioResamplerMethod, flags: GstAudioResamplerFlags, format: GstAudioFormat, channels: c_int, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure, ) -> *mut GstAudioResampler; #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_resampler_options_set_quality( method: GstAudioResamplerMethod, quality: c_uint, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure, ); //========================================================================= // GstAudioStreamAlign //========================================================================= pub fn gst_audio_stream_align_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_new( rate: c_int, alignment_threshold: gst::GstClockTime, discont_wait: gst::GstClockTime, ) -> *mut GstAudioStreamAlign; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_copy( align: *const GstAudioStreamAlign, ) -> *mut GstAudioStreamAlign; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign); #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_get_alignment_threshold( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_get_discont_wait( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign) -> u64; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_get_timestamp_at_discont( align: *mut GstAudioStreamAlign, ) -> gst::GstClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign); #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_process( align: *mut GstAudioStreamAlign, discont: gboolean, timestamp: gst::GstClockTime, n_samples: c_uint, out_timestamp: *mut gst::GstClockTime, out_duration: *mut gst::GstClockTime, out_sample_position: *mut u64, ) -> gboolean; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_set_alignment_threshold( align: *mut GstAudioStreamAlign, alignment_threshold: gst::GstClockTime, ); #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_set_discont_wait( align: *mut GstAudioStreamAlign, discont_wait: gst::GstClockTime, ); #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int); //========================================================================= // GstAudioAggregator //========================================================================= pub fn gst_audio_aggregator_get_type() -> GType; #[cfg(any(feature = "v1_14", feature = "dox"))] pub fn gst_audio_aggregator_set_sink_caps( aagg: *mut GstAudioAggregator, pad: *mut GstAudioAggregatorPad, caps: *mut gst::GstCaps, ); //========================================================================= // GstAudioAggregatorConvertPad //========================================================================= pub fn gst_audio_aggregator_convert_pad_get_type() -> GType; //========================================================================= // GstAudioAggregatorPad //========================================================================= pub fn gst_audio_aggregator_pad_get_type() -> GType; //========================================================================= // GstAudioBaseSink //========================================================================= pub fn gst_audio_base_sink_get_type() -> GType; pub fn gst_audio_base_sink_create_ringbuffer( sink: *mut GstAudioBaseSink, ) -> *mut GstAudioRingBuffer; pub fn gst_audio_base_sink_get_alignment_threshold( sink: *mut GstAudioBaseSink, ) -> gst::GstClockTime; pub fn gst_audio_base_sink_get_discont_wait(sink: *mut GstAudioBaseSink) -> gst::GstClockTime; pub fn gst_audio_base_sink_get_drift_tolerance(sink: *mut GstAudioBaseSink) -> i64; pub fn gst_audio_base_sink_get_provide_clock(sink: *mut GstAudioBaseSink) -> gboolean; pub fn gst_audio_base_sink_get_slave_method( sink: *mut GstAudioBaseSink, ) -> GstAudioBaseSinkSlaveMethod; #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_base_sink_report_device_failure(sink: *mut GstAudioBaseSink); pub fn gst_audio_base_sink_set_alignment_threshold( sink: *mut GstAudioBaseSink, alignment_threshold: gst::GstClockTime, ); #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_base_sink_set_custom_slaving_callback( sink: *mut GstAudioBaseSink, callback: GstAudioBaseSinkCustomSlavingCallback, user_data: gpointer, notify: glib::GDestroyNotify, ); pub fn gst_audio_base_sink_set_discont_wait( sink: *mut GstAudioBaseSink, discont_wait: gst::GstClockTime, ); pub fn gst_audio_base_sink_set_drift_tolerance( sink: *mut GstAudioBaseSink, drift_tolerance: i64, ); pub fn gst_audio_base_sink_set_provide_clock(sink: *mut GstAudioBaseSink, provide: gboolean); pub fn gst_audio_base_sink_set_slave_method( sink: *mut GstAudioBaseSink, method: GstAudioBaseSinkSlaveMethod, ); //========================================================================= // GstAudioBaseSrc //========================================================================= pub fn gst_audio_base_src_get_type() -> GType; pub fn gst_audio_base_src_create_ringbuffer( src: *mut GstAudioBaseSrc, ) -> *mut GstAudioRingBuffer; pub fn gst_audio_base_src_get_provide_clock(src: *mut GstAudioBaseSrc) -> gboolean; pub fn gst_audio_base_src_get_slave_method( src: *mut GstAudioBaseSrc, ) -> GstAudioBaseSrcSlaveMethod; pub fn gst_audio_base_src_set_provide_clock(src: *mut GstAudioBaseSrc, provide: gboolean); pub fn gst_audio_base_src_set_slave_method( src: *mut GstAudioBaseSrc, method: GstAudioBaseSrcSlaveMethod, ); //========================================================================= // GstAudioCdSrc //========================================================================= pub fn gst_audio_cd_src_get_type() -> GType; pub fn gst_audio_cd_src_add_track( src: *mut GstAudioCdSrc, track: *mut GstAudioCdSrcTrack, ) -> gboolean; //========================================================================= // GstAudioClock //========================================================================= pub fn gst_audio_clock_get_type() -> GType; pub fn gst_audio_clock_new( name: *const c_char, func: GstAudioClockGetTimeFunc, user_data: gpointer, destroy_notify: glib::GDestroyNotify, ) -> *mut gst::GstClock; pub fn gst_audio_clock_adjust( clock: *mut GstAudioClock, time: gst::GstClockTime, ) -> gst::GstClockTime; pub fn gst_audio_clock_get_time(clock: *mut GstAudioClock) -> gst::GstClockTime; pub fn gst_audio_clock_invalidate(clock: *mut GstAudioClock); pub fn gst_audio_clock_reset(clock: *mut GstAudioClock, time: gst::GstClockTime); //========================================================================= // GstAudioDecoder //========================================================================= pub fn gst_audio_decoder_get_type() -> GType; pub fn gst_audio_decoder_allocate_output_buffer( dec: *mut GstAudioDecoder, size: size_t, ) -> *mut gst::GstBuffer; pub fn gst_audio_decoder_finish_frame( dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, frames: c_int, ) -> gst::GstFlowReturn; #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_audio_decoder_finish_subframe( dec: *mut GstAudioDecoder, buf: *mut gst::GstBuffer, ) -> gst::GstFlowReturn; pub fn gst_audio_decoder_get_allocator( dec: *mut GstAudioDecoder, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams, ); pub fn gst_audio_decoder_get_audio_info(dec: *mut GstAudioDecoder) -> *mut GstAudioInfo; pub fn gst_audio_decoder_get_delay(dec: *mut GstAudioDecoder) -> c_int; pub fn gst_audio_decoder_get_drainable(dec: *mut GstAudioDecoder) -> gboolean; pub fn gst_audio_decoder_get_estimate_rate(dec: *mut GstAudioDecoder) -> c_int; pub fn gst_audio_decoder_get_latency( dec: *mut GstAudioDecoder, min: *mut gst::GstClockTime, max: *mut gst::GstClockTime, ); pub fn gst_audio_decoder_get_max_errors(dec: *mut GstAudioDecoder) -> c_int; pub fn gst_audio_decoder_get_min_latency(dec: *mut GstAudioDecoder) -> gst::GstClockTime; pub fn gst_audio_decoder_get_needs_format(dec: *mut GstAudioDecoder) -> gboolean; pub fn gst_audio_decoder_get_parse_state( dec: *mut GstAudioDecoder, sync: *mut gboolean, eos: *mut gboolean, ); pub fn gst_audio_decoder_get_plc(dec: *mut GstAudioDecoder) -> gboolean; pub fn gst_audio_decoder_get_plc_aware(dec: *mut GstAudioDecoder) -> c_int; pub fn gst_audio_decoder_get_tolerance(dec: *mut GstAudioDecoder) -> gst::GstClockTime; pub fn gst_audio_decoder_merge_tags( dec: *mut GstAudioDecoder, tags: *const gst::GstTagList, mode: gst::GstTagMergeMode, ); pub fn gst_audio_decoder_negotiate(dec: *mut GstAudioDecoder) -> gboolean; #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_decoder_proxy_getcaps( decoder: *mut GstAudioDecoder, caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn gst_audio_decoder_set_allocation_caps( dec: *mut GstAudioDecoder, allocation_caps: *mut gst::GstCaps, ); pub fn gst_audio_decoder_set_drainable(dec: *mut GstAudioDecoder, enabled: gboolean); pub fn gst_audio_decoder_set_estimate_rate(dec: *mut GstAudioDecoder, enabled: gboolean); pub fn gst_audio_decoder_set_latency( dec: *mut GstAudioDecoder, min: gst::GstClockTime, max: gst::GstClockTime, ); pub fn gst_audio_decoder_set_max_errors(dec: *mut GstAudioDecoder, num: c_int); pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime); pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean); #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_audio_decoder_set_output_caps( dec: *mut GstAudioDecoder, caps: *mut gst::GstCaps, ) -> gboolean; pub fn gst_audio_decoder_set_output_format( dec: *mut GstAudioDecoder, info: *const GstAudioInfo, ) -> gboolean; pub fn gst_audio_decoder_set_plc(dec: *mut GstAudioDecoder, enabled: gboolean); pub fn gst_audio_decoder_set_plc_aware(dec: *mut GstAudioDecoder, plc: gboolean); pub fn gst_audio_decoder_set_tolerance(dec: *mut GstAudioDecoder, tolerance: gst::GstClockTime); #[cfg(any(feature = "v1_6", feature = "dox"))] pub fn gst_audio_decoder_set_use_default_pad_acceptcaps( decoder: *mut GstAudioDecoder, use_: gboolean, ); //========================================================================= // GstAudioEncoder //========================================================================= pub fn gst_audio_encoder_get_type() -> GType; pub fn gst_audio_encoder_allocate_output_buffer( enc: *mut GstAudioEncoder, size: size_t, ) -> *mut gst::GstBuffer; pub fn gst_audio_encoder_finish_frame( enc: *mut GstAudioEncoder, buffer: *mut gst::GstBuffer, samples: c_int, ) -> gst::GstFlowReturn; pub fn gst_audio_encoder_get_allocator( enc: *mut GstAudioEncoder, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams, ); pub fn gst_audio_encoder_get_audio_info(enc: *mut GstAudioEncoder) -> *mut GstAudioInfo; pub fn gst_audio_encoder_get_drainable(enc: *mut GstAudioEncoder) -> gboolean; pub fn gst_audio_encoder_get_frame_max(enc: *mut GstAudioEncoder) -> c_int; pub fn gst_audio_encoder_get_frame_samples_max(enc: *mut GstAudioEncoder) -> c_int; pub fn gst_audio_encoder_get_frame_samples_min(enc: *mut GstAudioEncoder) -> c_int; pub fn gst_audio_encoder_get_hard_min(enc: *mut GstAudioEncoder) -> gboolean; pub fn gst_audio_encoder_get_hard_resync(enc: *mut GstAudioEncoder) -> gboolean; pub fn gst_audio_encoder_get_latency( enc: *mut GstAudioEncoder, min: *mut gst::GstClockTime, max: *mut gst::GstClockTime, ); pub fn gst_audio_encoder_get_lookahead(enc: *mut GstAudioEncoder) -> c_int; pub fn gst_audio_encoder_get_mark_granule(enc: *mut GstAudioEncoder) -> gboolean; pub fn gst_audio_encoder_get_perfect_timestamp(enc: *mut GstAudioEncoder) -> gboolean; pub fn gst_audio_encoder_get_tolerance(enc: *mut GstAudioEncoder) -> gst::GstClockTime; pub fn gst_audio_encoder_merge_tags( enc: *mut GstAudioEncoder, tags: *const gst::GstTagList, mode: gst::GstTagMergeMode, ); pub fn gst_audio_encoder_negotiate(enc: *mut GstAudioEncoder) -> gboolean; pub fn gst_audio_encoder_proxy_getcaps( enc: *mut GstAudioEncoder, caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn gst_audio_encoder_set_allocation_caps( enc: *mut GstAudioEncoder, allocation_caps: *mut gst::GstCaps, ); pub fn gst_audio_encoder_set_drainable(enc: *mut GstAudioEncoder, enabled: gboolean); pub fn gst_audio_encoder_set_frame_max(enc: *mut GstAudioEncoder, num: c_int); pub fn gst_audio_encoder_set_frame_samples_max(enc: *mut GstAudioEncoder, num: c_int); pub fn gst_audio_encoder_set_frame_samples_min(enc: *mut GstAudioEncoder, num: c_int); pub fn gst_audio_encoder_set_hard_min(enc: *mut GstAudioEncoder, enabled: gboolean); pub fn gst_audio_encoder_set_hard_resync(enc: *mut GstAudioEncoder, enabled: gboolean); pub fn gst_audio_encoder_set_headers(enc: *mut GstAudioEncoder, headers: *mut glib::GList); pub fn gst_audio_encoder_set_latency( enc: *mut GstAudioEncoder, min: gst::GstClockTime, max: gst::GstClockTime, ); pub fn gst_audio_encoder_set_lookahead(enc: *mut GstAudioEncoder, num: c_int); pub fn gst_audio_encoder_set_mark_granule(enc: *mut GstAudioEncoder, enabled: gboolean); pub fn gst_audio_encoder_set_output_format( enc: *mut GstAudioEncoder, caps: *mut gst::GstCaps, ) -> gboolean; pub fn gst_audio_encoder_set_perfect_timestamp(enc: *mut GstAudioEncoder, enabled: gboolean); pub fn gst_audio_encoder_set_tolerance(enc: *mut GstAudioEncoder, tolerance: gst::GstClockTime); //========================================================================= // GstAudioFilter //========================================================================= pub fn gst_audio_filter_get_type() -> GType; //========================================================================= // GstAudioRingBuffer //========================================================================= pub fn gst_audio_ring_buffer_get_type() -> GType; pub fn gst_audio_ring_buffer_debug_spec_buff(spec: *mut GstAudioRingBufferSpec); pub fn gst_audio_ring_buffer_debug_spec_caps(spec: *mut GstAudioRingBufferSpec); pub fn gst_audio_ring_buffer_parse_caps( spec: *mut GstAudioRingBufferSpec, caps: *mut gst::GstCaps, ) -> gboolean; pub fn gst_audio_ring_buffer_acquire( buf: *mut GstAudioRingBuffer, spec: *mut GstAudioRingBufferSpec, ) -> gboolean; pub fn gst_audio_ring_buffer_activate( buf: *mut GstAudioRingBuffer, active: gboolean, ) -> gboolean; pub fn gst_audio_ring_buffer_advance(buf: *mut GstAudioRingBuffer, advance: c_uint); pub fn gst_audio_ring_buffer_clear(buf: *mut GstAudioRingBuffer, segment: c_int); pub fn gst_audio_ring_buffer_clear_all(buf: *mut GstAudioRingBuffer); pub fn gst_audio_ring_buffer_close_device(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_commit( buf: *mut GstAudioRingBuffer, sample: *mut u64, data: *mut u8, in_samples: c_int, out_samples: c_int, accum: *mut c_int, ) -> c_uint; pub fn gst_audio_ring_buffer_convert( buf: *mut GstAudioRingBuffer, src_fmt: gst::GstFormat, src_val: i64, dest_fmt: gst::GstFormat, dest_val: *mut i64, ) -> gboolean; pub fn gst_audio_ring_buffer_delay(buf: *mut GstAudioRingBuffer) -> c_uint; pub fn gst_audio_ring_buffer_device_is_open(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_is_acquired(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_is_active(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_is_flushing(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_may_start(buf: *mut GstAudioRingBuffer, allowed: gboolean); pub fn gst_audio_ring_buffer_open_device(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_pause(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_prepare_read( buf: *mut GstAudioRingBuffer, segment: *mut c_int, readptr: *mut *mut u8, len: *mut c_int, ) -> gboolean; pub fn gst_audio_ring_buffer_read( buf: *mut GstAudioRingBuffer, sample: u64, data: *mut u8, len: c_uint, timestamp: *mut gst::GstClockTime, ) -> c_uint; pub fn gst_audio_ring_buffer_release(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_samples_done(buf: *mut GstAudioRingBuffer) -> u64; pub fn gst_audio_ring_buffer_set_callback( buf: *mut GstAudioRingBuffer, cb: GstAudioRingBufferCallback, user_data: gpointer, ); #[cfg(any(feature = "v1_12", feature = "dox"))] pub fn gst_audio_ring_buffer_set_callback_full( buf: *mut GstAudioRingBuffer, cb: GstAudioRingBufferCallback, user_data: gpointer, notify: glib::GDestroyNotify, ); pub fn gst_audio_ring_buffer_set_channel_positions( buf: *mut GstAudioRingBuffer, position: *const GstAudioChannelPosition, ); pub fn gst_audio_ring_buffer_set_flushing(buf: *mut GstAudioRingBuffer, flushing: gboolean); pub fn gst_audio_ring_buffer_set_sample(buf: *mut GstAudioRingBuffer, sample: u64); pub fn gst_audio_ring_buffer_set_timestamp( buf: *mut GstAudioRingBuffer, readseg: c_int, timestamp: gst::GstClockTime, ); pub fn gst_audio_ring_buffer_start(buf: *mut GstAudioRingBuffer) -> gboolean; pub fn gst_audio_ring_buffer_stop(buf: *mut GstAudioRingBuffer) -> gboolean; //========================================================================= // GstAudioSink //========================================================================= pub fn gst_audio_sink_get_type() -> GType; //========================================================================= // GstAudioSrc //========================================================================= pub fn gst_audio_src_get_type() -> GType; //========================================================================= // GstStreamVolume //========================================================================= pub fn gst_stream_volume_get_type() -> GType; pub fn gst_stream_volume_convert_volume( from: GstStreamVolumeFormat, to: GstStreamVolumeFormat, val: c_double, ) -> c_double; pub fn gst_stream_volume_get_mute(volume: *mut GstStreamVolume) -> gboolean; pub fn gst_stream_volume_get_volume( volume: *mut GstStreamVolume, format: GstStreamVolumeFormat, ) -> c_double; pub fn gst_stream_volume_set_mute(volume: *mut GstStreamVolume, mute: gboolean); pub fn gst_stream_volume_set_volume( volume: *mut GstStreamVolume, format: GstStreamVolumeFormat, val: c_double, ); //========================================================================= // Other functions //========================================================================= #[cfg(any(feature = "v1_8", feature = "dox"))] pub fn gst_audio_channel_get_fallback_mask(channels: c_int) -> u64; pub fn gst_audio_channel_positions_from_mask( channels: c_int, channel_mask: u64, position: *mut GstAudioChannelPosition, ) -> gboolean; pub fn gst_audio_channel_positions_to_mask( position: *const GstAudioChannelPosition, channels: c_int, force_order: gboolean, channel_mask: *mut u64, ) -> gboolean; #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn gst_audio_channel_positions_to_string( position: *const GstAudioChannelPosition, channels: c_int, ) -> *mut c_char; pub fn gst_audio_channel_positions_to_valid_order( position: *mut GstAudioChannelPosition, channels: c_int, ) -> gboolean; pub fn gst_audio_check_valid_channel_positions( position: *const GstAudioChannelPosition, channels: c_int, force_order: gboolean, ) -> gboolean; pub fn gst_audio_clipping_meta_api_get_type() -> GType; pub fn gst_audio_downmix_meta_api_get_type() -> GType; pub fn gst_audio_format_info_get_type() -> GType; pub fn gst_audio_get_channel_reorder_map( channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition, reorder_map: *mut c_int, ) -> gboolean; pub fn gst_audio_iec61937_frame_size(spec: *const GstAudioRingBufferSpec) -> c_uint; pub fn gst_audio_iec61937_payload( src: *const u8, src_n: c_uint, dst: *mut u8, dst_n: c_uint, spec: *const GstAudioRingBufferSpec, endianness: c_int, ) -> gboolean; pub fn gst_audio_meta_api_get_type() -> GType; pub fn gst_audio_reorder_channels( data: gpointer, size: size_t, format: GstAudioFormat, channels: c_int, from: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition, ) -> gboolean; #[cfg(any(feature = "v1_8", feature = "dox"))] pub fn gst_buffer_add_audio_clipping_meta( buffer: *mut gst::GstBuffer, format: gst::GstFormat, start: u64, end: u64, ) -> *mut GstAudioClippingMeta; pub fn gst_buffer_add_audio_downmix_meta( buffer: *mut gst::GstBuffer, from_position: *const GstAudioChannelPosition, from_channels: c_int, to_position: *const GstAudioChannelPosition, to_channels: c_int, matrix: *mut *const c_float, ) -> *mut GstAudioDownmixMeta; #[cfg(any(feature = "v1_16", feature = "dox"))] pub fn gst_buffer_add_audio_meta( buffer: *mut gst::GstBuffer, info: *const GstAudioInfo, samples: size_t, offsets: *mut size_t, ) -> *mut GstAudioMeta; pub fn gst_buffer_get_audio_downmix_meta_for_channels( buffer: *mut gst::GstBuffer, to_position: *const GstAudioChannelPosition, to_channels: c_int, ) -> *mut GstAudioDownmixMeta; } gstreamer-audio-sys-0.8.0/tests/abi.rs010064400017500001750000000711511350417404100161130ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir @ 20feecf) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT extern crate gstreamer_audio_sys; extern crate shell_words; extern crate tempdir; use gstreamer_audio_sys::*; use std::env; use std::error::Error; use std::mem::{align_of, size_of}; use std::path::Path; use std::process::Command; use std::str; static PACKAGES: &[&str] = &["gstreamer-audio-1.0"]; #[derive(Clone, Debug)] struct Compiler { pub args: Vec, } impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); Ok(Compiler { args }) } pub fn define<'a, V: Into>>(&mut self, var: &str, val: V) { let arg = match val.into() { None => format!("-D{}", var), Some(val) => format!("-D{}={}", var, val), }; self.args.push(arg); } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { let mut cmd = self.to_command(); cmd.arg(src); cmd.arg("-o"); cmd.arg(out); let status = cmd.spawn()?.wait()?; if !status.success() { return Err(format!("compilation command {:?} failed, {}", &cmd, status).into()); } Ok(()) } fn to_command(&self) -> Command { let mut cmd = Command::new(&self.args[0]); cmd.args(&self.args[1..]); cmd } } fn get_var(name: &str, default: &str) -> Result, Box> { match env::var(name) { Ok(value) => Ok(shell_words::split(&value)?), Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?), Err(err) => Err(format!("{} {}", name, err).into()), } } fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } let mut cmd = Command::new("pkg-config"); cmd.arg("--cflags"); cmd.args(packages); let out = cmd.output()?; if !out.status.success() { return Err(format!("command {:?} returned {}", &cmd, out.status).into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, alignment: usize, } #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)] struct Results { /// Number of successfully completed tests. passed: usize, /// Total number of failed tests (including those that failed to compile). failed: usize, /// Number of tests that failed to compile. failed_to_compile: usize, } impl Results { fn record_passed(&mut self) { self.passed += 1; } fn record_failed(&mut self) { self.failed += 1; } fn record_failed_to_compile(&mut self) { self.failed += 1; self.failed_to_compile += 1; } fn summary(&self) -> String { format!( "{} passed; {} failed (compilation errors: {})", self.passed, self.failed, self.failed_to_compile ) } fn expect_total_success(&self) { if self.failed == 0 { println!("OK: {}", self.summary()); } else { panic!("FAILED: {}", self.summary()); }; } } #[test] fn cross_validate_constants_with_c() { let tmpdir = tempdir::TempDir::new("abi").expect("temporary directory"); let cc = Compiler::new().expect("configured compiler"); assert_eq!( "1", get_c_value(tmpdir.path(), &cc, "1").expect("C constant"), "failed to obtain correct constant value for 1" ); let mut results: Results = Default::default(); for (i, &(name, rust_value)) in RUST_CONSTANTS.iter().enumerate() { match get_c_value(tmpdir.path(), &cc, name) { Err(e) => { results.record_failed_to_compile(); eprintln!("{}", e); } Ok(ref c_value) => { if rust_value == c_value { results.record_passed(); } else { results.record_failed(); eprintln!( "Constant value mismatch for {}\nRust: {:?}\nC: {:?}", name, rust_value, c_value ); } } }; if (i + 1) % 25 == 0 { println!("constants ... {}", results.summary()); } } results.expect_total_success(); } #[test] fn cross_validate_layout_with_c() { let tmpdir = tempdir::TempDir::new("abi").expect("temporary directory"); let cc = Compiler::new().expect("configured compiler"); assert_eq!( Layout { size: 1, alignment: 1 }, get_c_layout(tmpdir.path(), &cc, "char").expect("C layout"), "failed to obtain correct layout for char type" ); let mut results: Results = Default::default(); for (i, &(name, rust_layout)) in RUST_LAYOUTS.iter().enumerate() { match get_c_layout(tmpdir.path(), &cc, name) { Err(e) => { results.record_failed_to_compile(); eprintln!("{}", e); } Ok(c_layout) => { if rust_layout == c_layout { results.record_passed(); } else { results.record_failed(); eprintln!( "Layout mismatch for {}\nRust: {:?}\nC: {:?}", name, rust_layout, &c_layout ); } } }; if (i + 1) % 25 == 0 { println!("layout ... {}", results.summary()); } } results.expect_total_success(); } fn get_c_layout(dir: &Path, cc: &Compiler, name: &str) -> Result> { let exe = dir.join("layout"); let mut cc = cc.clone(); cc.define("ABI_TYPE_NAME", name); cc.compile(Path::new("tests/layout.c"), &exe)?; let mut abi_cmd = Command::new(exe); let output = abi_cmd.output()?; if !output.status.success() { return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into()); } let stdout = str::from_utf8(&output.stdout)?; let mut words = stdout.trim().split_whitespace(); let size = words.next().unwrap().parse().unwrap(); let alignment = words.next().unwrap().parse().unwrap(); Ok(Layout { size, alignment }) } fn get_c_value(dir: &Path, cc: &Compiler, name: &str) -> Result> { let exe = dir.join("constant"); let mut cc = cc.clone(); cc.define("ABI_CONSTANT_NAME", name); cc.compile(Path::new("tests/constant.c"), &exe)?; let mut abi_cmd = Command::new(exe); let output = abi_cmd.output()?; if !output.status.success() { return Err(format!("command {:?} failed, {:?}", &abi_cmd, &output).into()); } let output = str::from_utf8(&output.stdout)?.trim(); if !output.starts_with("###gir test###") || !output.ends_with("###gir test###") { return Err(format!( "command {:?} return invalid output, {:?}", &abi_cmd, &output ) .into()); } Ok(String::from(&output[14..(output.len() - 14)])) } const RUST_LAYOUTS: &[(&str, Layout)] = &[ ( "GstAudioAggregator", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorConvertPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorConvertPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioAggregatorPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSink", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSinkClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSinkDiscontReason", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSinkSlaveMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSrc", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSrcClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBaseSrcSlaveMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioBuffer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrc", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrcClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrcMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioCdSrcTrack", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioChannelMixerFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioChannelPosition", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioClippingMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioClock", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioClockClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioConverterFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDecoder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDecoderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDitherMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioDownmixMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioEncoder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioEncoderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFilter", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFilterClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFormat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFormatFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioFormatInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioLayout", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioNoiseShapingMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioPackFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioQuantizeFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerFilterInterpolation", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerFilterMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioResamplerMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBuffer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferFormatType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferSpec", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioRingBufferState", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSink", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSinkClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSrc", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAudioSrcClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstStreamVolumeFormat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstStreamVolumeInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT", "4"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE", "5"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH", "2"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS", "1"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT", "0"), ("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY", "3"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_CUSTOM", "3"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_NONE", "2"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE", "0"), ("(gint) GST_AUDIO_BASE_SINK_SLAVE_SKEW", "1"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_NONE", "3"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE", "0"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP", "1"), ("(gint) GST_AUDIO_BASE_SRC_SLAVE_SKEW", "2"), ("(gint) GST_AUDIO_CD_SRC_MODE_CONTINUOUS", "1"), ("(gint) GST_AUDIO_CD_SRC_MODE_NORMAL", "0"), ("GST_AUDIO_CHANNELS_RANGE", "(int) [ 1, max ]"), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE", "0"), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN", "1"), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT", "2"), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN", "4"), ("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT", "8"), ("(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER", "21"), ("(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT", "22"), ("(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT", "23"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER", "2"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT", "0"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER", "6"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT", "1"), ("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER", "7"), ("(gint) GST_AUDIO_CHANNEL_POSITION_INVALID", "-1"), ("(gint) GST_AUDIO_CHANNEL_POSITION_LFE1", "3"), ("(gint) GST_AUDIO_CHANNEL_POSITION_LFE2", "9"), ("(gint) GST_AUDIO_CHANNEL_POSITION_MONO", "-2"), ("(gint) GST_AUDIO_CHANNEL_POSITION_NONE", "-3"), ("(gint) GST_AUDIO_CHANNEL_POSITION_REAR_CENTER", "8"), ("(gint) GST_AUDIO_CHANNEL_POSITION_REAR_LEFT", "4"), ("(gint) GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT", "5"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT", "10"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT", "11"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT", "26"), ("(gint) GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT", "27"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_CENTER", "15"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER", "14"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT", "12"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT", "13"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER", "20"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT", "16"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT", "17"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT", "18"), ("(gint) GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT", "19"), ("(gint) GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT", "24"), ("(gint) GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT", "25"), ("(guint) GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE", "1"), ("(guint) GST_AUDIO_CONVERTER_FLAG_NONE", "0"), ("(guint) GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE", "2"), ("GST_AUDIO_CONVERTER_OPT_DITHER_METHOD", "GstAudioConverter.dither-method"), ("GST_AUDIO_CONVERTER_OPT_MIX_MATRIX", "GstAudioConverter.mix-matrix"), ("GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD", "GstAudioConverter.noise-shaping-method"), ("GST_AUDIO_CONVERTER_OPT_QUANTIZATION", "GstAudioConverter.quantization"), ("GST_AUDIO_CONVERTER_OPT_RESAMPLER_METHOD", "GstAudioConverter.resampler-method"), ("GST_AUDIO_DECODER_MAX_ERRORS", "10"), ("GST_AUDIO_DECODER_SINK_NAME", "sink"), ("GST_AUDIO_DECODER_SRC_NAME", "src"), ("GST_AUDIO_DEF_CHANNELS", "2"), ("GST_AUDIO_DEF_FORMAT", "S16LE"), ("GST_AUDIO_DEF_RATE", "44100"), ("(gint) GST_AUDIO_DITHER_NONE", "0"), ("(gint) GST_AUDIO_DITHER_RPDF", "1"), ("(gint) GST_AUDIO_DITHER_TPDF", "2"), ("(gint) GST_AUDIO_DITHER_TPDF_HF", "3"), ("GST_AUDIO_ENCODER_SINK_NAME", "sink"), ("GST_AUDIO_ENCODER_SRC_NAME", "src"), ("(guint) GST_AUDIO_FLAG_NONE", "0"), ("(guint) GST_AUDIO_FLAG_UNPOSITIONED", "1"), ("GST_AUDIO_FORMATS_ALL", " { S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }"), ("(gint) GST_AUDIO_FORMAT_ENCODED", "1"), ("(gint) GST_AUDIO_FORMAT_F32", "28"), ("(gint) GST_AUDIO_FORMAT_F32BE", "29"), ("(gint) GST_AUDIO_FORMAT_F32LE", "28"), ("(gint) GST_AUDIO_FORMAT_F64", "30"), ("(gint) GST_AUDIO_FORMAT_F64BE", "31"), ("(gint) GST_AUDIO_FORMAT_F64LE", "30"), ("(guint) GST_AUDIO_FORMAT_FLAG_COMPLEX", "16"), ("(guint) GST_AUDIO_FORMAT_FLAG_FLOAT", "2"), ("(guint) GST_AUDIO_FORMAT_FLAG_INTEGER", "1"), ("(guint) GST_AUDIO_FORMAT_FLAG_SIGNED", "4"), ("(guint) GST_AUDIO_FORMAT_FLAG_UNPACK", "32"), ("(gint) GST_AUDIO_FORMAT_S16", "4"), ("(gint) GST_AUDIO_FORMAT_S16BE", "5"), ("(gint) GST_AUDIO_FORMAT_S16LE", "4"), ("(gint) GST_AUDIO_FORMAT_S18", "24"), ("(gint) GST_AUDIO_FORMAT_S18BE", "25"), ("(gint) GST_AUDIO_FORMAT_S18LE", "24"), ("(gint) GST_AUDIO_FORMAT_S20", "20"), ("(gint) GST_AUDIO_FORMAT_S20BE", "21"), ("(gint) GST_AUDIO_FORMAT_S20LE", "20"), ("(gint) GST_AUDIO_FORMAT_S24", "16"), ("(gint) GST_AUDIO_FORMAT_S24BE", "17"), ("(gint) GST_AUDIO_FORMAT_S24LE", "16"), ("(gint) GST_AUDIO_FORMAT_S24_32", "8"), ("(gint) GST_AUDIO_FORMAT_S24_32BE", "9"), ("(gint) GST_AUDIO_FORMAT_S24_32LE", "8"), ("(gint) GST_AUDIO_FORMAT_S32", "12"), ("(gint) GST_AUDIO_FORMAT_S32BE", "13"), ("(gint) GST_AUDIO_FORMAT_S32LE", "12"), ("(gint) GST_AUDIO_FORMAT_S8", "2"), ("(gint) GST_AUDIO_FORMAT_U16", "6"), ("(gint) GST_AUDIO_FORMAT_U16BE", "7"), ("(gint) GST_AUDIO_FORMAT_U16LE", "6"), ("(gint) GST_AUDIO_FORMAT_U18", "26"), ("(gint) GST_AUDIO_FORMAT_U18BE", "27"), ("(gint) GST_AUDIO_FORMAT_U18LE", "26"), ("(gint) GST_AUDIO_FORMAT_U20", "22"), ("(gint) GST_AUDIO_FORMAT_U20BE", "23"), ("(gint) GST_AUDIO_FORMAT_U20LE", "22"), ("(gint) GST_AUDIO_FORMAT_U24", "18"), ("(gint) GST_AUDIO_FORMAT_U24BE", "19"), ("(gint) GST_AUDIO_FORMAT_U24LE", "18"), ("(gint) GST_AUDIO_FORMAT_U24_32", "10"), ("(gint) GST_AUDIO_FORMAT_U24_32BE", "11"), ("(gint) GST_AUDIO_FORMAT_U24_32LE", "10"), ("(gint) GST_AUDIO_FORMAT_U32", "14"), ("(gint) GST_AUDIO_FORMAT_U32BE", "15"), ("(gint) GST_AUDIO_FORMAT_U32LE", "14"), ("(gint) GST_AUDIO_FORMAT_U8", "3"), ("(gint) GST_AUDIO_FORMAT_UNKNOWN", "0"), ("(gint) GST_AUDIO_LAYOUT_INTERLEAVED", "0"), ("(gint) GST_AUDIO_LAYOUT_NON_INTERLEAVED", "1"), ("(gint) GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK", "1"), ("(gint) GST_AUDIO_NOISE_SHAPING_HIGH", "4"), ("(gint) GST_AUDIO_NOISE_SHAPING_MEDIUM", "3"), ("(gint) GST_AUDIO_NOISE_SHAPING_NONE", "0"), ("(gint) GST_AUDIO_NOISE_SHAPING_SIMPLE", "2"), ("(guint) GST_AUDIO_PACK_FLAG_NONE", "0"), ("(guint) GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE", "1"), ("(guint) GST_AUDIO_QUANTIZE_FLAG_NONE", "0"), ("(guint) GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED", "1"), ("GST_AUDIO_RATE_RANGE", "(int) [ 1, max ]"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC", "2"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR", "1"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE", "0"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO", "2"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_MODE_FULL", "1"), ("(gint) GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED", "0"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_NONE", "0"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN", "1"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT", "2"), ("(guint) GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE", "4"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL", "3"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_CUBIC", "2"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_KAISER", "4"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_LINEAR", "1"), ("(gint) GST_AUDIO_RESAMPLER_METHOD_NEAREST", "0"), ("GST_AUDIO_RESAMPLER_OPT_CUBIC_B", "GstAudioResampler.cubic-b"), ("GST_AUDIO_RESAMPLER_OPT_CUBIC_C", "GstAudioResampler.cubic-c"), ("GST_AUDIO_RESAMPLER_OPT_CUTOFF", "GstAudioResampler.cutoff"), ("GST_AUDIO_RESAMPLER_OPT_FILTER_INTERPOLATION", "GstAudioResampler.filter-interpolation"), ("GST_AUDIO_RESAMPLER_OPT_FILTER_MODE", "GstAudioResampler.filter-mode"), ("GST_AUDIO_RESAMPLER_OPT_FILTER_MODE_THRESHOLD", "GstAudioResampler.filter-mode-threshold"), ("GST_AUDIO_RESAMPLER_OPT_FILTER_OVERSAMPLE", "GstAudioResampler.filter-oversample"), ("GST_AUDIO_RESAMPLER_OPT_MAX_PHASE_ERROR", "GstAudioResampler.max-phase-error"), ("GST_AUDIO_RESAMPLER_OPT_N_TAPS", "GstAudioResampler.n-taps"), ("GST_AUDIO_RESAMPLER_OPT_STOP_ATTENUATION", "GstAudioResampler.stop-attenutation"), ("GST_AUDIO_RESAMPLER_OPT_TRANSITION_BANDWIDTH", "GstAudioResampler.transition-bandwidth"), ("GST_AUDIO_RESAMPLER_QUALITY_DEFAULT", "4"), ("GST_AUDIO_RESAMPLER_QUALITY_MAX", "10"), ("GST_AUDIO_RESAMPLER_QUALITY_MIN", "0"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3", "7"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW", "2"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS", "9"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3", "8"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC", "14"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM", "5"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958", "6"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM", "3"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG", "4"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC", "10"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW", "12"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC", "11"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW", "13"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW", "1"), ("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW", "0"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_ERROR", "3"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_PAUSED", "1"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_STARTED", "2"), ("(gint) GST_AUDIO_RING_BUFFER_STATE_STOPPED", "0"), ("GST_META_TAG_AUDIO_CHANNELS_STR", "channels"), ("GST_META_TAG_AUDIO_RATE_STR", "rate"), ("GST_META_TAG_AUDIO_STR", "audio"), ("(gint) GST_STREAM_VOLUME_FORMAT_CUBIC", "1"), ("(gint) GST_STREAM_VOLUME_FORMAT_DB", "2"), ("(gint) GST_STREAM_VOLUME_FORMAT_LINEAR", "0"), ]; gstreamer-audio-sys-0.8.0/tests/constant.c010064400017500001750000000024601350417403700170110ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir @ 20feecf) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #include "manual.h" #include int main() { printf(_Generic((ABI_CONSTANT_NAME), char *: "###gir test###%s###gir test###\n", const char *: "###gir test###%s###gir test###\n", char: "###gir test###%c###gir test###\n", signed char: "###gir test###%hhd###gir test###\n", unsigned char: "###gir test###%hhu###gir test###\n", short int: "###gir test###%hd###gir test###\n", unsigned short int: "###gir test###%hu###gir test###\n", int: "###gir test###%d###gir test###\n", unsigned int: "###gir test###%u###gir test###\n", long: "###gir test###%ld###gir test###\n", unsigned long: "###gir test###%lu###gir test###\n", long long: "###gir test###%lld###gir test###\n", unsigned long long: "###gir test###%llu###gir test###\n", double: "###gir test###%f###gir test###\n", long double: "###gir test###%ld###gir test###\n"), ABI_CONSTANT_NAME); return 0; } gstreamer-audio-sys-0.8.0/tests/layout.c010064400017500001750000000004741350417403700165000ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir @ 20feecf) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #include "manual.h" #include #include int main() { printf("%zu\n%zu", sizeof(ABI_TYPE_NAME), alignof(ABI_TYPE_NAME)); return 0; } gstreamer-audio-sys-0.8.0/tests/manual.h010064400017500001750000000001671326110200400164250ustar0000000000000000// Feel free to edit this file, it won't be regenerated by gir generator unless removed. #include gstreamer-audio-sys-0.8.0/.cargo_vcs_info.json0000644000000001120000000000000147760ustar00{ "git": { "sha1": "43c590cb7c9bfa2b39016272c60fd608da5229e1" } }