Update gir to 1c1a8d7 and regenerate with associated enum/flag functions

This commit is contained in:
Marijn Suijten 2020-12-07 12:11:04 +01:00
parent 01ae47c90c
commit 15d8774e6b
146 changed files with 1017 additions and 288 deletions

2
gir

@ -1 +1 @@
Subproject commit e941700f720b09ceb98d37369275ca292c34d650 Subproject commit 1c1a8d701cf372ed673ca609bd176a75848e75aa

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_app_sys::*; use gstreamer_app_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -8,6 +8,7 @@ use glib::value::FromValueOptional;
use glib::value::SetValue; use glib::value::SetValue;
use glib::StaticType; use glib::StaticType;
use glib::Type; use glib::Type;
use std::fmt;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
@ -205,6 +206,20 @@ pub enum AudioFormat {
__Unknown(i32), __Unknown(i32),
} }
impl AudioFormat {
pub fn from_string(format: &str) -> AudioFormat {
assert_initialized_main_thread!();
unsafe { from_glib(ffi::gst_audio_format_from_string(format.to_glib_none().0)) }
}
}
impl fmt::Display for AudioFormat {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.to_str())
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for AudioFormat { impl ToGlib for AudioFormat {
type GlibType = ffi::GstAudioFormat; type GlibType = ffi::GstAudioFormat;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_audio_sys::*; use gstreamer_audio_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_base_sys::*; use gstreamer_base_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_check_sys::*; use gstreamer_check_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_controller_sys::*; use gstreamer_controller_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -8,6 +8,12 @@ use glib::value::FromValueOptional;
use glib::value::SetValue; use glib::value::SetValue;
use glib::StaticType; use glib::StaticType;
use glib::Type; use glib::Type;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::ffi::CStr;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::fmt;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
@ -19,6 +25,31 @@ pub enum Edge {
__Unknown(i32), __Unknown(i32),
} }
impl Edge {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn name<'a>(self) -> &'a str {
unsafe {
CStr::from_ptr(
ffi::ges_edge_name(self.to_glib())
.as_ref()
.expect("ges_edge_name returned NULL"),
)
.to_str()
.expect("ges_edge_name returned an invalid string")
}
}
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
impl fmt::Display for Edge {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.name())
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for Edge { impl ToGlib for Edge {
type GlibType = ffi::GESEdge; type GlibType = ffi::GESEdge;
@ -82,6 +113,31 @@ pub enum EditMode {
__Unknown(i32), __Unknown(i32),
} }
impl EditMode {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn name<'a>(self) -> &'a str {
unsafe {
CStr::from_ptr(
ffi::ges_edit_mode_name(self.to_glib())
.as_ref()
.expect("ges_edit_mode_name returned NULL"),
)
.to_str()
.expect("ges_edit_mode_name returned an invalid string")
}
}
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl fmt::Display for EditMode {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.name())
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for EditMode { impl ToGlib for EditMode {
type GlibType = ffi::GESEditMode; type GlibType = ffi::GESEditMode;

View file

@ -9,6 +9,8 @@ use glib::value::FromValueOptional;
use glib::value::SetValue; use glib::value::SetValue;
use glib::StaticType; use glib::StaticType;
use glib::Type; use glib::Type;
use std::ffi::CStr;
use std::fmt;
bitflags! { bitflags! {
pub struct PipelineFlags: u32 { pub struct PipelineFlags: u32 {
@ -71,6 +73,27 @@ bitflags! {
} }
} }
impl TrackType {
pub fn name<'a>(self) -> &'a str {
unsafe {
CStr::from_ptr(
ffi::ges_track_type_name(self.to_glib())
.as_ref()
.expect("ges_track_type_name returned NULL"),
)
.to_str()
.expect("ges_track_type_name returned an invalid string")
}
}
}
impl fmt::Display for TrackType {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.name())
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for TrackType { impl ToGlib for TrackType {
type GlibType = ffi::GESTrackType; type GlibType = ffi::GESTrackType;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_editing_services_sys::*; use gstreamer_editing_services_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_gl_egl_sys::*; use gstreamer_gl_egl_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -2,7 +2,14 @@
// from gir-files (https://github.com/gtk-rs/gir-files) // from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use crate::GLContext;
use crate::GLSLProfile;
use glib::error::ErrorDomain; use glib::error::ErrorDomain;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::object::IsA;
use glib::translate::*; use glib::translate::*;
use glib::value::FromValue; use glib::value::FromValue;
use glib::value::FromValueOptional; use glib::value::FromValueOptional;
@ -10,6 +17,7 @@ use glib::value::SetValue;
use glib::Quark; use glib::Quark;
use glib::StaticType; use glib::StaticType;
use glib::Type; use glib::Type;
use std::mem;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
@ -132,6 +140,47 @@ pub enum GLFormat {
__Unknown(i32), __Unknown(i32),
} }
impl GLFormat {
//pub fn from_video_info<P: IsA<GLContext>>(context: &P, vinfo: /*Ignored*/&mut gst_video::VideoInfo, plane: u32) -> GLFormat {
// unsafe { TODO: call ffi:gst_gl_format_from_video_info() }
//}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn is_supported<P: IsA<GLContext>>(context: &P, format: GLFormat) -> bool {
skip_assert_initialized!();
unsafe {
from_glib(ffi::gst_gl_format_is_supported(
context.as_ref().to_glib_none().0,
format.to_glib(),
))
}
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn type_from_sized_gl_format(self) -> (GLFormat, u32) {
assert_initialized_main_thread!();
unsafe {
let mut unsized_format = mem::MaybeUninit::uninit();
let mut gl_type = mem::MaybeUninit::uninit();
ffi::gst_gl_format_type_from_sized_gl_format(
self.to_glib(),
unsized_format.as_mut_ptr(),
gl_type.as_mut_ptr(),
);
let unsized_format = unsized_format.assume_init();
let gl_type = gl_type.assume_init();
(from_glib(unsized_format), gl_type)
}
}
pub fn type_n_bytes(format: u32, type_: u32) -> u32 {
assert_initialized_main_thread!();
unsafe { ffi::gst_gl_format_type_n_bytes(format, type_) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for GLFormat { impl ToGlib for GLFormat {
type GlibType = ffi::GstGLFormat; type GlibType = ffi::GstGLFormat;
@ -383,6 +432,48 @@ pub enum GLSLVersion {
__Unknown(i32), __Unknown(i32),
} }
impl GLSLVersion {
pub fn from_string(string: &str) -> GLSLVersion {
assert_initialized_main_thread!();
unsafe { from_glib(ffi::gst_glsl_version_from_string(string.to_glib_none().0)) }
}
pub fn profile_from_string(string: &str) -> Option<(GLSLVersion, GLSLProfile)> {
assert_initialized_main_thread!();
unsafe {
let mut version_ret = mem::MaybeUninit::uninit();
let mut profile_ret = mem::MaybeUninit::uninit();
let ret = from_glib(ffi::gst_glsl_version_profile_from_string(
string.to_glib_none().0,
version_ret.as_mut_ptr(),
profile_ret.as_mut_ptr(),
));
let version_ret = version_ret.assume_init();
let profile_ret = profile_ret.assume_init();
if ret {
Some((from_glib(version_ret), from_glib(profile_ret)))
} else {
None
}
}
}
pub fn profile_to_string(self, profile: GLSLProfile) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe {
from_glib_full(ffi::gst_glsl_version_profile_to_string(
self.to_glib(),
profile.to_glib(),
))
}
}
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_glsl_version_to_string(self.to_glib())) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for GLSLVersion { impl ToGlib for GLSLVersion {
type GlibType = ffi::GstGLSLVersion; type GlibType = ffi::GstGLSLVersion;
@ -538,6 +629,37 @@ pub enum GLTextureTarget {
__Unknown(i32), __Unknown(i32),
} }
impl GLTextureTarget {
pub fn from_gl(target: u32) -> GLTextureTarget {
assert_initialized_main_thread!();
unsafe { from_glib(ffi::gst_gl_texture_target_from_gl(target)) }
}
pub fn from_string(str: &str) -> GLTextureTarget {
assert_initialized_main_thread!();
unsafe { from_glib(ffi::gst_gl_texture_target_from_string(str.to_glib_none().0)) }
}
pub fn to_buffer_pool_option(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe {
from_glib_none(ffi::gst_gl_texture_target_to_buffer_pool_option(
self.to_glib(),
))
}
}
pub fn to_gl(self) -> u32 {
assert_initialized_main_thread!();
unsafe { ffi::gst_gl_texture_target_to_gl(self.to_glib()) }
}
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_gl_texture_target_to_string(self.to_glib())) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for GLTextureTarget { impl ToGlib for GLTextureTarget {
type GlibType = ffi::GstGLTextureTarget; type GlibType = ffi::GstGLTextureTarget;

View file

@ -9,6 +9,7 @@ use glib::value::FromValueOptional;
use glib::value::SetValue; use glib::value::SetValue;
use glib::StaticType; use glib::StaticType;
use glib::Type; use glib::Type;
use std::fmt;
bitflags! { bitflags! {
pub struct GLAPI: u32 { pub struct GLAPI: u32 {
@ -19,6 +20,25 @@ bitflags! {
} }
} }
impl GLAPI {
pub fn from_string(api_s: &str) -> GLAPI {
assert_initialized_main_thread!();
unsafe { from_glib(ffi::gst_gl_api_from_string(api_s.to_glib_none().0)) }
}
pub fn to_str(self) -> glib::GString {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_api_to_string(self.to_glib())) }
}
}
impl fmt::Display for GLAPI {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.to_str())
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for GLAPI { impl ToGlib for GLAPI {
type GlibType = ffi::GstGLAPI; type GlibType = ffi::GstGLAPI;
@ -127,6 +147,29 @@ bitflags! {
} }
} }
impl GLPlatform {
pub fn from_string(platform_s: &str) -> GLPlatform {
assert_initialized_main_thread!();
unsafe {
from_glib(ffi::gst_gl_platform_from_string(
platform_s.to_glib_none().0,
))
}
}
pub fn to_str(self) -> glib::GString {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_platform_to_string(self.to_glib())) }
}
}
impl fmt::Display for GLPlatform {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.to_str())
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for GLPlatform { impl ToGlib for GLPlatform {
type GlibType = ffi::GstGLPlatform; type GlibType = ffi::GstGLPlatform;
@ -176,6 +219,18 @@ bitflags! {
} }
} }
impl GLSLProfile {
pub fn from_string(string: &str) -> GLSLProfile {
assert_initialized_main_thread!();
unsafe { from_glib(ffi::gst_glsl_profile_from_string(string.to_glib_none().0)) }
}
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_glsl_profile_to_string(self.to_glib())) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for GLSLProfile { impl ToGlib for GLSLProfile {
type GlibType = ffi::GstGLSLProfile; type GlibType = ffi::GstGLSLProfile;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_gl_sys::*; use gstreamer_gl_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_gl_wayland_sys::*; use gstreamer_gl_wayland_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_gl_x11_sys::*; use gstreamer_gl_x11_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_mpegts_sys::*; use gstreamer_mpegts_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_net_sys::*; use gstreamer_net_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -4,6 +4,7 @@
use crate::EncodingProfile; use crate::EncodingProfile;
use glib::translate::*; use glib::translate::*;
use std::fmt;
use std::ptr; use std::ptr;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -135,5 +136,12 @@ impl EncodingTarget {
} }
} }
impl fmt::Display for EncodingTarget {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.get_name())
}
}
unsafe impl Send for EncodingTarget {} unsafe impl Send for EncodingTarget {}
unsafe impl Sync for EncodingTarget {} unsafe impl Sync for EncodingTarget {}

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_pbutils_sys::*; use gstreamer_pbutils_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -22,6 +22,13 @@ pub enum PlayerColorBalanceType {
__Unknown(i32), __Unknown(i32),
} }
impl PlayerColorBalanceType {
pub fn get_name(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_player_color_balance_type_get_name(self.to_glib())) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for PlayerColorBalanceType { impl ToGlib for PlayerColorBalanceType {
type GlibType = ffi::GstPlayerColorBalanceType; type GlibType = ffi::GstPlayerColorBalanceType;
@ -83,6 +90,13 @@ pub enum PlayerError {
__Unknown(i32), __Unknown(i32),
} }
impl PlayerError {
pub fn get_name(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_player_error_get_name(self.to_glib())) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for PlayerError { impl ToGlib for PlayerError {
type GlibType = ffi::GstPlayerError; type GlibType = ffi::GstPlayerError;
@ -204,6 +218,13 @@ pub enum PlayerState {
__Unknown(i32), __Unknown(i32),
} }
impl PlayerState {
pub fn get_name(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_player_state_get_name(self.to_glib())) }
}
}
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for PlayerState { impl ToGlib for PlayerState {
type GlibType = ffi::GstPlayerState; type GlibType = ffi::GstPlayerState;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_player_sys::*; use gstreamer_player_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_rtp_sys::*; use gstreamer_rtp_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e941700) Generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
@ -11,7 +11,7 @@ fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(not(feature = "dox"))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); println!("cargo:warning={}", s);
process::exit(1); process::exit(1);
} }
} }

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700) // This file was generated by gir (https://github.com/gtk-rs/gir @ 1c1a8d7)
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00) // from gir-files (https://github.com/gtk-rs/gir-files @ 01ae47c9)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

Some files were not shown because too many files have changed in this diff Show more