forked from mirrors/gstreamer-rs
Regenerate with latest gir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1256>
This commit is contained in:
parent
5a24f2d9db
commit
40578ae7e9
223 changed files with 4007 additions and 4007 deletions
|
@ -41,15 +41,15 @@ impl DRMDumbAllocator {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_24", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
#[doc(alias = "drm-fd")]
|
||||
pub fn drm_fd(&self) -> i32 {
|
||||
glib::ObjectExt::property(self, "drm-fd")
|
||||
|
|
|
@ -3,22 +3,22 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// 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")))]
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub use self::drm_dumb_allocator::DRMDumbAllocator;
|
||||
|
||||
#[cfg(any(target_os = "linux", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
mod dma_buf_allocator;
|
||||
#[cfg(any(target_os = "linux", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
pub use self::dma_buf_allocator::DmaBufAllocator;
|
||||
|
||||
mod fd_allocator;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -47,7 +47,7 @@ rust-version = "1.66"
|
|||
version = "0.21.0"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_allocators_1_0]
|
||||
name = "gstreamer-allocators-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
@ -155,19 +155,19 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstDRMDumbAllocator
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_24", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_drm_dumb_allocator_alloc(
|
||||
allocator: *mut GstDRMDumbAllocator,
|
||||
drm_fourcc: u32,
|
||||
|
@ -175,8 +175,8 @@ extern "C" {
|
|||
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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_drm_dumb_allocator_has_prime_export(allocator: *mut GstDRMDumbAllocator)
|
||||
-> gboolean;
|
||||
|
||||
|
@ -190,8 +190,8 @@ extern "C" {
|
|||
fd: c_int,
|
||||
size: size_t,
|
||||
) -> *mut gst::GstMemory;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_dmabuf_allocator_alloc_with_flags(
|
||||
allocator: *mut gst::GstAllocator,
|
||||
fd: c_int,
|
||||
|
@ -220,16 +220,16 @@ extern "C" {
|
|||
// Other functions
|
||||
//=========================================================================
|
||||
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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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_is_dmabuf_memory(mem: *mut gst::GstMemory) -> gboolean;
|
||||
#[cfg(any(feature = "v1_24", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, 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_phys_memory(mem: *mut gst::GstMemory) -> gboolean;
|
||||
|
|
|
@ -59,8 +59,8 @@ impl AppSink {
|
|||
unsafe { from_glib(ffi::gst_app_sink_is_eos(self.to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_sink_pull_object")]
|
||||
pub fn pull_object(&self) -> Result<gst::MiniObject, glib::BoolError> {
|
||||
unsafe {
|
||||
|
@ -128,8 +128,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_sink_try_pull_object")]
|
||||
pub fn try_pull_object(
|
||||
&self,
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use crate::AppLeakyType;
|
||||
use crate::AppStreamType;
|
||||
use glib::{
|
||||
|
@ -35,8 +35,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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 {
|
||||
|
@ -49,8 +49,8 @@ impl AppSrc {
|
|||
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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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) -> Option<gst::ClockTime> {
|
||||
|
@ -67,16 +67,16 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_src_get_max_buffers")]
|
||||
#[doc(alias = "get_max_buffers")]
|
||||
pub fn max_buffers(&self) -> u64 {
|
||||
|
@ -89,8 +89,8 @@ impl AppSrc {
|
|||
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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_src_get_max_time")]
|
||||
#[doc(alias = "get_max_time")]
|
||||
pub fn max_time(&self) -> Option<gst::ClockTime> {
|
||||
|
@ -161,8 +161,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_src_set_leaky_type")]
|
||||
pub fn set_leaky_type(&self, leaky: AppLeakyType) {
|
||||
unsafe {
|
||||
|
@ -170,8 +170,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_src_set_max_buffers")]
|
||||
pub fn set_max_buffers(&self, max: u64) {
|
||||
unsafe {
|
||||
|
@ -186,8 +186,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_app_src_set_max_time")]
|
||||
pub fn set_max_time(&self, max: impl Into<Option<gst::ClockTime>>) {
|
||||
unsafe {
|
||||
|
@ -225,15 +225,15 @@ impl AppSrc {
|
|||
glib::ObjectExt::set_property(self, "format", format)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "handle-segment-change")]
|
||||
pub fn is_handle_segment_change(&self) -> bool {
|
||||
glib::ObjectExt::property(self, "handle-segment-change")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "handle-segment-change")]
|
||||
pub fn set_handle_segment_change(&self, handle_segment_change: bool) {
|
||||
glib::ObjectExt::set_property(self, "handle-segment-change", handle_segment_change)
|
||||
|
@ -331,8 +331,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "current-level-buffers")]
|
||||
pub fn connect_current_level_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -389,8 +389,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "current-level-time")]
|
||||
pub fn connect_current_level_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -471,8 +471,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "handle-segment-change")]
|
||||
pub fn connect_handle_segment_change_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -527,8 +527,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "leaky-type")]
|
||||
pub fn connect_leaky_type_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -557,8 +557,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "max-buffers")]
|
||||
pub fn connect_max_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -641,8 +641,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "max-time")]
|
||||
pub fn connect_max_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
#[doc(alias = "GstAppLeakyType")]
|
||||
|
@ -21,8 +21,8 @@ pub enum AppLeakyType {
|
|||
__Unknown(i32),
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl IntoGlib for AppLeakyType {
|
||||
type GlibType = ffi::GstAppLeakyType;
|
||||
|
@ -38,8 +38,8 @@ impl IntoGlib for AppLeakyType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
|
||||
#[inline]
|
||||
|
@ -55,8 +55,8 @@ impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl StaticType for AppLeakyType {
|
||||
#[inline]
|
||||
fn static_type() -> Type {
|
||||
|
@ -64,8 +64,8 @@ impl StaticType for AppLeakyType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl glib::HasParamSpec for AppLeakyType {
|
||||
type ParamSpec = glib::ParamSpecEnum;
|
||||
type SetValue = Self;
|
||||
|
@ -76,14 +76,14 @@ impl glib::HasParamSpec for AppLeakyType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
unsafe impl<'a> FromValue<'a> for AppLeakyType {
|
||||
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
||||
|
||||
|
@ -94,8 +94,8 @@ unsafe impl<'a> FromValue<'a> for AppLeakyType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl ToValue for AppLeakyType {
|
||||
#[inline]
|
||||
fn to_value(&self) -> glib::Value {
|
||||
|
@ -112,8 +112,8 @@ impl ToValue for AppLeakyType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl From<AppLeakyType> for glib::Value {
|
||||
#[inline]
|
||||
fn from(v: AppLeakyType) -> Self {
|
||||
|
|
|
@ -10,7 +10,7 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub use self::enums::AppLeakyType;
|
||||
pub use self::enums::AppStreamType;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -47,7 +47,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_app_1_0]
|
||||
name = "gstreamer-app-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
@ -197,8 +197,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAppLeakyType
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_app_leaky_type_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -217,8 +217,8 @@ extern "C" {
|
|||
pub fn gst_app_sink_get_max_buffers(appsink: *mut GstAppSink) -> c_uint;
|
||||
pub fn gst_app_sink_get_wait_on_eos(appsink: *mut GstAppSink) -> gboolean;
|
||||
pub fn gst_app_sink_is_eos(appsink: *mut GstAppSink) -> gboolean;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_app_sink_pull_object(appsink: *mut GstAppSink) -> *mut gst::GstMiniObject;
|
||||
pub fn gst_app_sink_pull_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample;
|
||||
pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample;
|
||||
|
@ -234,8 +234,8 @@ extern "C" {
|
|||
pub fn gst_app_sink_set_emit_signals(appsink: *mut GstAppSink, emit: gboolean);
|
||||
pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint);
|
||||
pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_app_sink_try_pull_object(
|
||||
appsink: *mut GstAppSink,
|
||||
timeout: gst::GstClockTime,
|
||||
|
@ -255,25 +255,25 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_app_src_get_current_level_time(appsrc: *mut GstAppSrc) -> gst::GstClockTime;
|
||||
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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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;
|
||||
|
@ -299,15 +299,15 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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);
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use glib::prelude::*;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use glib::{
|
||||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
};
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
glib::wrapper! {
|
||||
|
@ -31,18 +31,18 @@ unsafe impl Send for AudioAggregatorPad {}
|
|||
unsafe impl Sync for AudioAggregatorPad {}
|
||||
|
||||
pub trait AudioAggregatorPadExt: 'static {
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "qos-messages")]
|
||||
fn is_qos_messages(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "qos-messages")]
|
||||
fn set_qos_messages(&self, qos_messages: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "qos-messages")]
|
||||
fn connect_qos_messages_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -51,20 +51,20 @@ pub trait AudioAggregatorPadExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<AudioAggregatorPad>> AudioAggregatorPadExt for O {
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn is_qos_messages(&self) -> bool {
|
||||
glib::ObjectExt::property(self.as_ref(), "qos-messages")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn set_qos_messages(&self, qos_messages: bool) {
|
||||
glib::ObjectExt::set_property(self.as_ref(), "qos-messages", qos_messages)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn connect_qos_messages_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -38,8 +38,8 @@ pub trait AudioDecoderExt: 'static {
|
|||
frames: i32,
|
||||
) -> Result<gst::FlowSuccess, gst::FlowError>;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_audio_decoder_finish_subframe")]
|
||||
fn finish_subframe(&self, buf: Option<gst::Buffer>)
|
||||
-> Result<gst::FlowSuccess, gst::FlowError>;
|
||||
|
@ -131,8 +131,8 @@ pub trait AudioDecoderExt: 'static {
|
|||
#[doc(alias = "gst_audio_decoder_set_use_default_pad_acceptcaps")]
|
||||
fn set_use_default_pad_acceptcaps(&self, use_: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "max-errors")]
|
||||
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -179,8 +179,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn finish_subframe(
|
||||
&self,
|
||||
buf: Option<gst::Buffer>,
|
||||
|
@ -396,8 +396,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -51,7 +51,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_audio_1_0]
|
||||
name = "gstreamer-audio-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
@ -1532,8 +1532,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioBuffer
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer);
|
||||
pub fn gst_audio_buffer_clip(
|
||||
buffer: *mut gst::GstBuffer,
|
||||
|
@ -1541,8 +1541,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_buffer_map(
|
||||
buffer: *mut GstAudioBuffer,
|
||||
info: *const GstAudioInfo,
|
||||
|
@ -1556,8 +1556,8 @@ extern "C" {
|
|||
from: *const GstAudioChannelPosition,
|
||||
to: *const GstAudioChannelPosition,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_buffer_truncate(
|
||||
buffer: *mut gst::GstBuffer,
|
||||
bpf: c_int,
|
||||
|
@ -1630,8 +1630,8 @@ extern "C" {
|
|||
convert: *mut GstAudioConverter,
|
||||
in_frames: size_t,
|
||||
) -> size_t;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean;
|
||||
pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter);
|
||||
pub fn gst_audio_converter_samples(
|
||||
|
@ -1666,8 +1666,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioFormatInfo
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_audio_format_info_fill_silence(
|
||||
info: *const GstAudioFormatInfo,
|
||||
dest: gpointer,
|
||||
|
@ -1679,8 +1679,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn gst_audio_info_get_type() -> GType;
|
||||
pub fn gst_audio_info_new() -> *mut GstAudioInfo;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_audio_info_new_from_caps(caps: *const gst::GstCaps) -> *mut GstAudioInfo;
|
||||
pub fn gst_audio_info_convert(
|
||||
info: *const GstAudioInfo,
|
||||
|
@ -1710,15 +1710,15 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioLevelMeta
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_audio_level_meta_get_info() -> *const gst::GstMetaInfo;
|
||||
|
||||
//=========================================================================
|
||||
// GstAudioMeta
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1949,8 +1949,8 @@ extern "C" {
|
|||
buf: *mut gst::GstBuffer,
|
||||
frames: c_int,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_decoder_finish_subframe(
|
||||
dec: *mut GstAudioDecoder,
|
||||
buf: *mut gst::GstBuffer,
|
||||
|
@ -2005,8 +2005,8 @@ extern "C" {
|
|||
pub fn gst_audio_decoder_set_max_errors(dec: *mut GstAudioDecoder, num: c_int);
|
||||
pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime);
|
||||
pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_decoder_set_output_caps(
|
||||
dec: *mut GstAudioDecoder,
|
||||
caps: *mut gst::GstCaps,
|
||||
|
@ -2245,8 +2245,8 @@ extern "C" {
|
|||
pub fn gst_audio_clipping_meta_api_get_type() -> GType;
|
||||
pub fn gst_audio_downmix_meta_api_get_type() -> GType;
|
||||
pub fn gst_audio_format_info_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat;
|
||||
pub fn gst_audio_get_channel_reorder_map(
|
||||
channels: c_int,
|
||||
|
@ -2263,18 +2263,18 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_audio_make_raw_caps(
|
||||
formats: *const GstAudioFormat,
|
||||
len: c_uint,
|
||||
layout: GstAudioLayout,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_meta_api_get_type() -> GType;
|
||||
pub fn gst_audio_reorder_channels(
|
||||
data: gpointer,
|
||||
|
@ -2298,15 +2298,15 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_buffer_add_audio_meta(
|
||||
buffer: *mut gst::GstBuffer,
|
||||
info: *const GstAudioInfo,
|
||||
|
@ -2318,8 +2318,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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_buffer_get_audio_level_meta(buffer: *mut gst::GstBuffer) -> *mut GstAudioLevelMeta;
|
||||
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::{AggregatorPad, AggregatorStartTimeSelection};
|
||||
use glib::{
|
||||
prelude::*,
|
||||
|
@ -33,8 +33,8 @@ pub trait AggregatorExt: 'static {
|
|||
#[doc(alias = "gst_aggregator_finish_buffer")]
|
||||
fn finish_buffer(&self, buffer: gst::Buffer) -> Result<gst::FlowSuccess, gst::FlowError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_aggregator_finish_buffer_list")]
|
||||
fn finish_buffer_list(
|
||||
&self,
|
||||
|
@ -45,14 +45,14 @@ pub trait AggregatorExt: 'static {
|
|||
#[doc(alias = "get_buffer_pool")]
|
||||
fn buffer_pool(&self) -> Option<gst::BufferPool>;
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
#[doc(alias = "gst_aggregator_get_force_live")]
|
||||
#[doc(alias = "get_force_live")]
|
||||
fn is_force_live(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_aggregator_get_ignore_inactive_pads")]
|
||||
#[doc(alias = "get_ignore_inactive_pads")]
|
||||
fn ignores_inactive_pads(&self) -> bool;
|
||||
|
@ -61,23 +61,23 @@ pub trait AggregatorExt: 'static {
|
|||
#[doc(alias = "get_latency")]
|
||||
fn latency(&self) -> Option<gst::ClockTime>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_aggregator_negotiate")]
|
||||
fn negotiate(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_aggregator_peek_next_sample")]
|
||||
fn peek_next_sample(&self, pad: &impl IsA<AggregatorPad>) -> Option<gst::Sample>;
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
#[doc(alias = "gst_aggregator_set_force_live")]
|
||||
fn set_force_live(&self, force_live: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_aggregator_set_ignore_inactive_pads")]
|
||||
fn set_ignore_inactive_pads(&self, ignore: bool);
|
||||
|
||||
|
@ -91,18 +91,18 @@ pub trait AggregatorExt: 'static {
|
|||
#[doc(alias = "gst_aggregator_set_src_caps")]
|
||||
fn set_src_caps(&self, caps: &gst::Caps);
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_aggregator_simple_get_next_time")]
|
||||
fn simple_get_next_time(&self) -> Option<gst::ClockTime>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "emit-signals")]
|
||||
fn emits_signals(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "emit-signals")]
|
||||
fn set_emit_signals(&self, emit_signals: bool);
|
||||
|
||||
|
@ -112,18 +112,18 @@ pub trait AggregatorExt: 'static {
|
|||
#[doc(alias = "start-time")]
|
||||
fn set_start_time(&self, start_time: u64);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "start-time-selection")]
|
||||
fn start_time_selection(&self) -> AggregatorStartTimeSelection;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "start-time-selection")]
|
||||
fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "emit-signals")]
|
||||
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -140,8 +140,8 @@ pub trait AggregatorExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "start-time-selection")]
|
||||
fn connect_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -159,8 +159,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn finish_buffer_list(
|
||||
&self,
|
||||
bufferlist: gst::BufferList,
|
||||
|
@ -181,8 +181,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
fn is_force_live(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_get_force_live(
|
||||
|
@ -191,8 +191,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn ignores_inactive_pads(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_get_ignore_inactive_pads(
|
||||
|
@ -209,8 +209,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn negotiate(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_negotiate(
|
||||
|
@ -219,8 +219,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn peek_next_sample(&self, pad: &impl IsA<AggregatorPad>) -> Option<gst::Sample> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_aggregator_peek_next_sample(
|
||||
|
@ -230,8 +230,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
fn set_force_live(&self, force_live: bool) {
|
||||
unsafe {
|
||||
ffi::gst_aggregator_set_force_live(
|
||||
|
@ -241,8 +241,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn set_ignore_inactive_pads(&self, ignore: bool) {
|
||||
unsafe {
|
||||
ffi::gst_aggregator_set_ignore_inactive_pads(
|
||||
|
@ -272,8 +272,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn simple_get_next_time(&self) -> Option<gst::ClockTime> {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_simple_get_next_time(
|
||||
|
@ -282,14 +282,14 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn emits_signals(&self) -> bool {
|
||||
glib::ObjectExt::property(self.as_ref(), "emit-signals")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_emit_signals(&self, emit_signals: bool) {
|
||||
glib::ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals)
|
||||
}
|
||||
|
@ -302,20 +302,20 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
glib::ObjectExt::set_property(self.as_ref(), "start-time", start_time)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn start_time_selection(&self) -> AggregatorStartTimeSelection {
|
||||
glib::ObjectExt::property(self.as_ref(), "start-time-selection")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) {
|
||||
glib::ObjectExt::set_property(self.as_ref(), "start-time-selection", start_time_selection)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -400,8 +400,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -30,16 +30,16 @@ pub trait AggregatorPadExt: 'static {
|
|||
#[doc(alias = "gst_aggregator_pad_drop_buffer")]
|
||||
fn drop_buffer(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
||||
#[cfg(feature = "v1_14_1")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))]
|
||||
#[doc(alias = "gst_aggregator_pad_has_buffer")]
|
||||
fn has_buffer(&self) -> bool;
|
||||
|
||||
#[doc(alias = "gst_aggregator_pad_is_eos")]
|
||||
fn is_eos(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_aggregator_pad_is_inactive")]
|
||||
fn is_inactive(&self) -> bool;
|
||||
|
||||
|
@ -49,13 +49,13 @@ pub trait AggregatorPadExt: 'static {
|
|||
#[doc(alias = "gst_aggregator_pad_pop_buffer")]
|
||||
fn pop_buffer(&self) -> Option<gst::Buffer>;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "emit-signals")]
|
||||
fn emits_signals(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "emit-signals")]
|
||||
fn set_emit_signals(&self, emit_signals: bool);
|
||||
|
||||
|
@ -65,8 +65,8 @@ pub trait AggregatorPadExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "emit-signals")]
|
||||
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -83,8 +83,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
||||
#[cfg(feature = "v1_14_1")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))]
|
||||
fn has_buffer(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_pad_has_buffer(
|
||||
|
@ -101,8 +101,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn is_inactive(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_pad_is_inactive(
|
||||
|
@ -127,14 +127,14 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn emits_signals(&self) -> bool {
|
||||
glib::ObjectExt::property(self.as_ref(), "emit-signals")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn set_emit_signals(&self, emit_signals: bool) {
|
||||
glib::ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals)
|
||||
}
|
||||
|
@ -170,8 +170,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -54,8 +54,8 @@ pub trait BaseSinkExt: 'static {
|
|||
#[doc(alias = "get_max_lateness")]
|
||||
fn max_lateness(&self) -> i64;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_base_sink_get_processing_deadline")]
|
||||
#[doc(alias = "get_processing_deadline")]
|
||||
fn processing_deadline(&self) -> gst::ClockTime;
|
||||
|
@ -64,8 +64,8 @@ pub trait BaseSinkExt: 'static {
|
|||
#[doc(alias = "get_render_delay")]
|
||||
fn render_delay(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_base_sink_get_stats")]
|
||||
#[doc(alias = "get_stats")]
|
||||
fn stats(&self) -> gst::Structure;
|
||||
|
@ -94,8 +94,8 @@ pub trait BaseSinkExt: 'static {
|
|||
#[doc(alias = "gst_base_sink_set_max_lateness")]
|
||||
fn set_max_lateness(&self, max_lateness: i64);
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_base_sink_set_processing_deadline")]
|
||||
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime);
|
||||
|
||||
|
@ -178,8 +178,8 @@ pub trait BaseSinkExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "processing-deadline")]
|
||||
fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -195,8 +195,8 @@ pub trait BaseSinkExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "stats")]
|
||||
fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
|
@ -258,8 +258,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn processing_deadline(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
try_from_glib(ffi::gst_base_sink_get_processing_deadline(
|
||||
|
@ -278,8 +278,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn stats(&self) -> gst::Structure {
|
||||
unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
@ -323,8 +323,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
|
||||
unsafe {
|
||||
ffi::gst_base_sink_set_processing_deadline(
|
||||
|
@ -588,8 +588,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -671,8 +671,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_stats_trampoline<
|
||||
P: IsA<BaseSink>,
|
||||
|
|
|
@ -46,8 +46,8 @@ pub trait BaseSrcExt: 'static {
|
|||
#[doc(alias = "gst_base_src_is_live")]
|
||||
fn is_live(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_base_src_negotiate")]
|
||||
fn negotiate(&self) -> bool;
|
||||
|
||||
|
@ -56,13 +56,13 @@ pub trait BaseSrcExt: 'static {
|
|||
#[doc(alias = "gst_base_src_new_seamless_segment")]
|
||||
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")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
#[doc(alias = "gst_base_src_push_segment")]
|
||||
fn push_segment(&self, segment: &gst::Segment) -> bool;
|
||||
|
||||
|
@ -163,8 +163,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
unsafe { from_glib(ffi::gst_base_src_is_live(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn negotiate(&self) -> bool {
|
||||
unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
@ -181,8 +181,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn new_segment(&self, segment: &gst::Segment) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
|
@ -195,8 +195,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_24", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
fn push_segment(&self, segment: &gst::Segment) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_base_src_push_segment(
|
||||
|
|
|
@ -37,8 +37,8 @@ pub trait BaseTransformExt: 'static {
|
|||
#[doc(alias = "gst_base_transform_is_passthrough")]
|
||||
fn is_passthrough(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_base_transform_reconfigure")]
|
||||
fn reconfigure(&self) -> bool;
|
||||
|
||||
|
@ -99,8 +99,8 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn reconfigure(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_base_transform_reconfigure(
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
#[doc(alias = "GstAggregatorStartTimeSelection")]
|
||||
|
@ -23,8 +23,8 @@ pub enum AggregatorStartTimeSelection {
|
|||
__Unknown(i32),
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(hidden)]
|
||||
impl IntoGlib for AggregatorStartTimeSelection {
|
||||
type GlibType = ffi::GstAggregatorStartTimeSelection;
|
||||
|
@ -40,8 +40,8 @@ impl IntoGlib for AggregatorStartTimeSelection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection {
|
||||
#[inline]
|
||||
|
@ -57,8 +57,8 @@ impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelec
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl StaticType for AggregatorStartTimeSelection {
|
||||
#[inline]
|
||||
fn static_type() -> Type {
|
||||
|
@ -66,8 +66,8 @@ impl StaticType for AggregatorStartTimeSelection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl glib::HasParamSpec for AggregatorStartTimeSelection {
|
||||
type ParamSpec = glib::ParamSpecEnum;
|
||||
type SetValue = Self;
|
||||
|
@ -78,14 +78,14 @@ impl glib::HasParamSpec for AggregatorStartTimeSelection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl glib::value::ValueType for AggregatorStartTimeSelection {
|
||||
type Type = Self;
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
|
||||
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
||||
|
||||
|
@ -96,8 +96,8 @@ unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl ToValue for AggregatorStartTimeSelection {
|
||||
#[inline]
|
||||
fn to_value(&self) -> glib::Value {
|
||||
|
@ -114,8 +114,8 @@ impl ToValue for AggregatorStartTimeSelection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl From<AggregatorStartTimeSelection> for glib::Value {
|
||||
#[inline]
|
||||
fn from(v: AggregatorStartTimeSelection) -> Self {
|
||||
|
|
|
@ -37,8 +37,8 @@ pub fn type_find_helper_for_extension(
|
|||
// unsafe { TODO: call ffi:gst_type_find_helper_get_range() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v1_14_3", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
|
||||
//#[cfg(feature = "v1_14_3")]
|
||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_3")))]
|
||||
//#[doc(alias = "gst_type_find_helper_get_range_full")]
|
||||
//pub fn type_find_helper_get_range_full<P: FnMut(&gst::Object, Option<&gst::Object>, u64, u32) -> Result<gst::FlowSuccess, gst::FlowError>>(obj: &impl IsA<gst::Object>, parent: Option<&impl IsA<gst::Object>>, func: P, size: u64, extension: Option<&str>) -> (Result<gst::FlowSuccess, gst::FlowError>, gst::Caps, gst::TypeFindProbability) {
|
||||
// unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() }
|
||||
|
|
|
@ -28,8 +28,8 @@ mod push_src;
|
|||
pub use self::push_src::PushSrc;
|
||||
|
||||
mod enums;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub use self::enums::AggregatorStartTimeSelection;
|
||||
|
||||
mod flags;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -49,7 +49,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_base_1_0]
|
||||
name = "gstreamer-base-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
@ -1260,8 +1260,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAggregatorStartTimeSelection
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_start_time_selection_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1333,101 +1333,101 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstBitWriter
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_init_with_data(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
data: *mut u8,
|
||||
size: c_uint,
|
||||
initialized: gboolean,
|
||||
);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint16(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u16,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint32(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u32,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint64(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u64,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint8(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u8,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bytes(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
data: *const u8,
|
||||
nbytes: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter)
|
||||
-> *mut gst::GstBuffer;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_new() -> *mut GstBitWriter;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_new_with_data(
|
||||
data: *mut u8,
|
||||
size: c_uint,
|
||||
initialized: gboolean,
|
||||
) -> *mut GstBitWriter;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1675,8 +1675,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstQueueArray
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_clear(array: *mut GstQueueArray);
|
||||
pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
|
||||
pub fn gst_queue_array_drop_struct(
|
||||
|
@ -1694,11 +1694,11 @@ extern "C" {
|
|||
pub fn gst_queue_array_is_empty(array: *mut GstQueueArray) -> gboolean;
|
||||
pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
|
||||
pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
|
@ -1708,8 +1708,8 @@ extern "C" {
|
|||
pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer);
|
||||
pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_set_clear_func(
|
||||
array: *mut GstQueueArray,
|
||||
clear_func: glib::GDestroyNotify,
|
||||
|
@ -1723,22 +1723,22 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstTypeFindData
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_data_free(data: *mut GstTypeFindData);
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_data_get_caps(data: *mut GstTypeFindData) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_data_get_probability(
|
||||
data: *mut GstTypeFindData,
|
||||
) -> gst::GstTypeFindProbability;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_data_get_typefind(data: *mut GstTypeFindData) -> *mut gst::GstTypeFind;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_data_new(
|
||||
obj: *mut gst::GstObject,
|
||||
data: *const u8,
|
||||
|
@ -1826,8 +1826,8 @@ extern "C" {
|
|||
aggregator: *mut GstAggregator,
|
||||
buffer: *mut gst::GstBuffer,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_finish_buffer_list(
|
||||
aggregator: *mut GstAggregator,
|
||||
bufferlist: *mut gst::GstBufferList,
|
||||
|
@ -1838,24 +1838,24 @@ extern "C" {
|
|||
params: *mut gst::GstAllocationParams,
|
||||
);
|
||||
pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_aggregator_get_force_live(self_: *mut GstAggregator) -> gboolean;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_aggregator_get_ignore_inactive_pads(self_: *mut GstAggregator) -> gboolean;
|
||||
pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_peek_next_sample(
|
||||
self_: *mut GstAggregator,
|
||||
pad: *mut GstAggregatorPad,
|
||||
) -> *mut gst::GstSample;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_selected_samples(
|
||||
self_: *mut GstAggregator,
|
||||
pts: gst::GstClockTime,
|
||||
|
@ -1863,11 +1863,11 @@ extern "C" {
|
|||
duration: gst::GstClockTime,
|
||||
info: *mut gst::GstStructure,
|
||||
);
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_aggregator_set_force_live(self_: *mut GstAggregator, force_live: gboolean);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_aggregator_set_ignore_inactive_pads(self_: *mut GstAggregator, ignore: gboolean);
|
||||
pub fn gst_aggregator_set_latency(
|
||||
self_: *mut GstAggregator,
|
||||
|
@ -1875,11 +1875,11 @@ extern "C" {
|
|||
max_latency: gst::GstClockTime,
|
||||
);
|
||||
pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_update_segment(
|
||||
self_: *mut GstAggregator,
|
||||
segment: *const gst::GstSegment,
|
||||
|
@ -1890,12 +1890,12 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn gst_aggregator_pad_get_type() -> GType;
|
||||
pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
||||
#[cfg(feature = "v1_14_1")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))]
|
||||
pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_aggregator_pad_is_inactive(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
|
||||
pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
|
||||
|
@ -1977,12 +1977,12 @@ extern "C" {
|
|||
pub fn gst_base_sink_get_latency(sink: *mut GstBaseSink) -> gst::GstClockTime;
|
||||
pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64;
|
||||
pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime;
|
||||
pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure;
|
||||
pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean;
|
||||
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
|
||||
|
@ -2006,8 +2006,8 @@ extern "C" {
|
|||
pub fn gst_base_sink_set_last_sample_enabled(sink: *mut GstBaseSink, enabled: gboolean);
|
||||
pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64);
|
||||
pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_base_sink_set_processing_deadline(
|
||||
sink: *mut GstBaseSink,
|
||||
processing_deadline: gst::GstClockTime,
|
||||
|
@ -2043,8 +2043,8 @@ extern "C" {
|
|||
pub fn gst_base_src_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean;
|
||||
pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean;
|
||||
pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean;
|
||||
pub fn gst_base_src_new_seamless_segment(
|
||||
src: *mut GstBaseSrc,
|
||||
|
@ -2052,14 +2052,14 @@ extern "C" {
|
|||
stop: i64,
|
||||
time: i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_src_new_segment(
|
||||
src: *mut GstBaseSrc,
|
||||
segment: *const gst::GstSegment,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_24", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_base_src_push_segment(
|
||||
src: *mut GstBaseSrc,
|
||||
segment: *const gst::GstSegment,
|
||||
|
@ -2101,8 +2101,8 @@ extern "C" {
|
|||
pub fn gst_base_transform_is_in_place(trans: *mut GstBaseTransform) -> gboolean;
|
||||
pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean;
|
||||
pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean;
|
||||
pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform);
|
||||
pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform);
|
||||
|
@ -2278,16 +2278,16 @@ extern "C" {
|
|||
buf: *mut gst::GstBuffer,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_helper_for_buffer_with_caps(
|
||||
obj: *mut gst::GstObject,
|
||||
buf: *mut gst::GstBuffer,
|
||||
caps: *mut gst::GstCaps,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_type_find_helper_for_buffer_with_extension(
|
||||
obj: *mut gst::GstObject,
|
||||
buf: *mut gst::GstBuffer,
|
||||
|
@ -2300,8 +2300,8 @@ extern "C" {
|
|||
size: size_t,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_helper_for_data_with_caps(
|
||||
obj: *mut gst::GstObject,
|
||||
data: *const u8,
|
||||
|
@ -2309,8 +2309,8 @@ extern "C" {
|
|||
caps: *mut gst::GstCaps,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_type_find_helper_for_data_with_extension(
|
||||
obj: *mut gst::GstObject,
|
||||
data: *const u8,
|
||||
|
@ -2330,8 +2330,8 @@ extern "C" {
|
|||
extension: *const c_char,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_14_3", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
|
||||
#[cfg(feature = "v1_14_3")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_3")))]
|
||||
pub fn gst_type_find_helper_get_range_full(
|
||||
obj: *mut gst::GstObject,
|
||||
parent: *mut gst::GstObject,
|
||||
|
@ -2341,8 +2341,8 @@ extern "C" {
|
|||
caps: *mut *mut gst::GstCaps,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn gst_type_find_list_factories_for_caps(
|
||||
obj: *mut gst::GstObject,
|
||||
caps: *mut gst::GstCaps,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -47,7 +47,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_check_1_0]
|
||||
name = "gstreamer-check-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
@ -139,8 +139,8 @@ extern "C" {
|
|||
user_data: gpointer,
|
||||
destroy_data: glib::GDestroyNotify,
|
||||
);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_harness_add_propose_allocation_meta(
|
||||
h: *mut GstHarness,
|
||||
api: GType,
|
||||
|
@ -192,8 +192,8 @@ extern "C" {
|
|||
pub fn gst_harness_play(h: *mut GstHarness);
|
||||
pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
|
||||
pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_harness_pull_until_eos(
|
||||
h: *mut GstHarness,
|
||||
buf: *mut *mut gst::GstBuffer,
|
||||
|
@ -223,8 +223,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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,
|
||||
|
@ -370,8 +370,8 @@ extern "C" {
|
|||
test_clock: *mut GstTestClock,
|
||||
pending_id: *mut gst::GstClockID,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_test_clock_process_id(
|
||||
test_clock: *mut GstTestClock,
|
||||
pending_id: gst::GstClockID,
|
||||
|
@ -382,8 +382,8 @@ extern "C" {
|
|||
) -> c_uint;
|
||||
pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID;
|
||||
pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime);
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_test_clock_timed_wait_for_multiple_pending_ids(
|
||||
test_clock: *mut GstTestClock,
|
||||
count: c_uint,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -48,7 +48,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_controller_1_0]
|
||||
name = "gstreamer-controller-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
use crate::{Extractable, MetaContainer, Operation, TimelineElement, TrackElement};
|
||||
use glib::prelude::*;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use glib::translate::*;
|
||||
|
||||
glib::wrapper! {
|
||||
|
@ -23,20 +23,20 @@ impl BaseEffect {
|
|||
}
|
||||
|
||||
pub trait BaseEffectExt: 'static {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_base_effect_is_time_effect")]
|
||||
fn is_time_effect(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_base_effect_register_time_property")]
|
||||
fn register_time_property(&self, child_property_name: &str) -> bool;
|
||||
}
|
||||
|
||||
impl<O: IsA<BaseEffect>> BaseEffectExt for O {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_time_effect(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_base_effect_is_time_effect(
|
||||
|
@ -45,8 +45,8 @@ impl<O: IsA<BaseEffect>> BaseEffectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn register_time_property(&self, child_property_name: &str) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_base_effect_register_time_property(
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::FrameNumber;
|
||||
use crate::{
|
||||
Asset, BaseEffect, Container, Extractable, Layer, MetaContainer, TimelineElement, Track,
|
||||
|
@ -15,8 +15,8 @@ use glib::{
|
|||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
|
@ -37,8 +37,8 @@ pub trait ClipExt: 'static {
|
|||
#[doc(alias = "ges_clip_add_asset")]
|
||||
fn add_asset(&self, asset: &impl IsA<Asset>) -> Result<TrackElement, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_add_child_to_track")]
|
||||
fn add_child_to_track(
|
||||
&self,
|
||||
|
@ -46,8 +46,8 @@ pub trait ClipExt: 'static {
|
|||
track: &impl IsA<Track>,
|
||||
) -> Result<TrackElement, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_add_top_effect")]
|
||||
fn add_top_effect(&self, effect: &impl IsA<BaseEffect>, index: i32) -> Result<(), glib::Error>;
|
||||
|
||||
|
@ -66,14 +66,14 @@ pub trait ClipExt: 'static {
|
|||
type_: glib::types::Type,
|
||||
) -> Vec<TrackElement>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_get_duration_limit")]
|
||||
#[doc(alias = "get_duration_limit")]
|
||||
fn duration_limit(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_get_internal_time_from_timeline_time")]
|
||||
#[doc(alias = "get_internal_time_from_timeline_time")]
|
||||
fn internal_time_from_timeline_time(
|
||||
|
@ -90,8 +90,8 @@ pub trait ClipExt: 'static {
|
|||
#[doc(alias = "get_supported_formats")]
|
||||
fn supported_formats(&self) -> TrackType;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_get_timeline_time_from_internal_time")]
|
||||
#[doc(alias = "get_timeline_time_from_internal_time")]
|
||||
fn timeline_time_from_internal_time(
|
||||
|
@ -100,8 +100,8 @@ pub trait ClipExt: 'static {
|
|||
internal_time: impl Into<Option<gst::ClockTime>>,
|
||||
) -> Result<Option<gst::ClockTime>, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_get_timeline_time_from_source_frame")]
|
||||
#[doc(alias = "get_timeline_time_from_source_frame")]
|
||||
fn timeline_time_from_source_frame(
|
||||
|
@ -124,13 +124,13 @@ pub trait ClipExt: 'static {
|
|||
#[doc(alias = "ges_clip_move_to_layer")]
|
||||
fn move_to_layer(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_move_to_layer_full")]
|
||||
fn move_to_layer_full(&self, layer: &impl IsA<Layer>) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_remove_top_effect")]
|
||||
fn remove_top_effect(&self, effect: &impl IsA<BaseEffect>) -> Result<(), glib::Error>;
|
||||
|
||||
|
@ -144,8 +144,8 @@ pub trait ClipExt: 'static {
|
|||
newindex: u32,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_set_top_effect_index_full")]
|
||||
fn set_top_effect_index_full(
|
||||
&self,
|
||||
|
@ -163,13 +163,13 @@ pub trait ClipExt: 'static {
|
|||
#[doc(alias = "ges_clip_split")]
|
||||
fn split(&self, position: u64) -> Result<Clip, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_split_full")]
|
||||
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "duration-limit")]
|
||||
fn connect_duration_limit_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
|
@ -191,8 +191,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn add_child_to_track(
|
||||
&self,
|
||||
child: &impl IsA<TrackElement>,
|
||||
|
@ -214,8 +214,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn add_top_effect(&self, effect: &impl IsA<BaseEffect>, index: i32) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -264,8 +264,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn duration_limit(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
try_from_glib(ffi::ges_clip_get_duration_limit(
|
||||
|
@ -275,8 +275,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn internal_time_from_timeline_time(
|
||||
&self,
|
||||
child: &impl IsA<TrackElement>,
|
||||
|
@ -310,8 +310,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn timeline_time_from_internal_time(
|
||||
&self,
|
||||
child: &impl IsA<TrackElement>,
|
||||
|
@ -333,8 +333,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn timeline_time_from_source_frame(
|
||||
&self,
|
||||
frame_number: FrameNumber,
|
||||
|
@ -392,8 +392,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn move_to_layer_full(&self, layer: &impl IsA<Layer>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -411,8 +411,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn remove_top_effect(&self, effect: &impl IsA<BaseEffect>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -456,8 +456,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_top_effect_index_full(
|
||||
&self,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
|
@ -507,8 +507,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -522,8 +522,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_duration_limit_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_duration_limit_trampoline<P: IsA<Clip>, F: Fn(&P) + 'static>(
|
||||
this: *mut ffi::GESClip,
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::FrameNumber;
|
||||
use crate::{Asset, MetaContainer, TrackType};
|
||||
use glib::{
|
||||
|
@ -12,8 +12,8 @@ use glib::{
|
|||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use std::mem;
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
|
@ -31,14 +31,14 @@ impl ClipAsset {
|
|||
}
|
||||
|
||||
pub trait ClipAssetExt: 'static {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_asset_get_frame_time")]
|
||||
#[doc(alias = "get_frame_time")]
|
||||
fn frame_time(&self, frame_number: FrameNumber) -> Option<gst::ClockTime>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_asset_get_natural_framerate")]
|
||||
#[doc(alias = "get_natural_framerate")]
|
||||
fn natural_framerate(&self) -> Option<(i32, i32)>;
|
||||
|
@ -55,8 +55,8 @@ pub trait ClipAssetExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<ClipAsset>> ClipAssetExt for O {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn frame_time(&self, frame_number: FrameNumber) -> Option<gst::ClockTime> {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_clip_asset_get_frame_time(
|
||||
|
@ -66,8 +66,8 @@ impl<O: IsA<ClipAsset>> ClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn natural_framerate(&self) -> Option<(i32, i32)> {
|
||||
unsafe {
|
||||
let mut framerate_n = mem::MaybeUninit::uninit();
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
use glib::GStr;
|
||||
use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
|
@ -122,8 +122,8 @@ pub enum Edge {
|
|||
}
|
||||
|
||||
impl Edge {
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn name<'a>(self) -> &'a GStr {
|
||||
unsafe {
|
||||
GStr::from_ptr(
|
||||
|
@ -135,8 +135,8 @@ impl Edge {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
impl fmt::Display for Edge {
|
||||
#[inline]
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
|
@ -248,8 +248,8 @@ pub enum EditMode {
|
|||
}
|
||||
|
||||
impl EditMode {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn name<'a>(self) -> &'a GStr {
|
||||
unsafe {
|
||||
GStr::from_ptr(
|
||||
|
@ -261,8 +261,8 @@ impl EditMode {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl fmt::Display for EditMode {
|
||||
#[inline]
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
|
@ -793,8 +793,8 @@ pub enum VideoStandardTransitionType {
|
|||
WindshieldH,
|
||||
#[doc(alias = "GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE")]
|
||||
Crossfade,
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
#[doc(alias = "GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN")]
|
||||
FadeIn,
|
||||
#[doc(hidden)]
|
||||
|
@ -879,7 +879,7 @@ impl IntoGlib for VideoStandardTransitionType {
|
|||
Self::WindshieldV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V,
|
||||
Self::WindshieldH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H,
|
||||
Self::Crossfade => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE,
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
Self::FadeIn => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN,
|
||||
Self::__Unknown(value) => value,
|
||||
}
|
||||
|
@ -964,7 +964,7 @@ impl FromGlib<ffi::GESVideoStandardTransitionType> for VideoStandardTransitionTy
|
|||
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V => Self::WindshieldV,
|
||||
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H => Self::WindshieldH,
|
||||
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE => Self::Crossfade,
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN => Self::FadeIn,
|
||||
value => Self::__Unknown(value),
|
||||
}
|
||||
|
|
|
@ -7,9 +7,9 @@ use bitflags::bitflags;
|
|||
use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type};
|
||||
use std::fmt;
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
bitflags! {
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "GESMarkerFlags")]
|
||||
pub struct MarkerFlags: u32 {
|
||||
#[doc(alias = "GES_MARKER_FLAG_NONE")]
|
||||
|
@ -19,8 +19,8 @@ bitflags! {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl IntoGlib for MarkerFlags {
|
||||
type GlibType = ffi::GESMarkerFlags;
|
||||
|
@ -31,8 +31,8 @@ impl IntoGlib for MarkerFlags {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<ffi::GESMarkerFlags> for MarkerFlags {
|
||||
#[inline]
|
||||
|
@ -42,8 +42,8 @@ impl FromGlib<ffi::GESMarkerFlags> for MarkerFlags {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl StaticType for MarkerFlags {
|
||||
#[inline]
|
||||
fn static_type() -> Type {
|
||||
|
@ -51,8 +51,8 @@ impl StaticType for MarkerFlags {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl glib::HasParamSpec for MarkerFlags {
|
||||
type ParamSpec = glib::ParamSpecFlags;
|
||||
type SetValue = Self;
|
||||
|
@ -63,14 +63,14 @@ impl glib::HasParamSpec for MarkerFlags {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl glib::value::ValueType for MarkerFlags {
|
||||
type Type = Self;
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
unsafe impl<'a> FromValue<'a> for MarkerFlags {
|
||||
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
||||
|
||||
|
@ -81,8 +81,8 @@ unsafe impl<'a> FromValue<'a> for MarkerFlags {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl ToValue for MarkerFlags {
|
||||
#[inline]
|
||||
fn to_value(&self) -> glib::Value {
|
||||
|
@ -99,8 +99,8 @@ impl ToValue for MarkerFlags {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl From<MarkerFlags> for glib::Value {
|
||||
#[inline]
|
||||
fn from(v: MarkerFlags) -> Self {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
// DO NOT EDIT
|
||||
#![allow(deprecated)]
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::Track;
|
||||
use crate::{Asset, Clip, Extractable, MetaContainer, Timeline, TrackType};
|
||||
use glib::{
|
||||
|
@ -13,8 +13,8 @@ use glib::{
|
|||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
|
@ -54,8 +54,8 @@ pub trait LayerExt: 'static {
|
|||
track_types: TrackType,
|
||||
) -> Result<Clip, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_add_asset_full")]
|
||||
fn add_asset_full(
|
||||
&self,
|
||||
|
@ -69,13 +69,13 @@ pub trait LayerExt: 'static {
|
|||
#[doc(alias = "ges_layer_add_clip")]
|
||||
fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_add_clip_full")]
|
||||
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_get_active_for_track")]
|
||||
#[doc(alias = "get_active_for_track")]
|
||||
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool;
|
||||
|
@ -114,8 +114,8 @@ pub trait LayerExt: 'static {
|
|||
#[doc(alias = "ges_layer_remove_clip")]
|
||||
fn remove_clip(&self, clip: &impl IsA<Clip>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_set_active_for_tracks")]
|
||||
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool;
|
||||
|
||||
|
@ -130,8 +130,8 @@ pub trait LayerExt: 'static {
|
|||
#[doc(alias = "ges_layer_set_timeline")]
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>);
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(feature = "v1_18")]
|
||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
//#[doc(alias = "active-changed")]
|
||||
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
|
@ -171,8 +171,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn add_asset_full(
|
||||
&self,
|
||||
asset: &impl IsA<Asset>,
|
||||
|
@ -212,8 +212,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -231,8 +231,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_layer_get_active_for_track(
|
||||
|
@ -303,8 +303,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_layer_set_active_for_tracks(
|
||||
|
@ -340,8 +340,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(feature = "v1_18")]
|
||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
||||
// Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 }
|
||||
//}
|
||||
|
|
|
@ -21,14 +21,14 @@ glib::wrapper! {
|
|||
}
|
||||
|
||||
impl Marker {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn position(&self) -> u64 {
|
||||
glib::ObjectExt::property(self, "position")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "position")]
|
||||
pub fn connect_position_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_position_trampoline<F: Fn(&Marker) + 'static>(
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::Marker;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use crate::MarkerFlags;
|
||||
use glib::{
|
||||
prelude::*,
|
||||
|
@ -77,20 +77,20 @@ impl MarkerList {
|
|||
unsafe { ffi::ges_marker_list_size(self.to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn flags(&self) -> MarkerFlags {
|
||||
glib::ObjectExt::property(self, "flags")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn set_flags(&self, flags: MarkerFlags) {
|
||||
glib::ObjectExt::set_property(self, "flags", flags)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "marker-added")]
|
||||
pub fn connect_marker_added<F: Fn(&Self, u64, &Marker) + 'static>(
|
||||
&self,
|
||||
|
@ -118,8 +118,8 @@ impl MarkerList {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "marker-moved")]
|
||||
pub fn connect_marker_moved<F: Fn(&Self, u64, u64, &Marker) + 'static>(
|
||||
&self,
|
||||
|
@ -155,8 +155,8 @@ impl MarkerList {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "marker-removed")]
|
||||
pub fn connect_marker_removed<F: Fn(&Self, &Marker) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn marker_removed_trampoline<F: Fn(&MarkerList, &Marker) + 'static>(
|
||||
|
@ -180,8 +180,8 @@ impl MarkerList {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "flags")]
|
||||
pub fn connect_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_flags_trampoline<F: Fn(&MarkerList) + 'static>(
|
||||
|
@ -206,8 +206,8 @@ impl MarkerList {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
impl Default for MarkerList {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::MarkerList;
|
||||
use crate::MetaFlag;
|
||||
use glib::{
|
||||
|
@ -65,8 +65,8 @@ pub trait MetaContainerExt: 'static {
|
|||
#[doc(alias = "get_int64")]
|
||||
fn int64(&self, meta_item: &str) -> Option<i64>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_meta_container_get_marker_list")]
|
||||
#[doc(alias = "get_marker_list")]
|
||||
fn marker_list(&self, key: &str) -> Option<MarkerList>;
|
||||
|
@ -128,8 +128,8 @@ pub trait MetaContainerExt: 'static {
|
|||
#[doc(alias = "ges_meta_container_register_meta_uint64")]
|
||||
fn register_meta_uint64(&self, flags: MetaFlag, meta_item: &str, value: u64) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_meta_container_register_static_meta")]
|
||||
fn register_static_meta(
|
||||
&self,
|
||||
|
@ -159,8 +159,8 @@ pub trait MetaContainerExt: 'static {
|
|||
#[doc(alias = "ges_meta_container_set_int64")]
|
||||
fn set_int64(&self, meta_item: &str, value: i64) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_meta_container_set_marker_list")]
|
||||
fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool;
|
||||
|
||||
|
@ -352,8 +352,8 @@ impl<O: IsA<MetaContainer>> MetaContainerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn marker_list(&self, key: &str) -> Option<MarkerList> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::ges_meta_container_get_marker_list(
|
||||
|
@ -547,8 +547,8 @@ impl<O: IsA<MetaContainer>> MetaContainerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn register_static_meta(
|
||||
&self,
|
||||
flags: MetaFlag,
|
||||
|
@ -635,8 +635,8 @@ impl<O: IsA<MetaContainer>> MetaContainerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_marker_list(&self, meta_item: &str, list: &MarkerList) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_meta_container_set_marker_list(
|
||||
|
|
|
@ -71,18 +71,18 @@ pub use self::image_source::ImageSource;
|
|||
mod layer;
|
||||
pub use self::layer::Layer;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
mod marker;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub use self::marker::Marker;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
mod marker_list;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub use self::marker_list::MarkerList;
|
||||
|
||||
mod meta_container;
|
||||
|
@ -114,11 +114,11 @@ pub use self::source::Source;
|
|||
mod source_clip;
|
||||
pub use self::source_clip::SourceClip;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
mod source_clip_asset;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub use self::source_clip_asset::SourceClipAsset;
|
||||
|
||||
mod test_clip;
|
||||
|
@ -196,8 +196,8 @@ pub use self::enums::VideoStandardTransitionType;
|
|||
pub use self::enums::VideoTestPattern;
|
||||
|
||||
mod flags;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub use self::flags::MarkerFlags;
|
||||
pub use self::flags::MetaFlag;
|
||||
pub use self::flags::PipelineFlags;
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::Formatter;
|
||||
use crate::{Asset, MetaContainer, Timeline};
|
||||
use glib::{
|
||||
|
@ -43,8 +43,8 @@ pub trait ProjectExt: 'static {
|
|||
profile: &impl IsA<gst_pbutils::EncodingProfile>,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_project_add_formatter")]
|
||||
fn add_formatter(&self, formatter: &impl IsA<Formatter>);
|
||||
|
||||
|
@ -100,8 +100,8 @@ pub trait ProjectExt: 'static {
|
|||
#[doc(alias = "asset-removed")]
|
||||
fn connect_asset_removed<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "error-loading")]
|
||||
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
|
||||
&self,
|
||||
|
@ -117,8 +117,8 @@ pub trait ProjectExt: 'static {
|
|||
#[doc(alias = "loaded")]
|
||||
fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "loading")]
|
||||
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
|
@ -154,8 +154,8 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn add_formatter(&self, formatter: &impl IsA<Formatter>) {
|
||||
unsafe {
|
||||
ffi::ges_project_add_formatter(
|
||||
|
@ -374,8 +374,8 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -471,8 +471,8 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn loading_trampoline<P: IsA<Project>, F: Fn(&P, &Timeline) + 'static>(
|
||||
this: *mut ffi::GESProject,
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::{Clip, Container, Extractable, MetaContainer, TimelineElement};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use glib::translate::*;
|
||||
|
||||
glib::wrapper! {
|
||||
|
@ -20,8 +20,8 @@ glib::wrapper! {
|
|||
impl SourceClip {
|
||||
pub const NONE: Option<&'static SourceClip> = None;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_source_clip_new_time_overlay")]
|
||||
pub fn new_time_overlay() -> Option<SourceClip> {
|
||||
assert_initialized_main_thread!();
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
use crate::{
|
||||
Asset, Extractable, Group, Layer, MetaContainer, TimelineElement, Track, TrackElement,
|
||||
};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::{Clip, FrameNumber};
|
||||
use glib::{
|
||||
prelude::*,
|
||||
|
@ -81,13 +81,13 @@ pub trait TimelineExt: 'static {
|
|||
#[doc(alias = "ges_timeline_commit_sync")]
|
||||
fn commit_sync(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
#[doc(alias = "ges_timeline_disable_edit_apis")]
|
||||
fn disable_edit_apis(&self, disable_edit_apis: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "ges_timeline_freeze_commit")]
|
||||
fn freeze_commit(&self);
|
||||
|
||||
|
@ -99,8 +99,8 @@ pub trait TimelineExt: 'static {
|
|||
#[doc(alias = "get_duration")]
|
||||
fn duration(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
#[doc(alias = "ges_timeline_get_edit_apis_disabled")]
|
||||
#[doc(alias = "get_edit_apis_disabled")]
|
||||
fn is_edit_apis_disabled(&self) -> bool;
|
||||
|
@ -109,14 +109,14 @@ pub trait TimelineExt: 'static {
|
|||
#[doc(alias = "get_element")]
|
||||
fn element(&self, name: &str) -> Option<TimelineElement>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_timeline_get_frame_at")]
|
||||
#[doc(alias = "get_frame_at")]
|
||||
fn frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_timeline_get_frame_time")]
|
||||
#[doc(alias = "get_frame_time")]
|
||||
fn frame_time(&self, frame_number: FrameNumber) -> Option<gst::ClockTime>;
|
||||
|
@ -155,8 +155,8 @@ pub trait TimelineExt: 'static {
|
|||
#[doc(alias = "ges_timeline_load_from_uri")]
|
||||
fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "ges_timeline_move_layer")]
|
||||
fn move_layer(
|
||||
&self,
|
||||
|
@ -192,8 +192,8 @@ pub trait TimelineExt: 'static {
|
|||
#[doc(alias = "ges_timeline_set_snapping_distance")]
|
||||
fn set_snapping_distance(&self, snapping_distance: gst::ClockTime);
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "ges_timeline_thaw_commit")]
|
||||
fn thaw_commit(&self);
|
||||
|
||||
|
@ -212,8 +212,8 @@ pub trait TimelineExt: 'static {
|
|||
#[doc(alias = "layer-removed")]
|
||||
fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "select-element-track")]
|
||||
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Option<Track> + 'static>(
|
||||
&self,
|
||||
|
@ -297,8 +297,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
fn disable_edit_apis(&self, disable_edit_apis: bool) {
|
||||
unsafe {
|
||||
ffi::ges_timeline_disable_edit_apis(
|
||||
|
@ -308,8 +308,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn freeze_commit(&self) {
|
||||
unsafe {
|
||||
ffi::ges_timeline_freeze_commit(self.as_ref().to_glib_none().0);
|
||||
|
@ -333,8 +333,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
fn is_edit_apis_disabled(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_timeline_get_edit_apis_disabled(
|
||||
|
@ -352,16 +352,16 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber {
|
||||
unsafe {
|
||||
ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.into_glib())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn frame_time(&self, frame_number: FrameNumber) -> Option<gst::ClockTime> {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_timeline_get_frame_time(
|
||||
|
@ -451,8 +451,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn move_layer(
|
||||
&self,
|
||||
layer: &impl IsA<Layer>,
|
||||
|
@ -552,8 +552,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn thaw_commit(&self) {
|
||||
unsafe {
|
||||
ffi::ges_timeline_thaw_commit(self.as_ref().to_glib_none().0);
|
||||
|
@ -669,8 +669,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_select_element_track<
|
||||
F: Fn(&Self, &Clip, &TrackElement) -> Option<Track> + 'static,
|
||||
>(
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
// DO NOT EDIT
|
||||
#![allow(deprecated)]
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::{Edge, EditMode, Layer};
|
||||
use crate::{Extractable, MetaContainer, Timeline, TrackType};
|
||||
use glib::{
|
||||
|
@ -40,8 +40,8 @@ pub trait TimelineElementExt: 'static {
|
|||
#[must_use]
|
||||
fn copy(&self, deep: bool) -> TimelineElement;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_timeline_element_edit")]
|
||||
fn edit(
|
||||
&self,
|
||||
|
@ -52,8 +52,8 @@ pub trait TimelineElementExt: 'static {
|
|||
position: u64,
|
||||
) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_timeline_element_edit_full")]
|
||||
fn edit_full(
|
||||
&self,
|
||||
|
@ -87,8 +87,8 @@ pub trait TimelineElementExt: 'static {
|
|||
#[doc(alias = "get_inpoint")]
|
||||
fn inpoint(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "ges_timeline_element_get_layer_priority")]
|
||||
#[doc(alias = "get_layer_priority")]
|
||||
fn layer_priority(&self) -> u32;
|
||||
|
@ -101,8 +101,8 @@ pub trait TimelineElementExt: 'static {
|
|||
#[doc(alias = "get_name")]
|
||||
fn name(&self) -> Option<glib::GString>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_timeline_element_get_natural_framerate")]
|
||||
#[doc(alias = "get_natural_framerate")]
|
||||
fn natural_framerate(&self) -> Option<(i32, i32)>;
|
||||
|
@ -173,8 +173,8 @@ pub trait TimelineElementExt: 'static {
|
|||
#[doc(alias = "ges_timeline_element_set_child_property_by_pspec")]
|
||||
fn set_child_property_by_pspec(&self, pspec: impl AsRef<glib::ParamSpec>, value: &glib::Value);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_timeline_element_set_child_property_full")]
|
||||
fn set_child_property_full(
|
||||
&self,
|
||||
|
@ -224,16 +224,16 @@ pub trait TimelineElementExt: 'static {
|
|||
|
||||
fn set_serialize(&self, serialize: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "child-property-added")]
|
||||
fn connect_child_property_added<F: Fn(&Self, &glib::Object, &glib::ParamSpec) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "child-property-removed")]
|
||||
fn connect_child_property_removed<F: Fn(&Self, &glib::Object, &glib::ParamSpec) + 'static>(
|
||||
&self,
|
||||
|
@ -303,8 +303,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn edit(
|
||||
&self,
|
||||
layers: &[Layer],
|
||||
|
@ -325,8 +325,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn edit_full(
|
||||
&self,
|
||||
new_layer_priority: i64,
|
||||
|
@ -407,8 +407,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn layer_priority(&self) -> u32 {
|
||||
unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) }
|
||||
}
|
||||
|
@ -429,8 +429,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn natural_framerate(&self) -> Option<(i32, i32)> {
|
||||
unsafe {
|
||||
let mut framerate_n = mem::MaybeUninit::uninit();
|
||||
|
@ -623,8 +623,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_child_property_full(
|
||||
&self,
|
||||
property_name: &str,
|
||||
|
@ -758,8 +758,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
glib::ObjectExt::set_property(self.as_ref(), "serialize", serialize)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_child_property_added<F: Fn(&Self, &glib::Object, &glib::ParamSpec) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -793,8 +793,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_child_property_removed<F: Fn(&Self, &glib::Object, &glib::ParamSpec) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -9,8 +9,8 @@ use glib::{
|
|||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
|
@ -37,8 +37,8 @@ pub trait GESTrackExt: 'static {
|
|||
#[doc(alias = "ges_track_add_element")]
|
||||
fn add_element(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_add_element_full")]
|
||||
fn add_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error>;
|
||||
|
||||
|
@ -57,8 +57,8 @@ pub trait GESTrackExt: 'static {
|
|||
#[doc(alias = "get_mixing")]
|
||||
fn is_mixing(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_get_restriction_caps")]
|
||||
#[doc(alias = "get_restriction_caps")]
|
||||
fn restriction_caps(&self) -> Option<gst::Caps>;
|
||||
|
@ -71,8 +71,8 @@ pub trait GESTrackExt: 'static {
|
|||
fn remove_element(&self, object: &impl IsA<TrackElement>)
|
||||
-> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_remove_element_full")]
|
||||
fn remove_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error>;
|
||||
|
||||
|
@ -93,12 +93,12 @@ pub trait GESTrackExt: 'static {
|
|||
|
||||
fn duration(&self) -> u64;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn id(&self) -> Option<glib::GString>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_id(&self, id: Option<&str>);
|
||||
|
||||
#[doc(alias = "restriction-caps")]
|
||||
|
@ -125,8 +125,8 @@ pub trait GESTrackExt: 'static {
|
|||
#[doc(alias = "duration")]
|
||||
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "id")]
|
||||
fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
|
@ -150,8 +150,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn add_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -189,8 +189,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn restriction_caps(&self) -> Option<gst::Caps> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::ges_track_get_restriction_caps(
|
||||
|
@ -218,8 +218,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn remove_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -278,14 +278,14 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
glib::ObjectExt::property(self.as_ref(), "duration")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn id(&self) -> Option<glib::GString> {
|
||||
glib::ObjectExt::property(self.as_ref(), "id")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_id(&self, id: Option<&str>) {
|
||||
glib::ObjectExt::set_property(self.as_ref(), "id", id)
|
||||
}
|
||||
|
@ -403,8 +403,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_id_trampoline<P: IsA<Track>, F: Fn(&P) + 'static>(
|
||||
this: *mut ffi::GESTrack,
|
||||
|
|
|
@ -35,8 +35,8 @@ pub trait TrackElementExt: 'static {
|
|||
whitelist: &[&str],
|
||||
);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_clamp_control_source")]
|
||||
fn clamp_control_source(&self, property_name: &str);
|
||||
|
||||
|
@ -55,8 +55,8 @@ pub trait TrackElementExt: 'static {
|
|||
//#[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: 87 };
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_get_auto_clamp_control_sources")]
|
||||
#[doc(alias = "get_auto_clamp_control_sources")]
|
||||
fn is_auto_clamp_control_sources(&self) -> bool;
|
||||
|
@ -101,16 +101,16 @@ pub trait TrackElementExt: 'static {
|
|||
#[doc(alias = "get_track_type")]
|
||||
fn track_type(&self) -> TrackType;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_has_internal_source")]
|
||||
fn has_internal_source(&self) -> bool;
|
||||
|
||||
#[doc(alias = "ges_track_element_is_active")]
|
||||
fn is_active(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_is_core")]
|
||||
fn is_core(&self) -> bool;
|
||||
|
||||
|
@ -126,8 +126,8 @@ pub trait TrackElementExt: 'static {
|
|||
#[doc(alias = "ges_track_element_set_active")]
|
||||
fn set_active(&self, active: bool) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_set_auto_clamp_control_sources")]
|
||||
fn set_auto_clamp_control_sources(&self, auto_clamp: bool);
|
||||
|
||||
|
@ -155,8 +155,8 @@ pub trait TrackElementExt: 'static {
|
|||
binding_type: &str,
|
||||
) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_set_has_internal_source")]
|
||||
fn set_has_internal_source(&self, has_internal_source: bool) -> bool;
|
||||
|
||||
|
@ -178,16 +178,16 @@ pub trait TrackElementExt: 'static {
|
|||
#[doc(alias = "active")]
|
||||
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "auto-clamp-control-sources")]
|
||||
fn connect_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "has-internal-source")]
|
||||
fn connect_has_internal_source_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
|
@ -217,8 +217,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn clamp_control_source(&self, property_name: &str) {
|
||||
unsafe {
|
||||
ffi::ges_track_element_clamp_control_source(
|
||||
|
@ -254,8 +254,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
|
||||
//}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_auto_clamp_control_sources(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_get_auto_clamp_control_sources(
|
||||
|
@ -349,8 +349,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn has_internal_source(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_has_internal_source(
|
||||
|
@ -367,8 +367,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_core(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_is_core(
|
||||
|
@ -430,8 +430,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_auto_clamp_control_sources(&self, auto_clamp: bool) {
|
||||
unsafe {
|
||||
ffi::ges_track_element_set_auto_clamp_control_sources(
|
||||
|
@ -492,8 +492,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn set_has_internal_source(&self, has_internal_source: bool) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_set_has_internal_source(
|
||||
|
@ -596,8 +596,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -626,8 +626,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_has_internal_source_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_has_internal_source_trampoline<
|
||||
P: IsA<TrackElement>,
|
||||
|
|
|
@ -9,8 +9,8 @@ use glib::{
|
|||
signal::{connect_raw, SignalHandlerId},
|
||||
translate::*,
|
||||
};
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use std::mem;
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
|
@ -28,8 +28,8 @@ impl TrackElementAsset {
|
|||
}
|
||||
|
||||
pub trait TrackElementAssetExt: 'static {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_element_asset_get_natural_framerate")]
|
||||
#[doc(alias = "get_natural_framerate")]
|
||||
fn natural_framerate(&self) -> Option<(i32, i32)>;
|
||||
|
@ -46,8 +46,8 @@ pub trait TrackElementAssetExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<TrackElementAsset>> TrackElementAssetExt for O {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn natural_framerate(&self) -> Option<(i32, i32)> {
|
||||
unsafe {
|
||||
let mut framerate_n = mem::MaybeUninit::uninit();
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use crate::SourceClipAsset;
|
||||
use crate::{Asset, ClipAsset, MetaContainer, UriSourceAsset};
|
||||
use glib::{
|
||||
|
@ -14,8 +14,8 @@ use glib::{
|
|||
};
|
||||
use std::{boxed::Box as Box_, mem::transmute, ptr};
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
glib::wrapper! {
|
||||
#[doc(alias = "GESUriClipAsset")]
|
||||
pub struct UriClipAsset(Object<ffi::GESUriClipAsset, ffi::GESUriClipAssetClass>) @extends SourceClipAsset, ClipAsset, Asset, @implements MetaContainer;
|
||||
|
@ -25,7 +25,7 @@ glib::wrapper! {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(feature = "v1_18", feature = "dox")))]
|
||||
#[cfg(not(any(feature = "v1_18")))]
|
||||
glib::wrapper! {
|
||||
#[doc(alias = "GESUriClipAsset")]
|
||||
pub struct UriClipAsset(Object<ffi::GESUriClipAsset, ffi::GESUriClipAssetClass>) @extends ClipAsset, Asset, @implements MetaContainer;
|
||||
|
@ -38,8 +38,8 @@ glib::wrapper! {
|
|||
impl UriClipAsset {
|
||||
pub const NONE: Option<&'static UriClipAsset> = None;
|
||||
|
||||
//#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
//#[cfg(feature = "v1_16")]
|
||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
//#[doc(alias = "ges_uri_clip_asset_finish")]
|
||||
//pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result<UriClipAsset, glib::Error> {
|
||||
// unsafe { TODO: call ffi:ges_uri_clip_asset_finish() }
|
||||
|
@ -74,8 +74,8 @@ pub trait UriClipAssetExt: 'static {
|
|||
#[doc(alias = "get_info")]
|
||||
fn info(&self) -> gst_pbutils::DiscovererInfo;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_uri_clip_asset_get_max_duration")]
|
||||
#[doc(alias = "get_max_duration")]
|
||||
fn max_duration(&self) -> Option<gst::ClockTime>;
|
||||
|
@ -84,23 +84,23 @@ pub trait UriClipAssetExt: 'static {
|
|||
#[doc(alias = "get_stream_assets")]
|
||||
fn stream_assets(&self) -> Vec<UriSourceAsset>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_uri_clip_asset_is_image")]
|
||||
fn is_image(&self) -> bool;
|
||||
|
||||
fn set_duration(&self, duration: u64);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "is-nested-timeline")]
|
||||
fn is_nested_timeline(&self) -> bool;
|
||||
|
||||
#[doc(alias = "duration")]
|
||||
fn connect_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "is-nested-timeline")]
|
||||
fn connect_is_nested_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
}
|
||||
|
@ -122,8 +122,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn max_duration(&self) -> Option<gst::ClockTime> {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_uri_clip_asset_get_max_duration(
|
||||
|
@ -140,8 +140,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_image(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_uri_clip_asset_is_image(
|
||||
|
@ -154,8 +154,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
glib::ObjectExt::set_property(self.as_ref(), "duration", duration)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_nested_timeline(&self) -> bool {
|
||||
glib::ObjectExt::property(self.as_ref(), "is-nested-timeline")
|
||||
}
|
||||
|
@ -185,8 +185,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_is_nested_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_is_nested_timeline_trampoline<
|
||||
P: IsA<UriClipAsset>,
|
||||
|
|
|
@ -32,8 +32,8 @@ pub trait UriSourceAssetExt: 'static {
|
|||
#[doc(alias = "get_stream_uri")]
|
||||
fn stream_uri(&self) -> glib::GString;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_uri_source_asset_is_image")]
|
||||
fn is_image(&self) -> bool;
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn is_image(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_uri_source_asset_is_image(
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement};
|
||||
use glib::prelude::*;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use glib::translate::*;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
use std::mem;
|
||||
|
||||
glib::wrapper! {
|
||||
|
@ -26,16 +26,16 @@ impl VideoSource {
|
|||
}
|
||||
|
||||
pub trait VideoSourceExt: 'static {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_video_source_get_natural_size")]
|
||||
#[doc(alias = "get_natural_size")]
|
||||
fn natural_size(&self) -> Option<(i32, i32)>;
|
||||
}
|
||||
|
||||
impl<O: IsA<VideoSource>> VideoSourceExt for O {
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn natural_size(&self) -> Option<(i32, i32)> {
|
||||
unsafe {
|
||||
let mut width = mem::MaybeUninit::uninit();
|
||||
|
|
|
@ -55,7 +55,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gst_editing_services_1_0]
|
||||
name = "gst-editing-services-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
@ -148,8 +148,8 @@ pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U: GESVideoStandardTrans
|
|||
pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V: GESVideoStandardTransitionType = 263;
|
||||
pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H: GESVideoStandardTransitionType = 264;
|
||||
pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE: GESVideoStandardTransitionType = 512;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub const GES_VIDEO_STANDARD_TRANSITION_TYPE_FADE_IN: GESVideoStandardTransitionType = 513;
|
||||
|
||||
pub type GESVideoTestPattern = c_int;
|
||||
|
@ -2790,16 +2790,16 @@ extern "C" {
|
|||
// GESEdge
|
||||
//=========================================================================
|
||||
pub fn ges_edge_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_edge_name(edge: GESEdge) -> *const c_char;
|
||||
|
||||
//=========================================================================
|
||||
// GESEditMode
|
||||
//=========================================================================
|
||||
pub fn ges_edit_mode_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -2825,8 +2825,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GESMarkerFlags
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn ges_marker_flags_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -2944,17 +2944,17 @@ extern "C" {
|
|||
// GESBaseEffect
|
||||
//=========================================================================
|
||||
pub fn ges_base_effect_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_base_effect_register_time_property(
|
||||
effect: *mut GESBaseEffect,
|
||||
child_property_name: *const c_char,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_base_effect_set_time_translation_funcs(
|
||||
effect: *mut GESBaseEffect,
|
||||
source_to_sink_func: GESBaseEffectTimeTranslationFunc,
|
||||
|
@ -2983,16 +2983,16 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn ges_clip_get_type() -> GType;
|
||||
pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_add_child_to_track(
|
||||
clip: *mut GESClip,
|
||||
child: *mut GESTrackElement,
|
||||
track: *mut GESTrack,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> *mut GESTrackElement;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_add_top_effect(
|
||||
clip: *mut GESClip,
|
||||
effect: *mut GESBaseEffect,
|
||||
|
@ -3010,11 +3010,11 @@ extern "C" {
|
|||
track_type: GESTrackType,
|
||||
type_: GType,
|
||||
) -> *mut glib::GList;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_internal_time_from_timeline_time(
|
||||
clip: *mut GESClip,
|
||||
child: *mut GESTrackElement,
|
||||
|
@ -3023,16 +3023,16 @@ extern "C" {
|
|||
) -> gst::GstClockTime;
|
||||
pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer;
|
||||
pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_timeline_time_from_internal_time(
|
||||
clip: *mut GESClip,
|
||||
child: *mut GESTrackElement,
|
||||
internal_time: gst::GstClockTime,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_timeline_time_from_source_frame(
|
||||
clip: *mut GESClip,
|
||||
frame_number: GESFrameNumber,
|
||||
|
@ -3045,15 +3045,15 @@ extern "C" {
|
|||
) -> c_int;
|
||||
pub fn ges_clip_get_top_effects(clip: *mut GESClip) -> *mut glib::GList;
|
||||
pub fn ges_clip_move_to_layer(clip: *mut GESClip, layer: *mut GESLayer) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_move_to_layer_full(
|
||||
clip: *mut GESClip,
|
||||
layer: *mut GESLayer,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_remove_top_effect(
|
||||
clip: *mut GESClip,
|
||||
effect: *mut GESBaseEffect,
|
||||
|
@ -3065,8 +3065,8 @@ extern "C" {
|
|||
effect: *mut GESBaseEffect,
|
||||
newindex: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_set_top_effect_index_full(
|
||||
clip: *mut GESClip,
|
||||
effect: *mut GESBaseEffect,
|
||||
|
@ -3079,8 +3079,8 @@ extern "C" {
|
|||
newpriority: c_uint,
|
||||
) -> gboolean;
|
||||
pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_split_full(
|
||||
clip: *mut GESClip,
|
||||
position: u64,
|
||||
|
@ -3091,14 +3091,14 @@ extern "C" {
|
|||
// GESClipAsset
|
||||
//=========================================================================
|
||||
pub fn ges_clip_asset_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_asset_get_frame_time(
|
||||
self_: *mut GESClipAsset,
|
||||
frame_number: GESFrameNumber,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_asset_get_natural_framerate(
|
||||
self_: *mut GESClipAsset,
|
||||
framerate_n: *mut c_int,
|
||||
|
@ -3221,8 +3221,8 @@ extern "C" {
|
|||
duration: gst::GstClockTime,
|
||||
track_types: GESTrackType,
|
||||
) -> *mut GESClip;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_add_asset_full(
|
||||
layer: *mut GESLayer,
|
||||
asset: *mut GESAsset,
|
||||
|
@ -3233,15 +3233,15 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
) -> *mut GESClip;
|
||||
pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_add_clip_full(
|
||||
layer: *mut GESLayer,
|
||||
clip: *mut GESClip,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_get_active_for_track(layer: *mut GESLayer, track: *mut GESTrack) -> gboolean;
|
||||
pub fn ges_layer_get_auto_transition(layer: *mut GESLayer) -> gboolean;
|
||||
pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList;
|
||||
|
@ -3255,8 +3255,8 @@ extern "C" {
|
|||
pub fn ges_layer_get_timeline(layer: *mut GESLayer) -> *mut GESTimeline;
|
||||
pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean;
|
||||
pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_set_active_for_tracks(
|
||||
layer: *mut GESLayer,
|
||||
active: gboolean,
|
||||
|
@ -3269,40 +3269,40 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GESMarker
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GESMarkerList
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_new() -> *mut GESMarkerList;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_add(
|
||||
list: *mut GESMarkerList,
|
||||
position: gst::GstClockTime,
|
||||
) -> *mut GESMarker;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_move(
|
||||
list: *mut GESMarkerList,
|
||||
marker: *mut GESMarker,
|
||||
position: gst::GstClockTime,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -3380,8 +3380,8 @@ extern "C" {
|
|||
project: *mut GESProject,
|
||||
profile: *mut gst_pbutils::GstEncodingProfile,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter);
|
||||
pub fn ges_project_create_asset(
|
||||
project: *mut GESProject,
|
||||
|
@ -3427,15 +3427,15 @@ extern "C" {
|
|||
// GESSourceClip
|
||||
//=========================================================================
|
||||
pub fn ges_source_clip_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip;
|
||||
|
||||
//=========================================================================
|
||||
// GESSourceClipAsset
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_source_clip_asset_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -3511,29 +3511,29 @@ extern "C" {
|
|||
pub fn ges_timeline_append_layer(timeline: *mut GESTimeline) -> *mut GESLayer;
|
||||
pub fn ges_timeline_commit(timeline: *mut GESTimeline) -> gboolean;
|
||||
pub fn ges_timeline_commit_sync(timeline: *mut GESTimeline) -> gboolean;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn ges_timeline_disable_edit_apis(self_: *mut GESTimeline, disable_edit_apis: gboolean);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn ges_timeline_freeze_commit(timeline: *mut GESTimeline);
|
||||
pub fn ges_timeline_get_auto_transition(timeline: *mut GESTimeline) -> gboolean;
|
||||
pub fn ges_timeline_get_duration(timeline: *mut GESTimeline) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||
pub fn ges_timeline_get_edit_apis_disabled(self_: *mut GESTimeline) -> gboolean;
|
||||
pub fn ges_timeline_get_element(
|
||||
timeline: *mut GESTimeline,
|
||||
name: *const c_char,
|
||||
) -> *mut GESTimelineElement;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_get_frame_at(
|
||||
self_: *mut GESTimeline,
|
||||
timestamp: gst::GstClockTime,
|
||||
) -> GESFrameNumber;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_get_frame_time(
|
||||
self_: *mut GESTimeline,
|
||||
frame_number: GESFrameNumber,
|
||||
|
@ -3557,8 +3557,8 @@ extern "C" {
|
|||
uri: *const c_char,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_timeline_move_layer(
|
||||
timeline: *mut GESTimeline,
|
||||
layer: *mut GESLayer,
|
||||
|
@ -3584,8 +3584,8 @@ extern "C" {
|
|||
timeline: *mut GESTimeline,
|
||||
snapping_distance: gst::GstClockTime,
|
||||
);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn ges_timeline_thaw_commit(timeline: *mut GESTimeline);
|
||||
|
||||
//=========================================================================
|
||||
|
@ -3601,8 +3601,8 @@ extern "C" {
|
|||
self_: *mut GESTimelineElement,
|
||||
deep: gboolean,
|
||||
) -> *mut GESTimelineElement;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_edit(
|
||||
self_: *mut GESTimelineElement,
|
||||
layers: *mut glib::GList,
|
||||
|
@ -3611,8 +3611,8 @@ extern "C" {
|
|||
edge: GESEdge,
|
||||
position: u64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_edit_full(
|
||||
self_: *mut GESTimelineElement,
|
||||
new_layer_priority: i64,
|
||||
|
@ -3639,15 +3639,15 @@ extern "C" {
|
|||
//pub fn ges_timeline_element_get_child_property_valist(self_: *mut GESTimelineElement, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list);
|
||||
pub fn ges_timeline_element_get_duration(self_: *mut GESTimelineElement) -> gst::GstClockTime;
|
||||
pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32;
|
||||
pub fn ges_timeline_element_get_max_duration(
|
||||
self_: *mut GESTimelineElement,
|
||||
) -> gst::GstClockTime;
|
||||
pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_get_natural_framerate(
|
||||
self_: *mut GESTimelineElement,
|
||||
framerate_n: *mut c_int,
|
||||
|
@ -3712,8 +3712,8 @@ extern "C" {
|
|||
pspec: *mut gobject::GParamSpec,
|
||||
value: *const gobject::GValue,
|
||||
);
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_set_child_property_full(
|
||||
self_: *mut GESTimelineElement,
|
||||
property_name: *const c_char,
|
||||
|
@ -3807,8 +3807,8 @@ extern "C" {
|
|||
pub fn ges_track_get_type() -> GType;
|
||||
pub fn ges_track_new(type_: GESTrackType, caps: *mut gst::GstCaps) -> *mut GESTrack;
|
||||
pub fn ges_track_add_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_add_element_full(
|
||||
track: *mut GESTrack,
|
||||
object: *mut GESTrackElement,
|
||||
|
@ -3818,14 +3818,14 @@ extern "C" {
|
|||
pub fn ges_track_get_caps(track: *mut GESTrack) -> *const gst::GstCaps;
|
||||
pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList;
|
||||
pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps;
|
||||
pub fn ges_track_get_timeline(track: *mut GESTrack) -> *const GESTimeline;
|
||||
pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement)
|
||||
-> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_remove_element_full(
|
||||
track: *mut GESTrack,
|
||||
object: *mut GESTrackElement,
|
||||
|
@ -3851,8 +3851,8 @@ extern "C" {
|
|||
blacklist: *mut *const c_char,
|
||||
whitelist: *mut *const c_char,
|
||||
);
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_clamp_control_source(
|
||||
object: *mut GESTrackElement,
|
||||
property_name: *const c_char,
|
||||
|
@ -3867,8 +3867,8 @@ extern "C" {
|
|||
pub fn ges_track_element_get_all_control_bindings(
|
||||
trackelement: *mut GESTrackElement,
|
||||
) -> *mut glib::GHashTable;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_get_auto_clamp_control_sources(
|
||||
object: *mut GESTrackElement,
|
||||
) -> gboolean;
|
||||
|
@ -3897,12 +3897,12 @@ extern "C" {
|
|||
pub fn ges_track_element_get_nleobject(object: *mut GESTrackElement) -> *mut gst::GstElement;
|
||||
pub fn ges_track_element_get_track(object: *mut GESTrackElement) -> *mut GESTrack;
|
||||
pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean;
|
||||
pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean;
|
||||
pub fn ges_track_element_list_children_properties(
|
||||
object: *mut GESTrackElement,
|
||||
|
@ -3920,8 +3920,8 @@ extern "C" {
|
|||
) -> gboolean;
|
||||
pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean)
|
||||
-> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_set_auto_clamp_control_sources(
|
||||
object: *mut GESTrackElement,
|
||||
auto_clamp: gboolean,
|
||||
|
@ -3948,8 +3948,8 @@ extern "C" {
|
|||
property_name: *const c_char,
|
||||
binding_type: *const c_char,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_set_has_internal_source(
|
||||
object: *mut GESTrackElement,
|
||||
has_internal_source: gboolean,
|
||||
|
@ -3960,8 +3960,8 @@ extern "C" {
|
|||
// GESTrackElementAsset
|
||||
//=========================================================================
|
||||
pub fn ges_track_element_asset_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_asset_get_natural_framerate(
|
||||
self_: *mut GESTrackElementAsset,
|
||||
framerate_n: *mut c_int,
|
||||
|
@ -4002,8 +4002,8 @@ extern "C" {
|
|||
// GESUriClipAsset
|
||||
//=========================================================================
|
||||
pub fn ges_uri_clip_asset_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_uri_clip_asset_finish(
|
||||
res: *mut gio::GAsyncResult,
|
||||
error: *mut *mut glib::GError,
|
||||
|
@ -4022,12 +4022,12 @@ extern "C" {
|
|||
pub fn ges_uri_clip_asset_get_info(
|
||||
self_: *const GESUriClipAsset,
|
||||
) -> *mut gst_pbutils::GstDiscovererInfo;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_uri_clip_asset_get_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime;
|
||||
pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -4041,16 +4041,16 @@ extern "C" {
|
|||
asset: *mut GESUriSourceAsset,
|
||||
) -> *mut gst_pbutils::GstDiscovererStreamInfo;
|
||||
pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean;
|
||||
|
||||
//=========================================================================
|
||||
// GESVideoSource
|
||||
//=========================================================================
|
||||
pub fn ges_video_source_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_video_source_get_natural_size(
|
||||
self_: *mut GESVideoSource,
|
||||
width: *mut c_int,
|
||||
|
@ -4164,8 +4164,8 @@ extern "C" {
|
|||
meta_item: *const c_char,
|
||||
dest: *mut i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_meta_container_get_marker_list(
|
||||
container: *mut GESMetaContainer,
|
||||
key: *const c_char,
|
||||
|
@ -4255,8 +4255,8 @@ extern "C" {
|
|||
meta_item: *const c_char,
|
||||
value: u64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_meta_container_register_static_meta(
|
||||
container: *mut GESMetaContainer,
|
||||
flags: GESMetaFlag,
|
||||
|
@ -4298,8 +4298,8 @@ extern "C" {
|
|||
meta_item: *const c_char,
|
||||
value: i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_meta_container_set_marker_list(
|
||||
container: *mut GESMetaContainer,
|
||||
meta_item: *const c_char,
|
||||
|
@ -4331,8 +4331,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn ges_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean;
|
||||
pub fn ges_deinit();
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset;
|
||||
pub fn ges_init() -> gboolean;
|
||||
pub fn ges_init_check(
|
||||
|
@ -4341,8 +4341,8 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_is_initialized() -> gboolean;
|
||||
pub fn ges_list_assets(filter: GType) -> *mut glib::GList;
|
||||
pub fn ges_play_sink_convert_frame(
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -34,7 +34,7 @@ version = "1.22"
|
|||
version = "1.23"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_gl_egl_sys"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
|
|
@ -49,8 +49,8 @@ pub static GL_COLOR_CONVERT_EXT_FORMATS: &GStr =
|
|||
#[doc(alias = "GST_GL_COLOR_CONVERT_VIDEO_CAPS")]
|
||||
pub static GL_COLOR_CONVERT_VIDEO_CAPS: &GStr =
|
||||
unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_GL_COLOR_CONVERT_VIDEO_CAPS) };
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "GST_GL_CONFIG_STRUCTURE_NAME")]
|
||||
pub static GL_CONFIG_STRUCTURE_NAME: &GStr =
|
||||
unsafe { GStr::from_utf8_with_nul_unchecked(ffi::GST_GL_CONFIG_STRUCTURE_NAME) };
|
||||
|
|
|
@ -10,8 +10,8 @@ use glib::{
|
|||
};
|
||||
use std::mem;
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
#[doc(alias = "GstGLConfigCaveat")]
|
||||
|
@ -26,8 +26,8 @@ pub enum GLConfigCaveat {
|
|||
__Unknown(i32),
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl GLConfigCaveat {
|
||||
#[doc(alias = "gst_gl_config_caveat_to_string")]
|
||||
#[doc(alias = "to_string")]
|
||||
|
@ -37,8 +37,8 @@ impl GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl IntoGlib for GLConfigCaveat {
|
||||
type GlibType = ffi::GstGLConfigCaveat;
|
||||
|
@ -54,8 +54,8 @@ impl IntoGlib for GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<ffi::GstGLConfigCaveat> for GLConfigCaveat {
|
||||
#[inline]
|
||||
|
@ -71,8 +71,8 @@ impl FromGlib<ffi::GstGLConfigCaveat> for GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl StaticType for GLConfigCaveat {
|
||||
#[inline]
|
||||
fn static_type() -> Type {
|
||||
|
@ -80,8 +80,8 @@ impl StaticType for GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl glib::HasParamSpec for GLConfigCaveat {
|
||||
type ParamSpec = glib::ParamSpecEnum;
|
||||
type SetValue = Self;
|
||||
|
@ -92,14 +92,14 @@ impl glib::HasParamSpec for GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
unsafe impl<'a> FromValue<'a> for GLConfigCaveat {
|
||||
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
||||
|
||||
|
@ -110,8 +110,8 @@ unsafe impl<'a> FromValue<'a> for GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl ToValue for GLConfigCaveat {
|
||||
#[inline]
|
||||
fn to_value(&self) -> glib::Value {
|
||||
|
@ -128,8 +128,8 @@ impl ToValue for GLConfigCaveat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl From<GLConfigCaveat> for glib::Value {
|
||||
#[inline]
|
||||
fn from(v: GLConfigCaveat) -> Self {
|
||||
|
@ -336,8 +336,8 @@ impl GLFormat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_format_is_supported")]
|
||||
pub fn is_supported(context: &impl IsA<GLContext>, format: GLFormat) -> bool {
|
||||
skip_assert_initialized!();
|
||||
|
@ -349,8 +349,8 @@ impl GLFormat {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_format_type_from_sized_gl_format")]
|
||||
pub fn type_from_sized_gl_format(self) -> (GLFormat, u32) {
|
||||
assert_initialized_main_thread!();
|
||||
|
|
|
@ -117,9 +117,9 @@ impl From<GLAPI> for glib::Value {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
bitflags! {
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "GstGLConfigSurfaceType")]
|
||||
pub struct GLConfigSurfaceType: u32 {
|
||||
#[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_NONE")]
|
||||
|
@ -133,8 +133,8 @@ bitflags! {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl GLConfigSurfaceType {
|
||||
#[doc(alias = "gst_gl_config_surface_type_to_string")]
|
||||
#[doc(alias = "to_string")]
|
||||
|
@ -144,8 +144,8 @@ impl GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl IntoGlib for GLConfigSurfaceType {
|
||||
type GlibType = ffi::GstGLConfigSurfaceType;
|
||||
|
@ -156,8 +156,8 @@ impl IntoGlib for GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<ffi::GstGLConfigSurfaceType> for GLConfigSurfaceType {
|
||||
#[inline]
|
||||
|
@ -167,8 +167,8 @@ impl FromGlib<ffi::GstGLConfigSurfaceType> for GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl StaticType for GLConfigSurfaceType {
|
||||
#[inline]
|
||||
fn static_type() -> Type {
|
||||
|
@ -176,8 +176,8 @@ impl StaticType for GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl glib::HasParamSpec for GLConfigSurfaceType {
|
||||
type ParamSpec = glib::ParamSpecFlags;
|
||||
type SetValue = Self;
|
||||
|
@ -188,14 +188,14 @@ impl glib::HasParamSpec for GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
unsafe impl<'a> FromValue<'a> for GLConfigSurfaceType {
|
||||
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
||||
|
||||
|
@ -206,8 +206,8 @@ unsafe impl<'a> FromValue<'a> for GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl ToValue for GLConfigSurfaceType {
|
||||
#[inline]
|
||||
fn to_value(&self) -> glib::Value {
|
||||
|
@ -224,8 +224,8 @@ impl ToValue for GLConfigSurfaceType {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
impl From<GLConfigSurfaceType> for glib::Value {
|
||||
#[inline]
|
||||
fn from(v: GLConfigSurfaceType) -> Self {
|
||||
|
@ -253,20 +253,20 @@ bitflags! {
|
|||
const VIV_FB = ffi::GST_GL_DISPLAY_TYPE_VIV_FB as _;
|
||||
#[doc(alias = "GST_GL_DISPLAY_TYPE_GBM")]
|
||||
const GBM = ffi::GST_GL_DISPLAY_TYPE_GBM as _;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "GST_GL_DISPLAY_TYPE_EGL_DEVICE")]
|
||||
const EGL_DEVICE = ffi::GST_GL_DISPLAY_TYPE_EGL_DEVICE as _;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "GST_GL_DISPLAY_TYPE_EAGL")]
|
||||
const EAGL = ffi::GST_GL_DISPLAY_TYPE_EAGL as _;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "GST_GL_DISPLAY_TYPE_WINRT")]
|
||||
const WINRT = ffi::GST_GL_DISPLAY_TYPE_WINRT as _;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "GST_GL_DISPLAY_TYPE_ANDROID")]
|
||||
const ANDROID = ffi::GST_GL_DISPLAY_TYPE_ANDROID as _;
|
||||
}
|
||||
|
|
|
@ -28,13 +28,13 @@ unsafe impl Send for GLBaseFilter {}
|
|||
unsafe impl Sync for GLBaseFilter {}
|
||||
|
||||
pub trait GLBaseFilterExt: 'static {
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_base_filter_find_gl_context")]
|
||||
fn find_gl_context(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_gl_base_filter_get_gl_context")]
|
||||
#[doc(alias = "get_gl_context")]
|
||||
fn gl_context(&self) -> Option<GLContext>;
|
||||
|
@ -47,8 +47,8 @@ pub trait GLBaseFilterExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn find_gl_context(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_base_filter_find_gl_context(
|
||||
|
@ -57,8 +57,8 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn gl_context(&self) -> Option<GLContext> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_base_filter_get_gl_context(
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
// 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
use crate::GLAllocationParams;
|
||||
use crate::GLContext;
|
||||
use glib::{prelude::*, translate::*};
|
||||
|
@ -37,16 +37,16 @@ unsafe impl Send for GLBufferPool {}
|
|||
unsafe impl Sync for GLBufferPool {}
|
||||
|
||||
pub trait GLBufferPoolExt: 'static {
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_gl_buffer_pool_get_gl_allocation_params")]
|
||||
#[doc(alias = "get_gl_allocation_params")]
|
||||
fn gl_allocation_params(&self) -> Option<GLAllocationParams>;
|
||||
}
|
||||
|
||||
impl<O: IsA<GLBufferPool>> GLBufferPoolExt for O {
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn gl_allocation_params(&self) -> Option<GLAllocationParams> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_buffer_pool_get_gl_allocation_params(
|
||||
|
|
|
@ -83,8 +83,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_gl_context_get_config")]
|
||||
#[doc(alias = "get_config")]
|
||||
fn config(&self) -> Option<gst::Structure>;
|
||||
|
@ -116,8 +116,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "gst_gl_context_request_config")]
|
||||
fn request_config(&self, gl_config: Option<gst::Structure>) -> bool;
|
||||
|
||||
|
@ -130,13 +130,13 @@ pub trait GLContextExt: 'static {
|
|||
#[doc(alias = "gst_gl_context_supports_glsl_profile_version")]
|
||||
fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_context_supports_precision")]
|
||||
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_context_supports_precision_highp")]
|
||||
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
||||
|
@ -240,8 +240,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn config(&self) -> Option<gst::Structure> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_context_get_config(
|
||||
|
@ -316,8 +316,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn request_config(&self, gl_config: Option<gst::Structure>) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_context_request_config(
|
||||
|
@ -358,8 +358,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_context_supports_precision(
|
||||
|
@ -370,8 +370,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_context_supports_precision_highp(
|
||||
|
|
|
@ -29,8 +29,8 @@ impl GLDisplay {
|
|||
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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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> {
|
||||
|
@ -70,8 +70,8 @@ pub trait GLDisplayExt: 'static {
|
|||
#[doc(alias = "gst_gl_display_remove_window")]
|
||||
fn remove_window(&self, window: &impl IsA<GLWindow>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(feature = "v1_18")]
|
||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
//#[doc(alias = "gst_gl_display_retrieve_window")]
|
||||
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Basic: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Basic: Pointer>) -> i32) -> Option<GLWindow>;
|
||||
|
||||
|
@ -136,8 +136,8 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(feature = "v1_18")]
|
||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Basic: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Basic: Pointer>) -> i32) -> Option<GLWindow> {
|
||||
// unsafe { TODO: call ffi:gst_gl_display_retrieve_window() }
|
||||
//}
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::GLContext;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
use glib::signal::{connect_raw, SignalHandlerId};
|
||||
use glib::{prelude::*, translate::*};
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
use std::{boxed::Box as Box_, mem::transmute};
|
||||
|
||||
glib::wrapper! {
|
||||
|
@ -46,14 +46,14 @@ impl GLOverlayCompositor {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn is_yinvert(&self) -> bool {
|
||||
glib::ObjectExt::property(self, "yinvert")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn set_yinvert(&self, yinvert: bool) {
|
||||
glib::ObjectExt::set_property(self, "yinvert", yinvert)
|
||||
}
|
||||
|
@ -68,8 +68,8 @@ impl GLOverlayCompositor {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "yinvert")]
|
||||
pub fn connect_yinvert_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::{GLContext, GLSLStage};
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
use crate::{GLSLProfile, GLSLVersion};
|
||||
use glib::{
|
||||
prelude::*,
|
||||
|
@ -370,8 +370,8 @@ impl GLShader {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")]
|
||||
pub fn string_fragment_external_oes_get_default(
|
||||
context: &impl IsA<GLContext>,
|
||||
|
@ -388,8 +388,8 @@ impl GLShader {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_shader_string_fragment_get_default")]
|
||||
pub fn string_fragment_get_default(
|
||||
context: &impl IsA<GLContext>,
|
||||
|
@ -406,8 +406,8 @@ impl GLShader {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_shader_string_get_highest_precision")]
|
||||
pub fn string_get_highest_precision(
|
||||
context: &impl IsA<GLContext>,
|
||||
|
|
|
@ -34,8 +34,8 @@ unsafe impl Send for GLWindow {}
|
|||
unsafe impl Sync for GLWindow {}
|
||||
|
||||
pub trait GLWindowExt: 'static {
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_window_controls_viewport")]
|
||||
fn controls_viewport(&self) -> bool;
|
||||
|
||||
|
@ -53,8 +53,8 @@ pub trait GLWindowExt: 'static {
|
|||
#[doc(alias = "gst_gl_window_handle_events")]
|
||||
fn handle_events(&self, handle_events: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_gl_window_has_output_surface")]
|
||||
fn has_output_surface(&self) -> bool;
|
||||
|
||||
|
@ -76,8 +76,8 @@ pub trait GLWindowExt: 'static {
|
|||
#[doc(alias = "gst_gl_window_send_mouse_event")]
|
||||
fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64);
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_gl_window_send_scroll_event")]
|
||||
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64);
|
||||
|
||||
|
@ -108,16 +108,16 @@ pub trait GLWindowExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "scroll-event")]
|
||||
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
#[doc(alias = "window-handle-changed")]
|
||||
fn connect_window_handle_changed<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -126,8 +126,8 @@ pub trait GLWindowExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<GLWindow>> GLWindowExt for O {
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
fn controls_viewport(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_window_controls_viewport(
|
||||
|
@ -172,8 +172,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn has_output_surface(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_window_has_output_surface(
|
||||
|
@ -228,8 +228,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) {
|
||||
unsafe {
|
||||
ffi::gst_gl_window_send_scroll_event(
|
||||
|
@ -345,8 +345,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -384,8 +384,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
fn connect_window_handle_changed<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -9,11 +9,11 @@ pub use self::gl_base_filter::GLBaseFilter;
|
|||
mod gl_base_memory_allocator;
|
||||
pub use self::gl_base_memory_allocator::GLBaseMemoryAllocator;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
mod gl_base_src;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub use self::gl_base_src::GLBaseSrc;
|
||||
|
||||
mod gl_buffer_pool;
|
||||
|
@ -62,8 +62,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub use self::enums::GLConfigCaveat;
|
||||
pub use self::enums::GLContextError;
|
||||
pub use self::enums::GLFormat;
|
||||
|
@ -76,8 +76,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub use self::flags::GLConfigSurfaceType;
|
||||
pub use self::flags::GLDisplayType;
|
||||
pub use self::flags::GLPlatform;
|
||||
|
@ -101,8 +101,8 @@ pub use self::constants::GL_BASE_MEMORY_ALLOCATOR_NAME;
|
|||
pub use self::constants::GL_BUFFER_ALLOCATOR_NAME;
|
||||
pub use self::constants::GL_COLOR_CONVERT_EXT_FORMATS;
|
||||
pub use self::constants::GL_COLOR_CONVERT_VIDEO_CAPS;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub use self::constants::GL_CONFIG_STRUCTURE_NAME;
|
||||
pub use self::constants::GL_CONTEXT_TYPE_CGL;
|
||||
pub use self::constants::GL_CONTEXT_TYPE_EAGL;
|
||||
|
@ -121,8 +121,8 @@ pub use self::constants::GL_TEXTURE_TARGET_RECTANGLE_STR;
|
|||
#[doc(hidden)]
|
||||
pub mod traits {
|
||||
pub use super::gl_base_filter::GLBaseFilterExt;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub use super::gl_base_src::GLBaseSrcExt;
|
||||
pub use super::gl_buffer_pool::GLBufferPoolExt;
|
||||
pub use super::gl_context::GLContextExt;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -55,7 +55,7 @@ edition = "2021"
|
|||
rust-version = "1.66"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[package.metadata.system-deps.gstreamer_gl_1_0]
|
||||
name = "gstreamer-gl-1.0"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
mod manual;
|
||||
|
||||
|
@ -187,17 +187,17 @@ 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")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub const GST_GL_DISPLAY_TYPE_ANDROID: GstGLDisplayType = 2048;
|
||||
pub const GST_GL_DISPLAY_TYPE_ANY: GstGLDisplayType = 4294967295;
|
||||
|
||||
|
@ -1504,11 +1504,11 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLConfigCaveat
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_config_caveat_to_string(caveat: GstGLConfigCaveat) -> *const c_char;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1526,11 +1526,11 @@ extern "C" {
|
|||
vinfo: *const gst_video::GstVideoInfo,
|
||||
plane: c_uint,
|
||||
) -> GstGLFormat;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_format_type_from_sized_gl_format(
|
||||
format: GstGLFormat,
|
||||
unsized_format: *mut GstGLFormat,
|
||||
|
@ -1607,11 +1607,11 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLConfigSurfaceType
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_config_surface_type_to_string(
|
||||
surface_type: GstGLConfigSurfaceType,
|
||||
) -> *const c_char;
|
||||
|
@ -1716,8 +1716,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLBuffer
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_buffer_get_type() -> GType;
|
||||
pub fn gst_gl_buffer_init_once();
|
||||
|
||||
|
@ -1736,8 +1736,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLMemory
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_memory_get_type() -> GType;
|
||||
pub fn gst_gl_memory_copy_into(
|
||||
gl_mem: *mut GstGLMemory,
|
||||
|
@ -1790,8 +1790,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLMemoryPBO
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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,
|
||||
|
@ -1834,8 +1834,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLRenderbuffer
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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;
|
||||
|
@ -1953,11 +1953,11 @@ extern "C" {
|
|||
// GstGLBaseFilter
|
||||
//=========================================================================
|
||||
pub fn gst_gl_base_filter_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1968,8 +1968,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstGLBaseSrc
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_gl_base_src_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1982,8 +1982,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_buffer_pool_get_gl_allocation_params(
|
||||
pool: *mut GstGLBufferPool,
|
||||
) -> *mut GstGLAllocationParams;
|
||||
|
@ -2077,8 +2077,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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;
|
||||
|
@ -2101,8 +2101,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_context_request_config(
|
||||
context: *mut GstGLContext,
|
||||
gl_config: *mut gst::GstStructure,
|
||||
|
@ -2117,15 +2117,15 @@ extern "C" {
|
|||
version: GstGLSLVersion,
|
||||
profile: GstGLSLProfile,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_context_supports_precision(
|
||||
context: *mut GstGLContext,
|
||||
version: GstGLSLVersion,
|
||||
profile: GstGLSLProfile,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_context_supports_precision_highp(
|
||||
context: *mut GstGLContext,
|
||||
version: GstGLSLVersion,
|
||||
|
@ -2143,8 +2143,8 @@ 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")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, 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,
|
||||
|
@ -2157,8 +2157,8 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
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")))]
|
||||
#[cfg(feature = "v1_24")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
||||
pub fn gst_gl_display_ensure_context(
|
||||
display: *mut GstGLDisplay,
|
||||
other_context: *mut GstGLContext,
|
||||
|
@ -2179,15 +2179,15 @@ extern "C" {
|
|||
) -> *mut GstGLContext;
|
||||
pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t;
|
||||
pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext);
|
||||
pub fn gst_gl_display_remove_window(
|
||||
display: *mut GstGLDisplay,
|
||||
window: *mut GstGLWindow,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_gl_display_retrieve_window(
|
||||
display: *mut GstGLDisplay,
|
||||
data: gpointer,
|
||||
|
@ -2337,22 +2337,22 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
...
|
||||
) -> *mut GstGLShader;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_shader_string_fragment_external_oes_get_default(
|
||||
context: *mut GstGLContext,
|
||||
version: GstGLSLVersion,
|
||||
profile: GstGLSLProfile,
|
||||
) -> *mut c_char;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_shader_string_fragment_get_default(
|
||||
context: *mut GstGLContext,
|
||||
version: GstGLSLVersion,
|
||||
profile: GstGLSLProfile,
|
||||
) -> *mut c_char;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_shader_string_get_highest_precision(
|
||||
context: *mut GstGLContext,
|
||||
version: GstGLSLVersion,
|
||||
|
@ -2635,8 +2635,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn gst_gl_window_get_type() -> GType;
|
||||
pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(feature = "v1_16")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_gl_window_controls_viewport(window: *mut GstGLWindow) -> gboolean;
|
||||
pub fn gst_gl_window_draw(window: *mut GstGLWindow);
|
||||
pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext;
|
||||
|
@ -2648,8 +2648,8 @@ extern "C" {
|
|||
);
|
||||
pub fn gst_gl_window_get_window_handle(window: *mut GstGLWindow) -> uintptr_t;
|
||||
pub fn gst_gl_window_handle_events(window: *mut GstGLWindow, handle_events: gboolean);
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_gl_window_has_output_surface(window: *mut GstGLWindow) -> gboolean;
|
||||
pub fn gst_gl_window_queue_resize(window: *mut GstGLWindow);
|
||||
pub fn gst_gl_window_quit(window: *mut GstGLWindow);
|
||||
|
@ -2678,8 +2678,8 @@ extern "C" {
|
|||
posx: c_double,
|
||||
posy: c_double,
|
||||
);
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_gl_window_send_scroll_event(
|
||||
window: *mut GstGLWindow,
|
||||
posx: c_double,
|
||||
|
@ -2750,8 +2750,8 @@ extern "C" {
|
|||
display_ptr: *mut *mut GstGLDisplay,
|
||||
other_context_ptr: *mut *mut GstGLContext,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_get_affine_transformation_meta_as_ndc(
|
||||
meta: *mut gst_video::GstVideoAffineTransformationMeta,
|
||||
matrix: *mut [c_float; 16],
|
||||
|
@ -2780,15 +2780,15 @@ extern "C" {
|
|||
other_context: *mut *mut GstGLContext,
|
||||
) -> gboolean;
|
||||
pub fn gst_gl_insert_debug_marker(context: *mut GstGLContext, format: *const c_char, ...);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_multiply_matrix4(
|
||||
a: *const [c_float; 16],
|
||||
b: *const [c_float; 16],
|
||||
result: *mut [c_float; 16],
|
||||
);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
|
||||
pub fn gst_gl_set_affine_transformation_meta_from_ndc(
|
||||
meta: *mut gst_video::GstVideoAffineTransformationMeta,
|
||||
matrix: *const [c_float; 16],
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -34,7 +34,7 @@ version = "1.22"
|
|||
version = "1.23"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_gl_wayland_sys"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
clippy::unreadable_literal,
|
||||
clippy::upper_case_acronyms
|
||||
)]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use libc::{
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 2358cc24efd2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836)
|
||||
|
|
|
@ -34,7 +34,7 @@ version = "1.22"
|
|||
version = "1.23"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
features = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_gl_x11_sys"
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(feature = "dox")]
|
||||
#[cfg(docsrs)]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
#[cfg(not(docsrs))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
println!("cargo:warning={s}");
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue