2022-10-18 15:16:11 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2018-03-20 09:46:03 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2023-07-05 18:20:29 +00:00
|
|
|
#![cfg(unix)]
|
2022-12-05 09:22:14 +00:00
|
|
|
|
2019-06-18 10:04:39 +00:00
|
|
|
use gstreamer_audio_sys::*;
|
2018-03-20 09:46:03 +00:00
|
|
|
use std::env;
|
|
|
|
use std::error::Error;
|
2021-02-07 15:07:17 +00:00
|
|
|
use std::ffi::OsString;
|
2018-03-20 09:46:03 +00:00
|
|
|
use std::mem::{align_of, size_of};
|
2019-06-18 10:04:39 +00:00
|
|
|
use std::path::Path;
|
2023-08-28 16:52:26 +00:00
|
|
|
use std::process::{Command, Stdio};
|
2018-03-20 09:46:03 +00:00
|
|
|
use std::str;
|
2019-11-19 09:49:46 +00:00
|
|
|
use tempfile::Builder;
|
2018-03-20 09:46:03 +00:00
|
|
|
|
|
|
|
static PACKAGES: &[&str] = &["gstreamer-audio-1.0"];
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
struct Compiler {
|
|
|
|
pub args: Vec<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Compiler {
|
2021-04-25 16:45:59 +00:00
|
|
|
pub fn new() -> Result<Self, Box<dyn Error>> {
|
2018-03-20 09:46:03 +00:00
|
|
|
let mut args = get_var("CC", "cc")?;
|
|
|
|
args.push("-Wno-deprecated-declarations".to_owned());
|
2021-02-07 15:07:17 +00:00
|
|
|
// For _Generic
|
|
|
|
args.push("-std=c11".to_owned());
|
2018-03-20 09:46:03 +00:00
|
|
|
// 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)?);
|
2021-04-25 16:45:59 +00:00
|
|
|
Ok(Self { args })
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
|
2019-11-19 09:49:46 +00:00
|
|
|
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {
|
2018-03-20 09:46:03 +00:00
|
|
|
let mut cmd = self.to_command();
|
|
|
|
cmd.arg(src);
|
|
|
|
cmd.arg("-o");
|
|
|
|
cmd.arg(out);
|
|
|
|
let status = cmd.spawn()?.wait()?;
|
|
|
|
if !status.success() {
|
2022-11-12 15:40:16 +00:00
|
|
|
return Err(format!("compilation command {cmd:?} failed, {status}").into());
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
fn to_command(&self) -> Command {
|
|
|
|
let mut cmd = Command::new(&self.args[0]);
|
|
|
|
cmd.args(&self.args[1..]);
|
|
|
|
cmd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 09:49:46 +00:00
|
|
|
fn get_var(name: &str, default: &str) -> Result<Vec<String>, Box<dyn Error>> {
|
2018-03-20 09:46:03 +00:00
|
|
|
match env::var(name) {
|
|
|
|
Ok(value) => Ok(shell_words::split(&value)?),
|
|
|
|
Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?),
|
2022-11-12 15:40:16 +00:00
|
|
|
Err(err) => Err(format!("{name} {err}").into()),
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 09:49:46 +00:00
|
|
|
fn pkg_config_cflags(packages: &[&str]) -> Result<Vec<String>, Box<dyn Error>> {
|
2018-03-20 09:46:03 +00:00
|
|
|
if packages.is_empty() {
|
|
|
|
return Ok(Vec::new());
|
|
|
|
}
|
2021-02-07 15:07:17 +00:00
|
|
|
let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config"));
|
|
|
|
let mut cmd = Command::new(pkg_config);
|
2018-03-20 09:46:03 +00:00
|
|
|
cmd.arg("--cflags");
|
|
|
|
cmd.args(packages);
|
2023-08-28 16:52:26 +00:00
|
|
|
cmd.stderr(Stdio::inherit());
|
2018-03-20 09:46:03 +00:00
|
|
|
let out = cmd.output()?;
|
|
|
|
if !out.status.success() {
|
2023-08-28 16:52:26 +00:00
|
|
|
let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout));
|
|
|
|
return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into());
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Results {
|
|
|
|
fn record_passed(&mut self) {
|
|
|
|
self.passed += 1;
|
|
|
|
}
|
|
|
|
fn record_failed(&mut self) {
|
|
|
|
self.failed += 1;
|
|
|
|
}
|
|
|
|
fn summary(&self) -> String {
|
2021-02-07 15:07:17 +00:00
|
|
|
format!("{} passed; {} failed", self.passed, self.failed)
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
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() {
|
2021-02-07 15:07:17 +00:00
|
|
|
let mut c_constants: Vec<(String, String)> = Vec::new();
|
|
|
|
|
|
|
|
for l in get_c_output("constant").unwrap().lines() {
|
2022-07-18 10:25:36 +00:00
|
|
|
let (name, value) = l.split_once(';').expect("Missing ';' separator");
|
|
|
|
c_constants.push((name.to_owned(), value.to_owned()));
|
2021-02-07 15:07:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
let mut results = Results::default();
|
|
|
|
|
|
|
|
for ((rust_name, rust_value), (c_name, c_value)) in
|
|
|
|
RUST_CONSTANTS.iter().zip(c_constants.iter())
|
|
|
|
{
|
|
|
|
if rust_name != c_name {
|
|
|
|
results.record_failed();
|
2022-11-12 15:40:16 +00:00
|
|
|
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
|
2021-02-07 15:07:17 +00:00
|
|
|
continue;
|
|
|
|
}
|
2018-03-20 09:46:03 +00:00
|
|
|
|
2021-02-07 15:07:17 +00:00
|
|
|
if rust_value != c_value {
|
|
|
|
results.record_failed();
|
|
|
|
eprintln!(
|
2022-11-12 15:40:16 +00:00
|
|
|
"Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}",
|
2021-02-07 15:07:17 +00:00
|
|
|
);
|
|
|
|
continue;
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
2021-02-07 15:07:17 +00:00
|
|
|
|
|
|
|
results.record_passed();
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
2021-02-07 15:07:17 +00:00
|
|
|
|
2018-03-20 09:46:03 +00:00
|
|
|
results.expect_total_success();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn cross_validate_layout_with_c() {
|
2021-02-07 15:07:17 +00:00
|
|
|
let mut c_layouts = Vec::new();
|
|
|
|
|
|
|
|
for l in get_c_output("layout").unwrap().lines() {
|
2022-07-18 10:25:36 +00:00
|
|
|
let (name, value) = l.split_once(';').expect("Missing first ';' separator");
|
|
|
|
let (size, alignment) = value.split_once(';').expect("Missing second ';' separator");
|
|
|
|
let size = size.parse().expect("Failed to parse size");
|
|
|
|
let alignment = alignment.parse().expect("Failed to parse alignment");
|
|
|
|
c_layouts.push((name.to_owned(), Layout { size, alignment }));
|
2021-02-07 15:07:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
let mut results = Results::default();
|
|
|
|
|
|
|
|
for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter())
|
|
|
|
{
|
|
|
|
if rust_name != c_name {
|
|
|
|
results.record_failed();
|
2022-11-12 15:40:16 +00:00
|
|
|
eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}");
|
2021-02-07 15:07:17 +00:00
|
|
|
continue;
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
|
2021-02-07 15:07:17 +00:00
|
|
|
if rust_layout != c_layout {
|
|
|
|
results.record_failed();
|
2022-11-12 15:40:16 +00:00
|
|
|
eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",);
|
2021-02-07 15:07:17 +00:00
|
|
|
continue;
|
|
|
|
}
|
2018-03-20 09:46:03 +00:00
|
|
|
|
2021-02-07 15:07:17 +00:00
|
|
|
results.record_passed();
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
|
2021-02-07 15:07:17 +00:00
|
|
|
results.expect_total_success();
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
|
2021-02-07 15:07:17 +00:00
|
|
|
fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
|
|
|
|
let tmpdir = Builder::new().prefix("abi").tempdir()?;
|
|
|
|
let exe = tmpdir.path().join(name);
|
|
|
|
let c_file = Path::new("tests").join(name).with_extension("c");
|
|
|
|
|
|
|
|
let cc = Compiler::new().expect("configured compiler");
|
|
|
|
cc.compile(&c_file, &exe)?;
|
2018-03-20 09:46:03 +00:00
|
|
|
|
2023-08-28 16:52:26 +00:00
|
|
|
let mut cmd = Command::new(exe);
|
|
|
|
cmd.stderr(Stdio::inherit());
|
|
|
|
let out = cmd.output()?;
|
|
|
|
if !out.status.success() {
|
|
|
|
let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout));
|
|
|
|
return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into());
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
|
2023-08-28 16:52:26 +00:00
|
|
|
Ok(String::from_utf8(out.stdout)?)
|
2018-03-20 09:46:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
2019-06-18 10:04:39 +00:00
|
|
|
(
|
|
|
|
"GstAudioAggregator",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioAggregator>(),
|
|
|
|
alignment: align_of::<GstAudioAggregator>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioAggregatorClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioAggregatorClass>(),
|
|
|
|
alignment: align_of::<GstAudioAggregatorClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioAggregatorConvertPad",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioAggregatorConvertPad>(),
|
|
|
|
alignment: align_of::<GstAudioAggregatorConvertPad>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioAggregatorConvertPadClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioAggregatorConvertPadClass>(),
|
|
|
|
alignment: align_of::<GstAudioAggregatorConvertPadClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioAggregatorPad",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioAggregatorPad>(),
|
|
|
|
alignment: align_of::<GstAudioAggregatorPad>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioAggregatorPadClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioAggregatorPadClass>(),
|
|
|
|
alignment: align_of::<GstAudioAggregatorPadClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSink",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSink>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSink>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSinkClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSinkClass>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSinkClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSinkDiscontReason",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSinkDiscontReason>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSinkDiscontReason>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSinkSlaveMethod",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSinkSlaveMethod>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSinkSlaveMethod>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSrc",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSrc>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSrc>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSrcClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSrcClass>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSrcClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBaseSrcSlaveMethod",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBaseSrcSlaveMethod>(),
|
|
|
|
alignment: align_of::<GstAudioBaseSrcSlaveMethod>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioBuffer",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioBuffer>(),
|
|
|
|
alignment: align_of::<GstAudioBuffer>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioCdSrc",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioCdSrc>(),
|
|
|
|
alignment: align_of::<GstAudioCdSrc>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioCdSrcClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioCdSrcClass>(),
|
|
|
|
alignment: align_of::<GstAudioCdSrcClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioCdSrcMode",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioCdSrcMode>(),
|
|
|
|
alignment: align_of::<GstAudioCdSrcMode>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioCdSrcTrack",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioCdSrcTrack>(),
|
|
|
|
alignment: align_of::<GstAudioCdSrcTrack>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioChannelMixerFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioChannelMixerFlags>(),
|
|
|
|
alignment: align_of::<GstAudioChannelMixerFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioChannelPosition",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioChannelPosition>(),
|
|
|
|
alignment: align_of::<GstAudioChannelPosition>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioClippingMeta",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioClippingMeta>(),
|
|
|
|
alignment: align_of::<GstAudioClippingMeta>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioClock",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioClock>(),
|
|
|
|
alignment: align_of::<GstAudioClock>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioClockClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioClockClass>(),
|
|
|
|
alignment: align_of::<GstAudioClockClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioConverterFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioConverterFlags>(),
|
|
|
|
alignment: align_of::<GstAudioConverterFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioDecoder",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioDecoder>(),
|
|
|
|
alignment: align_of::<GstAudioDecoder>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioDecoderClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioDecoderClass>(),
|
|
|
|
alignment: align_of::<GstAudioDecoderClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioDitherMethod",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioDitherMethod>(),
|
|
|
|
alignment: align_of::<GstAudioDitherMethod>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioDownmixMeta",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioDownmixMeta>(),
|
|
|
|
alignment: align_of::<GstAudioDownmixMeta>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioEncoder",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioEncoder>(),
|
|
|
|
alignment: align_of::<GstAudioEncoder>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioEncoderClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioEncoderClass>(),
|
|
|
|
alignment: align_of::<GstAudioEncoderClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioFilter",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioFilter>(),
|
|
|
|
alignment: align_of::<GstAudioFilter>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioFilterClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioFilterClass>(),
|
|
|
|
alignment: align_of::<GstAudioFilterClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioFlags>(),
|
|
|
|
alignment: align_of::<GstAudioFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioFormat",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioFormat>(),
|
|
|
|
alignment: align_of::<GstAudioFormat>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioFormatFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioFormatFlags>(),
|
|
|
|
alignment: align_of::<GstAudioFormatFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioFormatInfo",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioFormatInfo>(),
|
|
|
|
alignment: align_of::<GstAudioFormatInfo>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioInfo",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioInfo>(),
|
|
|
|
alignment: align_of::<GstAudioInfo>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioLayout",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioLayout>(),
|
|
|
|
alignment: align_of::<GstAudioLayout>(),
|
|
|
|
},
|
|
|
|
),
|
2021-04-17 10:11:52 +00:00
|
|
|
(
|
|
|
|
"GstAudioLevelMeta",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioLevelMeta>(),
|
|
|
|
alignment: align_of::<GstAudioLevelMeta>(),
|
|
|
|
},
|
|
|
|
),
|
2019-06-18 10:04:39 +00:00
|
|
|
(
|
|
|
|
"GstAudioMeta",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioMeta>(),
|
|
|
|
alignment: align_of::<GstAudioMeta>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioNoiseShapingMethod",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioNoiseShapingMethod>(),
|
|
|
|
alignment: align_of::<GstAudioNoiseShapingMethod>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioPackFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioPackFlags>(),
|
|
|
|
alignment: align_of::<GstAudioPackFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioQuantizeFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioQuantizeFlags>(),
|
|
|
|
alignment: align_of::<GstAudioQuantizeFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioResamplerFilterInterpolation",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioResamplerFilterInterpolation>(),
|
|
|
|
alignment: align_of::<GstAudioResamplerFilterInterpolation>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioResamplerFilterMode",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioResamplerFilterMode>(),
|
|
|
|
alignment: align_of::<GstAudioResamplerFilterMode>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioResamplerFlags",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioResamplerFlags>(),
|
|
|
|
alignment: align_of::<GstAudioResamplerFlags>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioResamplerMethod",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioResamplerMethod>(),
|
|
|
|
alignment: align_of::<GstAudioResamplerMethod>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioRingBuffer",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioRingBuffer>(),
|
|
|
|
alignment: align_of::<GstAudioRingBuffer>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioRingBufferClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioRingBufferClass>(),
|
|
|
|
alignment: align_of::<GstAudioRingBufferClass>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioRingBufferFormatType",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioRingBufferFormatType>(),
|
|
|
|
alignment: align_of::<GstAudioRingBufferFormatType>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioRingBufferSpec",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioRingBufferSpec>(),
|
|
|
|
alignment: align_of::<GstAudioRingBufferSpec>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioRingBufferState",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioRingBufferState>(),
|
|
|
|
alignment: align_of::<GstAudioRingBufferState>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioSink",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioSink>(),
|
|
|
|
alignment: align_of::<GstAudioSink>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioSinkClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioSinkClass>(),
|
|
|
|
alignment: align_of::<GstAudioSinkClass>(),
|
|
|
|
},
|
|
|
|
),
|
2020-06-03 09:00:25 +00:00
|
|
|
(
|
|
|
|
"GstAudioSinkClassExtension",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioSinkClassExtension>(),
|
|
|
|
alignment: align_of::<GstAudioSinkClassExtension>(),
|
|
|
|
},
|
|
|
|
),
|
2019-06-18 10:04:39 +00:00
|
|
|
(
|
|
|
|
"GstAudioSrc",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioSrc>(),
|
|
|
|
alignment: align_of::<GstAudioSrc>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstAudioSrcClass",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstAudioSrcClass>(),
|
|
|
|
alignment: align_of::<GstAudioSrcClass>(),
|
|
|
|
},
|
|
|
|
),
|
2023-07-04 14:20:58 +00:00
|
|
|
(
|
|
|
|
"GstDsdFormat",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstDsdFormat>(),
|
|
|
|
alignment: align_of::<GstDsdFormat>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstDsdInfo",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstDsdInfo>(),
|
|
|
|
alignment: align_of::<GstDsdInfo>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstDsdPlaneOffsetMeta",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstDsdPlaneOffsetMeta>(),
|
|
|
|
alignment: align_of::<GstDsdPlaneOffsetMeta>(),
|
|
|
|
},
|
|
|
|
),
|
2019-06-18 10:04:39 +00:00
|
|
|
(
|
|
|
|
"GstStreamVolumeFormat",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstStreamVolumeFormat>(),
|
|
|
|
alignment: align_of::<GstStreamVolumeFormat>(),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GstStreamVolumeInterface",
|
|
|
|
Layout {
|
|
|
|
size: size_of::<GstStreamVolumeInterface>(),
|
|
|
|
alignment: align_of::<GstStreamVolumeInterface>(),
|
|
|
|
},
|
|
|
|
),
|
2018-03-20 09:46:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const RUST_CONSTANTS: &[(&str, &str)] = &[
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT", "4"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE",
|
|
|
|
"5",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY",
|
|
|
|
"3",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_AUDIO_CHANNELS_RANGE", "(int) [ 1, max ]"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE", "0"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN",
|
|
|
|
"1",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT",
|
|
|
|
"2",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN", "4"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(guint) GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT",
|
|
|
|
"8",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER",
|
|
|
|
"21",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER",
|
|
|
|
"6",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT", "1"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER",
|
|
|
|
"7",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"GST_AUDIO_CONVERTER_OPT_DITHER_METHOD",
|
|
|
|
"GstAudioConverter.dither-method",
|
|
|
|
),
|
2022-03-15 13:34:51 +00:00
|
|
|
(
|
|
|
|
"GST_AUDIO_CONVERTER_OPT_DITHER_THRESHOLD",
|
|
|
|
"GstAudioConverter.dither-threshold",
|
|
|
|
),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"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",
|
|
|
|
),
|
2022-12-05 09:22:14 +00:00
|
|
|
("GST_AUDIO_DECODER_MAX_ERRORS", "-1"),
|
2018-03-20 09:46:03 +00:00
|
|
|
("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"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_AUDIO_ENCODER_SINK_NAME", "sink"),
|
|
|
|
("GST_AUDIO_ENCODER_SRC_NAME", "src"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(guint) GST_AUDIO_FLAG_NONE", "0"),
|
|
|
|
("(guint) GST_AUDIO_FLAG_UNPOSITIONED", "1"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_ENCODED", "1"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_F32BE", "29"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_F32LE", "28"),
|
|
|
|
("(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"),
|
2024-04-30 08:30:51 +00:00
|
|
|
("GST_AUDIO_FORMAT_LAST", "32"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_AUDIO_FORMAT_S16BE", "5"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S16LE", "4"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S18BE", "25"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S18LE", "24"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S20BE", "21"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S20LE", "20"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S24BE", "17"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S24LE", "16"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S24_32BE", "9"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S24_32LE", "8"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S32BE", "13"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S32LE", "12"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_S8", "2"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U16BE", "7"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U16LE", "6"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U18BE", "27"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U18LE", "26"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U20BE", "23"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U20LE", "22"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U24BE", "19"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U24LE", "18"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U24_32BE", "11"),
|
|
|
|
("(gint) GST_AUDIO_FORMAT_U24_32LE", "10"),
|
|
|
|
("(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"),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_AUDIO_RATE_RANGE", "(int) [ 1, max ]"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC", "2"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR",
|
|
|
|
"1",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"GST_AUDIO_RESAMPLER_OPT_CUBIC_B",
|
|
|
|
"GstAudioResampler.cubic-b",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GST_AUDIO_RESAMPLER_OPT_CUBIC_C",
|
|
|
|
"GstAudioResampler.cubic-c",
|
|
|
|
),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_AUDIO_RESAMPLER_OPT_CUTOFF", "GstAudioResampler.cutoff"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"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",
|
|
|
|
),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_AUDIO_RESAMPLER_OPT_N_TAPS", "GstAudioResampler.n-taps"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"GST_AUDIO_RESAMPLER_OPT_STOP_ATTENUATION",
|
|
|
|
"GstAudioResampler.stop-attenutation",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"GST_AUDIO_RESAMPLER_OPT_TRANSITION_BANDWIDTH",
|
|
|
|
"GstAudioResampler.transition-bandwidth",
|
|
|
|
),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_AUDIO_RESAMPLER_QUALITY_DEFAULT", "4"),
|
|
|
|
("GST_AUDIO_RESAMPLER_QUALITY_MAX", "10"),
|
|
|
|
("GST_AUDIO_RESAMPLER_QUALITY_MIN", "0"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3", "7"),
|
|
|
|
("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW", "2"),
|
2023-07-04 14:20:58 +00:00
|
|
|
("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DSD", "15"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW",
|
|
|
|
"12",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC", "11"),
|
2020-06-10 08:31:49 +00:00
|
|
|
(
|
|
|
|
"(gint) GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW",
|
|
|
|
"13",
|
|
|
|
),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(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"),
|
2023-07-04 14:20:58 +00:00
|
|
|
(
|
|
|
|
"GST_DSD_FORMATS_ALL",
|
|
|
|
"{ DSDU32BE, DSDU16BE, DSDU8, DSDU32LE, DSDU16LE }",
|
|
|
|
),
|
|
|
|
("(gint) GST_DSD_FORMAT_U16", "2"),
|
|
|
|
("(gint) GST_DSD_FORMAT_U16BE", "3"),
|
|
|
|
("(gint) GST_DSD_FORMAT_U16LE", "2"),
|
|
|
|
("(gint) GST_DSD_FORMAT_U32", "4"),
|
|
|
|
("(gint) GST_DSD_FORMAT_U32BE", "5"),
|
|
|
|
("(gint) GST_DSD_FORMAT_U32LE", "4"),
|
|
|
|
("(gint) GST_DSD_FORMAT_U8", "1"),
|
|
|
|
("(gint) GST_DSD_FORMAT_UNKNOWN", "0"),
|
|
|
|
("GST_DSD_MEDIA_TYPE", "audio/x-dsd"),
|
|
|
|
("GST_DSD_SILENCE_PATTERN_BYTE", "105"),
|
2018-03-20 09:46:03 +00:00
|
|
|
("GST_META_TAG_AUDIO_CHANNELS_STR", "channels"),
|
|
|
|
("GST_META_TAG_AUDIO_RATE_STR", "rate"),
|
|
|
|
("GST_META_TAG_AUDIO_STR", "audio"),
|
2023-07-04 14:20:58 +00:00
|
|
|
("GST_META_TAG_DSD_PLANE_OFFSETS_STR", "dsdplaneoffsets"),
|
|
|
|
("(gint) GST_NUM_DSD_FORMATS", "6"),
|
2018-11-11 06:59:36 +00:00
|
|
|
("(gint) GST_STREAM_VOLUME_FORMAT_CUBIC", "1"),
|
|
|
|
("(gint) GST_STREAM_VOLUME_FORMAT_DB", "2"),
|
|
|
|
("(gint) GST_STREAM_VOLUME_FORMAT_LINEAR", "0"),
|
2018-03-20 09:46:03 +00:00
|
|
|
];
|