Regenerate with latest GStreamer gir files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1244>
This commit is contained in:
Sebastian Dröge 2023-04-06 21:11:32 +03:00
parent a11e5cfd75
commit 03d046daba
72 changed files with 518 additions and 78 deletions

View file

@ -0,0 +1,60 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use glib::{prelude::*, translate::*};
glib::wrapper! {
#[doc(alias = "GstDRMDumbAllocator")]
pub struct DRMDumbAllocator(Object<ffi::GstDRMDumbAllocator, ffi::GstDRMDumbAllocatorClass>) @extends gst::Allocator;
match fn {
type_ => || ffi::gst_drm_dumb_allocator_get_type(),
}
}
impl DRMDumbAllocator {
#[doc(alias = "gst_drm_dumb_allocator_new_with_device_path")]
#[doc(alias = "new_with_device_path")]
pub fn with_device_path(
drm_device_path: impl AsRef<std::path::Path>,
) -> Result<DRMDumbAllocator, glib::BoolError> {
assert_initialized_main_thread!();
unsafe {
Option::<gst::Allocator>::from_glib_full(
ffi::gst_drm_dumb_allocator_new_with_device_path(
drm_device_path.as_ref().to_glib_none().0,
),
)
.map(|o| o.unsafe_cast())
.ok_or_else(|| glib::bool_error!("Failed to create allocator"))
}
}
#[doc(alias = "gst_drm_dumb_allocator_has_prime_export")]
pub fn has_prime_export(&self) -> bool {
unsafe {
from_glib(ffi::gst_drm_dumb_allocator_has_prime_export(
self.to_glib_none().0,
))
}
}
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
#[doc(alias = "drm-device-path")]
pub fn drm_device_path(&self) -> Option<std::path::PathBuf> {
glib::ObjectExt::property(self, "drm-device-path")
}
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
#[doc(alias = "drm-fd")]
pub fn drm_fd(&self) -> i32 {
glib::ObjectExt::property(self, "drm-fd")
}
}
unsafe impl Send for DRMDumbAllocator {}
unsafe impl Sync for DRMDumbAllocator {}

View file

@ -3,6 +3,17 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(target_os = "linux", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
mod drm_dumb_allocator;
#[cfg(any(target_os = "linux", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub use self::drm_dumb_allocator::DRMDumbAllocator;
#[cfg(any(target_os = "linux", feature = "dox"))] #[cfg(any(target_os = "linux", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] #[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
mod dma_buf_allocator; mod dma_buf_allocator;

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -34,6 +34,20 @@ pub const GST_FD_MEMORY_FLAG_MAP_PRIVATE: GstFdMemoryFlags = 2;
pub const GST_FD_MEMORY_FLAG_DONT_CLOSE: GstFdMemoryFlags = 4; pub const GST_FD_MEMORY_FLAG_DONT_CLOSE: GstFdMemoryFlags = 4;
// Records // Records
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstDRMDumbAllocatorClass {
pub parent_class: gst::GstAllocatorClass,
}
impl ::std::fmt::Debug for GstDRMDumbAllocatorClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDRMDumbAllocatorClass @ {self:p}"))
.field("parent_class", &self.parent_class)
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstDmaBufAllocatorClass { pub struct GstDmaBufAllocatorClass {
@ -80,6 +94,19 @@ impl ::std::fmt::Debug for GstPhysMemoryAllocatorInterface {
} }
// Classes // Classes
#[repr(C)]
pub struct GstDRMDumbAllocator {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GstDRMDumbAllocator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstDRMDumbAllocator @ {self:p}"))
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstDmaBufAllocator { pub struct GstDmaBufAllocator {
@ -125,6 +152,34 @@ impl ::std::fmt::Debug for GstPhysMemoryAllocator {
#[link(name = "gstallocators-1.0")] #[link(name = "gstallocators-1.0")]
extern "C" { extern "C" {
//=========================================================================
// GstDRMDumbAllocator
//=========================================================================
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_allocator_get_type() -> GType;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_allocator_new_with_device_path(
drm_device_path: *const c_char,
) -> *mut gst::GstAllocator;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_allocator_new_with_fd(drm_fd: c_int) -> *mut gst::GstAllocator;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_allocator_alloc(
allocator: *mut GstDRMDumbAllocator,
drm_fourcc: u32,
width: u32,
height: u32,
out_pitch: *mut u32,
) -> *mut gst::GstMemory;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_allocator_has_prime_export(allocator: *mut GstDRMDumbAllocator)
-> gboolean;
//========================================================================= //=========================================================================
// GstDmaBufAllocator // GstDmaBufAllocator
//========================================================================= //=========================================================================
@ -165,8 +220,17 @@ extern "C" {
// Other functions // Other functions
//========================================================================= //=========================================================================
pub fn gst_dmabuf_memory_get_fd(mem: *mut gst::GstMemory) -> c_int; pub fn gst_dmabuf_memory_get_fd(mem: *mut gst::GstMemory) -> c_int;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_memory_export_dmabuf(mem: *mut gst::GstMemory) -> *mut gst::GstMemory;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_drm_dumb_memory_get_handle(mem: *mut gst::GstMemory) -> u32;
pub fn gst_fd_memory_get_fd(mem: *mut gst::GstMemory) -> c_int; pub fn gst_fd_memory_get_fd(mem: *mut gst::GstMemory) -> c_int;
pub fn gst_is_dmabuf_memory(mem: *mut gst::GstMemory) -> gboolean; pub fn gst_is_dmabuf_memory(mem: *mut gst::GstMemory) -> gboolean;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_is_drm_dumb_memory(mem: *mut gst::GstMemory) -> gboolean;
pub fn gst_is_fd_memory(mem: *mut gst::GstMemory) -> gboolean; pub fn gst_is_fd_memory(mem: *mut gst::GstMemory) -> gboolean;
pub fn gst_is_phys_memory(mem: *mut gst::GstMemory) -> gboolean; pub fn gst_is_phys_memory(mem: *mut gst::GstMemory) -> gboolean;
pub fn gst_phys_memory_get_phys_addr(mem: *mut gst::GstMemory) -> uintptr_t; pub fn gst_phys_memory_get_phys_addr(mem: *mut gst::GstMemory) -> uintptr_t;

View file

@ -198,6 +198,13 @@ fn get_c_output(name: &str) -> Result<String, Box<dyn Error>> {
} }
const RUST_LAYOUTS: &[(&str, Layout)] = &[ const RUST_LAYOUTS: &[(&str, Layout)] = &[
(
"GstDRMDumbAllocatorClass",
Layout {
size: size_of::<GstDRMDumbAllocatorClass>(),
alignment: align_of::<GstDRMDumbAllocatorClass>(),
},
),
( (
"GstDmaBufAllocator", "GstDmaBufAllocator",
Layout { Layout {

View file

@ -8,6 +8,7 @@
#include <stdio.h> #include <stdio.h>
int main() { int main() {
printf("%s;%zu;%zu\n", "GstDRMDumbAllocatorClass", sizeof(GstDRMDumbAllocatorClass), alignof(GstDRMDumbAllocatorClass));
printf("%s;%zu;%zu\n", "GstDmaBufAllocator", sizeof(GstDmaBufAllocator), alignof(GstDmaBufAllocator)); printf("%s;%zu;%zu\n", "GstDmaBufAllocator", sizeof(GstDmaBufAllocator), alignof(GstDmaBufAllocator));
printf("%s;%zu;%zu\n", "GstDmaBufAllocatorClass", sizeof(GstDmaBufAllocatorClass), alignof(GstDmaBufAllocatorClass)); printf("%s;%zu;%zu\n", "GstDmaBufAllocatorClass", sizeof(GstDmaBufAllocatorClass), alignof(GstDmaBufAllocatorClass));
printf("%s;%zu;%zu\n", "GstFdAllocator", sizeof(GstFdAllocator), alignof(GstFdAllocator)); printf("%s;%zu;%zu\n", "GstFdAllocator", sizeof(GstFdAllocator), alignof(GstFdAllocator));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -40,7 +40,9 @@ pub struct GstAppSinkCallbacks {
pub new_preroll: Option<unsafe extern "C" fn(*mut GstAppSink, gpointer) -> gst::GstFlowReturn>, pub new_preroll: Option<unsafe extern "C" fn(*mut GstAppSink, gpointer) -> gst::GstFlowReturn>,
pub new_sample: Option<unsafe extern "C" fn(*mut GstAppSink, gpointer) -> gst::GstFlowReturn>, pub new_sample: Option<unsafe extern "C" fn(*mut GstAppSink, gpointer) -> gst::GstFlowReturn>,
pub new_event: Option<unsafe extern "C" fn(*mut GstAppSink, gpointer) -> gboolean>, pub new_event: Option<unsafe extern "C" fn(*mut GstAppSink, gpointer) -> gboolean>,
pub _gst_reserved: [gpointer; 3], pub propose_allocation:
Option<unsafe extern "C" fn(*mut GstAppSink, *mut gst::GstQuery, gpointer) -> gboolean>,
pub _gst_reserved: [gpointer; 2],
} }
impl ::std::fmt::Debug for GstAppSinkCallbacks { impl ::std::fmt::Debug for GstAppSinkCallbacks {
@ -50,6 +52,7 @@ impl ::std::fmt::Debug for GstAppSinkCallbacks {
.field("new_preroll", &self.new_preroll) .field("new_preroll", &self.new_preroll)
.field("new_sample", &self.new_sample) .field("new_sample", &self.new_sample)
.field("new_event", &self.new_event) .field("new_event", &self.new_event)
.field("propose_allocation", &self.propose_allocation)
.finish() .finish()
} }
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -56,6 +56,16 @@ pub trait BaseSrcExt: 'static {
#[doc(alias = "gst_base_src_new_seamless_segment")] #[doc(alias = "gst_base_src_new_seamless_segment")]
fn new_seamless_segment(&self, start: i64, stop: i64, time: i64) -> bool; fn new_seamless_segment(&self, start: i64, stop: i64, time: i64) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_base_src_new_segment")]
fn new_segment(&self, segment: &gst::Segment) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_base_src_push_segment")]
fn push_segment(&self, segment: &gst::Segment) -> bool;
#[doc(alias = "gst_base_src_set_async")] #[doc(alias = "gst_base_src_set_async")]
fn set_async(&self, async_: bool); fn set_async(&self, async_: bool);
@ -171,6 +181,31 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn new_segment(&self, segment: &gst::Segment) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
ffi::gst_base_src_new_segment(
self.as_ref().to_glib_none().0,
segment.to_glib_none().0
),
"Failed to update segment"
)
}
}
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
fn push_segment(&self, segment: &gst::Segment) -> bool {
unsafe {
from_glib(ffi::gst_base_src_push_segment(
self.as_ref().to_glib_none().0,
segment.to_glib_none().0,
))
}
}
fn set_async(&self, async_: bool) { fn set_async(&self, async_: bool) {
unsafe { unsafe {
ffi::gst_base_src_set_async(self.as_ref().to_glib_none().0, async_.into_glib()); ffi::gst_base_src_set_async(self.as_ref().to_glib_none().0, async_.into_glib());

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -2058,6 +2058,12 @@ extern "C" {
src: *mut GstBaseSrc, src: *mut GstBaseSrc,
segment: *const gst::GstSegment, segment: *const gst::GstSegment,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_base_src_push_segment(
src: *mut GstBaseSrc,
segment: *const gst::GstSegment,
) -> gboolean;
pub fn gst_base_src_query_latency( pub fn gst_base_src_query_latency(
src: *mut GstBaseSrc, src: *mut GstBaseSrc,
live: *mut gboolean, live: *mut gboolean,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -2157,6 +2157,14 @@ extern "C" {
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> gboolean; ) -> gboolean;
pub fn gst_gl_display_create_window(display: *mut GstGLDisplay) -> *mut GstGLWindow; pub fn gst_gl_display_create_window(display: *mut GstGLDisplay) -> *mut GstGLWindow;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_gl_display_ensure_context(
display: *mut GstGLDisplay,
other_context: *mut GstGLContext,
context: *mut *mut GstGLContext,
error: *mut *mut glib::GError,
) -> gboolean;
pub fn gst_gl_display_filter_gl_api(display: *mut GstGLDisplay, gl_api: GstGLAPI); pub fn gst_gl_display_filter_gl_api(display: *mut GstGLDisplay, gl_api: GstGLAPI);
pub fn gst_gl_display_find_window( pub fn gst_gl_display_find_window(
display: *mut GstGLDisplay, display: *mut GstGLDisplay,

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -377,6 +377,20 @@ pub const GST_MPEGTS_AUDIO_TYPE_CLEAN_EFFECTS: GstMpegtsIso639AudioType = 1;
pub const GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED: GstMpegtsIso639AudioType = 2; pub const GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED: GstMpegtsIso639AudioType = 2;
pub const GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY: GstMpegtsIso639AudioType = 3; pub const GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY: GstMpegtsIso639AudioType = 3;
pub type GstMpegtsMetadataFormat = c_int;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub const GST_MPEGTS_METADATA_FORMAT_TEM: GstMpegtsMetadataFormat = 16;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub const GST_MPEGTS_METADATA_FORMAT_BIM: GstMpegtsMetadataFormat = 17;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub const GST_MPEGTS_METADATA_FORMAT_APPLICATION_FORMAT: GstMpegtsMetadataFormat = 63;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub const GST_MPEGTS_METADATA_FORMAT_IDENTIFIER_FIELD: GstMpegtsMetadataFormat = 255;
pub type GstMpegtsMiscDescriptorType = c_int; pub type GstMpegtsMiscDescriptorType = c_int;
pub const GST_MTS_DESC_DTG_LOGICAL_CHANNEL: GstMpegtsMiscDescriptorType = 131; pub const GST_MTS_DESC_DTG_LOGICAL_CHANNEL: GstMpegtsMiscDescriptorType = 131;
@ -1504,6 +1518,36 @@ impl ::std::fmt::Debug for GstMpegtsLogicalChannelDescriptor {
} }
} }
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstMpegtsMetadataDescriptor {
pub metadata_application_format: u16,
pub metadata_format: GstMpegtsMetadataFormat,
pub metadata_format_identifier: u32,
pub metadata_service_id: u8,
pub decoder_config_flags: u8,
pub dsm_cc_flag: gboolean,
}
impl ::std::fmt::Debug for GstMpegtsMetadataDescriptor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsMetadataDescriptor @ {self:p}"))
.field(
"metadata_application_format",
&self.metadata_application_format,
)
.field("metadata_format", &self.metadata_format)
.field(
"metadata_format_identifier",
&self.metadata_format_identifier,
)
.field("metadata_service_id", &self.metadata_service_id)
.field("decoder_config_flags", &self.decoder_config_flags)
.field("dsm_cc_flag", &self.dsm_cc_flag)
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstMpegtsNIT { pub struct GstMpegtsNIT {
@ -1542,6 +1586,24 @@ impl ::std::fmt::Debug for GstMpegtsNITStream {
} }
} }
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstMpegtsPESMetadataMeta {
pub meta: gst::GstMeta,
pub metadata_service_id: u8,
pub flags: u8,
}
impl ::std::fmt::Debug for GstMpegtsPESMetadataMeta {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstMpegtsPESMetadataMeta @ {self:p}"))
.field("meta", &self.meta)
.field("metadata_service_id", &self.metadata_service_id)
.field("flags", &self.flags)
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstMpegtsPMT { pub struct GstMpegtsPMT {
@ -2318,6 +2380,20 @@ extern "C" {
descriptor: *const GstMpegtsDescriptor, descriptor: *const GstMpegtsDescriptor,
res: *mut GstMpegtsLogicalChannelDescriptor, res: *mut GstMpegtsLogicalChannelDescriptor,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_mpegts_descriptor_parse_metadata(
descriptor: *const GstMpegtsDescriptor,
res: *mut *mut GstMpegtsMetadataDescriptor,
) -> gboolean;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_mpegts_descriptor_parse_metadata_std(
descriptor: *const GstMpegtsDescriptor,
metadata_input_leak_rate: *mut u32,
metadata_buffer_size: *mut u32,
metadata_output_leak_rate: *mut u32,
) -> gboolean;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_descriptor_parse_registration( pub fn gst_mpegts_descriptor_parse_registration(
@ -2439,6 +2515,13 @@ extern "C" {
//========================================================================= //=========================================================================
pub fn gst_mpegts_logical_channel_descriptor_get_type() -> GType; pub fn gst_mpegts_logical_channel_descriptor_get_type() -> GType;
//=========================================================================
// GstMpegtsMetadataDescriptor
//=========================================================================
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_mpegts_metadata_descriptor_get_type() -> GType;
//========================================================================= //=========================================================================
// GstMpegtsNIT // GstMpegtsNIT
//========================================================================= //=========================================================================
@ -2451,6 +2534,13 @@ extern "C" {
pub fn gst_mpegts_nit_stream_get_type() -> GType; pub fn gst_mpegts_nit_stream_get_type() -> GType;
pub fn gst_mpegts_nit_stream_new() -> *mut GstMpegtsNITStream; pub fn gst_mpegts_nit_stream_new() -> *mut GstMpegtsNITStream;
//=========================================================================
// GstMpegtsPESMetadataMeta
//=========================================================================
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_mpegts_pes_metadata_meta_get_info() -> *const gst::GstMetaInfo;
//========================================================================= //=========================================================================
// GstMpegtsPMT // GstMpegtsPMT
//========================================================================= //=========================================================================
@ -2641,6 +2731,11 @@ extern "C" {
//========================================================================= //=========================================================================
// Other functions // Other functions
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_buffer_add_mpegts_pes_metadata_meta(
buffer: *mut gst::GstBuffer,
) -> *mut GstMpegtsPESMetadataMeta;
pub fn gst_mpegts_dvb_component_descriptor_free(source: *mut GstMpegtsComponentDescriptor); pub fn gst_mpegts_dvb_component_descriptor_free(source: *mut GstMpegtsComponentDescriptor);
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
@ -2666,6 +2761,9 @@ extern "C" {
-> *mut GstMpegtsSection; -> *mut GstMpegtsSection;
pub fn gst_mpegts_parse_descriptors(buffer: *mut u8, buf_len: size_t) -> *mut glib::GPtrArray; pub fn gst_mpegts_parse_descriptors(buffer: *mut u8, buf_len: size_t) -> *mut glib::GPtrArray;
pub fn gst_mpegts_pat_new() -> *mut glib::GPtrArray; pub fn gst_mpegts_pat_new() -> *mut glib::GPtrArray;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_mpegts_pes_metadata_meta_api_get_type() -> GType;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
pub fn gst_mpegts_scte_cancel_new(event_id: u32) -> *mut GstMpegtsSCTESIT; pub fn gst_mpegts_scte_cancel_new(event_id: u32) -> *mut GstMpegtsSCTESIT;

View file

@ -590,6 +590,20 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsLogicalChannelDescriptor>(), alignment: align_of::<GstMpegtsLogicalChannelDescriptor>(),
}, },
), ),
(
"GstMpegtsMetadataDescriptor",
Layout {
size: size_of::<GstMpegtsMetadataDescriptor>(),
alignment: align_of::<GstMpegtsMetadataDescriptor>(),
},
),
(
"GstMpegtsMetadataFormat",
Layout {
size: size_of::<GstMpegtsMetadataFormat>(),
alignment: align_of::<GstMpegtsMetadataFormat>(),
},
),
( (
"GstMpegtsMiscDescriptorType", "GstMpegtsMiscDescriptorType",
Layout { Layout {
@ -618,6 +632,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstMpegtsNITStream>(), alignment: align_of::<GstMpegtsNITStream>(),
}, },
), ),
(
"GstMpegtsPESMetadataMeta",
Layout {
size: size_of::<GstMpegtsPESMetadataMeta>(),
alignment: align_of::<GstMpegtsPESMetadataMeta>(),
},
),
( (
"GstMpegtsPMT", "GstMpegtsPMT",
Layout { Layout {
@ -1012,6 +1033,10 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GST_MPEGTS_HIERARCHY_4", "3"), ("(gint) GST_MPEGTS_HIERARCHY_4", "3"),
("(gint) GST_MPEGTS_HIERARCHY_AUTO", "4"), ("(gint) GST_MPEGTS_HIERARCHY_AUTO", "4"),
("(gint) GST_MPEGTS_HIERARCHY_NONE", "0"), ("(gint) GST_MPEGTS_HIERARCHY_NONE", "0"),
("(gint) GST_MPEGTS_METADATA_FORMAT_APPLICATION_FORMAT", "63"),
("(gint) GST_MPEGTS_METADATA_FORMAT_BIM", "17"),
("(gint) GST_MPEGTS_METADATA_FORMAT_IDENTIFIER_FIELD", "255"),
("(gint) GST_MPEGTS_METADATA_FORMAT_TEM", "16"),
("(gint) GST_MPEGTS_MODULATION_APSK_16", "10"), ("(gint) GST_MPEGTS_MODULATION_APSK_16", "10"),
("(gint) GST_MPEGTS_MODULATION_APSK_32", "11"), ("(gint) GST_MPEGTS_MODULATION_APSK_32", "11"),
("(gint) GST_MPEGTS_MODULATION_DQPSK", "12"), ("(gint) GST_MPEGTS_MODULATION_DQPSK", "12"),

View file

@ -137,6 +137,10 @@ int main() {
PRINT_CONSTANT((gint) GST_MPEGTS_HIERARCHY_4); PRINT_CONSTANT((gint) GST_MPEGTS_HIERARCHY_4);
PRINT_CONSTANT((gint) GST_MPEGTS_HIERARCHY_AUTO); PRINT_CONSTANT((gint) GST_MPEGTS_HIERARCHY_AUTO);
PRINT_CONSTANT((gint) GST_MPEGTS_HIERARCHY_NONE); PRINT_CONSTANT((gint) GST_MPEGTS_HIERARCHY_NONE);
PRINT_CONSTANT((gint) GST_MPEGTS_METADATA_FORMAT_APPLICATION_FORMAT);
PRINT_CONSTANT((gint) GST_MPEGTS_METADATA_FORMAT_BIM);
PRINT_CONSTANT((gint) GST_MPEGTS_METADATA_FORMAT_IDENTIFIER_FIELD);
PRINT_CONSTANT((gint) GST_MPEGTS_METADATA_FORMAT_TEM);
PRINT_CONSTANT((gint) GST_MPEGTS_MODULATION_APSK_16); PRINT_CONSTANT((gint) GST_MPEGTS_MODULATION_APSK_16);
PRINT_CONSTANT((gint) GST_MPEGTS_MODULATION_APSK_32); PRINT_CONSTANT((gint) GST_MPEGTS_MODULATION_APSK_32);
PRINT_CONSTANT((gint) GST_MPEGTS_MODULATION_DQPSK); PRINT_CONSTANT((gint) GST_MPEGTS_MODULATION_DQPSK);

View file

@ -64,10 +64,13 @@ int main() {
printf("%s;%zu;%zu\n", "GstMpegtsIso639AudioType", sizeof(GstMpegtsIso639AudioType), alignof(GstMpegtsIso639AudioType)); printf("%s;%zu;%zu\n", "GstMpegtsIso639AudioType", sizeof(GstMpegtsIso639AudioType), alignof(GstMpegtsIso639AudioType));
printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannel", sizeof(GstMpegtsLogicalChannel), alignof(GstMpegtsLogicalChannel)); printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannel", sizeof(GstMpegtsLogicalChannel), alignof(GstMpegtsLogicalChannel));
printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannelDescriptor", sizeof(GstMpegtsLogicalChannelDescriptor), alignof(GstMpegtsLogicalChannelDescriptor)); printf("%s;%zu;%zu\n", "GstMpegtsLogicalChannelDescriptor", sizeof(GstMpegtsLogicalChannelDescriptor), alignof(GstMpegtsLogicalChannelDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsMetadataDescriptor", sizeof(GstMpegtsMetadataDescriptor), alignof(GstMpegtsMetadataDescriptor));
printf("%s;%zu;%zu\n", "GstMpegtsMetadataFormat", sizeof(GstMpegtsMetadataFormat), alignof(GstMpegtsMetadataFormat));
printf("%s;%zu;%zu\n", "GstMpegtsMiscDescriptorType", sizeof(GstMpegtsMiscDescriptorType), alignof(GstMpegtsMiscDescriptorType)); printf("%s;%zu;%zu\n", "GstMpegtsMiscDescriptorType", sizeof(GstMpegtsMiscDescriptorType), alignof(GstMpegtsMiscDescriptorType));
printf("%s;%zu;%zu\n", "GstMpegtsModulationType", sizeof(GstMpegtsModulationType), alignof(GstMpegtsModulationType)); printf("%s;%zu;%zu\n", "GstMpegtsModulationType", sizeof(GstMpegtsModulationType), alignof(GstMpegtsModulationType));
printf("%s;%zu;%zu\n", "GstMpegtsNIT", sizeof(GstMpegtsNIT), alignof(GstMpegtsNIT)); printf("%s;%zu;%zu\n", "GstMpegtsNIT", sizeof(GstMpegtsNIT), alignof(GstMpegtsNIT));
printf("%s;%zu;%zu\n", "GstMpegtsNITStream", sizeof(GstMpegtsNITStream), alignof(GstMpegtsNITStream)); printf("%s;%zu;%zu\n", "GstMpegtsNITStream", sizeof(GstMpegtsNITStream), alignof(GstMpegtsNITStream));
printf("%s;%zu;%zu\n", "GstMpegtsPESMetadataMeta", sizeof(GstMpegtsPESMetadataMeta), alignof(GstMpegtsPESMetadataMeta));
printf("%s;%zu;%zu\n", "GstMpegtsPMT", sizeof(GstMpegtsPMT), alignof(GstMpegtsPMT)); 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", "GstMpegtsPMTStream", sizeof(GstMpegtsPMTStream), alignof(GstMpegtsPMTStream));
printf("%s;%zu;%zu\n", "GstMpegtsPatProgram", sizeof(GstMpegtsPatProgram), alignof(GstMpegtsPatProgram)); printf("%s;%zu;%zu\n", "GstMpegtsPatProgram", sizeof(GstMpegtsPatProgram), alignof(GstMpegtsPatProgram));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1069,6 +1069,19 @@ extern "C" {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_rtsp_message_has_body_buffer(msg: *const GstRTSPMessage) -> gboolean; pub fn gst_rtsp_message_has_body_buffer(msg: *const GstRTSPMessage) -> gboolean;
pub fn gst_rtsp_message_init(msg: *mut GstRTSPMessage) -> GstRTSPResult;
pub fn gst_rtsp_message_init_data(msg: *mut GstRTSPMessage, channel: u8) -> GstRTSPResult;
pub fn gst_rtsp_message_init_request(
msg: *mut GstRTSPMessage,
method: GstRTSPMethod,
uri: *const c_char,
) -> GstRTSPResult;
pub fn gst_rtsp_message_init_response(
msg: *mut GstRTSPMessage,
code: GstRTSPStatusCode,
reason: *const c_char,
request: *const GstRTSPMessage,
) -> GstRTSPResult;
pub fn gst_rtsp_message_parse_auth_credentials( pub fn gst_rtsp_message_parse_auth_credentials(
msg: *mut GstRTSPMessage, msg: *mut GstRTSPMessage,
field: GstRTSPHeaderField, field: GstRTSPHeaderField,
@ -1335,19 +1348,6 @@ extern "C" {
) -> *mut c_char; ) -> *mut c_char;
pub fn gst_rtsp_header_allow_multiple(field: GstRTSPHeaderField) -> gboolean; pub fn gst_rtsp_header_allow_multiple(field: GstRTSPHeaderField) -> gboolean;
pub fn gst_rtsp_header_as_text(field: GstRTSPHeaderField) -> *const c_char; pub fn gst_rtsp_header_as_text(field: GstRTSPHeaderField) -> *const c_char;
pub fn gst_rtsp_message_init(msg: *mut GstRTSPMessage) -> GstRTSPResult;
pub fn gst_rtsp_message_init_data(msg: *mut GstRTSPMessage, channel: u8) -> GstRTSPResult;
pub fn gst_rtsp_message_init_request(
msg: *mut GstRTSPMessage,
method: GstRTSPMethod,
uri: *const c_char,
) -> GstRTSPResult;
pub fn gst_rtsp_message_init_response(
msg: *mut GstRTSPMessage,
code: GstRTSPStatusCode,
reason: *const c_char,
request: *const GstRTSPMessage,
) -> GstRTSPResult;
pub fn gst_rtsp_message_new(msg: *mut *mut GstRTSPMessage) -> GstRTSPResult; pub fn gst_rtsp_message_new(msg: *mut *mut GstRTSPMessage) -> GstRTSPResult;
pub fn gst_rtsp_message_new_data(msg: *mut *mut GstRTSPMessage, channel: u8) -> GstRTSPResult; pub fn gst_rtsp_message_new_data(msg: *mut *mut GstRTSPMessage, channel: u8) -> GstRTSPResult;
pub fn gst_rtsp_message_new_request( pub fn gst_rtsp_message_new_request(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1677,6 +1677,25 @@ impl ::std::fmt::Debug for GstVideoInfo {
} }
} }
#[derive(Copy, Clone)]
#[repr(C)]
pub struct GstVideoInfoDmaDrm {
pub vinfo: GstVideoInfo,
pub drm_fourcc: u32,
pub drm_modifier: u64,
pub _gst_reserved: [u32; 20],
}
impl ::std::fmt::Debug for GstVideoInfoDmaDrm {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstVideoInfoDmaDrm @ {self:p}"))
.field("vinfo", &self.vinfo)
.field("drm_fourcc", &self.drm_fourcc)
.field("drm_modifier", &self.drm_modifier)
.finish()
}
}
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
#[repr(C)] #[repr(C)]
pub struct GstVideoInfo_ABI_abi { pub struct GstVideoInfo_ABI_abi {
@ -3102,6 +3121,37 @@ extern "C" {
-> gboolean; -> gboolean;
pub fn gst_video_info_init(info: *mut GstVideoInfo); pub fn gst_video_info_init(info: *mut GstVideoInfo);
//=========================================================================
// GstVideoInfoDmaDrm
//=========================================================================
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_get_type() -> GType;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_new() -> *mut GstVideoInfoDmaDrm;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_new_from_caps(
caps: *const gst::GstCaps,
) -> *mut GstVideoInfoDmaDrm;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_free(drm_info: *mut GstVideoInfoDmaDrm);
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_to_caps(drm_info: *const GstVideoInfoDmaDrm)
-> *mut gst::GstCaps;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_from_caps(
drm_info: *mut GstVideoInfoDmaDrm,
caps: *const gst::GstCaps,
) -> gboolean;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_info_dma_drm_init(drm_info: *mut GstVideoInfoDmaDrm);
//========================================================================= //=========================================================================
// GstVideoMasteringDisplayInfo // GstVideoMasteringDisplayInfo
//========================================================================= //=========================================================================
@ -4432,6 +4482,21 @@ extern "C" {
destroy_notify: glib::GDestroyNotify, destroy_notify: glib::GDestroyNotify,
); );
pub fn gst_video_crop_meta_api_get_type() -> GType; pub fn gst_video_crop_meta_api_get_type() -> GType;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_dma_drm_fourcc_from_format(format: GstVideoFormat) -> u32;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_dma_drm_fourcc_from_string(
format_str: *const c_char,
modifier: *mut u64,
) -> u32;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_dma_drm_fourcc_to_format(fourcc: u32) -> GstVideoFormat;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_dma_drm_fourcc_to_string(fourcc: u32, modifier: u64) -> *mut c_char;
pub fn gst_video_event_is_force_key_unit(event: *mut gst::GstEvent) -> gboolean; pub fn gst_video_event_is_force_key_unit(event: *mut gst::GstEvent) -> gboolean;
pub fn gst_video_event_new_downstream_force_key_unit( pub fn gst_video_event_new_downstream_force_key_unit(
timestamp: gst::GstClockTime, timestamp: gst::GstClockTime,
@ -4481,6 +4546,9 @@ extern "C" {
par_n: c_int, par_n: c_int,
par_d: c_int, par_d: c_int,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_video_is_dma_drm_caps(caps: *const gst::GstCaps) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_video_make_raw_caps( pub fn gst_video_make_raw_caps(

View file

@ -695,6 +695,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstVideoInfo>(), alignment: align_of::<GstVideoInfo>(),
}, },
), ),
(
"GstVideoInfoDmaDrm",
Layout {
size: size_of::<GstVideoInfoDmaDrm>(),
alignment: align_of::<GstVideoInfoDmaDrm>(),
},
),
( (
"GstVideoInterlaceMode", "GstVideoInterlaceMode",
Layout { Layout {

View file

@ -79,6 +79,7 @@ int main() {
printf("%s;%zu;%zu\n", "GstVideoGLTextureUploadMeta", sizeof(GstVideoGLTextureUploadMeta), alignof(GstVideoGLTextureUploadMeta)); printf("%s;%zu;%zu\n", "GstVideoGLTextureUploadMeta", sizeof(GstVideoGLTextureUploadMeta), alignof(GstVideoGLTextureUploadMeta));
printf("%s;%zu;%zu\n", "GstVideoGammaMode", sizeof(GstVideoGammaMode), alignof(GstVideoGammaMode)); printf("%s;%zu;%zu\n", "GstVideoGammaMode", sizeof(GstVideoGammaMode), alignof(GstVideoGammaMode));
printf("%s;%zu;%zu\n", "GstVideoInfo", sizeof(GstVideoInfo), alignof(GstVideoInfo)); printf("%s;%zu;%zu\n", "GstVideoInfo", sizeof(GstVideoInfo), alignof(GstVideoInfo));
printf("%s;%zu;%zu\n", "GstVideoInfoDmaDrm", sizeof(GstVideoInfoDmaDrm), alignof(GstVideoInfoDmaDrm));
printf("%s;%zu;%zu\n", "GstVideoInterlaceMode", sizeof(GstVideoInterlaceMode), alignof(GstVideoInterlaceMode)); printf("%s;%zu;%zu\n", "GstVideoInterlaceMode", sizeof(GstVideoInterlaceMode), alignof(GstVideoInterlaceMode));
printf("%s;%zu;%zu\n", "GstVideoMasteringDisplayInfo", sizeof(GstVideoMasteringDisplayInfo), alignof(GstVideoMasteringDisplayInfo)); printf("%s;%zu;%zu\n", "GstVideoMasteringDisplayInfo", sizeof(GstVideoMasteringDisplayInfo), alignof(GstVideoMasteringDisplayInfo));
printf("%s;%zu;%zu\n", "GstVideoMasteringDisplayInfoCoordinates", sizeof(GstVideoMasteringDisplayInfoCoordinates), alignof(GstVideoMasteringDisplayInfoCoordinates)); printf("%s;%zu;%zu\n", "GstVideoMasteringDisplayInfoCoordinates", sizeof(GstVideoMasteringDisplayInfoCoordinates), alignof(GstVideoMasteringDisplayInfoCoordinates));

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -28,9 +28,6 @@ unsafe impl Send for WebRTCICE {}
unsafe impl Sync for WebRTCICE {} unsafe impl Sync for WebRTCICE {}
pub trait WebRTCICEExt: 'static { pub trait WebRTCICEExt: 'static {
#[doc(alias = "gst_webrtc_ice_add_candidate")]
fn add_candidate(&self, stream: &impl IsA<WebRTCICEStream>, candidate: &str);
#[doc(alias = "gst_webrtc_ice_add_stream")] #[doc(alias = "gst_webrtc_ice_add_stream")]
fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream>; fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream>;
@ -162,16 +159,6 @@ pub trait WebRTCICEExt: 'static {
} }
impl<O: IsA<WebRTCICE>> WebRTCICEExt for O { impl<O: IsA<WebRTCICE>> WebRTCICEExt for O {
fn add_candidate(&self, stream: &impl IsA<WebRTCICEStream>, candidate: &str) {
unsafe {
ffi::gst_webrtc_ice_add_candidate(
self.as_ref().to_glib_none().0,
stream.as_ref().to_glib_none().0,
candidate.to_glib_none().0,
);
}
}
fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream> { fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream> {
unsafe { unsafe {
from_glib_full(ffi::gst_webrtc_ice_add_stream( from_glib_full(ffi::gst_webrtc_ice_add_stream(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -222,8 +222,14 @@ pub struct GstWebRTCICEClass {
>, >,
pub gather_candidates: pub gather_candidates:
Option<unsafe extern "C" fn(*mut GstWebRTCICE, *mut GstWebRTCICEStream) -> gboolean>, Option<unsafe extern "C" fn(*mut GstWebRTCICE, *mut GstWebRTCICEStream) -> gboolean>,
pub add_candidate: pub add_candidate: Option<
Option<unsafe extern "C" fn(*mut GstWebRTCICE, *mut GstWebRTCICEStream, *const c_char)>, unsafe extern "C" fn(
*mut GstWebRTCICE,
*mut GstWebRTCICEStream,
*const c_char,
*mut gst::GstPromise,
),
>,
pub set_local_credentials: Option< pub set_local_credentials: Option<
unsafe extern "C" fn( unsafe extern "C" fn(
*mut GstWebRTCICE, *mut GstWebRTCICE,
@ -747,6 +753,7 @@ extern "C" {
ice: *mut GstWebRTCICE, ice: *mut GstWebRTCICE,
stream: *mut GstWebRTCICEStream, stream: *mut GstWebRTCICEStream,
candidate: *const c_char, candidate: *const c_char,
promise: *mut gst::GstPromise,
); );
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(any(feature = "v1_22", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]

View file

@ -74,6 +74,11 @@ pub trait ElementExt: 'static {
#[doc(alias = "gst_element_create_all_pads")] #[doc(alias = "gst_element_create_all_pads")]
fn create_all_pads(&self); fn create_all_pads(&self);
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_element_decorate_stream_id")]
fn decorate_stream_id(&self, stream_id: &str) -> glib::GString;
#[doc(alias = "gst_element_foreach_pad")] #[doc(alias = "gst_element_foreach_pad")]
fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool; fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool;
@ -254,6 +259,17 @@ impl<O: IsA<Element>> ElementExt for O {
} }
} }
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
fn decorate_stream_id(&self, stream_id: &str) -> glib::GString {
unsafe {
from_glib_full(ffi::gst_element_decorate_stream_id(
self.as_ref().to_glib_none().0,
stream_id.to_glib_none().0,
))
}
}
fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool { fn foreach_pad<P: FnMut(&Element, &Pad) -> bool>(&self, func: P) -> bool {
let func_data: P = func; let func_data: P = func;
unsafe extern "C" fn func_func<P: FnMut(&Element, &Pad) -> bool>( unsafe extern "C" fn func_func<P: FnMut(&Element, &Pad) -> bool>(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2) Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 8dd059f42a8d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)

View file

@ -476,6 +476,7 @@ pub const GST_ELEMENT_FACTORY_TYPE_PARSER: GstElementFactoryListType = 64;
pub const GST_ELEMENT_FACTORY_TYPE_PAYLOADER: GstElementFactoryListType = 128; pub const GST_ELEMENT_FACTORY_TYPE_PAYLOADER: GstElementFactoryListType = 128;
pub const GST_ELEMENT_FACTORY_TYPE_SINK: GstElementFactoryListType = 4; pub const GST_ELEMENT_FACTORY_TYPE_SINK: GstElementFactoryListType = 4;
pub const GST_ELEMENT_FACTORY_TYPE_SRC: GstElementFactoryListType = 8; pub const GST_ELEMENT_FACTORY_TYPE_SRC: GstElementFactoryListType = 8;
pub const GST_ELEMENT_FACTORY_TYPE_TIMESTAMPER: GstElementFactoryListType = 8192;
pub const GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER: GstElementFactoryListType = 2814749767106562; pub const GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER: GstElementFactoryListType = 2814749767106562;
pub const GST_ELEMENT_METADATA_AUTHOR: &[u8] = b"author\0"; pub const GST_ELEMENT_METADATA_AUTHOR: &[u8] = b"author\0";
pub const GST_ELEMENT_METADATA_DESCRIPTION: &[u8] = b"description\0"; pub const GST_ELEMENT_METADATA_DESCRIPTION: &[u8] = b"description\0";
@ -6959,6 +6960,12 @@ extern "C" {
pub fn gst_uri_get_port(uri: *const GstUri) -> c_uint; pub fn gst_uri_get_port(uri: *const GstUri) -> c_uint;
pub fn gst_uri_get_query_keys(uri: *const GstUri) -> *mut glib::GList; pub fn gst_uri_get_query_keys(uri: *const GstUri) -> *mut glib::GList;
pub fn gst_uri_get_query_string(uri: *const GstUri) -> *mut c_char; pub fn gst_uri_get_query_string(uri: *const GstUri) -> *mut c_char;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_uri_get_query_string_ordered(
uri: *const GstUri,
keys: *const glib::GList,
) -> *mut c_char;
pub fn gst_uri_get_query_table(uri: *const GstUri) -> *mut glib::GHashTable; pub fn gst_uri_get_query_table(uri: *const GstUri) -> *mut glib::GHashTable;
pub fn gst_uri_get_query_value(uri: *const GstUri, query_key: *const c_char) -> *const c_char; pub fn gst_uri_get_query_value(uri: *const GstUri, query_key: *const c_char) -> *const c_char;
pub fn gst_uri_get_scheme(uri: *const GstUri) -> *const c_char; pub fn gst_uri_get_scheme(uri: *const GstUri) -> *const c_char;
@ -7003,6 +7010,10 @@ extern "C" {
pub fn gst_uri_set_scheme(uri: *mut GstUri, scheme: *const c_char) -> gboolean; pub fn gst_uri_set_scheme(uri: *mut GstUri, scheme: *const c_char) -> gboolean;
pub fn gst_uri_set_userinfo(uri: *mut GstUri, userinfo: *const c_char) -> gboolean; pub fn gst_uri_set_userinfo(uri: *mut GstUri, userinfo: *const c_char) -> gboolean;
pub fn gst_uri_to_string(uri: *const GstUri) -> *mut c_char; pub fn gst_uri_to_string(uri: *const GstUri) -> *mut c_char;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_uri_to_string_with_keys(uri: *const GstUri, keys: *const glib::GList)
-> *mut c_char;
#[cfg(any(feature = "v1_18_3", feature = "dox"))] #[cfg(any(feature = "v1_18_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18_3")))]
pub fn gst_uri_unref(uri: *mut GstUri); pub fn gst_uri_unref(uri: *mut GstUri);
@ -7522,6 +7533,22 @@ extern "C" {
ret: GstStateChangeReturn, ret: GstStateChangeReturn,
) -> GstStateChangeReturn; ) -> GstStateChangeReturn;
pub fn gst_element_create_all_pads(element: *mut GstElement); pub fn gst_element_create_all_pads(element: *mut GstElement);
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_element_decorate_stream_id(
element: *mut GstElement,
stream_id: *const c_char,
) -> *mut c_char;
#[cfg(any(feature = "v1_24", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
pub fn gst_element_decorate_stream_id_printf(
element: *mut GstElement,
format: *const c_char,
...
) -> *mut c_char;
//#[cfg(any(feature = "v1_24", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
//pub fn gst_element_decorate_stream_id_printf_valist(element: *mut GstElement, format: *const c_char, var_args: /*Unimplemented*/va_list) -> *mut c_char;
pub fn gst_element_foreach_pad( pub fn gst_element_foreach_pad(
element: *mut GstElement, element: *mut GstElement,
func: GstElementForeachPadFunc, func: GstElementForeachPadFunc,

View file

@ -1640,6 +1640,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("GST_ELEMENT_FACTORY_TYPE_PAYLOADER", "128"), ("GST_ELEMENT_FACTORY_TYPE_PAYLOADER", "128"),
("GST_ELEMENT_FACTORY_TYPE_SINK", "4"), ("GST_ELEMENT_FACTORY_TYPE_SINK", "4"),
("GST_ELEMENT_FACTORY_TYPE_SRC", "8"), ("GST_ELEMENT_FACTORY_TYPE_SRC", "8"),
("GST_ELEMENT_FACTORY_TYPE_TIMESTAMPER", "8192"),
("GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER", "2814749767106562"), ("GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER", "2814749767106562"),
("(guint) GST_ELEMENT_FLAG_INDEXABLE", "512"), ("(guint) GST_ELEMENT_FLAG_INDEXABLE", "512"),
("(guint) GST_ELEMENT_FLAG_LAST", "16384"), ("(guint) GST_ELEMENT_FLAG_LAST", "16384"),

View file

@ -189,6 +189,7 @@ int main() {
PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_PAYLOADER); PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_PAYLOADER);
PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_SINK); PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_SINK);
PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_SRC); PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_SRC);
PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_TIMESTAMPER);
PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER); PRINT_CONSTANT(GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER);
PRINT_CONSTANT((guint) GST_ELEMENT_FLAG_INDEXABLE); PRINT_CONSTANT((guint) GST_ELEMENT_FLAG_INDEXABLE);
PRINT_CONSTANT((guint) GST_ELEMENT_FLAG_LAST); PRINT_CONSTANT((guint) GST_ELEMENT_FLAG_LAST);