Regenerate with 1.19.1 updates

This commit is contained in:
Marijn Suijten 2021-04-17 12:11:52 +02:00
parent ae6d3e2b1b
commit 510e4cd2b1
168 changed files with 3726 additions and 335 deletions

View file

@ -3,6 +3,9 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use crate::AppLeakyType;
use crate::AppStreamType;
use glib::object::ObjectType as ObjectType_;
use glib::signal::connect_raw;
@ -34,12 +37,32 @@ impl AppSrc {
unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) }
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_current_level_buffers")]
#[doc(alias = "get_current_level_buffers")]
pub fn current_level_buffers(&self) -> u64 {
unsafe { ffi::gst_app_src_get_current_level_buffers(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_src_get_current_level_bytes")]
#[doc(alias = "get_current_level_bytes")]
pub fn current_level_bytes(&self) -> u64 {
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_current_level_time")]
#[doc(alias = "get_current_level_time")]
pub fn current_level_time(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_app_src_get_current_level_time(
self.to_glib_none().0,
))
}
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
#[doc(alias = "gst_app_src_get_duration")]
@ -48,12 +71,36 @@ impl AppSrc {
unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) }
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_leaky_type")]
#[doc(alias = "get_leaky_type")]
pub fn leaky_type(&self) -> AppLeakyType {
unsafe { from_glib(ffi::gst_app_src_get_leaky_type(self.to_glib_none().0)) }
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_max_buffers")]
#[doc(alias = "get_max_buffers")]
pub fn max_buffers(&self) -> u64 {
unsafe { ffi::gst_app_src_get_max_buffers(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_src_get_max_bytes")]
#[doc(alias = "get_max_bytes")]
pub fn max_bytes(&self) -> u64 {
unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) }
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_max_time")]
#[doc(alias = "get_max_time")]
pub fn max_time(&self) -> gst::ClockTime {
unsafe { from_glib(ffi::gst_app_src_get_max_time(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_src_get_size")]
#[doc(alias = "get_size")]
pub fn size(&self) -> i64 {
@ -97,6 +144,24 @@ impl AppSrc {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_set_leaky_type")]
pub fn set_leaky_type(&self, leaky: AppLeakyType) {
unsafe {
ffi::gst_app_src_set_leaky_type(self.to_glib_none().0, leaky.into_glib());
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_set_max_buffers")]
pub fn set_max_buffers(&self, max: u64) {
unsafe {
ffi::gst_app_src_set_max_buffers(self.to_glib_none().0, max);
}
}
#[doc(alias = "gst_app_src_set_max_bytes")]
pub fn set_max_bytes(&self, max: u64) {
unsafe {
@ -104,6 +169,15 @@ impl AppSrc {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_set_max_time")]
pub fn set_max_time(&self, max: gst::ClockTime) {
unsafe {
ffi::gst_app_src_set_max_time(self.to_glib_none().0, max.into_glib());
}
}
#[doc(alias = "gst_app_src_set_size")]
pub fn set_size(&self, size: i64) {
unsafe {
@ -352,6 +426,36 @@ impl AppSrc {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "current-level-buffers")]
pub fn connect_current_level_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_buffers_trampoline<
F: Fn(&AppSrc) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::current-level-buffers\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_current_level_buffers_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "current-level-bytes")]
pub fn connect_current_level_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -380,6 +484,36 @@ impl AppSrc {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "current-level-time")]
pub fn connect_current_level_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_current_level_time_trampoline<
F: Fn(&AppSrc) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::current-level-time\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_current_level_time_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
#[doc(alias = "duration")]
@ -490,6 +624,66 @@ impl AppSrc {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "leaky-type")]
pub fn connect_leaky_type_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_leaky_type_trampoline<
F: Fn(&AppSrc) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::leaky-type\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_leaky_type_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "max-buffers")]
pub fn connect_max_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_max_buffers_trampoline<
F: Fn(&AppSrc) + Send + Sync + 'static,
>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::max-buffers\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_max_buffers_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "max-bytes")]
pub fn connect_max_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
@ -544,6 +738,34 @@ impl AppSrc {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "max-time")]
pub fn connect_max_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_max_time_trampoline<F: Fn(&AppSrc) + Send + Sync + 'static>(
this: *mut ffi::GstAppSrc,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::max-time\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_max_time_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "min-latency")]
pub fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -9,6 +9,94 @@ use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
#[doc(alias = "GstAppLeakyType")]
pub enum AppLeakyType {
#[doc(alias = "GST_APP_LEAKY_TYPE_NONE")]
None,
#[doc(alias = "GST_APP_LEAKY_TYPE_UPSTREAM")]
Upstream,
#[doc(alias = "GST_APP_LEAKY_TYPE_DOWNSTREAM")]
Downstream,
#[doc(hidden)]
__Unknown(i32),
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)]
impl IntoGlib for AppLeakyType {
type GlibType = ffi::GstAppLeakyType;
fn into_glib(self) -> ffi::GstAppLeakyType {
match self {
Self::None => ffi::GST_APP_LEAKY_TYPE_NONE,
Self::Upstream => ffi::GST_APP_LEAKY_TYPE_UPSTREAM,
Self::Downstream => ffi::GST_APP_LEAKY_TYPE_DOWNSTREAM,
Self::__Unknown(value) => value,
}
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)]
impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
unsafe fn from_glib(value: ffi::GstAppLeakyType) -> Self {
skip_assert_initialized!();
match value {
ffi::GST_APP_LEAKY_TYPE_NONE => Self::None,
ffi::GST_APP_LEAKY_TYPE_UPSTREAM => Self::Upstream,
ffi::GST_APP_LEAKY_TYPE_DOWNSTREAM => Self::Downstream,
value => Self::__Unknown(value),
}
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl StaticType for AppLeakyType {
fn static_type() -> Type {
unsafe { from_glib(ffi::gst_app_leaky_type_get_type()) }
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl glib::value::ValueType for AppLeakyType {
type Type = Self;
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
unsafe impl<'a> FromValue<'a> for AppLeakyType {
type Checker = glib::value::GenericValueTypeChecker<Self>;
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl ToValue for AppLeakyType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
fn value_type(&self) -> glib::Type {
Self::static_type()
}
}
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
#[doc(alias = "GstAppStreamType")]

View file

@ -10,6 +10,9 @@ mod app_src;
pub use self::app_src::AppSrc;
mod enums;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub use self::enums::AppLeakyType;
pub use self::enums::AppStreamType;
#[doc(hidden)]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -26,6 +26,11 @@ use libc::{
use glib::{gboolean, gconstpointer, gpointer, GType};
// Enums
pub type GstAppLeakyType = c_int;
pub const GST_APP_LEAKY_TYPE_NONE: GstAppLeakyType = 0;
pub const GST_APP_LEAKY_TYPE_UPSTREAM: GstAppLeakyType = 1;
pub const GST_APP_LEAKY_TYPE_DOWNSTREAM: GstAppLeakyType = 2;
pub type GstAppStreamType = c_int;
pub const GST_APP_STREAM_TYPE_STREAM: GstAppStreamType = 0;
pub const GST_APP_STREAM_TYPE_SEEKABLE: GstAppStreamType = 1;
@ -179,6 +184,13 @@ impl ::std::fmt::Debug for GstAppSrc {
#[link(name = "gstapp-1.0")]
extern "C" {
//=========================================================================
// GstAppLeakyType
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_leaky_type_get_type() -> GType;
//=========================================================================
// GstAppStreamType
//=========================================================================
@ -232,13 +244,28 @@ extern "C" {
pub fn gst_app_src_get_type() -> GType;
pub fn gst_app_src_end_of_stream(appsrc: *mut GstAppSrc) -> gst::GstFlowReturn;
pub fn gst_app_src_get_caps(appsrc: *mut GstAppSrc) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_get_current_level_buffers(appsrc: *mut GstAppSrc) -> u64;
pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_get_current_level_time(appsrc: *mut GstAppSrc) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_app_src_get_duration(appsrc: *mut GstAppSrc) -> gst::GstClockTime;
pub fn gst_app_src_get_emit_signals(appsrc: *mut GstAppSrc) -> gboolean;
pub fn gst_app_src_get_latency(appsrc: *mut GstAppSrc, min: *mut u64, max: *mut u64);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_get_leaky_type(appsrc: *mut GstAppSrc) -> GstAppLeakyType;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_get_max_buffers(appsrc: *mut GstAppSrc) -> u64;
pub fn gst_app_src_get_max_bytes(appsrc: *mut GstAppSrc) -> u64;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_get_max_time(appsrc: *mut GstAppSrc) -> gst::GstClockTime;
pub fn gst_app_src_get_size(appsrc: *mut GstAppSrc) -> i64;
pub fn gst_app_src_get_stream_type(appsrc: *mut GstAppSrc) -> GstAppStreamType;
pub fn gst_app_src_push_buffer(
@ -267,7 +294,16 @@ extern "C" {
pub fn gst_app_src_set_duration(appsrc: *mut GstAppSrc, duration: gst::GstClockTime);
pub fn gst_app_src_set_emit_signals(appsrc: *mut GstAppSrc, emit: gboolean);
pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_set_leaky_type(appsrc: *mut GstAppSrc, leaky: GstAppLeakyType);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_set_max_buffers(appsrc: *mut GstAppSrc, max: u64);
pub fn gst_app_src_set_max_bytes(appsrc: *mut GstAppSrc, max: u64);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_app_src_set_max_time(appsrc: *mut GstAppSrc, max: gst::GstClockTime);
pub fn gst_app_src_set_size(appsrc: *mut GstAppSrc, size: i64);
pub fn gst_app_src_set_stream_type(appsrc: *mut GstAppSrc, type_: GstAppStreamType);

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_app_sys::*;
@ -211,6 +211,13 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
}
const RUST_LAYOUTS: &[(&str, Layout)] = &[
(
"GstAppLeakyType",
Layout {
size: size_of::<GstAppLeakyType>(),
alignment: align_of::<GstAppLeakyType>(),
},
),
(
"GstAppSink",
Layout {
@ -263,6 +270,9 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
];
const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_APP_LEAKY_TYPE_DOWNSTREAM", "2"),
("(gint) GST_APP_LEAKY_TYPE_NONE", "0"),
("(gint) GST_APP_LEAKY_TYPE_UPSTREAM", "1"),
("(gint) GST_APP_STREAM_TYPE_RANDOM_ACCESS", "2"),
("(gint) GST_APP_STREAM_TYPE_SEEKABLE", "1"),
("(gint) GST_APP_STREAM_TYPE_STREAM", "0"),

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -29,6 +29,9 @@
printf("\n");
int main() {
PRINT_CONSTANT((gint) GST_APP_LEAKY_TYPE_DOWNSTREAM);
PRINT_CONSTANT((gint) GST_APP_LEAKY_TYPE_NONE);
PRINT_CONSTANT((gint) GST_APP_LEAKY_TYPE_UPSTREAM);
PRINT_CONSTANT((gint) GST_APP_STREAM_TYPE_RANDOM_ACCESS);
PRINT_CONSTANT((gint) GST_APP_STREAM_TYPE_SEEKABLE);
PRINT_CONSTANT((gint) GST_APP_STREAM_TYPE_STREAM);

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -8,6 +8,7 @@
#include <stdio.h>
int main() {
printf("%s;%zu;%zu\n", "GstAppLeakyType", sizeof(GstAppLeakyType), alignof(GstAppLeakyType));
printf("%s;%zu;%zu\n", "GstAppSink", sizeof(GstAppSink), alignof(GstAppSink));
printf("%s;%zu;%zu\n", "GstAppSinkCallbacks", sizeof(GstAppSinkCallbacks), alignof(GstAppSinkCallbacks));
printf("%s;%zu;%zu\n", "GstAppSinkClass", sizeof(GstAppSinkClass), alignof(GstAppSinkClass));

View file

@ -157,7 +157,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
fn audio_info(&self) -> Option<AudioInfo> {
unsafe {
from_glib_full(ffi::gst_audio_decoder_get_audio_info(
from_glib_none(ffi::gst_audio_decoder_get_audio_info(
self.as_ref().to_glib_none().0,
))
}

View file

@ -159,7 +159,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
fn audio_info(&self) -> Option<AudioInfo> {
unsafe {
from_glib_full(ffi::gst_audio_encoder_get_audio_info(
from_glib_none(ffi::gst_audio_encoder_get_audio_info(
self.as_ref().to_glib_none().0,
))
}

View file

@ -38,7 +38,7 @@ impl AudioStreamAlign {
pub fn alignment_threshold(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_audio_stream_align_get_alignment_threshold(
mut_override(self.to_glib_none().0),
self.to_glib_none().0,
))
}
}
@ -47,26 +47,22 @@ impl AudioStreamAlign {
#[doc(alias = "get_discont_wait")]
pub fn discont_wait(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override(
from_glib(ffi::gst_audio_stream_align_get_discont_wait(
self.to_glib_none().0,
)))
))
}
}
#[doc(alias = "gst_audio_stream_align_get_rate")]
#[doc(alias = "get_rate")]
pub fn rate(&self) -> i32 {
unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) }
unsafe { ffi::gst_audio_stream_align_get_rate(self.to_glib_none().0) }
}
#[doc(alias = "gst_audio_stream_align_get_samples_since_discont")]
#[doc(alias = "get_samples_since_discont")]
pub fn samples_since_discont(&self) -> u64 {
unsafe {
ffi::gst_audio_stream_align_get_samples_since_discont(mut_override(
self.to_glib_none().0,
))
}
unsafe { ffi::gst_audio_stream_align_get_samples_since_discont(self.to_glib_none().0) }
}
#[doc(alias = "gst_audio_stream_align_get_timestamp_at_discont")]
@ -74,7 +70,7 @@ impl AudioStreamAlign {
pub fn timestamp_at_discont(&self) -> gst::ClockTime {
unsafe {
from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont(
mut_override(self.to_glib_none().0),
self.to_glib_none().0,
))
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -838,6 +838,24 @@ impl ::std::fmt::Debug for GstAudioInfo {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAudioLevelMeta {
pub meta: gst::GstMeta,
pub level: u8,
pub voice_activity: gboolean,
}
impl ::std::fmt::Debug for GstAudioLevelMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstAudioLevelMeta @ {:p}", self))
.field("meta", &self.meta)
.field("level", &self.level)
.field("voice_activity", &self.voice_activity)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstAudioMeta {
@ -1498,14 +1516,6 @@ extern "C" {
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
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"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer);
pub fn gst_audio_buffer_clip(
buffer: *mut gst::GstBuffer,
@ -1513,6 +1523,14 @@ extern "C" {
rate: c_int,
bpf: c_int,
) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_map(
buffer: *mut GstAudioBuffer,
info: *const GstAudioInfo,
gstbuffer: *mut gst::GstBuffer,
flags: gst::GstMapFlags,
) -> gboolean;
pub fn gst_audio_buffer_reorder_channels(
buffer: *mut gst::GstBuffer,
format: GstAudioFormat,
@ -1635,6 +1653,17 @@ extern "C" {
allowed_caps: *mut gst::GstCaps,
);
//=========================================================================
// GstAudioFormatInfo
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_audio_format_info_fill_silence(
info: *const GstAudioFormatInfo,
dest: gpointer,
length: size_t,
);
//=========================================================================
// GstAudioInfo
//=========================================================================
@ -1649,9 +1678,6 @@ extern "C" {
) -> 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);
pub fn gst_audio_info_is_equal(
info: *const GstAudioInfo,
other: *const GstAudioInfo,
@ -1664,6 +1690,16 @@ extern "C" {
position: *const [GstAudioChannelPosition; 64],
);
pub fn gst_audio_info_to_caps(info: *const GstAudioInfo) -> *mut gst::GstCaps;
pub fn gst_audio_info_from_caps(info: *mut GstAudioInfo, caps: *const gst::GstCaps)
-> gboolean;
pub fn gst_audio_info_init(info: *mut GstAudioInfo);
//=========================================================================
// GstAudioLevelMeta
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_audio_level_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
// GstAudioMeta
@ -1778,24 +1814,25 @@ extern "C" {
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_alignment_threshold(
align: *mut GstAudioStreamAlign,
align: *const GstAudioStreamAlign,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_discont_wait(
align: *mut GstAudioStreamAlign,
align: *const GstAudioStreamAlign,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int;
pub fn gst_audio_stream_align_get_rate(align: *const GstAudioStreamAlign) -> c_int;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign)
-> u64;
pub fn gst_audio_stream_align_get_samples_since_discont(
align: *const GstAudioStreamAlign,
) -> u64;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_timestamp_at_discont(
align: *mut GstAudioStreamAlign,
align: *const GstAudioStreamAlign,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
@ -2275,6 +2312,9 @@ extern "C" {
spec: *const GstAudioRingBufferSpec,
endianness: c_int,
) -> gboolean;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_audio_level_meta_api_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_audio_make_raw_caps(
@ -2307,6 +2347,13 @@ extern "C" {
to_channels: c_int,
matrix: *mut *const c_float,
) -> *mut GstAudioDownmixMeta;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_buffer_add_audio_level_meta(
buffer: *mut gst::GstBuffer,
level: u8,
voice_activity: gboolean,
) -> *mut GstAudioLevelMeta;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_buffer_add_audio_meta(
@ -2320,5 +2367,8 @@ extern "C" {
to_position: *const GstAudioChannelPosition,
to_channels: c_int,
) -> *mut GstAudioDownmixMeta;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_buffer_get_audio_level_meta(buffer: *mut gst::GstBuffer) -> *mut GstAudioLevelMeta;
}

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_audio_sys::*;
@ -477,6 +477,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstAudioLayout>(),
},
),
(
"GstAudioLevelMeta",
Layout {
size: size_of::<GstAudioLevelMeta>(),
alignment: align_of::<GstAudioLevelMeta>(),
},
),
(
"GstAudioMeta",
Layout {

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -46,6 +46,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstAudioFormatInfo", sizeof(GstAudioFormatInfo), alignof(GstAudioFormatInfo));
printf("%s;%zu;%zu\n", "GstAudioInfo", sizeof(GstAudioInfo), alignof(GstAudioInfo));
printf("%s;%zu;%zu\n", "GstAudioLayout", sizeof(GstAudioLayout), alignof(GstAudioLayout));
printf("%s;%zu;%zu\n", "GstAudioLevelMeta", sizeof(GstAudioLevelMeta), alignof(GstAudioLevelMeta));
printf("%s;%zu;%zu\n", "GstAudioMeta", sizeof(GstAudioMeta), alignof(GstAudioMeta));
printf("%s;%zu;%zu\n", "GstAudioNoiseShapingMethod", sizeof(GstAudioNoiseShapingMethod), alignof(GstAudioNoiseShapingMethod));
printf("%s;%zu;%zu\n", "GstAudioPackFlags", sizeof(GstAudioPackFlags), alignof(GstAudioPackFlags));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_base_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -215,6 +215,9 @@ extern "C" {
pub fn gst_harness_set_caps_str(h: *mut GstHarness, in_: *const c_char, out: *const c_char);
pub fn gst_harness_set_drop_buffers(h: *mut GstHarness, drop_buffers: gboolean);
pub fn gst_harness_set_forwarding(h: *mut GstHarness, forwarding: gboolean);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_harness_set_live(h: *mut GstHarness, is_live: gboolean);
pub fn gst_harness_set_propose_allocator(
h: *mut GstHarness,
allocator: *mut gst::GstAllocator,

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_check_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_controller_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -56,7 +56,7 @@ pub trait TrackElementExt: 'static {
//#[doc(alias = "ges_track_element_get_all_control_bindings")]
//#[doc(alias = "get_all_control_bindings")]
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 };
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 85 };
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
@ -217,7 +217,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
}
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 } {
//fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 85 } {
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
//}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -195,8 +195,8 @@ pub const GES_PADDING: c_int = 4;
pub const GES_PADDING_LARGE: c_int = 20;
pub const GES_TIMELINE_ELEMENT_NO_LAYER_PRIORITY: u32 = 4294967295;
pub const GES_VERSION_MAJOR: c_int = 1;
pub const GES_VERSION_MICRO: c_int = 2;
pub const GES_VERSION_MINOR: c_int = 18;
pub const GES_VERSION_MICRO: c_int = 1;
pub const GES_VERSION_MINOR: c_int = 19;
pub const GES_VERSION_NANO: c_int = 0;
// Flags
@ -1069,12 +1069,16 @@ pub type GESProjectPrivate = *mut _GESProjectPrivate;
#[derive(Copy, Clone)]
pub struct GESSourceClass {
pub parent_class: GESTrackElementClass,
pub _ges_reserved: [gpointer; 4],
pub select_pad: Option<unsafe extern "C" fn(*mut GESSource, *mut gst::GstPad) -> gboolean>,
pub create_source: Option<unsafe extern "C" fn(*mut GESSource) -> *mut gst::GstElement>,
pub _ges_reserved: [gpointer; 2],
}
impl ::std::fmt::Debug for GESSourceClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GESSourceClass @ {:p}", self))
.field("select_pad", &self.select_pad)
.field("create_source", &self.create_source)
.finish()
}
}
@ -2947,6 +2951,9 @@ extern "C" {
nargs: c_int,
commands: *mut *mut c_char,
) -> *mut c_char;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn ges_command_line_formatter_get_timeline_uri(timeline: *mut GESTimeline) -> *mut c_char;
//=========================================================================
// GESContainer

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_editing_services_sys::*;
@ -1126,8 +1126,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GES_TRACK_TYPE_UNKNOWN", "1"),
("(guint) GES_TRACK_TYPE_VIDEO", "4"),
("GES_VERSION_MAJOR", "1"),
("GES_VERSION_MICRO", "2"),
("GES_VERSION_MINOR", "18"),
("GES_VERSION_MICRO", "1"),
("GES_VERSION_MINOR", "19"),
("GES_VERSION_NANO", "0"),
(
"(gint) GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL",

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_gl_egl_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -15,6 +15,105 @@ use glib::StaticType;
use glib::Type;
use std::mem;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
#[doc(alias = "GstGLConfigCaveat")]
pub enum GLConfigCaveat {
#[doc(alias = "GST_GL_CONFIG_CAVEAT_NONE")]
None,
#[doc(alias = "GST_GL_CONFIG_CAVEAT_SLOW")]
Slow,
#[doc(alias = "GST_GL_CONFIG_CAVEAT_NON_CONFORMANT")]
NonConformant,
#[doc(hidden)]
__Unknown(i32),
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl GLConfigCaveat {
#[doc(alias = "gst_gl_config_caveat_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_gl_config_caveat_to_string(self.into_glib())) }
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)]
impl IntoGlib for GLConfigCaveat {
type GlibType = ffi::GstGLConfigCaveat;
fn into_glib(self) -> ffi::GstGLConfigCaveat {
match self {
Self::None => ffi::GST_GL_CONFIG_CAVEAT_NONE,
Self::Slow => ffi::GST_GL_CONFIG_CAVEAT_SLOW,
Self::NonConformant => ffi::GST_GL_CONFIG_CAVEAT_NON_CONFORMANT,
Self::__Unknown(value) => value,
}
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)]
impl FromGlib<ffi::GstGLConfigCaveat> for GLConfigCaveat {
unsafe fn from_glib(value: ffi::GstGLConfigCaveat) -> Self {
skip_assert_initialized!();
match value {
ffi::GST_GL_CONFIG_CAVEAT_NONE => Self::None,
ffi::GST_GL_CONFIG_CAVEAT_SLOW => Self::Slow,
ffi::GST_GL_CONFIG_CAVEAT_NON_CONFORMANT => Self::NonConformant,
value => Self::__Unknown(value),
}
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl StaticType for GLConfigCaveat {
fn static_type() -> Type {
unsafe { from_glib(ffi::gst_gl_config_caveat_get_type()) }
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl glib::value::ValueType for GLConfigCaveat {
type Type = Self;
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
unsafe impl<'a> FromValue<'a> for GLConfigCaveat {
type Checker = glib::value::GenericValueTypeChecker<Self>;
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl ToValue for GLConfigCaveat {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}
value
}
fn value_type(&self) -> glib::Type {
Self::static_type()
}
}
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
#[doc(alias = "GstGLContextError")]
@ -183,7 +282,7 @@ impl GLFormat {
unsafe {
from_glib(ffi::gst_gl_format_from_video_info(
context.as_ref().to_glib_none().0,
mut_override(vinfo.to_glib_none().0),
vinfo.to_glib_none().0,
plane,
))
}

View file

@ -97,6 +97,95 @@ impl ToValue for GLAPI {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
bitflags! {
#[doc(alias = "GstGLConfigSurfaceType")]
pub struct GLConfigSurfaceType: u32 {
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_NONE")]
const NONE = ffi::GST_GL_CONFIG_SURFACE_TYPE_NONE as u32;
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_WINDOW")]
const WINDOW = ffi::GST_GL_CONFIG_SURFACE_TYPE_WINDOW as u32;
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_PBUFFER")]
const PBUFFER = ffi::GST_GL_CONFIG_SURFACE_TYPE_PBUFFER as u32;
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_PIXMAP")]
const PIXMAP = ffi::GST_GL_CONFIG_SURFACE_TYPE_PIXMAP as u32;
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl GLConfigSurfaceType {
#[doc(alias = "gst_gl_config_surface_type_to_string")]
#[doc(alias = "to_string")]
pub fn to_str(self) -> Option<glib::GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gst_gl_config_surface_type_to_string(self.into_glib())) }
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)]
impl IntoGlib for GLConfigSurfaceType {
type GlibType = ffi::GstGLConfigSurfaceType;
fn into_glib(self) -> ffi::GstGLConfigSurfaceType {
self.bits()
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)]
impl FromGlib<ffi::GstGLConfigSurfaceType> for GLConfigSurfaceType {
unsafe fn from_glib(value: ffi::GstGLConfigSurfaceType) -> Self {
skip_assert_initialized!();
Self::from_bits_truncate(value)
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl StaticType for GLConfigSurfaceType {
fn static_type() -> Type {
unsafe { from_glib(ffi::gst_gl_config_surface_type_get_type()) }
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl glib::value::ValueType for GLConfigSurfaceType {
type Type = Self;
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
unsafe impl<'a> FromValue<'a> for GLConfigSurfaceType {
type Checker = glib::value::GenericValueTypeChecker<Self>;
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl ToValue for GLConfigSurfaceType {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}
value
}
fn value_type(&self) -> glib::Type {
Self::static_type()
}
}
bitflags! {
#[doc(alias = "GstGLDisplayType")]
pub struct GLDisplayType: u32 {
@ -120,6 +209,18 @@ bitflags! {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_EGL_DEVICE")]
const EGL_DEVICE = ffi::GST_GL_DISPLAY_TYPE_EGL_DEVICE as u32;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_EAGL")]
const EAGL = ffi::GST_GL_DISPLAY_TYPE_EAGL as u32;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_WINRT")]
const WINRT = ffi::GST_GL_DISPLAY_TYPE_WINRT as u32;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_DISPLAY_TYPE_ANDROID")]
const ANDROID = ffi::GST_GL_DISPLAY_TYPE_ANDROID as u32;
}
}

View file

@ -28,7 +28,7 @@ impl GLAllocationParams {
}
//#[doc(alias = "gst_gl_allocation_params_init")]
//pub fn init<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static, Q: IsA<GLContext>>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &Q, alloc_size: usize, alloc_params: Option<&mut gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
//pub fn init<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static, Q: IsA<GLContext>>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &Q, alloc_size: usize, alloc_params: Option<&gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
// unsafe { TODO: call ffi:gst_gl_allocation_params_init() }
//}
}

View file

@ -92,6 +92,12 @@ pub trait GLContextExt: 'static {
#[doc(alias = "gst_gl_context_fill_info")]
fn fill_info(&self) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_gl_context_get_config")]
#[doc(alias = "get_config")]
fn config(&self) -> Option<gst::Structure>;
#[doc(alias = "gst_gl_context_get_display")]
#[doc(alias = "get_display")]
fn display(&self) -> GLDisplay;
@ -119,6 +125,11 @@ pub trait GLContextExt: 'static {
#[doc(alias = "gst_gl_context_is_shared")]
fn is_shared(&self) -> bool;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_gl_context_request_config")]
fn request_config(&self, gl_config: Option<&gst::Structure>) -> bool;
#[doc(alias = "gst_gl_context_set_shared_with")]
fn set_shared_with<P: IsA<GLContext>>(&self, share: &P);
@ -236,6 +247,16 @@ impl<O: IsA<GLContext>> GLContextExt for O {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
fn config(&self) -> Option<gst::Structure> {
unsafe {
from_glib_full(ffi::gst_gl_context_get_config(
self.as_ref().to_glib_none().0,
))
}
}
fn display(&self) -> GLDisplay {
unsafe {
from_glib_full(ffi::gst_gl_context_get_display(
@ -306,6 +327,17 @@ impl<O: IsA<GLContext>> GLContextExt for O {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
fn request_config(&self, gl_config: Option<&gst::Structure>) -> bool {
unsafe {
from_glib(ffi::gst_gl_context_request_config(
self.as_ref().to_glib_none().0,
gl_config.to_glib_full(),
))
}
}
fn set_shared_with<P: IsA<GLContext>>(&self, share: &P) {
unsafe {
ffi::gst_gl_context_set_shared_with(

View file

@ -31,6 +31,15 @@ impl GLDisplay {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_display_new()) }
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_gl_display_new_with_type")]
#[doc(alias = "new_with_type")]
pub fn with_type(type_: GLDisplayType) -> Option<GLDisplay> {
assert_initialized_main_thread!();
unsafe { from_glib_full(ffi::gst_gl_display_new_with_type(type_.into_glib())) }
}
}
impl Default for GLDisplay {

View file

@ -35,10 +35,10 @@ impl GLVideoAllocationParams {
unsafe {
from_glib_full(ffi::gst_gl_video_allocation_params_new(
context.as_ref().to_glib_none().0,
mut_override(alloc_params.to_glib_none().0),
mut_override(v_info.to_glib_none().0),
alloc_params.to_glib_none().0,
v_info.to_glib_none().0,
plane,
mut_override(valign.to_glib_none().0),
valign.to_glib_none().0,
target.into_glib(),
tex_format.into_glib(),
))
@ -46,17 +46,17 @@ impl GLVideoAllocationParams {
}
//#[doc(alias = "gst_gl_video_allocation_params_new_wrapped_data")]
//pub fn new_wrapped_data<P: IsA<GLContext>>(context: &P, alloc_params: Option<&mut gst::AllocationParams>, v_info: &mut gst_video::VideoInfo, plane: u32, valign: Option<&mut gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
//pub fn new_wrapped_data<P: IsA<GLContext>>(context: &P, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_new_wrapped_data() }
//}
//#[doc(alias = "gst_gl_video_allocation_params_new_wrapped_gl_handle")]
//pub fn new_wrapped_gl_handle<P: IsA<GLContext>>(context: &P, alloc_params: Option<&mut gst::AllocationParams>, v_info: &mut gst_video::VideoInfo, plane: u32, valign: Option<&mut gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
//pub fn new_wrapped_gl_handle<P: IsA<GLContext>>(context: &P, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_new_wrapped_gl_handle() }
//}
//#[doc(alias = "gst_gl_video_allocation_params_new_wrapped_texture")]
//pub fn new_wrapped_texture<P: IsA<GLContext>>(context: &P, alloc_params: Option<&mut gst::AllocationParams>, v_info: &mut gst_video::VideoInfo, plane: u32, valign: Option<&mut gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, tex_id: u32, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
//pub fn new_wrapped_texture<P: IsA<GLContext>>(context: &P, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, tex_id: u32, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_new_wrapped_texture() }
//}
@ -71,7 +71,7 @@ impl GLVideoAllocationParams {
}
//#[doc(alias = "gst_gl_video_allocation_params_init_full")]
//pub fn init_full<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static, Q: IsA<GLContext>>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &Q, alloc_params: Option<&mut gst::AllocationParams>, v_info: &mut gst_video::VideoInfo, plane: u32, valign: Option<&mut gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
//pub fn init_full<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static, Q: IsA<GLContext>>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &Q, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_init_full() }
//}
}

View file

@ -59,6 +59,9 @@ mod gl_video_allocation_params;
pub use self::gl_video_allocation_params::GLVideoAllocationParams;
mod enums;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub use self::enums::GLConfigCaveat;
pub use self::enums::GLContextError;
pub use self::enums::GLFormat;
pub use self::enums::GLQueryType;
@ -70,6 +73,9 @@ pub use self::enums::GLUploadReturn;
pub use self::enums::GLWindowError;
mod flags;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub use self::flags::GLConfigSurfaceType;
pub use self::flags::GLDisplayType;
pub use self::flags::GLPlatform;
pub use self::flags::GLSLProfile;

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -37,6 +37,11 @@ pub const GST_GL_BASE_MEMORY_ERROR_FAILED: GstGLBaseMemoryError = 0;
pub const GST_GL_BASE_MEMORY_ERROR_OLD_LIBS: GstGLBaseMemoryError = 1;
pub const GST_GL_BASE_MEMORY_ERROR_RESOURCE_UNAVAILABLE: GstGLBaseMemoryError = 2;
pub type GstGLConfigCaveat = c_int;
pub const GST_GL_CONFIG_CAVEAT_NONE: GstGLConfigCaveat = 0;
pub const GST_GL_CONFIG_CAVEAT_SLOW: GstGLConfigCaveat = 1;
pub const GST_GL_CONFIG_CAVEAT_NON_CONFORMANT: GstGLConfigCaveat = 2;
pub type GstGLContextError = c_int;
pub const GST_GL_CONTEXT_ERROR_FAILED: GstGLContextError = 0;
pub const GST_GL_CONTEXT_ERROR_WRONG_CONFIG: GstGLContextError = 1;
@ -147,6 +152,8 @@ pub const GST_GL_BUFFER_ALLOCATOR_NAME: *const c_char = b"GLBuffer\0" as *const
pub const GST_GL_COLOR_CONVERT_EXT_FORMATS: *const c_char =
b", BGR10A2_LE, RGB10A2_LE, P010_10LE, P012_LE, P016_LE, Y212_LE, Y412_LE\0" as *const u8
as *const c_char;
pub const GST_GL_CONFIG_STRUCTURE_NAME: *const c_char =
b"gst-gl-context-config\0" as *const u8 as *const c_char;
pub const GST_GL_CONTEXT_TYPE_CGL: *const c_char =
b"gst.gl.context.CGL\0" as *const u8 as *const c_char;
pub const GST_GL_CONTEXT_TYPE_EAGL: *const c_char =
@ -187,6 +194,12 @@ pub type GstGLBaseMemoryTransfer = c_uint;
pub const GST_GL_BASE_MEMORY_TRANSFER_NEED_DOWNLOAD: GstGLBaseMemoryTransfer = 1048576;
pub const GST_GL_BASE_MEMORY_TRANSFER_NEED_UPLOAD: GstGLBaseMemoryTransfer = 2097152;
pub type GstGLConfigSurfaceType = c_uint;
pub const GST_GL_CONFIG_SURFACE_TYPE_NONE: GstGLConfigSurfaceType = 0;
pub const GST_GL_CONFIG_SURFACE_TYPE_WINDOW: GstGLConfigSurfaceType = 1;
pub const GST_GL_CONFIG_SURFACE_TYPE_PBUFFER: GstGLConfigSurfaceType = 2;
pub const GST_GL_CONFIG_SURFACE_TYPE_PIXMAP: GstGLConfigSurfaceType = 4;
pub type GstGLDisplayType = c_uint;
pub const GST_GL_DISPLAY_TYPE_NONE: GstGLDisplayType = 0;
pub const GST_GL_DISPLAY_TYPE_X11: GstGLDisplayType = 1;
@ -197,7 +210,18 @@ pub const GST_GL_DISPLAY_TYPE_DISPMANX: GstGLDisplayType = 16;
pub const GST_GL_DISPLAY_TYPE_EGL: GstGLDisplayType = 32;
pub const GST_GL_DISPLAY_TYPE_VIV_FB: GstGLDisplayType = 64;
pub const GST_GL_DISPLAY_TYPE_GBM: GstGLDisplayType = 128;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub const GST_GL_DISPLAY_TYPE_EGL_DEVICE: GstGLDisplayType = 256;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_GL_DISPLAY_TYPE_EAGL: GstGLDisplayType = 512;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_GL_DISPLAY_TYPE_WINRT: GstGLDisplayType = 1024;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_GL_DISPLAY_TYPE_ANDROID: GstGLDisplayType = 2048;
pub const GST_GL_DISPLAY_TYPE_ANY: GstGLDisplayType = 4294967295;
pub type GstGLPlatform = c_uint;
@ -545,7 +569,10 @@ pub struct GstGLContextClass {
pub check_feature: Option<unsafe extern "C" fn(*mut GstGLContext, *const c_char) -> gboolean>,
pub get_gl_platform_version:
Option<unsafe extern "C" fn(*mut GstGLContext, *mut c_int, *mut c_int)>,
pub _reserved: [gpointer; 4],
pub get_config: Option<unsafe extern "C" fn(*mut GstGLContext) -> *mut gst::GstStructure>,
pub request_config:
Option<unsafe extern "C" fn(*mut GstGLContext, *mut gst::GstStructure) -> gboolean>,
pub _reserved: [gpointer; 2],
}
impl ::std::fmt::Debug for GstGLContextClass {
@ -564,6 +591,8 @@ impl ::std::fmt::Debug for GstGLContextClass {
.field("swap_buffers", &self.swap_buffers)
.field("check_feature", &self.check_feature)
.field("get_gl_platform_version", &self.get_gl_platform_version)
.field("get_config", &self.get_config)
.field("request_config", &self.request_config)
.finish()
}
}
@ -1459,6 +1488,16 @@ extern "C" {
pub fn gst_gl_base_memory_error_get_type() -> GType;
pub fn gst_gl_base_memory_error_quark() -> glib::GQuark;
//=========================================================================
// GstGLConfigCaveat
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_config_caveat_get_type() -> GType;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_config_caveat_to_string(caveat: GstGLConfigCaveat) -> *const c_char;
//=========================================================================
// GstGLContextError
//=========================================================================
@ -1471,7 +1510,7 @@ extern "C" {
pub fn gst_gl_format_get_type() -> GType;
pub fn gst_gl_format_from_video_info(
context: *mut GstGLContext,
vinfo: *mut gst_video::GstVideoInfo,
vinfo: *const gst_video::GstVideoInfo,
plane: c_uint,
) -> GstGLFormat;
#[cfg(any(feature = "v1_16", feature = "dox"))]
@ -1552,6 +1591,18 @@ extern "C" {
//=========================================================================
pub fn gst_gl_base_memory_transfer_get_type() -> GType;
//=========================================================================
// GstGLConfigSurfaceType
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_config_surface_type_get_type() -> GType;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_config_surface_type_to_string(
surface_type: GstGLConfigSurfaceType,
) -> *const c_char;
//=========================================================================
// GstGLDisplayType
//=========================================================================
@ -1592,7 +1643,7 @@ extern "C" {
free: GstGLAllocationParamsFreeFunc,
context: *mut GstGLContext,
alloc_size: size_t,
alloc_params: *mut gst::GstAllocationParams,
alloc_params: *const gst::GstAllocationParams,
wrapped_data: gpointer,
gl_handle: gpointer,
user_data: gpointer,
@ -1632,7 +1683,7 @@ extern "C" {
allocator: *mut gst::GstAllocator,
parent: *mut gst::GstMemory,
context: *mut GstGLContext,
params: *mut gst::GstAllocationParams,
params: *const gst::GstAllocationParams,
size: size_t,
user_data: gpointer,
notify: glib::GDestroyNotify,
@ -1652,6 +1703,9 @@ extern "C" {
//=========================================================================
// GstGLBuffer
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_buffer_get_type() -> GType;
pub fn gst_gl_buffer_init_once();
//=========================================================================
@ -1661,7 +1715,7 @@ extern "C" {
pub fn gst_gl_buffer_allocation_params_new(
context: *mut GstGLContext,
alloc_size: size_t,
alloc_params: *mut gst::GstAllocationParams,
alloc_params: *const gst::GstAllocationParams,
gl_target: c_uint,
gl_usage: c_uint,
) -> *mut GstGLBufferAllocationParams;
@ -1669,6 +1723,9 @@ extern "C" {
//=========================================================================
// GstGLMemory
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_memory_get_type() -> GType;
pub fn gst_gl_memory_copy_into(
gl_mem: *mut GstGLMemory,
tex_id: c_uint,
@ -1697,10 +1754,10 @@ extern "C" {
context: *mut GstGLContext,
target: GstGLTextureTarget,
tex_format: GstGLFormat,
params: *mut gst::GstAllocationParams,
info: *mut gst_video::GstVideoInfo,
params: *const gst::GstAllocationParams,
info: *const gst_video::GstVideoInfo,
plane: c_uint,
valign: *mut gst_video::GstVideoAlignment,
valign: *const gst_video::GstVideoAlignment,
user_data: gpointer,
notify: glib::GDestroyNotify,
);
@ -1720,6 +1777,9 @@ extern "C" {
//=========================================================================
// GstGLMemoryPBO
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_memory_pbo_get_type() -> GType;
pub fn gst_gl_memory_pbo_copy_into_texture(
gl_mem: *mut GstGLMemoryPBO,
tex_id: c_uint,
@ -1761,6 +1821,9 @@ extern "C" {
//=========================================================================
// GstGLRenderbuffer
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_renderbuffer_get_type() -> GType;
pub fn gst_gl_renderbuffer_get_format(gl_mem: *mut GstGLRenderbuffer) -> GstGLFormat;
pub fn gst_gl_renderbuffer_get_height(gl_mem: *mut GstGLRenderbuffer) -> c_int;
pub fn gst_gl_renderbuffer_get_id(gl_mem: *mut GstGLRenderbuffer) -> c_uint;
@ -1773,14 +1836,14 @@ extern "C" {
pub fn gst_gl_renderbuffer_allocation_params_get_type() -> GType;
pub fn gst_gl_renderbuffer_allocation_params_new(
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
alloc_params: *const gst::GstAllocationParams,
renderbuffer_format: GstGLFormat,
width: c_uint,
height: c_uint,
) -> *mut GstGLRenderbufferAllocationParams;
pub fn gst_gl_renderbuffer_allocation_params_new_wrapped(
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
alloc_params: *const gst::GstAllocationParams,
renderbuffer_format: GstGLFormat,
width: c_uint,
height: c_uint,
@ -1806,19 +1869,19 @@ extern "C" {
pub fn gst_gl_video_allocation_params_get_type() -> GType;
pub fn gst_gl_video_allocation_params_new(
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
v_info: *mut gst_video::GstVideoInfo,
alloc_params: *const gst::GstAllocationParams,
v_info: *const gst_video::GstVideoInfo,
plane: c_uint,
valign: *mut gst_video::GstVideoAlignment,
valign: *const gst_video::GstVideoAlignment,
target: GstGLTextureTarget,
tex_format: GstGLFormat,
) -> *mut GstGLVideoAllocationParams;
pub fn gst_gl_video_allocation_params_new_wrapped_data(
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
v_info: *mut gst_video::GstVideoInfo,
alloc_params: *const gst::GstAllocationParams,
v_info: *const gst_video::GstVideoInfo,
plane: c_uint,
valign: *mut gst_video::GstVideoAlignment,
valign: *const gst_video::GstVideoAlignment,
target: GstGLTextureTarget,
tex_format: GstGLFormat,
wrapped_data: gpointer,
@ -1827,10 +1890,10 @@ extern "C" {
) -> *mut GstGLVideoAllocationParams;
pub fn gst_gl_video_allocation_params_new_wrapped_gl_handle(
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
v_info: *mut gst_video::GstVideoInfo,
alloc_params: *const gst::GstAllocationParams,
v_info: *const gst_video::GstVideoInfo,
plane: c_uint,
valign: *mut gst_video::GstVideoAlignment,
valign: *const gst_video::GstVideoAlignment,
target: GstGLTextureTarget,
tex_format: GstGLFormat,
gl_handle: gpointer,
@ -1839,10 +1902,10 @@ extern "C" {
) -> *mut GstGLVideoAllocationParams;
pub fn gst_gl_video_allocation_params_new_wrapped_texture(
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
v_info: *mut gst_video::GstVideoInfo,
alloc_params: *const gst::GstAllocationParams,
v_info: *const gst_video::GstVideoInfo,
plane: c_uint,
valign: *mut gst_video::GstVideoAlignment,
valign: *const gst_video::GstVideoAlignment,
target: GstGLTextureTarget,
tex_format: GstGLFormat,
tex_id: c_uint,
@ -1861,10 +1924,10 @@ extern "C" {
copy: GstGLAllocationParamsCopyFunc,
free: GstGLAllocationParamsFreeFunc,
context: *mut GstGLContext,
alloc_params: *mut gst::GstAllocationParams,
v_info: *mut gst_video::GstVideoInfo,
alloc_params: *const gst::GstAllocationParams,
v_info: *const gst_video::GstVideoInfo,
plane: c_uint,
valign: *mut gst_video::GstVideoAlignment,
valign: *const gst_video::GstVideoAlignment,
target: GstGLTextureTarget,
tex_format: GstGLFormat,
wrapped_data: gpointer,
@ -1906,6 +1969,11 @@ extern "C" {
//=========================================================================
pub fn gst_gl_buffer_pool_get_type() -> GType;
pub fn gst_gl_buffer_pool_new(context: *mut GstGLContext) -> *mut gst::GstBufferPool;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_buffer_pool_get_gl_allocation_params(
pool: *mut GstGLBufferPool,
) -> *mut GstGLAllocationParams;
//=========================================================================
// GstGLColorConvert
@ -1996,6 +2064,9 @@ extern "C" {
context: *mut GstGLContext,
error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_context_get_config(context: *mut GstGLContext) -> *mut gst::GstStructure;
pub fn gst_gl_context_get_display(context: *mut GstGLContext) -> *mut GstGLDisplay;
pub fn gst_gl_context_get_gl_api(context: *mut GstGLContext) -> GstGLAPI;
pub fn gst_gl_context_get_gl_context(context: *mut GstGLContext) -> uintptr_t;
@ -2017,6 +2088,12 @@ extern "C" {
pub fn gst_gl_context_get_thread(context: *mut GstGLContext) -> *mut glib::GThread;
pub fn gst_gl_context_get_window(context: *mut GstGLContext) -> *mut GstGLWindow;
pub fn gst_gl_context_is_shared(context: *mut GstGLContext) -> gboolean;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_context_request_config(
context: *mut GstGLContext,
gl_config: *mut gst::GstStructure,
) -> gboolean;
pub fn gst_gl_context_set_shared_with(context: *mut GstGLContext, share: *mut GstGLContext);
pub fn gst_gl_context_set_window(
context: *mut GstGLContext,
@ -2053,6 +2130,9 @@ extern "C" {
//=========================================================================
pub fn gst_gl_display_get_type() -> GType;
pub fn gst_gl_display_new() -> *mut GstGLDisplay;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_gl_display_new_with_type(type_: GstGLDisplayType) -> *mut GstGLDisplay;
pub fn gst_gl_display_add_context(
display: *mut GstGLDisplay,
context: *mut GstGLContext,
@ -2632,7 +2712,7 @@ extern "C" {
) -> *mut GstGLAllocationParams;
pub fn gst_buffer_pool_config_set_gl_allocation_params(
config: *mut gst::GstStructure,
params: *mut GstGLAllocationParams,
params: *const GstGLAllocationParams,
);
pub fn gst_context_get_gl_display(
context: *mut gst::GstContext,
@ -2650,13 +2730,13 @@ extern "C" {
other_context_ptr: *mut *mut GstGLContext,
) -> gboolean;
pub fn gst_gl_get_plane_data_size(
info: *mut gst_video::GstVideoInfo,
align: *mut gst_video::GstVideoAlignment,
info: *const gst_video::GstVideoInfo,
align: *const gst_video::GstVideoAlignment,
plane: c_uint,
) -> size_t;
pub fn gst_gl_get_plane_start(
info: *mut gst_video::GstVideoInfo,
valign: *mut gst_video::GstVideoAlignment,
info: *const gst_video::GstVideoInfo,
valign: *const gst_video::GstVideoAlignment,
plane: c_uint,
) -> size_t;
pub fn gst_gl_handle_context_query(

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_gl_sys::*;
@ -351,6 +351,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLColorConvertClass>(),
},
),
(
"GstGLConfigCaveat",
Layout {
size: size_of::<GstGLConfigCaveat>(),
alignment: align_of::<GstGLConfigCaveat>(),
},
),
(
"GstGLConfigSurfaceType",
Layout {
size: size_of::<GstGLConfigSurfaceType>(),
alignment: align_of::<GstGLConfigSurfaceType>(),
},
),
(
"GstGLContext",
Layout {
@ -743,6 +757,14 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
"GST_GL_COLOR_CONVERT_EXT_FORMATS",
", BGR10A2_LE, RGB10A2_LE, P010_10LE, P012_LE, P016_LE, Y212_LE, Y412_LE",
),
("(gint) GST_GL_CONFIG_CAVEAT_NONE", "0"),
("(gint) GST_GL_CONFIG_CAVEAT_NON_CONFORMANT", "2"),
("(gint) GST_GL_CONFIG_CAVEAT_SLOW", "1"),
("GST_GL_CONFIG_STRUCTURE_NAME", "gst-gl-context-config"),
("(guint) GST_GL_CONFIG_SURFACE_TYPE_NONE", "0"),
("(guint) GST_GL_CONFIG_SURFACE_TYPE_PBUFFER", "2"),
("(guint) GST_GL_CONFIG_SURFACE_TYPE_PIXMAP", "4"),
("(guint) GST_GL_CONFIG_SURFACE_TYPE_WINDOW", "1"),
("(gint) GST_GL_CONTEXT_ERROR_CREATE_CONTEXT", "4"),
("(gint) GST_GL_CONTEXT_ERROR_FAILED", "0"),
("(gint) GST_GL_CONTEXT_ERROR_OLD_LIBS", "3"),
@ -757,9 +779,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_GL_DEPTH24_STENCIL8", "35056"),
("(gint) GST_GL_DEPTH_COMPONENT16", "33189"),
("GST_GL_DISPLAY_CONTEXT_TYPE", "gst.gl.GLDisplay"),
("(guint) GST_GL_DISPLAY_TYPE_ANDROID", "2048"),
("(guint) GST_GL_DISPLAY_TYPE_ANY", "4294967295"),
("(guint) GST_GL_DISPLAY_TYPE_COCOA", "4"),
("(guint) GST_GL_DISPLAY_TYPE_DISPMANX", "16"),
("(guint) GST_GL_DISPLAY_TYPE_EAGL", "512"),
("(guint) GST_GL_DISPLAY_TYPE_EGL", "32"),
("(guint) GST_GL_DISPLAY_TYPE_EGL_DEVICE", "256"),
("(guint) GST_GL_DISPLAY_TYPE_GBM", "128"),
@ -767,6 +791,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GST_GL_DISPLAY_TYPE_VIV_FB", "64"),
("(guint) GST_GL_DISPLAY_TYPE_WAYLAND", "2"),
("(guint) GST_GL_DISPLAY_TYPE_WIN32", "8"),
("(guint) GST_GL_DISPLAY_TYPE_WINRT", "1024"),
("(guint) GST_GL_DISPLAY_TYPE_X11", "1"),
("(gint) GST_GL_LUMINANCE", "6409"),
("(gint) GST_GL_LUMINANCE_ALPHA", "6410"),

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -85,6 +85,14 @@ int main() {
PRINT_CONSTANT((guint) GST_GL_BASE_MEMORY_TRANSFER_NEED_UPLOAD);
PRINT_CONSTANT(GST_GL_BUFFER_ALLOCATOR_NAME);
PRINT_CONSTANT(GST_GL_COLOR_CONVERT_EXT_FORMATS);
PRINT_CONSTANT((gint) GST_GL_CONFIG_CAVEAT_NONE);
PRINT_CONSTANT((gint) GST_GL_CONFIG_CAVEAT_NON_CONFORMANT);
PRINT_CONSTANT((gint) GST_GL_CONFIG_CAVEAT_SLOW);
PRINT_CONSTANT(GST_GL_CONFIG_STRUCTURE_NAME);
PRINT_CONSTANT((guint) GST_GL_CONFIG_SURFACE_TYPE_NONE);
PRINT_CONSTANT((guint) GST_GL_CONFIG_SURFACE_TYPE_PBUFFER);
PRINT_CONSTANT((guint) GST_GL_CONFIG_SURFACE_TYPE_PIXMAP);
PRINT_CONSTANT((guint) GST_GL_CONFIG_SURFACE_TYPE_WINDOW);
PRINT_CONSTANT((gint) GST_GL_CONTEXT_ERROR_CREATE_CONTEXT);
PRINT_CONSTANT((gint) GST_GL_CONTEXT_ERROR_FAILED);
PRINT_CONSTANT((gint) GST_GL_CONTEXT_ERROR_OLD_LIBS);
@ -99,9 +107,11 @@ int main() {
PRINT_CONSTANT((gint) GST_GL_DEPTH24_STENCIL8);
PRINT_CONSTANT((gint) GST_GL_DEPTH_COMPONENT16);
PRINT_CONSTANT(GST_GL_DISPLAY_CONTEXT_TYPE);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_ANDROID);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_ANY);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_COCOA);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_DISPMANX);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_EAGL);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_EGL);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_EGL_DEVICE);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_GBM);
@ -109,6 +119,7 @@ int main() {
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_VIV_FB);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_WAYLAND);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_WIN32);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_WINRT);
PRINT_CONSTANT((guint) GST_GL_DISPLAY_TYPE_X11);
PRINT_CONSTANT((gint) GST_GL_LUMINANCE);
PRINT_CONSTANT((gint) GST_GL_LUMINANCE_ALPHA);

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -28,6 +28,8 @@ int main() {
printf("%s;%zu;%zu\n", "GstGLBufferPoolClass", sizeof(GstGLBufferPoolClass), alignof(GstGLBufferPoolClass));
printf("%s;%zu;%zu\n", "GstGLColorConvert", sizeof(GstGLColorConvert), alignof(GstGLColorConvert));
printf("%s;%zu;%zu\n", "GstGLColorConvertClass", sizeof(GstGLColorConvertClass), alignof(GstGLColorConvertClass));
printf("%s;%zu;%zu\n", "GstGLConfigCaveat", sizeof(GstGLConfigCaveat), alignof(GstGLConfigCaveat));
printf("%s;%zu;%zu\n", "GstGLConfigSurfaceType", sizeof(GstGLConfigSurfaceType), alignof(GstGLConfigSurfaceType));
printf("%s;%zu;%zu\n", "GstGLContext", sizeof(GstGLContext), alignof(GstGLContext));
printf("%s;%zu;%zu\n", "GstGLContextClass", sizeof(GstGLContextClass), alignof(GstGLContextClass));
printf("%s;%zu;%zu\n", "GstGLContextError", sizeof(GstGLContextError), alignof(GstGLContextError));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_gl_wayland_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_gl_x11_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -27,7 +27,7 @@ use glib::{gboolean, gconstpointer, gpointer, GType};
// Enums
pub type GstMpegtsATSCDescriptorType = c_int;
pub const GST_MTS_DESC_ATSC_STUFFING: GstMpegtsATSCDescriptorType = 128;
pub const GST_MTS_DESC_ATSC_AC3: GstMpegtsATSCDescriptorType = 131;
pub const GST_MTS_DESC_ATSC_AC3: GstMpegtsATSCDescriptorType = 129;
pub const GST_MTS_DESC_ATSC_CAPTION_SERVICE: GstMpegtsATSCDescriptorType = 134;
pub const GST_MTS_DESC_ATSC_CONTENT_ADVISORY: GstMpegtsATSCDescriptorType = 135;
pub const GST_MTS_DESC_ATSC_EXTENDED_CHANNEL_NAME: GstMpegtsATSCDescriptorType = 160;
@ -49,6 +49,15 @@ pub const GST_MTS_DESC_ATSC_MODULE_LINK: GstMpegtsATSCDescriptorType = 180;
pub const GST_MTS_DESC_ATSC_CRC32: GstMpegtsATSCDescriptorType = 181;
pub const GST_MTS_DESC_ATSC_GROUP_LINK: GstMpegtsATSCDescriptorType = 184;
pub type GstMpegtsATSCStreamType = c_int;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_DCII_VIDEO: GstMpegtsATSCStreamType = 128;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_AC3: GstMpegtsATSCStreamType = 129;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_SUBTITLING: GstMpegtsATSCStreamType = 130;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_ISOCH_DATA: GstMpegtsATSCStreamType = 131;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_SIT: GstMpegtsATSCStreamType = 134;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_EAC3: GstMpegtsATSCStreamType = 135;
pub const GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_DTS_HD: GstMpegtsATSCStreamType = 136;
pub type GstMpegtsAtscMGTTableType = c_int;
pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_EIT0: GstMpegtsAtscMGTTableType = 256;
pub const GST_MPEGTS_ATSC_MGT_TABLE_TYPE_EIT127: GstMpegtsAtscMGTTableType = 383;
@ -185,6 +194,9 @@ pub const GST_MTS_DESC_EXT_DVB_VIDEO_DEPTH_RANGE: GstMpegtsDVBExtendedDescriptor
pub const GST_MTS_DESC_EXT_DVB_T2MI: GstMpegtsDVBExtendedDescriptorType = 17;
pub const GST_MTS_DESC_EXT_DVB_URI_LINKAGE: GstMpegtsDVBExtendedDescriptorType = 19;
pub const GST_MTS_DESC_EXT_DVB_AC4: GstMpegtsDVBExtendedDescriptorType = 21;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION: GstMpegtsDVBExtendedDescriptorType = 25;
pub type GstMpegtsDVBLinkageHandOverType = c_int;
pub const GST_MPEGTS_DVB_LINKAGE_HAND_OVER_RESERVED: GstMpegtsDVBLinkageHandOverType = 0;
@ -313,6 +325,21 @@ pub const GST_MTS_DESC_MPEG2_STEREOSCOPIC_VIDEO_FORMAT: GstMpegtsDescriptorType
pub const GST_MTS_DESC_STEREOSCOPIC_PROGRAM_INFO: GstMpegtsDescriptorType = 53;
pub const GST_MTS_DESC_STEREOSCOPIC_VIDEO_INFO: GstMpegtsDescriptorType = 54;
pub type GstMpegtsHdmvStreamType = c_int;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_LPCM: GstMpegtsHdmvStreamType = 128;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3: GstMpegtsHdmvStreamType = 129;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS: GstMpegtsHdmvStreamType = 130;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_TRUE_HD: GstMpegtsHdmvStreamType = 131;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_PLUS: GstMpegtsHdmvStreamType = 132;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD: GstMpegtsHdmvStreamType = 133;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD_MASTER_AUDIO: GstMpegtsHdmvStreamType = 134;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_EAC3: GstMpegtsHdmvStreamType = 135;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_SUBPICTURE_PGS: GstMpegtsHdmvStreamType = 144;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_IGS: GstMpegtsHdmvStreamType = 145;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_SUBTITLE: GstMpegtsHdmvStreamType = 146;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_PLUS_SECONDARY: GstMpegtsHdmvStreamType = 161;
pub const GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD_SECONDARY: GstMpegtsHdmvStreamType = 162;
pub type GstMpegtsISDBDescriptorType = c_int;
pub const GST_MTS_DESC_ISDB_HIERARCHICAL_TRANSMISSION: GstMpegtsISDBDescriptorType = 192;
pub const GST_MTS_DESC_ISDB_DIGITAL_COPY_CONTROL: GstMpegtsISDBDescriptorType = 193;
@ -354,7 +381,6 @@ pub const GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED: GstMpegtsIso639AudioType = 2;
pub const GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY: GstMpegtsIso639AudioType = 3;
pub type GstMpegtsMiscDescriptorType = c_int;
pub const GST_MTS_DESC_AC3_AUDIO_STREAM: GstMpegtsMiscDescriptorType = 129;
pub const GST_MTS_DESC_DTG_LOGICAL_CHANNEL: GstMpegtsMiscDescriptorType = 131;
pub type GstMpegtsModulationType = c_int;
@ -382,6 +408,16 @@ pub const GST_MPEGTS_RUNNING_STATUS_PAUSING: GstMpegtsRunningStatus = 3;
pub const GST_MPEGTS_RUNNING_STATUS_RUNNING: GstMpegtsRunningStatus = 4;
pub const GST_MPEGTS_RUNNING_STATUS_OFF_AIR: GstMpegtsRunningStatus = 5;
pub type GstMpegtsSCTEDescriptorType = c_int;
pub const GST_MTS_DESC_SCTE_STUFFING: GstMpegtsSCTEDescriptorType = 128;
pub const GST_MTS_DESC_SCTE_AC3: GstMpegtsSCTEDescriptorType = 129;
pub const GST_MTS_DESC_SCTE_FRAME_RATE: GstMpegtsSCTEDescriptorType = 130;
pub const GST_MTS_DESC_SCTE_EXTENDED_VIDEO: GstMpegtsSCTEDescriptorType = 131;
pub const GST_MTS_DESC_SCTE_COMPONENT_NAME: GstMpegtsSCTEDescriptorType = 132;
pub const GST_MTS_DESC_SCTE_FREQUENCY_SPEC: GstMpegtsSCTEDescriptorType = 144;
pub const GST_MTS_DESC_SCTE_MODULATION_PARAMS: GstMpegtsSCTEDescriptorType = 145;
pub const GST_MTS_DESC_SCTE_TRANSPORT_STREAM_ID: GstMpegtsSCTEDescriptorType = 146;
pub type GstMpegtsSCTESpliceCommandType = c_int;
pub const GST_MTS_SCTE_SPLICE_COMMAND_NULL: GstMpegtsSCTESpliceCommandType = 0;
pub const GST_MTS_SCTE_SPLICE_COMMAND_SCHEDULE: GstMpegtsSCTESpliceCommandType = 4;
@ -430,6 +466,9 @@ pub const GST_MTS_TABLE_ID_ATSC_CHANNEL_OR_EVENT_EXTENDED_TEXT: GstMpegtsSection
pub const GST_MTS_TABLE_ID_ATSC_SYSTEM_TIME: GstMpegtsSectionATSCTableID = 205;
pub const GST_MTS_TABLE_ID_ATSC_DATA_EVENT: GstMpegtsSectionATSCTableID = 206;
pub const GST_MTS_TABLE_ID_ATSC_DATA_SERVICE: GstMpegtsSectionATSCTableID = 207;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_ATSC_PROGRAM_IDENTIFIER: GstMpegtsSectionATSCTableID = 208;
pub const GST_MTS_TABLE_ID_ATSC_NETWORK_RESOURCE: GstMpegtsSectionATSCTableID = 209;
pub const GST_MTS_TABLE_ID_ATSC_LONG_TERM_SERVICE: GstMpegtsSectionATSCTableID = 210;
pub const GST_MTS_TABLE_ID_ATSC_DIRECTED_CHANNEL_CHANGE: GstMpegtsSectionATSCTableID = 211;
@ -446,6 +485,12 @@ pub const GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK: GstMpegtsSectionDV
pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_ACTUAL_TS: GstMpegtsSectionDVBTableID = 66;
pub const GST_MTS_TABLE_ID_SERVICE_DESCRIPTION_OTHER_TS: GstMpegtsSectionDVBTableID = 70;
pub const GST_MTS_TABLE_ID_BOUQUET_ASSOCIATION: GstMpegtsSectionDVBTableID = 74;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_UPDATE_NOTIFICATION: GstMpegtsSectionDVBTableID = 75;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_DOWNLOADABLE_FONT_INFO: GstMpegtsSectionDVBTableID = 76;
pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_PRESENT: GstMpegtsSectionDVBTableID = 78;
pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_OTHER_TS_PRESENT: GstMpegtsSectionDVBTableID = 79;
pub const GST_MTS_TABLE_ID_EVENT_INFORMATION_ACTUAL_TS_SCHEDULE_1: GstMpegtsSectionDVBTableID = 80;
@ -463,6 +508,9 @@ pub const GST_MTS_TABLE_ID_CONTENT_IDENTIFIER: GstMpegtsSectionDVBTableID = 119;
pub const GST_MTS_TABLE_ID_MPE_FEC: GstMpegtsSectionDVBTableID = 120;
pub const GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION: GstMpegtsSectionDVBTableID = 121;
pub const GST_MTS_TABLE_ID_MPE_IFEC: GstMpegtsSectionDVBTableID = 122;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_PROTECTION_MESSAGE: GstMpegtsSectionDVBTableID = 123;
pub const GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION: GstMpegtsSectionDVBTableID = 126;
pub const GST_MTS_TABLE_ID_SELECTION_INFORMATION: GstMpegtsSectionDVBTableID = 127;
pub const GST_MTS_TABLE_ID_CA_MESSAGE_ECM_0: GstMpegtsSectionDVBTableID = 128;
@ -498,6 +546,15 @@ pub const GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION: GstMpegtsSectionTableID = 4;
pub const GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR: GstMpegtsSectionTableID = 5;
pub const GST_MTS_TABLE_ID_METADATA: GstMpegtsSectionTableID = 6;
pub const GST_MTS_TABLE_ID_IPMP_CONTROL_INFORMATION: GstMpegtsSectionTableID = 7;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_14496_SECTION: GstMpegtsSectionTableID = 8;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_23001_11_SECTION: GstMpegtsSectionTableID = 9;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MTS_TABLE_ID_23001_10_SECTION: GstMpegtsSectionTableID = 10;
pub const GST_MTS_TABLE_ID_DSM_CC_MULTIPROTO_ENCAPSULATED_DATA: GstMpegtsSectionTableID = 58;
pub const GST_MTS_TABLE_ID_DSM_CC_U_N_MESSAGES: GstMpegtsSectionTableID = 59;
pub const GST_MTS_TABLE_ID_DSM_CC_DOWNLOAD_DATA_MESSAGES: GstMpegtsSectionTableID = 60;
@ -518,14 +575,17 @@ pub const GST_MPEGTS_SECTION_BAT: GstMpegtsSectionType = 7;
pub const GST_MPEGTS_SECTION_SDT: GstMpegtsSectionType = 8;
pub const GST_MPEGTS_SECTION_TDT: GstMpegtsSectionType = 9;
pub const GST_MPEGTS_SECTION_TOT: GstMpegtsSectionType = 10;
pub const GST_MPEGTS_SECTION_ATSC_TVCT: GstMpegtsSectionType = 11;
pub const GST_MPEGTS_SECTION_ATSC_CVCT: GstMpegtsSectionType = 12;
pub const GST_MPEGTS_SECTION_ATSC_MGT: GstMpegtsSectionType = 13;
pub const GST_MPEGTS_SECTION_ATSC_ETT: GstMpegtsSectionType = 14;
pub const GST_MPEGTS_SECTION_ATSC_EIT: GstMpegtsSectionType = 15;
pub const GST_MPEGTS_SECTION_ATSC_STT: GstMpegtsSectionType = 16;
pub const GST_MPEGTS_SECTION_ATSC_RRT: GstMpegtsSectionType = 17;
pub const GST_MPEGTS_SECTION_SCTE_SIT: GstMpegtsSectionType = 18;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MPEGTS_SECTION_SIT: GstMpegtsSectionType = 11;
pub const GST_MPEGTS_SECTION_ATSC_TVCT: GstMpegtsSectionType = 12;
pub const GST_MPEGTS_SECTION_ATSC_CVCT: GstMpegtsSectionType = 13;
pub const GST_MPEGTS_SECTION_ATSC_MGT: GstMpegtsSectionType = 14;
pub const GST_MPEGTS_SECTION_ATSC_ETT: GstMpegtsSectionType = 15;
pub const GST_MPEGTS_SECTION_ATSC_EIT: GstMpegtsSectionType = 16;
pub const GST_MPEGTS_SECTION_ATSC_STT: GstMpegtsSectionType = 17;
pub const GST_MPEGTS_SECTION_ATSC_RRT: GstMpegtsSectionType = 18;
pub const GST_MPEGTS_SECTION_SCTE_SIT: GstMpegtsSectionType = 19;
pub type GstMpegtsStreamType = c_int;
pub const GST_MPEGTS_STREAM_TYPE_RESERVED_00: GstMpegtsStreamType = 0;
@ -566,6 +626,9 @@ pub const GST_MPEGTS_STREAM_TYPE_VIDEO_MPEG2_STEREO_ADDITIONAL_VIEW: GstMpegtsSt
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW: GstMpegtsStreamType = 35;
pub const GST_MPEGTS_STREAM_TYPE_VIDEO_HEVC: GstMpegtsStreamType = 36;
pub const GST_MPEGTS_STREAM_TYPE_IPMP_STREAM: GstMpegtsStreamType = 127;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub const GST_MPEGTS_STREAM_TYPE_USER_PRIVATE_EA: GstMpegtsStreamType = 234;
pub type GstMpegtsTerrestrialGuardInterval = c_int;
pub const GST_MPEGTS_GUARD_INTERVAL_1_32: GstMpegtsTerrestrialGuardInterval = 0;
@ -598,6 +661,27 @@ pub const GST_MPEGTS_TRANSMISSION_MODE_32K: GstMpegtsTerrestrialTransmissionMode
pub const GST_MPEGTS_TRANSMISSION_MODE_C1: GstMpegtsTerrestrialTransmissionMode = 7;
pub const GST_MPEGTS_TRANSMISSION_MODE_C3780: GstMpegtsTerrestrialTransmissionMode = 8;
// Flags
pub type GstMpegtsRegistrationId = c_uint;
pub const GST_MTS_REGISTRATION_0: GstMpegtsRegistrationId = 0;
pub const GST_MTS_REGISTRATION_AC_3: GstMpegtsRegistrationId = 1094921523;
pub const GST_MTS_REGISTRATION_CUEI: GstMpegtsRegistrationId = 1129661769;
pub const GST_MTS_REGISTRATION_drac: GstMpegtsRegistrationId = 1685217635;
pub const GST_MTS_REGISTRATION_DTS1: GstMpegtsRegistrationId = 1146377009;
pub const GST_MTS_REGISTRATION_DTS2: GstMpegtsRegistrationId = 1146377010;
pub const GST_MTS_REGISTRATION_DTS3: GstMpegtsRegistrationId = 1146377011;
pub const GST_MTS_REGISTRATION_BSSD: GstMpegtsRegistrationId = 1112757060;
pub const GST_MTS_REGISTRATION_EAC3: GstMpegtsRegistrationId = 1161904947;
pub const GST_MTS_REGISTRATION_ETV1: GstMpegtsRegistrationId = 1163154993;
pub const GST_MTS_REGISTRATION_GA94: GstMpegtsRegistrationId = 1195456820;
pub const GST_MTS_REGISTRATION_HDMV: GstMpegtsRegistrationId = 1212435798;
pub const GST_MTS_REGISTRATION_KLVA: GstMpegtsRegistrationId = 1263294017;
pub const GST_MTS_REGISTRATION_OPUS: GstMpegtsRegistrationId = 1330664787;
pub const GST_MTS_REGISTRATION_TSHV: GstMpegtsRegistrationId = 1414744150;
pub const GST_MTS_REGISTRATION_VC_1: GstMpegtsRegistrationId = 1447243057;
pub const GST_MTS_REGISTRATION_AC_4: GstMpegtsRegistrationId = 1094921524;
pub const GST_MTS_REGISTRATION_OTHER_HEVC: GstMpegtsRegistrationId = 1212503619;
// Callbacks
pub type GstMpegtsPacketizeFunc = Option<unsafe extern "C" fn(*mut GstMpegtsSection) -> gboolean>;
@ -894,6 +978,48 @@ impl ::std::fmt::Debug for GstMpegtsAtscVCTSource {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsAudioPreselectionDescriptor {
pub preselection_id: u8,
pub audio_rendering_indication: u8,
pub audio_description: gboolean,
pub spoken_subtitles: gboolean,
pub dialogue_enhancement: gboolean,
pub interactivity_enabled: gboolean,
pub language_code_present: gboolean,
pub text_label_present: gboolean,
pub multi_stream_info_present: gboolean,
pub future_extension: gboolean,
pub language_code: *mut c_char,
pub message_id: u8,
}
impl ::std::fmt::Debug for GstMpegtsAudioPreselectionDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
"GstMpegtsAudioPreselectionDescriptor @ {:p}",
self
))
.field("preselection_id", &self.preselection_id)
.field(
"audio_rendering_indication",
&self.audio_rendering_indication,
)
.field("audio_description", &self.audio_description)
.field("spoken_subtitles", &self.spoken_subtitles)
.field("dialogue_enhancement", &self.dialogue_enhancement)
.field("interactivity_enabled", &self.interactivity_enabled)
.field("language_code_present", &self.language_code_present)
.field("text_label_present", &self.text_label_present)
.field("multi_stream_info_present", &self.multi_stream_info_present)
.field("future_extension", &self.future_extension)
.field("language_code", &self.language_code)
.field("message_id", &self.message_id)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsBAT {
@ -1616,6 +1742,40 @@ impl ::std::fmt::Debug for GstMpegtsSDTService {
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsSIT {
pub descriptors: *mut glib::GPtrArray,
pub services: *mut glib::GPtrArray,
}
impl ::std::fmt::Debug for GstMpegtsSIT {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSIT @ {:p}", self))
.field("descriptors", &self.descriptors)
.field("services", &self.services)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsSITService {
pub service_id: u16,
pub running_status: GstMpegtsRunningStatus,
pub descriptors: *mut glib::GPtrArray,
}
impl ::std::fmt::Debug for GstMpegtsSITService {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsSITService @ {:p}", self))
.field("service_id", &self.service_id)
.field("running_status", &self.running_status)
.field("descriptors", &self.descriptors)
.finish()
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstMpegtsSatelliteDeliverySystemDescriptor {
@ -1857,7 +2017,11 @@ extern "C" {
//=========================================================================
// GstMpegtsAtscRRTDimension
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_dimension_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_dimension_new() -> *mut GstMpegtsAtscRRTDimension;
//=========================================================================
@ -1984,6 +2148,12 @@ extern "C" {
//=========================================================================
pub fn gst_mpegts_descriptor_get_type() -> GType;
pub fn gst_mpegts_descriptor_free(desc: *mut GstMpegtsDescriptor);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_descriptor_parse_audio_preselection_list(
descriptor: *const GstMpegtsDescriptor,
list: *mut *mut glib::GPtrArray,
) -> gboolean;
pub fn gst_mpegts_descriptor_parse_ca(
descriptor: *mut GstMpegtsDescriptor,
ca_system_id: *mut u16,
@ -2136,6 +2306,14 @@ extern "C" {
descriptor: *const GstMpegtsDescriptor,
res: *mut GstMpegtsLogicalChannelDescriptor,
) -> gboolean;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_descriptor_parse_registration(
descriptor: *mut GstMpegtsDescriptor,
registration_id: *mut u32,
additional_info: *mut *mut u8,
additional_info_length: *mut size_t,
) -> gboolean;
pub fn gst_mpegts_descriptor_parse_satellite_delivery_system(
descriptor: *const GstMpegtsDescriptor,
res: *mut GstMpegtsSatelliteDeliverySystemDescriptor,
@ -2149,6 +2327,8 @@ extern "C" {
data: *const u8,
length: size_t,
) -> *mut GstMpegtsDescriptor;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_descriptor_from_custom_with_extension(
tag: u8,
tag_extension: u8,
@ -2177,6 +2357,16 @@ extern "C" {
additional_info: *mut u8,
additional_info_length: size_t,
) -> *mut GstMpegtsDescriptor;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_descriptor_parse_audio_preselection_dump(
source: *mut GstMpegtsAudioPreselectionDescriptor,
);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_descriptor_parse_audio_preselection_free(
source: *mut GstMpegtsAudioPreselectionDescriptor,
);
//=========================================================================
// GstMpegtsDvbMultilingualBouquetNameItem
@ -2291,6 +2481,20 @@ extern "C" {
pub fn gst_mpegts_sdt_service_get_type() -> GType;
pub fn gst_mpegts_sdt_service_new() -> *mut GstMpegtsSDTService;
//=========================================================================
// GstMpegtsSIT
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_sit_get_type() -> GType;
//=========================================================================
// GstMpegtsSITService
//=========================================================================
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_sit_service_get_type() -> GType;
//=========================================================================
// GstMpegtsSatelliteDeliverySystemDescriptor
//=========================================================================
@ -2339,6 +2543,9 @@ extern "C" {
section: *mut GstMpegtsSection,
) -> *const GstMpegtsSCTESIT;
pub fn gst_mpegts_section_get_sdt(section: *mut GstMpegtsSection) -> *const GstMpegtsSDT;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_section_get_sit(section: *mut GstMpegtsSection) -> *const GstMpegtsSIT;
pub fn gst_mpegts_section_get_tdt(section: *mut GstMpegtsSection) -> *mut gst::GstDateTime;
pub fn gst_mpegts_section_get_tot(section: *mut GstMpegtsSection) -> *const GstMpegtsTOT;
pub fn gst_mpegts_section_get_tsdt(section: *mut GstMpegtsSection) -> *mut glib::GPtrArray;
@ -2406,6 +2613,13 @@ extern "C" {
descriptors: *mut glib::GPtrArray,
tag: u8,
) -> *const GstMpegtsDescriptor;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_find_descriptor_with_extension(
descriptors: *mut glib::GPtrArray,
tag: u8,
tag_extension: u8,
) -> *const GstMpegtsDescriptor;
pub fn gst_mpegts_initialize();
pub fn gst_message_new_mpegts_section(
parent: *mut gst::GstObject,

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_mpegts_sys::*;
@ -218,6 +218,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsATSCDescriptorType>(),
},
),
(
"GstMpegtsATSCStreamType",
Layout {
size: size_of::<GstMpegtsATSCStreamType>(),
alignment: align_of::<GstMpegtsATSCStreamType>(),
},
),
(
"GstMpegtsAtscEIT",
Layout {
@ -316,6 +323,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsAtscVCTSource>(),
},
),
(
"GstMpegtsAudioPreselectionDescriptor",
Layout {
size: size_of::<GstMpegtsAudioPreselectionDescriptor>(),
alignment: align_of::<GstMpegtsAudioPreselectionDescriptor>(),
},
),
(
"GstMpegtsBAT",
Layout {
@ -547,6 +561,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsExtendedEventItem>(),
},
),
(
"GstMpegtsHdmvStreamType",
Layout {
size: size_of::<GstMpegtsHdmvStreamType>(),
alignment: align_of::<GstMpegtsHdmvStreamType>(),
},
),
(
"GstMpegtsISDBDescriptorType",
Layout {
@ -631,6 +652,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsPatProgram>(),
},
),
(
"GstMpegtsRegistrationId",
Layout {
size: size_of::<GstMpegtsRegistrationId>(),
alignment: align_of::<GstMpegtsRegistrationId>(),
},
),
(
"GstMpegtsRunningStatus",
Layout {
@ -638,6 +666,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsRunningStatus>(),
},
),
(
"GstMpegtsSCTEDescriptorType",
Layout {
size: size_of::<GstMpegtsSCTEDescriptorType>(),
alignment: align_of::<GstMpegtsSCTEDescriptorType>(),
},
),
(
"GstMpegtsSCTESIT",
Layout {
@ -680,6 +715,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsSDTService>(),
},
),
(
"GstMpegtsSIT",
Layout {
size: size_of::<GstMpegtsSIT>(),
alignment: align_of::<GstMpegtsSIT>(),
},
),
(
"GstMpegtsSITService",
Layout {
size: size_of::<GstMpegtsSITService>(),
alignment: align_of::<GstMpegtsSITService>(),
},
),
(
"GstMpegtsSatelliteDeliverySystemDescriptor",
Layout {
@ -1002,21 +1051,22 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
"2",
),
("(gint) GST_MPEGTS_RUNNING_STATUS_UNDEFINED", "0"),
("(gint) GST_MPEGTS_SECTION_ATSC_CVCT", "12"),
("(gint) GST_MPEGTS_SECTION_ATSC_EIT", "15"),
("(gint) GST_MPEGTS_SECTION_ATSC_ETT", "14"),
("(gint) GST_MPEGTS_SECTION_ATSC_MGT", "13"),
("(gint) GST_MPEGTS_SECTION_ATSC_RRT", "17"),
("(gint) GST_MPEGTS_SECTION_ATSC_STT", "16"),
("(gint) GST_MPEGTS_SECTION_ATSC_TVCT", "11"),
("(gint) GST_MPEGTS_SECTION_ATSC_CVCT", "13"),
("(gint) GST_MPEGTS_SECTION_ATSC_EIT", "16"),
("(gint) GST_MPEGTS_SECTION_ATSC_ETT", "15"),
("(gint) GST_MPEGTS_SECTION_ATSC_MGT", "14"),
("(gint) GST_MPEGTS_SECTION_ATSC_RRT", "18"),
("(gint) GST_MPEGTS_SECTION_ATSC_STT", "17"),
("(gint) GST_MPEGTS_SECTION_ATSC_TVCT", "12"),
("(gint) GST_MPEGTS_SECTION_BAT", "7"),
("(gint) GST_MPEGTS_SECTION_CAT", "3"),
("(gint) GST_MPEGTS_SECTION_EIT", "5"),
("(gint) GST_MPEGTS_SECTION_NIT", "6"),
("(gint) GST_MPEGTS_SECTION_PAT", "1"),
("(gint) GST_MPEGTS_SECTION_PMT", "2"),
("(gint) GST_MPEGTS_SECTION_SCTE_SIT", "18"),
("(gint) GST_MPEGTS_SECTION_SCTE_SIT", "19"),
("(gint) GST_MPEGTS_SECTION_SDT", "8"),
("(gint) GST_MPEGTS_SECTION_SIT", "11"),
("(gint) GST_MPEGTS_SECTION_TDT", "9"),
("(gint) GST_MPEGTS_SECTION_TOT", "10"),
("(gint) GST_MPEGTS_SECTION_TSDT", "4"),
@ -1029,6 +1079,13 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_STREAM_CONTENT_MPEG2_VIDEO", "1"),
("(gint) GST_MPEGTS_STREAM_CONTENT_SRM_CPCM", "8"),
("(gint) GST_MPEGTS_STREAM_CONTENT_TELETEXT_OR_SUBTITLE", "3"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_AC3", "129"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_DTS_HD", "136"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_EAC3", "135"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_DCII_VIDEO", "128"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_ISOCH_DATA", "131"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_SIT", "134"),
("(gint) GST_MPEGTS_STREAM_TYPE_ATSC_SUBTITLING", "130"),
("(gint) GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_ADTS", "15"),
("(gint) GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_CLEAN", "28"),
("(gint) GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_LATM", "17"),
@ -1040,6 +1097,31 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_STREAM_TYPE_DSMCC_C", "12"),
("(gint) GST_MPEGTS_STREAM_TYPE_DSMCC_D", "13"),
("(gint) GST_MPEGTS_STREAM_TYPE_DSM_CC", "8"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3", "129"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_PLUS", "132"),
(
"(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_PLUS_SECONDARY",
"161",
),
(
"(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_TRUE_HD",
"131",
),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS", "130"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD", "133"),
(
"(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD_MASTER_AUDIO",
"134",
),
(
"(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD_SECONDARY",
"162",
),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_EAC3", "135"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_LPCM", "128"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_IGS", "145"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_SUBPICTURE_PGS", "144"),
("(gint) GST_MPEGTS_STREAM_TYPE_HDMV_SUBTITLE", "146"),
("(gint) GST_MPEGTS_STREAM_TYPE_H_222_1", "9"),
("(gint) GST_MPEGTS_STREAM_TYPE_IPMP_STREAM", "127"),
("(gint) GST_MPEGTS_STREAM_TYPE_METADATA_DATA_CAROUSEL", "23"),
@ -1070,6 +1152,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_PES_PACKETS", "18"),
("(gint) GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_SECTIONS", "19"),
("(gint) GST_MPEGTS_STREAM_TYPE_SYNCHRONIZED_DOWNLOAD", "20"),
("(gint) GST_MPEGTS_STREAM_TYPE_USER_PRIVATE_EA", "234"),
("(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264", "27"),
(
"(gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264_MVC_SUB_BITSTREAM",
@ -1102,8 +1185,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_TRANSMISSION_MODE_AUTO", "2"),
("(gint) GST_MPEGTS_TRANSMISSION_MODE_C1", "7"),
("(gint) GST_MPEGTS_TRANSMISSION_MODE_C3780", "8"),
("(gint) GST_MTS_DESC_AC3_AUDIO_STREAM", "129"),
("(gint) GST_MTS_DESC_ATSC_AC3", "131"),
("(gint) GST_MTS_DESC_ATSC_AC3", "129"),
("(gint) GST_MTS_DESC_ATSC_CAPTION_SERVICE", "134"),
("(gint) GST_MTS_DESC_ATSC_COMPONENT_NAME", "163"),
("(gint) GST_MTS_DESC_ATSC_CONTENT_ADVISORY", "135"),
@ -1213,6 +1295,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_DVB_XAIT_LOCATION", "125"),
("(gint) GST_MTS_DESC_EXTERNAL_ES_ID", "32"),
("(gint) GST_MTS_DESC_EXT_DVB_AC4", "21"),
("(gint) GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION", "25"),
("(gint) GST_MTS_DESC_EXT_DVB_C2_DELIVERY_SYSTEM", "13"),
("(gint) GST_MTS_DESC_EXT_DVB_CP", "2"),
("(gint) GST_MTS_DESC_EXT_DVB_CPCM_DELIVERY_SIGNALLING", "1"),
@ -1292,6 +1375,14 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_REGISTRATION", "5"),
("(gint) GST_MTS_DESC_RESERVED_00", "0"),
("(gint) GST_MTS_DESC_RESERVED_01", "1"),
("(gint) GST_MTS_DESC_SCTE_AC3", "129"),
("(gint) GST_MTS_DESC_SCTE_COMPONENT_NAME", "132"),
("(gint) GST_MTS_DESC_SCTE_EXTENDED_VIDEO", "131"),
("(gint) GST_MTS_DESC_SCTE_FRAME_RATE", "130"),
("(gint) GST_MTS_DESC_SCTE_FREQUENCY_SPEC", "144"),
("(gint) GST_MTS_DESC_SCTE_MODULATION_PARAMS", "145"),
("(gint) GST_MTS_DESC_SCTE_STUFFING", "128"),
("(gint) GST_MTS_DESC_SCTE_TRANSPORT_STREAM_ID", "146"),
("(gint) GST_MTS_DESC_SL", "30"),
("(gint) GST_MTS_DESC_SMOOTHING_BUFFER", "16"),
("(gint) GST_MTS_DESC_STD", "17"),
@ -1302,6 +1393,24 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_DESC_TARGET_BACKGROUND_GRID", "7"),
("(gint) GST_MTS_DESC_VIDEO_STREAM", "2"),
("(gint) GST_MTS_DESC_VIDEO_WINDOW", "8"),
("(guint) GST_MTS_REGISTRATION_0", "0"),
("(guint) GST_MTS_REGISTRATION_AC_3", "1094921523"),
("(guint) GST_MTS_REGISTRATION_AC_4", "1094921524"),
("(guint) GST_MTS_REGISTRATION_BSSD", "1112757060"),
("(guint) GST_MTS_REGISTRATION_CUEI", "1129661769"),
("(guint) GST_MTS_REGISTRATION_DTS1", "1146377009"),
("(guint) GST_MTS_REGISTRATION_DTS2", "1146377010"),
("(guint) GST_MTS_REGISTRATION_DTS3", "1146377011"),
("(guint) GST_MTS_REGISTRATION_EAC3", "1161904947"),
("(guint) GST_MTS_REGISTRATION_ETV1", "1163154993"),
("(guint) GST_MTS_REGISTRATION_GA94", "1195456820"),
("(guint) GST_MTS_REGISTRATION_HDMV", "1212435798"),
("(guint) GST_MTS_REGISTRATION_KLVA", "1263294017"),
("(guint) GST_MTS_REGISTRATION_OPUS", "1330664787"),
("(guint) GST_MTS_REGISTRATION_OTHER_HEVC", "1212503619"),
("(guint) GST_MTS_REGISTRATION_TSHV", "1414744150"),
("(guint) GST_MTS_REGISTRATION_VC_1", "1447243057"),
("(guint) GST_MTS_REGISTRATION_drac", "1685217635"),
("(gint) GST_MTS_SCTE_DESC_AUDIO", "4"),
("(gint) GST_MTS_SCTE_DESC_AVAIL", "0"),
("(gint) GST_MTS_SCTE_DESC_DTMF", "1"),
@ -1315,6 +1424,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_SCTE_SPLICE_COMMAND_TIME", "6"),
("(gint) GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR", "5"),
("(gint) GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION", "4"),
("(gint) GST_MTS_TABLE_ID_14496_SECTION", "8"),
("(gint) GST_MTS_TABLE_ID_23001_10_SECTION", "10"),
("(gint) GST_MTS_TABLE_ID_23001_11_SECTION", "9"),
(
"(gint) GST_MTS_TABLE_ID_APPLICATION_INFORMATION_TABLE",
"116",
@ -1347,6 +1459,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_TABLE_ID_ATSC_LONG_TERM_SERVICE", "210"),
("(gint) GST_MTS_TABLE_ID_ATSC_MASTER_GUIDE", "199"),
("(gint) GST_MTS_TABLE_ID_ATSC_NETWORK_RESOURCE", "209"),
("(gint) GST_MTS_TABLE_ID_ATSC_PROGRAM_IDENTIFIER", "208"),
("(gint) GST_MTS_TABLE_ID_ATSC_RATING_REGION", "202"),
(
"(gint) GST_MTS_TABLE_ID_ATSC_SATELLITE_VIRTUAL_CHANNEL",
@ -1367,6 +1480,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_TABLE_ID_CONTAINER", "117"),
("(gint) GST_MTS_TABLE_ID_CONTENT_IDENTIFIER", "119"),
("(gint) GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION", "126"),
("(gint) GST_MTS_TABLE_ID_DOWNLOADABLE_FONT_INFO", "76"),
("(gint) GST_MTS_TABLE_ID_DSM_CC_ADDRESSABLE_SECTIONS", "63"),
(
"(gint) GST_MTS_TABLE_ID_DSM_CC_DOWNLOAD_DATA_MESSAGES",
@ -1419,6 +1533,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
),
("(gint) GST_MTS_TABLE_ID_PCR_PACKET_PAYLOAD", "166"),
("(gint) GST_MTS_TABLE_ID_PROGRAM_ASSOCIATION", "0"),
("(gint) GST_MTS_TABLE_ID_PROTECTION_MESSAGE", "123"),
("(gint) GST_MTS_TABLE_ID_RELATED_CONTENT", "118"),
("(gint) GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION", "121"),
("(gint) GST_MTS_TABLE_ID_RUNNING_STATUS", "113"),
@ -1450,6 +1565,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MTS_TABLE_ID_TS_DESCRIPTION", "3"),
("(gint) GST_MTS_TABLE_ID_TS_PROGRAM_MAP", "2"),
("(gint) GST_MTS_TABLE_ID_UNSET", "255"),
("(gint) GST_MTS_TABLE_ID_UPDATE_NOTIFICATION", "75"),
("(gint) HEARING_IMPAIRED_PAGE", "5"),
("(gint) INITIAL_PAGE", "1"),
("(gint) PROGRAMME_SCHEDULE_PAGE", "4"),

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -182,6 +182,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_PMT);
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_SCTE_SIT);
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_SDT);
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_SIT);
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_TDT);
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_TOT);
PRINT_CONSTANT((gint) GST_MPEGTS_SECTION_TSDT);
@ -194,6 +195,13 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_CONTENT_MPEG2_VIDEO);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_CONTENT_SRM_CPCM);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_CONTENT_TELETEXT_OR_SUBTITLE);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_AC3);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_DTS_HD);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_AUDIO_EAC3);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_DCII_VIDEO);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_ISOCH_DATA);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_SIT);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_ATSC_SUBTITLING);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_ADTS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_CLEAN);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_AUDIO_AAC_LATM);
@ -205,6 +213,19 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_DSMCC_C);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_DSMCC_D);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_DSM_CC);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_PLUS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_PLUS_SECONDARY);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_AC3_TRUE_HD);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD_MASTER_AUDIO);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_DTS_HD_SECONDARY);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_EAC3);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_AUDIO_LPCM);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_IGS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_SUBPICTURE_PGS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_HDMV_SUBTITLE);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_H_222_1);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_IPMP_STREAM);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_METADATA_DATA_CAROUSEL);
@ -229,6 +250,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_PES_PACKETS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_SL_FLEXMUX_SECTIONS);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_SYNCHRONIZED_DOWNLOAD);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_USER_PRIVATE_EA);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264_MVC_SUB_BITSTREAM);
PRINT_CONSTANT((gint) GST_MPEGTS_STREAM_TYPE_VIDEO_H264_STEREO_ADDITIONAL_VIEW);
@ -249,7 +271,6 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_TRANSMISSION_MODE_AUTO);
PRINT_CONSTANT((gint) GST_MPEGTS_TRANSMISSION_MODE_C1);
PRINT_CONSTANT((gint) GST_MPEGTS_TRANSMISSION_MODE_C3780);
PRINT_CONSTANT((gint) GST_MTS_DESC_AC3_AUDIO_STREAM);
PRINT_CONSTANT((gint) GST_MTS_DESC_ATSC_AC3);
PRINT_CONSTANT((gint) GST_MTS_DESC_ATSC_CAPTION_SERVICE);
PRINT_CONSTANT((gint) GST_MTS_DESC_ATSC_COMPONENT_NAME);
@ -354,6 +375,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_DESC_DVB_XAIT_LOCATION);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXTERNAL_ES_ID);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_AC4);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_AUDIO_PRESELECTION);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_C2_DELIVERY_SYSTEM);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_CP);
PRINT_CONSTANT((gint) GST_MTS_DESC_EXT_DVB_CPCM_DELIVERY_SIGNALLING);
@ -433,6 +455,14 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_DESC_REGISTRATION);
PRINT_CONSTANT((gint) GST_MTS_DESC_RESERVED_00);
PRINT_CONSTANT((gint) GST_MTS_DESC_RESERVED_01);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_AC3);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_COMPONENT_NAME);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_EXTENDED_VIDEO);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_FRAME_RATE);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_FREQUENCY_SPEC);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_MODULATION_PARAMS);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_STUFFING);
PRINT_CONSTANT((gint) GST_MTS_DESC_SCTE_TRANSPORT_STREAM_ID);
PRINT_CONSTANT((gint) GST_MTS_DESC_SL);
PRINT_CONSTANT((gint) GST_MTS_DESC_SMOOTHING_BUFFER);
PRINT_CONSTANT((gint) GST_MTS_DESC_STD);
@ -443,6 +473,24 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_DESC_TARGET_BACKGROUND_GRID);
PRINT_CONSTANT((gint) GST_MTS_DESC_VIDEO_STREAM);
PRINT_CONSTANT((gint) GST_MTS_DESC_VIDEO_WINDOW);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_0);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_AC_3);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_AC_4);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_BSSD);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_CUEI);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_DTS1);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_DTS2);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_DTS3);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_EAC3);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_ETV1);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_GA94);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_HDMV);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_KLVA);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_OPUS);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_OTHER_HEVC);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_TSHV);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_VC_1);
PRINT_CONSTANT((guint) GST_MTS_REGISTRATION_drac);
PRINT_CONSTANT((gint) GST_MTS_SCTE_DESC_AUDIO);
PRINT_CONSTANT((gint) GST_MTS_SCTE_DESC_AVAIL);
PRINT_CONSTANT((gint) GST_MTS_SCTE_DESC_DTMF);
@ -456,6 +504,9 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_SCTE_SPLICE_COMMAND_TIME);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_14496_OBJET_DESCRIPTOR);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_14496_SCENE_DESCRIPTION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_14496_SECTION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_23001_10_SECTION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_23001_11_SECTION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_APPLICATION_INFORMATION_TABLE);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_AGGREGATE_DATA_EVENT);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_AGGREGATE_EVENT_INFORMATION);
@ -470,6 +521,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_LONG_TERM_SERVICE);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_MASTER_GUIDE);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_NETWORK_RESOURCE);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_PROGRAM_IDENTIFIER);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_RATING_REGION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_SATELLITE_VIRTUAL_CHANNEL);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_ATSC_SYSTEM_TIME);
@ -484,6 +536,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_CONTAINER);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_CONTENT_IDENTIFIER);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_DISCONTINUITY_INFORMATION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_DOWNLOADABLE_FONT_INFO);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_DSM_CC_ADDRESSABLE_SECTIONS);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_DSM_CC_DOWNLOAD_DATA_MESSAGES);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_DSM_CC_MULTIPROTO_ENCAPSULATED_DATA);
@ -506,6 +559,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_NETWORK_INFORMATION_OTHER_NETWORK);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_PCR_PACKET_PAYLOAD);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_PROGRAM_ASSOCIATION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_PROTECTION_MESSAGE);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_RELATED_CONTENT);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_RESOLUTION_NOTIFICATION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_RUNNING_STATUS);
@ -531,6 +585,7 @@ int main() {
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_TS_DESCRIPTION);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_TS_PROGRAM_MAP);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_UNSET);
PRINT_CONSTANT((gint) GST_MTS_TABLE_ID_UPDATE_NOTIFICATION);
PRINT_CONSTANT((gint) HEARING_IMPAIRED_PAGE);
PRINT_CONSTANT((gint) INITIAL_PAGE);
PRINT_CONSTANT((gint) PROGRAMME_SCHEDULE_PAGE);

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"
@ -9,6 +9,7 @@
int main() {
printf("%s;%zu;%zu\n", "GstMpegtsATSCDescriptorType", sizeof(GstMpegtsATSCDescriptorType), alignof(GstMpegtsATSCDescriptorType));
printf("%s;%zu;%zu\n", "GstMpegtsATSCStreamType", sizeof(GstMpegtsATSCStreamType), alignof(GstMpegtsATSCStreamType));
printf("%s;%zu;%zu\n", "GstMpegtsAtscEIT", sizeof(GstMpegtsAtscEIT), alignof(GstMpegtsAtscEIT));
printf("%s;%zu;%zu\n", "GstMpegtsAtscEITEvent", sizeof(GstMpegtsAtscEITEvent), alignof(GstMpegtsAtscEITEvent));
printf("%s;%zu;%zu\n", "GstMpegtsAtscETT", sizeof(GstMpegtsAtscETT), alignof(GstMpegtsAtscETT));
@ -23,6 +24,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstMpegtsAtscStringSegment", sizeof(GstMpegtsAtscStringSegment), alignof(GstMpegtsAtscStringSegment));
printf("%s;%zu;%zu\n", "GstMpegtsAtscVCT", sizeof(GstMpegtsAtscVCT), alignof(GstMpegtsAtscVCT));
printf("%s;%zu;%zu\n", "GstMpegtsAtscVCTSource", sizeof(GstMpegtsAtscVCTSource), alignof(GstMpegtsAtscVCTSource));
printf("%s;%zu;%zu\n", "GstMpegtsAudioPreselectionDescriptor", sizeof(GstMpegtsAudioPreselectionDescriptor), alignof(GstMpegtsAudioPreselectionDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsBAT", sizeof(GstMpegtsBAT), alignof(GstMpegtsBAT));
printf("%s;%zu;%zu\n", "GstMpegtsBATStream", sizeof(GstMpegtsBATStream), alignof(GstMpegtsBATStream));
printf("%s;%zu;%zu\n", "GstMpegtsCableDeliverySystemDescriptor", sizeof(GstMpegtsCableDeliverySystemDescriptor), alignof(GstMpegtsCableDeliverySystemDescriptor));
@ -56,6 +58,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstMpegtsEITEvent", sizeof(GstMpegtsEITEvent), alignof(GstMpegtsEITEvent));
printf("%s;%zu;%zu\n", "GstMpegtsExtendedEventDescriptor", sizeof(GstMpegtsExtendedEventDescriptor), alignof(GstMpegtsExtendedEventDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsExtendedEventItem", sizeof(GstMpegtsExtendedEventItem), alignof(GstMpegtsExtendedEventItem));
printf("%s;%zu;%zu\n", "GstMpegtsHdmvStreamType", sizeof(GstMpegtsHdmvStreamType), alignof(GstMpegtsHdmvStreamType));
printf("%s;%zu;%zu\n", "GstMpegtsISDBDescriptorType", sizeof(GstMpegtsISDBDescriptorType), alignof(GstMpegtsISDBDescriptorType));
printf("%s;%zu;%zu\n", "GstMpegtsISO639LanguageDescriptor", sizeof(GstMpegtsISO639LanguageDescriptor), alignof(GstMpegtsISO639LanguageDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsIso639AudioType", sizeof(GstMpegtsIso639AudioType), alignof(GstMpegtsIso639AudioType));
@ -68,13 +71,17 @@ int main() {
printf("%s;%zu;%zu\n", "GstMpegtsPMT", sizeof(GstMpegtsPMT), alignof(GstMpegtsPMT));
printf("%s;%zu;%zu\n", "GstMpegtsPMTStream", sizeof(GstMpegtsPMTStream), alignof(GstMpegtsPMTStream));
printf("%s;%zu;%zu\n", "GstMpegtsPatProgram", sizeof(GstMpegtsPatProgram), alignof(GstMpegtsPatProgram));
printf("%s;%zu;%zu\n", "GstMpegtsRegistrationId", sizeof(GstMpegtsRegistrationId), alignof(GstMpegtsRegistrationId));
printf("%s;%zu;%zu\n", "GstMpegtsRunningStatus", sizeof(GstMpegtsRunningStatus), alignof(GstMpegtsRunningStatus));
printf("%s;%zu;%zu\n", "GstMpegtsSCTEDescriptorType", sizeof(GstMpegtsSCTEDescriptorType), alignof(GstMpegtsSCTEDescriptorType));
printf("%s;%zu;%zu\n", "GstMpegtsSCTESIT", sizeof(GstMpegtsSCTESIT), alignof(GstMpegtsSCTESIT));
printf("%s;%zu;%zu\n", "GstMpegtsSCTESpliceCommandType", sizeof(GstMpegtsSCTESpliceCommandType), alignof(GstMpegtsSCTESpliceCommandType));
printf("%s;%zu;%zu\n", "GstMpegtsSCTESpliceDescriptor", sizeof(GstMpegtsSCTESpliceDescriptor), alignof(GstMpegtsSCTESpliceDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsSCTESpliceEvent", sizeof(GstMpegtsSCTESpliceEvent), alignof(GstMpegtsSCTESpliceEvent));
printf("%s;%zu;%zu\n", "GstMpegtsSDT", sizeof(GstMpegtsSDT), alignof(GstMpegtsSDT));
printf("%s;%zu;%zu\n", "GstMpegtsSDTService", sizeof(GstMpegtsSDTService), alignof(GstMpegtsSDTService));
printf("%s;%zu;%zu\n", "GstMpegtsSIT", sizeof(GstMpegtsSIT), alignof(GstMpegtsSIT));
printf("%s;%zu;%zu\n", "GstMpegtsSITService", sizeof(GstMpegtsSITService), alignof(GstMpegtsSITService));
printf("%s;%zu;%zu\n", "GstMpegtsSatelliteDeliverySystemDescriptor", sizeof(GstMpegtsSatelliteDeliverySystemDescriptor), alignof(GstMpegtsSatelliteDeliverySystemDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsSatellitePolarizationType", sizeof(GstMpegtsSatellitePolarizationType), alignof(GstMpegtsSatellitePolarizationType));
printf("%s;%zu;%zu\n", "GstMpegtsSatelliteRolloff", sizeof(GstMpegtsSatelliteRolloff), alignof(GstMpegtsSatelliteRolloff));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_net_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -4,8 +4,23 @@
// DO NOT EDIT
use crate::DiscovererInfo;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::object::Cast;
use glib::object::IsA;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::signal::connect_raw;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use std::mem::transmute;
glib::wrapper! {
#[doc(alias = "GstEncodingProfile")]
@ -66,6 +81,12 @@ pub trait EncodingProfileExt: 'static {
#[doc(alias = "get_description")]
fn description(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_encoding_profile_get_element_properties")]
#[doc(alias = "get_element_properties")]
fn element_properties(&self) -> Option<gst::Structure>;
#[doc(alias = "gst_encoding_profile_get_file_extension")]
#[doc(alias = "get_file_extension")]
fn file_extension(&self) -> Option<glib::GString>;
@ -109,6 +130,14 @@ pub trait EncodingProfileExt: 'static {
#[doc(alias = "gst_encoding_profile_is_equal")]
fn is_equal<P: IsA<EncodingProfile>>(&self, b: &P) -> bool;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "element-properties")]
fn connect_element_properties_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
impl<O: IsA<EncodingProfile>> EncodingProfileExt for O {
@ -138,6 +167,16 @@ impl<O: IsA<EncodingProfile>> EncodingProfileExt for O {
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
fn element_properties(&self) -> Option<gst::Structure> {
unsafe {
from_glib_full(ffi::gst_encoding_profile_get_element_properties(
self.as_ref().to_glib_none().0,
))
}
}
fn file_extension(&self) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::gst_encoding_profile_get_file_extension(
@ -224,4 +263,35 @@ impl<O: IsA<EncodingProfile>> EncodingProfileExt for O {
))
}
}
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "element-properties")]
fn connect_element_properties_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_element_properties_trampoline<
P: IsA<EncodingProfile>,
F: Fn(&P) + Send + Sync + 'static,
>(
this: *mut ffi::GstEncodingProfile,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&EncodingProfile::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::element-properties\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_element_properties_trampoline::<Self, F> as *const (),
)),
Box_::into_raw(f),
)
}
}
}

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -594,6 +594,11 @@ extern "C" {
profile: *mut GstEncodingProfile,
) -> gboolean;
pub fn gst_encoding_profile_get_description(profile: *mut GstEncodingProfile) -> *const c_char;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_encoding_profile_get_element_properties(
self_: *mut GstEncodingProfile,
) -> *mut gst::GstStructure;
pub fn gst_encoding_profile_get_file_extension(
profile: *mut GstEncodingProfile,
) -> *const c_char;
@ -625,6 +630,12 @@ extern "C" {
profile: *mut GstEncodingProfile,
description: *const c_char,
);
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_encoding_profile_set_element_properties(
self_: *mut GstEncodingProfile,
element_properties: *mut gst::GstStructure,
);
pub fn gst_encoding_profile_set_enabled(profile: *mut GstEncodingProfile, enabled: gboolean);
pub fn gst_encoding_profile_set_format(
profile: *mut GstEncodingProfile,

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_pbutils_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -10,6 +10,7 @@ use crate::PlayerSnapshotFormat;
use crate::PlayerState;
use crate::PlayerSubtitleInfo;
use crate::PlayerVideoInfo;
use crate::PlayerVideoRenderer;
use crate::PlayerVisualization;
use glib::object::ObjectType as ObjectType_;
use glib::signal::connect_raw;
@ -428,6 +429,22 @@ impl Player {
}
}
#[doc(alias = "video-renderer")]
pub fn video_renderer(&self) -> Option<PlayerVideoRenderer> {
unsafe {
let mut value =
glib::Value::from_type(<PlayerVideoRenderer as StaticType>::static_type());
glib::gobject_ffi::g_object_get_property(
self.as_ptr() as *mut glib::gobject_ffi::GObject,
b"video-renderer\0".as_ptr() as *const _,
value.to_glib_none_mut().0,
);
value
.get()
.expect("Return Value for property `video-renderer` getter")
}
}
#[doc(alias = "gst_player_get_audio_streams")]
#[doc(alias = "get_audio_streams")]
pub fn audio_streams(info: &PlayerMediaInfo) -> Vec<PlayerAudioInfo> {
@ -1127,6 +1144,34 @@ impl Player {
}
}
#[doc(alias = "video-renderer")]
pub fn connect_video_renderer_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn notify_video_renderer_trampoline<
F: Fn(&Player) + Send + Sync + 'static,
>(
this: *mut ffi::GstPlayer,
_param_spec: glib::ffi::gpointer,
f: glib::ffi::gpointer,
) {
let f: &F = &*(f as *const F);
f(&from_glib_borrow(this))
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::video-renderer\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(
notify_video_renderer_trampoline::<F> as *const (),
)),
Box_::into_raw(f),
)
}
}
#[doc(alias = "volume")]
pub fn connect_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
use gstreamer_player_sys::*;

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,6 +1,6 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 7225f48)
// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 85bd06b)
// DO NOT EDIT
#include "manual.h"

View file

@ -10,6 +10,15 @@ pub static RTP_HDREXT_BASE: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(ffi::GST_RTP_HDREXT_BASE).to_str().unwrap()
});
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_RTP_HDREXT_ELEMENT_CLASS")]
pub static RTP_HDREXT_ELEMENT_CLASS: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(ffi::GST_RTP_HDREXT_ELEMENT_CLASS)
.to_str()
.unwrap()
});
#[doc(alias = "GST_RTP_HDREXT_NTP_56")]
pub static RTP_HDREXT_NTP_56: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
@ -20,6 +29,15 @@ pub static RTP_HDREXT_NTP_64: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(ffi::GST_RTP_HDREXT_NTP_64).to_str().unwrap()
});
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY")]
pub static RTP_HEADER_EXTENSION_URI_METADATA_KEY: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(ffi::GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY)
.to_str()
.unwrap()
});
#[doc(alias = "GST_RTP_PAYLOAD_1016_STRING")]
pub static RTP_PAYLOAD_1016_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {

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