mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Remove dox feature and replace by docsrs configuration
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1256>
This commit is contained in:
parent
5c331e7e77
commit
3699da7314
132 changed files with 860 additions and 909 deletions
|
@ -31,7 +31,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -6,8 +6,8 @@ use std::{
|
|||
use glib::{translate::*, Cast};
|
||||
use gst::{Memory, MemoryRef};
|
||||
|
||||
#[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::FdMemoryFlags;
|
||||
use crate::{DmaBufAllocator, FdMemory, FdMemoryRef};
|
||||
|
||||
|
@ -58,8 +58,8 @@ impl DmaBufAllocator {
|
|||
.ok_or_else(|| glib::bool_error!("Failed to allocate memory"))
|
||||
}
|
||||
|
||||
#[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_dmabuf_allocator_alloc_with_flags")]
|
||||
pub unsafe fn alloc_with_flags(
|
||||
&self,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
@ -30,18 +30,18 @@ pub use crate::caps_features::CAPS_FEATURES_MEMORY_DMABUF;
|
|||
mod fd_allocator;
|
||||
pub use fd_allocator::*;
|
||||
|
||||
#[cfg(any(target_os = "linux", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
|
||||
#[cfg(any(target_os = "linux", docsrs))]
|
||||
#[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(any(target_os = "linux", docsrs))]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
pub use dma_buf_allocator::*;
|
||||
|
||||
#[cfg(any(all(feature = "v1_24", target_os = "linux"), feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
|
||||
#[cfg(any(all(feature = "v1_24", target_os = "linux"), docsrs))]
|
||||
#[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
|
||||
mod drm_dumb_allocator;
|
||||
#[cfg(any(all(feature = "v1_24", target_os = "linux"), feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
|
||||
#[cfg(any(all(feature = "v1_24", target_os = "linux"), docsrs))]
|
||||
#[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
|
||||
pub use drm_dumb_allocator::*;
|
||||
|
||||
mod phys_memory;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[cfg(any(target_os = "linux", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
|
||||
#[cfg(any(target_os = "linux", docsrs))]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
mod dma_buf_allocator;
|
||||
mod fd_allocator;
|
||||
|
||||
|
@ -7,8 +7,8 @@ pub mod prelude {
|
|||
#[doc(hidden)]
|
||||
pub use gst::subclass::prelude::*;
|
||||
|
||||
#[cfg(any(target_os = "linux", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))]
|
||||
#[cfg(any(target_os = "linux", docsrs))]
|
||||
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
||||
pub use super::dma_buf_allocator::DmaBufAllocatorImpl;
|
||||
pub use super::fd_allocator::FdAllocatorImpl;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ shell-words = "1.0.0"
|
|||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox"]
|
||||
v1_16 = []
|
||||
v1_18 = ["v1_16"]
|
||||
v1_20 = ["v1_18"]
|
||||
|
|
|
@ -36,7 +36,6 @@ v1_18 = ["gst/v1_18", "gst-base/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "gst-base/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-base/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-base/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-base/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -107,8 +107,8 @@ impl AppSinkCallbacksBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 new_event<F: FnMut(&AppSink) -> bool + Send + 'static>(self, new_event: F) -> Self {
|
||||
Self {
|
||||
new_event: Some(Box::new(new_event)),
|
||||
|
@ -116,8 +116,8 @@ impl AppSinkCallbacksBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 propose_allocation<
|
||||
F: FnMut(&AppSink, &mut gst::query::Allocation) -> bool + Send + 'static,
|
||||
>(
|
||||
|
@ -432,8 +432,8 @@ impl AppSink {
|
|||
}
|
||||
|
||||
#[doc(alias = "processing-deadline")]
|
||||
#[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")]
|
||||
pub fn processing_deadline(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
|
@ -455,8 +455,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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")]
|
||||
pub fn stats(&self) -> gst::Structure {
|
||||
unsafe {
|
||||
|
@ -579,8 +579,8 @@ impl AppSink {
|
|||
}
|
||||
|
||||
#[doc(alias = "processing-deadline")]
|
||||
#[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")]
|
||||
pub fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
|
||||
unsafe {
|
||||
|
@ -812,8 +812,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")]
|
||||
pub fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -896,8 +896,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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")]
|
||||
pub fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -1122,8 +1122,8 @@ impl AppSinkBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 processing_deadline(self, processing_deadline: i64) -> Self {
|
||||
Self {
|
||||
builder: self
|
||||
|
|
|
@ -439,8 +439,8 @@ impl AppSrcBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 handle_segment_change(self, handle_segment_change: bool) -> Self {
|
||||
Self {
|
||||
builder: self
|
||||
|
@ -457,8 +457,8 @@ impl AppSrcBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 leaky_type(self, leaky_type: crate::AppLeakyType) -> Self {
|
||||
Self {
|
||||
builder: self.builder.property("leaky-type", leaky_type),
|
||||
|
@ -466,8 +466,8 @@ impl AppSrcBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 max_buffers(self, max_buffers: u64) -> Self {
|
||||
Self {
|
||||
builder: self.builder.property("max-buffers", max_buffers),
|
||||
|
@ -489,8 +489,8 @@ impl AppSrcBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 max_time(self, max_time: Option<gst::ClockTime>) -> Self {
|
||||
Self {
|
||||
builder: self.builder.property("max-time", max_time),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gst/dox", "gst_base/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_app_sys"
|
||||
|
|
|
@ -36,8 +36,7 @@ v1_18 = ["gst/v1_18", "gst-base/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "gst-base/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-base/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-base/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-base/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
use std::mem::transmute;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
use glib::object::Cast;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
use glib::signal::{connect_raw, SignalHandlerId};
|
||||
use glib::{object::IsA, translate::*};
|
||||
use gst::prelude::*;
|
||||
|
@ -14,18 +14,18 @@ pub trait AudioAggregatorExtManual: 'static {
|
|||
#[doc(alias = "gst_audio_aggregator_set_sink_caps")]
|
||||
fn set_sink_caps(&self, pad: &impl IsA<AudioAggregatorPad>, caps: &gst::CapsRef);
|
||||
|
||||
#[cfg(any(feature = "v1_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 = "output-buffer-duration-fraction")]
|
||||
fn output_buffer_duration_fraction(&self) -> gst::Fraction;
|
||||
|
||||
#[cfg(any(feature = "v1_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 = "output-buffer-duration-fraction")]
|
||||
fn set_output_buffer_duration_fraction(&self, output_buffer_duration_fraction: gst::Fraction);
|
||||
|
||||
#[cfg(any(feature = "v1_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 = "output-buffer-duration-fraction")]
|
||||
fn connect_output_buffer_duration_fraction_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
|
@ -47,14 +47,14 @@ impl<O: IsA<AudioAggregator>> AudioAggregatorExtManual 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 output_buffer_duration_fraction(&self) -> gst::Fraction {
|
||||
glib::ObjectExt::property(self.as_ref(), "output-buffer-duration-fraction")
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_output_buffer_duration_fraction(&self, output_buffer_duration_fraction: gst::Fraction) {
|
||||
glib::ObjectExt::set_property(
|
||||
self.as_ref(),
|
||||
|
@ -63,8 +63,8 @@ impl<O: IsA<AudioAggregator>> AudioAggregatorExtManual 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_output_buffer_duration_fraction_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -163,15 +163,15 @@ impl AudioConverterConfig {
|
|||
.unwrap_or_else(Vec::new)
|
||||
}
|
||||
|
||||
#[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 set_dither_threshold(&mut self, v: u32) {
|
||||
self.0
|
||||
.set(glib::gstr!("GstAudioConverter.dither-threshold"), v);
|
||||
}
|
||||
|
||||
#[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 = "get_dither_threshold")]
|
||||
pub fn dither_threshold(&self) -> u32 {
|
||||
self.0
|
||||
|
|
|
@ -23,8 +23,8 @@ extern "C" {
|
|||
pub trait AudioDecoderExtManual: 'static {
|
||||
fn negotiate(&self) -> Result<(), 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")))]
|
||||
fn set_output_caps(&self, caps: &gst::Caps) -> Result<(), gst::FlowError>;
|
||||
|
||||
fn set_output_format(&self, info: &AudioInfo) -> Result<(), gst::FlowError>;
|
||||
|
@ -64,8 +64,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExtManual 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")))]
|
||||
#[doc(alias = "gst_audio_decoder_set_output_caps")]
|
||||
fn set_output_caps(&self, caps: &gst::Caps) -> Result<(), gst::FlowError> {
|
||||
unsafe {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
use std::fmt;
|
||||
#[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::ptr;
|
||||
#[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::slice;
|
||||
|
||||
use glib::translate::{from_glib, IntoGlib};
|
||||
#[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::translate::{from_glib_none, ToGlibPtr};
|
||||
use gst::prelude::*;
|
||||
|
||||
|
@ -74,21 +74,21 @@ impl fmt::Debug for AudioClippingMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstAudioMeta")]
|
||||
pub struct AudioMeta(ffi::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")))]
|
||||
unsafe impl Send for AudioMeta {}
|
||||
#[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")))]
|
||||
unsafe impl Sync for AudioMeta {}
|
||||
|
||||
#[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 AudioMeta {
|
||||
#[doc(alias = "gst_buffer_add_audio_meta")]
|
||||
pub fn add<'a>(
|
||||
|
@ -200,8 +200,8 @@ impl AudioMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
unsafe impl MetaAPI for AudioMeta {
|
||||
type GstType = ffi::GstAudioMeta;
|
||||
|
||||
|
@ -212,8 +212,8 @@ unsafe impl MetaAPI for AudioMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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::Debug for AudioMeta {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("AudioMeta")
|
||||
|
@ -224,21 +224,21 @@ impl fmt::Debug for AudioMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstAudioLevelMeta")]
|
||||
pub struct AudioLevelMeta(ffi::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")))]
|
||||
unsafe impl Send for AudioLevelMeta {}
|
||||
#[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 Sync for AudioLevelMeta {}
|
||||
|
||||
#[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 AudioLevelMeta {
|
||||
#[doc(alias = "gst_buffer_add_audio_level_meta")]
|
||||
pub fn add(
|
||||
|
@ -271,8 +271,8 @@ impl AudioLevelMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 MetaAPI for AudioLevelMeta {
|
||||
type GstType = ffi::GstAudioLevelMeta;
|
||||
|
||||
|
@ -283,8 +283,8 @@ unsafe impl MetaAPI for AudioLevelMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 fmt::Debug for AudioLevelMeta {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("AudioLevelMeta")
|
||||
|
|
|
@ -23,8 +23,8 @@ pub fn audio_buffer_clip(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_buffer_truncate")]
|
||||
pub fn audio_buffer_truncate(
|
||||
buffer: gst::Buffer,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
@ -49,11 +49,11 @@ mod audio_aggregator_pad;
|
|||
mod audio_stream_align;
|
||||
mod functions;
|
||||
pub use crate::functions::*;
|
||||
#[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 mod audio_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")))]
|
||||
pub use audio_buffer::{AudioBuffer, AudioBufferRef};
|
||||
|
||||
mod audio_decoder;
|
||||
|
|
|
@ -30,7 +30,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_base/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_audio_sys"
|
||||
|
|
|
@ -33,7 +33,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#[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_;
|
||||
#[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::mem::transmute;
|
||||
use std::{mem, ptr};
|
||||
|
||||
#[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::*};
|
||||
use gst::{format::FormattedValue, prelude::*};
|
||||
|
@ -22,26 +22,26 @@ pub trait AggregatorExtManual: 'static {
|
|||
#[doc(alias = "gst_aggregator_get_allocator")]
|
||||
fn allocator(&self) -> (Option<gst::Allocator>, gst::AllocationParams);
|
||||
|
||||
#[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 = "min-upstream-latency")]
|
||||
fn min_upstream_latency(&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 = "min-upstream-latency")]
|
||||
fn set_min_upstream_latency(&self, min_upstream_latency: 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 = "min-upstream-latency")]
|
||||
fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + '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 = "gst_aggregator_update_segment")]
|
||||
fn update_segment<F: gst::format::FormattedValueIntrinsic>(
|
||||
&self,
|
||||
|
@ -50,8 +50,8 @@ pub trait AggregatorExtManual: 'static {
|
|||
|
||||
fn set_position(&self, position: impl FormattedValue);
|
||||
|
||||
#[cfg(any(feature = "v1_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_selected_samples")]
|
||||
fn selected_samples(
|
||||
&self,
|
||||
|
@ -61,8 +61,8 @@ pub trait AggregatorExtManual: 'static {
|
|||
info: Option<&gst::StructureRef>,
|
||||
);
|
||||
|
||||
#[cfg(any(feature = "v1_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_samples_selected<
|
||||
F: Fn(
|
||||
&Self,
|
||||
|
@ -95,21 +95,21 @@ impl<O: IsA<Aggregator>> AggregatorExtManual 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 min_upstream_latency(&self) -> gst::ClockTime {
|
||||
self.as_ref().property("min-upstream-latency")
|
||||
}
|
||||
|
||||
#[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_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime) {
|
||||
self.as_ref()
|
||||
.set_property("min-upstream-latency", min_upstream_latency);
|
||||
}
|
||||
|
||||
#[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_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -126,8 +126,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual 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 update_segment<F: gst::format::FormattedValueIntrinsic>(
|
||||
&self,
|
||||
segment: &gst::FormattedSegment<F>,
|
||||
|
@ -155,8 +155,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual 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 selected_samples(
|
||||
&self,
|
||||
pts: impl Into<Option<gst::ClockTime>>,
|
||||
|
@ -177,8 +177,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual 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_samples_selected<
|
||||
F: Fn(
|
||||
&Self,
|
||||
|
@ -251,8 +251,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual 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")))]
|
||||
unsafe extern "C" fn notify_min_upstream_latency_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
|
||||
this: *mut ffi::GstAggregator,
|
||||
_param_spec: glib::ffi::gpointer,
|
||||
|
|
|
@ -28,8 +28,8 @@ pub fn type_find_helper_for_data(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_type_find_helper_for_data_with_extension")]
|
||||
pub fn type_find_helper_for_data_with_extension(
|
||||
obj: Option<&impl IsA<gst::Object>>,
|
||||
|
@ -77,8 +77,8 @@ pub fn type_find_helper_for_buffer<P: IsA<gst::Object>>(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_type_find_helper_for_buffer_with_extension")]
|
||||
pub fn type_find_helper_for_buffer_with_extension<P: IsA<gst::Object>>(
|
||||
obj: Option<&P>,
|
||||
|
@ -102,8 +102,8 @@ pub fn type_find_helper_for_buffer_with_extension<P: IsA<gst::Object>>(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_type_find_helper_for_buffer_with_caps")]
|
||||
pub fn type_find_helper_for_buffer_with_caps(
|
||||
obj: Option<&impl IsA<gst::Object>>,
|
||||
|
@ -123,8 +123,8 @@ pub fn type_find_helper_for_buffer_with_caps(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_type_find_helper_for_data_with_caps")]
|
||||
pub fn type_find_helper_for_data_with_caps(
|
||||
obj: Option<&impl IsA<gst::Object>>,
|
||||
|
@ -146,8 +146,8 @@ pub fn type_find_helper_for_data_with_caps(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_type_find_list_factories_for_caps")]
|
||||
pub fn type_find_list_factories_for_caps(
|
||||
obj: Option<&impl IsA<gst::Object>>,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
|
|||
self.parent_clip(aggregator_pad, buffer)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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,
|
||||
buffer_list: gst::BufferList,
|
||||
|
@ -33,8 +33,8 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
|
|||
self.parent_sink_event(aggregator_pad, event)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 sink_event_pre_queue(
|
||||
&self,
|
||||
aggregator_pad: &AggregatorPad,
|
||||
|
@ -47,8 +47,8 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
|
|||
self.parent_sink_query(aggregator_pad, query)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 sink_query_pre_queue(
|
||||
&self,
|
||||
aggregator_pad: &AggregatorPad,
|
||||
|
@ -122,14 +122,14 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
|
|||
self.parent_decide_allocation(query)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 {
|
||||
self.parent_negotiate()
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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: &AggregatorPad) -> Option<gst::Sample> {
|
||||
self.parent_peek_next_sample(pad)
|
||||
}
|
||||
|
@ -147,8 +147,8 @@ pub trait AggregatorImplExt: ObjectSubclass {
|
|||
fn parent_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")))]
|
||||
fn parent_finish_buffer_list(
|
||||
&self,
|
||||
buffer_list: gst::BufferList,
|
||||
|
@ -156,8 +156,8 @@ pub trait AggregatorImplExt: ObjectSubclass {
|
|||
|
||||
fn parent_sink_event(&self, aggregator_pad: &AggregatorPad, event: gst::Event) -> 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")))]
|
||||
fn parent_sink_event_pre_queue(
|
||||
&self,
|
||||
aggregator_pad: &AggregatorPad,
|
||||
|
@ -166,8 +166,8 @@ pub trait AggregatorImplExt: ObjectSubclass {
|
|||
|
||||
fn parent_sink_query(&self, aggregator_pad: &AggregatorPad, query: &mut gst::QueryRef) -> 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")))]
|
||||
fn parent_sink_query_pre_queue(
|
||||
&self,
|
||||
aggregator_pad: &AggregatorPad,
|
||||
|
@ -217,12 +217,12 @@ pub trait AggregatorImplExt: ObjectSubclass {
|
|||
query: &mut gst::query::Allocation,
|
||||
) -> Result<(), gst::LoggableError>;
|
||||
|
||||
#[cfg(any(feature = "v1_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 parent_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")))]
|
||||
fn parent_peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample>;
|
||||
}
|
||||
|
||||
|
@ -280,8 +280,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 parent_finish_buffer_list(
|
||||
&self,
|
||||
buffer_list: gst::BufferList,
|
||||
|
@ -314,8 +314,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 parent_sink_event_pre_queue(
|
||||
&self,
|
||||
aggregator_pad: &AggregatorPad,
|
||||
|
@ -350,8 +350,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 parent_sink_query_pre_queue(
|
||||
&self,
|
||||
aggregator_pad: &AggregatorPad,
|
||||
|
@ -630,8 +630,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 parent_negotiate(&self) -> bool {
|
||||
unsafe {
|
||||
let data = Self::type_data();
|
||||
|
@ -649,8 +649,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 parent_peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample> {
|
||||
unsafe {
|
||||
let data = Self::type_data();
|
||||
|
@ -690,7 +690,7 @@ unsafe impl<T: AggregatorImpl> IsSubclassable<T> for Aggregator {
|
|||
klass.negotiated_src_caps = Some(aggregator_negotiated_src_caps::<T>);
|
||||
klass.propose_allocation = Some(aggregator_propose_allocation::<T>);
|
||||
klass.decide_allocation = Some(aggregator_decide_allocation::<T>);
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
{
|
||||
klass.sink_event_pre_queue = Some(aggregator_sink_event_pre_queue::<T>);
|
||||
klass.sink_query_pre_queue = Some(aggregator_sink_query_pre_queue::<T>);
|
||||
|
@ -738,8 +738,8 @@ unsafe extern "C" fn aggregator_finish_buffer<T: AggregatorImpl>(
|
|||
.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")))]
|
||||
unsafe extern "C" fn aggregator_finish_buffer_list<T: AggregatorImpl>(
|
||||
ptr: *mut ffi::GstAggregator,
|
||||
buffer_list: *mut gst::ffi::GstBufferList,
|
||||
|
@ -767,8 +767,8 @@ unsafe extern "C" fn aggregator_sink_event<T: AggregatorImpl>(
|
|||
.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")))]
|
||||
unsafe extern "C" fn aggregator_sink_event_pre_queue<T: AggregatorImpl>(
|
||||
ptr: *mut ffi::GstAggregator,
|
||||
aggregator_pad: *mut ffi::GstAggregatorPad,
|
||||
|
@ -801,8 +801,8 @@ unsafe extern "C" fn aggregator_sink_query<T: AggregatorImpl>(
|
|||
.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")))]
|
||||
unsafe extern "C" fn aggregator_sink_query_pre_queue<T: AggregatorImpl>(
|
||||
ptr: *mut ffi::GstAggregator,
|
||||
aggregator_pad: *mut ffi::GstAggregatorPad,
|
||||
|
@ -1054,8 +1054,8 @@ unsafe extern "C" fn aggregator_decide_allocation<T: AggregatorImpl>(
|
|||
.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")))]
|
||||
unsafe extern "C" fn aggregator_negotiate<T: AggregatorImpl>(
|
||||
ptr: *mut ffi::GstAggregator,
|
||||
) -> glib::ffi::gboolean {
|
||||
|
@ -1065,8 +1065,8 @@ unsafe extern "C" fn aggregator_negotiate<T: AggregatorImpl>(
|
|||
gst::panic_to_error!(imp, false, { imp.negotiate() }).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")))]
|
||||
unsafe extern "C" fn aggregator_peek_next_sample<T: AggregatorImpl>(
|
||||
ptr: *mut ffi::GstAggregator,
|
||||
pad: *mut ffi::GstAggregatorPad,
|
||||
|
|
|
@ -28,7 +28,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_base_sys"
|
||||
|
|
|
@ -29,7 +29,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -88,8 +88,8 @@ impl Harness {
|
|||
pad.add_probe(mask, func);
|
||||
}
|
||||
|
||||
#[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_harness_add_propose_allocation_meta")]
|
||||
pub fn add_propose_allocation_meta(
|
||||
&mut self,
|
||||
|
@ -268,8 +268,8 @@ impl Harness {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_harness_pull_until_eos")]
|
||||
pub fn pull_until_eos(&mut self) -> Result<Option<gst::Buffer>, glib::BoolError> {
|
||||
unsafe {
|
||||
|
@ -399,8 +399,8 @@ impl Harness {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_harness_set_live")]
|
||||
#[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_live(&mut self, is_live: bool) {
|
||||
unsafe { ffi::gst_harness_set_live(self.0.as_ptr(), is_live.into_glib()) }
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -33,8 +33,8 @@ impl TestClock {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_test_clock_process_id")]
|
||||
pub fn process_id(&self, pending_id: &gst::ClockId) -> bool {
|
||||
unsafe {
|
||||
|
@ -86,8 +86,8 @@ impl TestClock {
|
|||
}
|
||||
}
|
||||
|
||||
#[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_test_clock_timed_wait_for_multiple_pending_ids")]
|
||||
pub fn timed_wait_for_multiple_pending_ids(
|
||||
&self,
|
||||
|
|
|
@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_check_sys"
|
||||
|
|
|
@ -30,7 +30,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_controller_sys"
|
||||
|
|
|
@ -34,8 +34,7 @@ v1_18 = ["gst/v1_18", "gst-base/v1_18", "gst-pbutils/v1_18", "ffi/v1_18", "v1_16
|
|||
v1_20 = ["gst/v1_20", "gst-base/v1_20", "gst-pbutils/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-base/v1_22", "gst-pbutils/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-base/v1_24", "gst-pbutils/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gio/dox", "gst/dox", "gst-base/dox", "gst-pbutils/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde", "gst-pbutils/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gio/dox", "gst/dox", "gst_pbutils/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_editing_services_sys"
|
||||
|
|
|
@ -38,8 +38,7 @@ v1_18 = ["gst/v1_18", "gst-base/v1_18", "gst-video/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "gst-base/v1_20", "gst-video/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-base/v1_22", "gst-video/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-base/v1_24", "gst-video/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-base/dox", "gst-video/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde", "gst-video/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -29,7 +29,6 @@ gir-format-check = "0.1"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-gl/dox"]
|
||||
v1_16 = ["gst/v1_16", "gst-gl/v1_16", "ffi/v1_16"]
|
||||
v1_18 = ["gst/v1_18", "gst-gl/v1_18", "ffi/v1_18", "v1_16"]
|
||||
v1_20 = ["gst/v1_20", "gst-gl/v1_20", "ffi/v1_20", "v1_18"]
|
||||
|
@ -37,4 +36,4 @@ v1_22 = ["gst/v1_22", "gst-gl/v1_22", "ffi/v1_22", "v1_20"]
|
|||
v1_24 = ["gst/v1_24", "gst-gl/v1_24", "ffi/v1_24", "v1_22"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -58,7 +58,6 @@ shell-words = "1.0.0"
|
|||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
dox = ["glib/dox", "gst_gl/dox"]
|
||||
v1_16 = []
|
||||
v1_18 = ["v1_16"]
|
||||
v1_20 = ["v1_18"]
|
||||
|
|
|
@ -4,8 +4,8 @@ use glib::prelude::*;
|
|||
use glib::translate::*;
|
||||
|
||||
pub trait GLDisplayExtManual: 'static {
|
||||
#[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_gl_display_ensure_context")]
|
||||
fn ensure_context(
|
||||
&self,
|
||||
|
@ -15,8 +15,8 @@ pub trait GLDisplayExtManual: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<GLDisplay>> GLDisplayExtManual 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 ensure_context(
|
||||
&self,
|
||||
other_context: Option<&impl IsA<GLContext>>,
|
||||
|
@ -99,8 +99,8 @@ impl GLDisplay {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_remove_context")]
|
||||
pub fn remove_context(
|
||||
display: &gst::ObjectLockGuard<GLDisplay>,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
mod gl_base_filter;
|
||||
#[cfg(any(feature = "v1_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;
|
||||
mod gl_filter;
|
||||
|
||||
|
@ -10,8 +10,8 @@ pub mod prelude {
|
|||
#[doc(hidden)]
|
||||
pub use gst_video::subclass::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")))]
|
||||
pub use super::gl_base_src::{GLBaseSrcImpl, GLBaseSrcImplExt};
|
||||
pub use super::{
|
||||
gl_base_filter::{GLBaseFilterImpl, GLBaseFilterImplExt},
|
||||
|
|
|
@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_base/dox", "gst_video/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_gl_sys"
|
||||
|
|
|
@ -29,7 +29,6 @@ gir-format-check = "0.1"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-gl/dox"]
|
||||
v1_16 = ["gst/v1_16", "gst-gl/v1_16", "ffi/v1_16"]
|
||||
v1_18 = ["gst/v1_18", "gst-gl/v1_18", "ffi/v1_18", "v1_16"]
|
||||
v1_20 = ["gst/v1_20", "gst-gl/v1_20", "ffi/v1_20", "v1_18"]
|
||||
|
@ -37,4 +36,4 @@ v1_22 = ["gst/v1_22", "gst-gl/v1_22", "ffi/v1_22", "v1_20"]
|
|||
v1_24 = ["gst/v1_24", "gst-gl/v1_24", "ffi/v1_24", "v1_22"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -58,7 +58,6 @@ shell-words = "1.0.0"
|
|||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
dox = ["glib/dox", "gst_gl/dox"]
|
||||
v1_16 = []
|
||||
v1_18 = ["v1_16"]
|
||||
v1_20 = ["v1_18"]
|
||||
|
|
|
@ -29,7 +29,6 @@ gir-format-check = "0.1"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-gl/dox"]
|
||||
v1_16 = ["gst/v1_16", "gst-gl/v1_16", "ffi/v1_16"]
|
||||
v1_18 = ["gst/v1_18", "gst-gl/v1_18", "ffi/v1_18", "v1_16"]
|
||||
v1_20 = ["gst/v1_20", "gst-gl/v1_20", "ffi/v1_20", "v1_18"]
|
||||
|
@ -37,4 +36,4 @@ v1_22 = ["gst/v1_22", "gst-gl/v1_22", "ffi/v1_22", "v1_20"]
|
|||
v1_24 = ["gst/v1_24", "gst-gl/v1_24", "ffi/v1_24", "v1_22"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -58,7 +58,6 @@ shell-words = "1.0.0"
|
|||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
dox = ["glib/dox", "gst_gl/dox"]
|
||||
v1_16 = []
|
||||
v1_18 = ["v1_16"]
|
||||
v1_20 = ["v1_18"]
|
||||
|
|
|
@ -28,7 +28,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
|
||||
use std::sync::Once;
|
||||
|
|
|
@ -66,4 +66,3 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gst/dox"]
|
||||
|
|
|
@ -29,7 +29,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gio/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gio/dox", "gst/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_net_sys"
|
||||
|
|
|
@ -35,8 +35,7 @@ v1_18 = ["gst/v1_18", "gst-audio/v1_18", "gst-video/v1_18", "ffi/v1_18", "v1_16"
|
|||
v1_20 = ["gst/v1_20", "gst-audio/v1_20", "gst-video/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-audio/v1_22", "gst-video/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-audio/v1_24", "gst-video/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-audio/dox", "gst-video/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -5,20 +5,20 @@ use glib::{prelude::*, translate::*};
|
|||
use crate::auto::{
|
||||
EncodingAudioProfile, EncodingContainerProfile, EncodingProfile, EncodingVideoProfile,
|
||||
};
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
use crate::ElementProperties;
|
||||
|
||||
pub trait EncodingProfileExtManual {
|
||||
#[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_encoding_profile_get_element_properties")]
|
||||
#[doc(alias = "get_element_properties")]
|
||||
fn element_properties(&self) -> Option<ElementProperties>;
|
||||
}
|
||||
|
||||
impl<O: IsA<EncodingProfile>> EncodingProfileExtManual 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 element_properties(&self) -> Option<ElementProperties> {
|
||||
unsafe {
|
||||
from_glib_full::<_, Option<_>>(ffi::gst_encoding_profile_get_element_properties(
|
||||
|
|
|
@ -127,8 +127,8 @@ pub fn codec_utils_h264_caps_set_level_and_profile(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_codec_utils_h264_get_profile_flags_level")]
|
||||
pub fn codec_utils_h264_get_profile_flags_level(
|
||||
codec_data: &[u8],
|
||||
|
@ -404,8 +404,8 @@ pub fn codec_utils_opus_parse_header(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_codec_utils_caps_get_mime_codec")]
|
||||
pub fn codec_utils_caps_get_mime_codec(
|
||||
caps: &gst::CapsRef,
|
||||
|
@ -419,8 +419,8 @@ pub fn codec_utils_caps_get_mime_codec(
|
|||
}
|
||||
}
|
||||
|
||||
#[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_pb_utils_get_caps_description_flags")]
|
||||
pub fn pb_utils_get_caps_description_flags(
|
||||
caps: &gst::CapsRef,
|
||||
|
@ -429,8 +429,8 @@ pub fn pb_utils_get_caps_description_flags(
|
|||
unsafe { from_glib(ffi::gst_pb_utils_get_caps_description_flags(caps.as_ptr())) }
|
||||
}
|
||||
|
||||
#[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_pb_utils_get_file_extension_from_caps")]
|
||||
pub fn pb_utils_get_file_extension_from_caps(caps: &gst::CapsRef) -> Option<glib::GString> {
|
||||
assert_initialized_main_thread!();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
@ -30,9 +30,9 @@ macro_rules! skip_assert_initialized {
|
|||
mod auto;
|
||||
pub use crate::auto::{functions::*, *};
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
mod element_properties;
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
pub use crate::element_properties::{ElementProperties, ElementPropertiesMapItem};
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
|
|
|
@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_audio/dox", "gst_video/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_pbutils_sys"
|
||||
|
|
|
@ -28,7 +28,6 @@ gir-format-check = "0.1"
|
|||
[features]
|
||||
v1_22 = ["gst/v1_22", "gst-video/v1_22", "ffi/v1_22"]
|
||||
v1_24 = ["gst/v1_24", "gst-video/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-video/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ tempfile = "3"
|
|||
[features]
|
||||
v1_22 = []
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_video/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_play_sys"
|
||||
|
|
|
@ -32,7 +32,6 @@ v1_18 = ["gst/v1_18", "gst-video/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "gst-video/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-video/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-video/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-video/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_video/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_player_sys"
|
||||
|
|
|
@ -33,8 +33,7 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
@ -32,12 +32,12 @@ pub mod rtp_buffer;
|
|||
pub use crate::rtp_buffer::{
|
||||
calc_header_len, calc_packet_len, calc_payload_len, compare_seqnum, ext_timestamp, RTPBuffer,
|
||||
};
|
||||
#[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 mod rtp_header_extension;
|
||||
|
||||
#[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 mod rtp_base_payload;
|
||||
|
||||
pub mod rtp_base_depayload;
|
||||
|
@ -48,11 +48,11 @@ pub mod prelude {
|
|||
#[doc(hidden)]
|
||||
pub use gst::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")))]
|
||||
pub use crate::rtp_base_payload::RTPBasePayloadExtManual;
|
||||
#[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 crate::rtp_header_extension::RTPHeaderExtensionExtManual;
|
||||
pub use crate::{
|
||||
auto::traits::*, rtp_base_depayload::RTPBaseDepayloadExtManual, rtp_buffer::RTPBufferExt,
|
||||
|
|
|
@ -5,8 +5,8 @@ use glib::{object::IsA, translate::*};
|
|||
use crate::RTPBasePayload;
|
||||
|
||||
pub trait RTPBasePayloadExtManual: '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_rtp_base_payload_set_outcaps_structure")]
|
||||
#[doc(alias = "gst_rtp_base_payload_set_outcaps")]
|
||||
fn set_outcaps(&self, s: Option<&gst::StructureRef>) -> Result<(), glib::error::BoolError>;
|
||||
|
@ -17,8 +17,8 @@ pub trait RTPBasePayloadExtManual: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<RTPBasePayload>> RTPBasePayloadExtManual 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_outcaps(&self, s: Option<&gst::StructureRef>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
|
|
|
@ -186,8 +186,8 @@ impl<'a> RTPBuffer<'a, Writable> {
|
|||
}
|
||||
}
|
||||
|
||||
#[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_rtp_buffer_remove_extension_data")]
|
||||
pub fn remove_extension_data(&mut self) {
|
||||
unsafe {
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
#![allow(clippy::cast_ptr_alignment)]
|
||||
|
||||
#[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")))]
|
||||
mod rtp_base_payload;
|
||||
|
||||
mod rtp_base_depayload;
|
||||
|
||||
#[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")))]
|
||||
mod rtp_header_extension;
|
||||
|
||||
pub mod prelude {
|
||||
|
@ -17,10 +17,10 @@ pub mod prelude {
|
|||
pub use gst::subclass::prelude::*;
|
||||
|
||||
pub use super::rtp_base_depayload::{RTPBaseDepayloadImpl, RTPBaseDepayloadImplExt};
|
||||
#[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 super::rtp_base_payload::{RTPBasePayloadImpl, RTPBasePayloadImplExt};
|
||||
#[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 super::rtp_header_extension::{RTPHeaderExtensionImpl, RTPHeaderExtensionImplExt};
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gst/dox", "gst_base/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_rtp_sys"
|
||||
|
|
|
@ -37,8 +37,7 @@ v1_18 = ["gst/v1_18", "gst-sdp/v1_18", "gst-rtsp/v1_18", "gst-net/v1_18", "ffi/v
|
|||
v1_20 = ["gst/v1_20", "gst-sdp/v1_20", "gst-rtsp/v1_20", "gst-net/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-sdp/v1_22", "gst-rtsp/v1_22", "gst-net/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-sdp/v1_24", "gst-rtsp/v1_24", "gst-net/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gio/dox", "gst/dox", "gst-sdp/dox", "gst-rtsp/dox", "gst-net/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde", "gst-rtsp/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ pub trait RTSPSessionExtManual: 'static {
|
|||
|
||||
impl<O: IsA<RTSPSession>> RTSPSessionExtManual for O {
|
||||
fn media(&self, path: &str) -> (Option<RTSPSessionMedia>, i32) {
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
unsafe {
|
||||
let mut matched = mem::MaybeUninit::uninit();
|
||||
let ret = from_glib_full(ffi::gst_rtsp_session_dup_media(
|
||||
|
@ -24,7 +24,7 @@ impl<O: IsA<RTSPSession>> RTSPSessionExtManual for O {
|
|||
));
|
||||
(ret, matched.assume_init())
|
||||
}
|
||||
#[cfg(not(any(feature = "v1_20", feature = "dox")))]
|
||||
#[cfg(not(any(feature = "v1_20", docsrs)))]
|
||||
unsafe {
|
||||
let mut matched = mem::MaybeUninit::uninit();
|
||||
let ret = from_glib_none(ffi::gst_rtsp_session_get_media(
|
||||
|
|
|
@ -144,8 +144,8 @@ pub trait RTSPClientImpl: RTSPClientImplExt + ObjectImpl + Send + Sync {
|
|||
self.parent_pre_record_request(ctx)
|
||||
}
|
||||
|
||||
#[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 adjust_error_code(
|
||||
&self,
|
||||
ctx: &crate::RTSPContext,
|
||||
|
@ -241,8 +241,8 @@ pub trait RTSPClientImplExt: ObjectSubclass {
|
|||
|
||||
fn parent_pre_record_request(&self, ctx: &crate::RTSPContext) -> gst_rtsp::RTSPStatusCode;
|
||||
|
||||
#[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 parent_adjust_error_code(
|
||||
&self,
|
||||
ctx: &crate::RTSPContext,
|
||||
|
@ -710,8 +710,8 @@ impl<T: RTSPClientImpl> RTSPClientImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 parent_adjust_error_code(
|
||||
&self,
|
||||
ctx: &crate::RTSPContext,
|
||||
|
@ -996,8 +996,8 @@ unsafe impl<T: RTSPClientImpl> IsSubclassable<T> for RTSPClient {
|
|||
klass.pre_get_parameter_request = Some(client_pre_get_parameter_request::<T>);
|
||||
klass.pre_announce_request = Some(client_pre_announce_request::<T>);
|
||||
klass.pre_record_request = Some(client_pre_record_request::<T>);
|
||||
#[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")))]
|
||||
{
|
||||
klass.adjust_error_code = Some(client_adjust_error_code::<T>);
|
||||
}
|
||||
|
@ -1330,8 +1330,8 @@ unsafe extern "C" fn client_pre_record_request<T: RTSPClientImpl>(
|
|||
imp.pre_record_request(&from_glib_borrow(ctx)).into_glib()
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
unsafe extern "C" fn client_adjust_error_code<T: RTSPClientImpl>(
|
||||
ptr: *mut ffi::GstRTSPClient,
|
||||
ctx: *mut ffi::GstRTSPContext,
|
||||
|
|
|
@ -42,7 +42,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gio/dox", "gst/dox", "gst_net/dox", "gst_sdp/dox", "gst_rtsp/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_rtsp_server_sys"
|
||||
|
|
|
@ -33,8 +33,7 @@ v1_18 = ["gst/v1_18", "gst-sdp/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "gst-sdp/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-sdp/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-sdp/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-sdp/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gio/dox", "gst/dox", "gst_sdp/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_rtsp_sys"
|
||||
|
|
|
@ -28,7 +28,6 @@ v1_18 = ["gst/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gst/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_sdp_sys"
|
||||
|
|
|
@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
|
|||
v1_20 = ["v1_18"]
|
||||
v1_22 = ["v1_20"]
|
||||
v1_24 = ["v1_22"]
|
||||
dox = ["glib/dox", "gobject/dox", "gst/dox"]
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_tag_sys"
|
||||
|
|
|
@ -27,7 +27,6 @@ tempfile = "3"
|
|||
[features]
|
||||
default = []
|
||||
v1_24 = ["gst/v1_24", "ffi/v1_24"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
|
|
@ -53,5 +53,4 @@ shell-words = "1.0.0"
|
|||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
dox = ["glib/dox", "gio/dox", "gobject/dox", "gst/dox"]
|
||||
v1_24 = []
|
||||
|
|
|
@ -37,8 +37,7 @@ v1_18 = ["gst/v1_18", "gst-base/v1_18", "ffi/v1_18", "v1_16"]
|
|||
v1_20 = ["gst/v1_20", "gst-base/v1_20", "ffi/v1_20", "v1_18"]
|
||||
v1_22 = ["gst/v1_22", "gst-base/v1_22", "ffi/v1_22", "v1_20"]
|
||||
v1_24 = ["gst/v1_24", "gst-base/v1_24", "ffi/v1_24", "v1_22"]
|
||||
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-base/dox", "serde"]
|
||||
serde = ["dep:serde", "gst/serde"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
use gst::CapsFeatures;
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
#[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 static CAPS_FEATURE_FORMAT_INTERLACED: &glib::GStr =
|
||||
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_CAPS_FEATURE_FORMAT_INTERLACED) };
|
||||
#[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 static CAPS_FEATURES_FORMAT_INTERLACED: Lazy<CapsFeatures> =
|
||||
Lazy::new(|| CapsFeatures::new([CAPS_FEATURE_FORMAT_INTERLACED]));
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#[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::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 crate::VideoCaptionType;
|
||||
#[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::VideoOrientationMethod;
|
||||
|
||||
#[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 VideoCaptionType {
|
||||
#[doc(alias = "gst_video_caption_type_from_caps")]
|
||||
pub fn from_caps(caps: &gst::CapsRef) -> VideoCaptionType {
|
||||
|
@ -21,11 +21,11 @@ impl VideoCaptionType {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 VideoOrientationMethod {
|
||||
#[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_video_orientation_from_tag")]
|
||||
pub fn from_tag(taglist: &gst::TagListRef) -> Option<VideoOrientationMethod> {
|
||||
skip_assert_initialized!();
|
||||
|
|
|
@ -193,8 +193,8 @@ pub fn guess_framerate(duration: gst::ClockTime) -> Option<gst::Fraction> {
|
|||
}
|
||||
}
|
||||
|
||||
#[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_video_is_common_aspect_ratio")]
|
||||
pub fn is_common_aspect_ratio(width: u32, height: u32, par: gst::Fraction) -> bool {
|
||||
skip_assert_initialized!();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(clippy::missing_safety_doc)]
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
|
@ -34,8 +34,8 @@ mod caps;
|
|||
pub use crate::caps::VideoCapsBuilder;
|
||||
|
||||
mod caps_features;
|
||||
#[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 use crate::caps_features::{CAPS_FEATURES_FORMAT_INTERLACED, CAPS_FEATURE_FORMAT_INTERLACED};
|
||||
pub use crate::caps_features::{
|
||||
CAPS_FEATURES_META_GST_VIDEO_AFFINE_TRANSFORMATION_META,
|
||||
|
@ -53,11 +53,11 @@ mod video_format_info;
|
|||
pub use crate::video_format_info::*;
|
||||
mod video_info;
|
||||
pub use crate::video_info::*;
|
||||
#[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")))]
|
||||
mod video_info_dma_drm;
|
||||
#[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 use crate::video_info_dma_drm::*;
|
||||
pub mod video_frame;
|
||||
pub use crate::video_frame::{VideoFrame, VideoFrameRef};
|
||||
|
@ -83,11 +83,11 @@ pub use crate::video_overlay_composition::{
|
|||
VideoOverlayRectangleRef,
|
||||
};
|
||||
pub mod video_meta;
|
||||
#[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 use crate::video_meta::VideoCaptionMeta;
|
||||
#[cfg(any(feature = "v1_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 crate::video_meta::{VideoAFDMeta, VideoBarMeta};
|
||||
pub use crate::video_meta::{
|
||||
VideoAffineTransformationMeta, VideoCropMeta, VideoMeta, VideoOverlayCompositionMeta,
|
||||
|
@ -114,23 +114,23 @@ pub mod video_codec_state;
|
|||
pub use crate::video_codec_state::{VideoCodecState, VideoCodecStateContext};
|
||||
mod utils;
|
||||
|
||||
#[cfg(any(feature = "v1_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 video_hdr;
|
||||
#[cfg(any(feature = "v1_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 crate::video_hdr::*;
|
||||
|
||||
mod color_balance_channel;
|
||||
|
||||
#[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")))]
|
||||
mod video_aggregator;
|
||||
#[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")))]
|
||||
mod video_aggregator_convert_pad;
|
||||
#[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")))]
|
||||
mod video_aggregator_pad;
|
||||
|
||||
pub const VIDEO_ENCODER_FLOW_NEED_DATA: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
|
||||
|
@ -142,14 +142,14 @@ pub mod prelude {
|
|||
#[doc(hidden)]
|
||||
pub use gst_base::prelude::*;
|
||||
|
||||
#[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 use crate::video_aggregator::VideoAggregatorExtManual;
|
||||
#[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 use crate::video_aggregator_convert_pad::VideoAggregatorConvertPadExtManual;
|
||||
#[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 use crate::video_aggregator_pad::VideoAggregatorPadExtManual;
|
||||
pub use crate::{
|
||||
auto::traits::*, video_buffer_pool::VideoBufferPoolConfig,
|
||||
|
|
|
@ -3,36 +3,36 @@
|
|||
#![allow(clippy::cast_ptr_alignment)]
|
||||
|
||||
mod navigation;
|
||||
#[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")))]
|
||||
mod video_aggregator;
|
||||
#[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")))]
|
||||
mod video_aggregator_convert_pad;
|
||||
#[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")))]
|
||||
mod video_aggregator_pad;
|
||||
mod video_decoder;
|
||||
mod video_encoder;
|
||||
mod video_filter;
|
||||
mod video_sink;
|
||||
|
||||
#[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 use video_aggregator::AggregateFramesToken;
|
||||
|
||||
pub mod prelude {
|
||||
#[doc(hidden)]
|
||||
pub use gst_base::subclass::prelude::*;
|
||||
|
||||
#[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 use super::video_aggregator::{VideoAggregatorImpl, VideoAggregatorImplExt};
|
||||
#[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 use super::video_aggregator_convert_pad::VideoAggregatorConvertPadImpl;
|
||||
#[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 use super::video_aggregator_pad::{VideoAggregatorPadImpl, VideoAggregatorPadImplExt};
|
||||
pub use super::{
|
||||
navigation::NavigationImpl,
|
||||
|
|
|
@ -7,8 +7,8 @@ use crate::Navigation;
|
|||
pub trait NavigationImpl: ObjectImpl {
|
||||
fn send_event(&self, structure: gst::Structure);
|
||||
|
||||
#[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 send_event_simple(&self, event: gst::Event) {
|
||||
if let Some(structure) = event.structure() {
|
||||
self.send_event(structure.to_owned());
|
||||
|
@ -19,8 +19,8 @@ pub trait NavigationImpl: ObjectImpl {
|
|||
pub trait NavigationImplExt: ObjectSubclass {
|
||||
fn parent_send_event(&self, structure: gst::Structure);
|
||||
|
||||
#[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 parent_send_event_simple(&self, event: gst::Event) {
|
||||
if let Some(structure) = event.structure() {
|
||||
self.parent_send_event(structure.to_owned());
|
||||
|
@ -47,8 +47,8 @@ impl<T: NavigationImpl> NavigationImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 parent_send_event_simple(&self, event: gst::Event) {
|
||||
unsafe {
|
||||
let type_data = Self::type_data();
|
||||
|
@ -69,15 +69,15 @@ impl<T: NavigationImpl> NavigationImplExt for T {
|
|||
}
|
||||
|
||||
unsafe impl<T: NavigationImpl> IsImplementable<T> for Navigation {
|
||||
#[cfg(not(any(feature = "v1_22", feature = "dox")))]
|
||||
#[cfg(not(any(feature = "v1_22", docsrs)))]
|
||||
fn interface_init(iface: &mut glib::Interface<Self>) {
|
||||
let iface = iface.as_mut();
|
||||
|
||||
iface.send_event = Some(navigation_send_event::<T>);
|
||||
}
|
||||
|
||||
#[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 interface_init(iface: &mut glib::Interface<Self>) {
|
||||
let iface = iface.as_mut();
|
||||
|
||||
|
@ -96,8 +96,8 @@ unsafe extern "C" fn navigation_send_event<T: NavigationImpl>(
|
|||
imp.send_event(from_glib_full(structure));
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
unsafe extern "C" fn navigation_send_event_simple<T: NavigationImpl>(
|
||||
nav: *mut ffi::GstNavigation,
|
||||
event: *mut gst::ffi::GstEvent,
|
||||
|
|
|
@ -96,8 +96,8 @@ pub trait VideoDecoderImpl: VideoDecoderImplExt + ElementImpl {
|
|||
self.parent_decide_allocation(query)
|
||||
}
|
||||
|
||||
#[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 handle_missing_data(
|
||||
&self,
|
||||
timestamp: gst::ClockTime,
|
||||
|
@ -161,8 +161,8 @@ pub trait VideoDecoderImplExt: ObjectSubclass {
|
|||
query: &mut gst::query::Allocation,
|
||||
) -> Result<(), gst::LoggableError>;
|
||||
|
||||
#[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 parent_handle_missing_data(
|
||||
&self,
|
||||
timestamp: gst::ClockTime,
|
||||
|
@ -560,8 +560,8 @@ impl<T: VideoDecoderImpl> VideoDecoderImplExt for T {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 parent_handle_missing_data(
|
||||
&self,
|
||||
timestamp: gst::ClockTime,
|
||||
|
@ -609,7 +609,7 @@ unsafe impl<T: VideoDecoderImpl> IsSubclassable<T> for VideoDecoder {
|
|||
klass.src_query = Some(video_decoder_src_query::<T>);
|
||||
klass.propose_allocation = Some(video_decoder_propose_allocation::<T>);
|
||||
klass.decide_allocation = Some(video_decoder_decide_allocation::<T>);
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
{
|
||||
klass.handle_missing_data = Some(video_decoder_handle_missing_data::<T>);
|
||||
}
|
||||
|
@ -901,7 +901,7 @@ unsafe extern "C" fn video_decoder_decide_allocation<T: VideoDecoderImpl>(
|
|||
.into_glib()
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
||||
#[cfg(feature = "v1_20")]
|
||||
unsafe extern "C" fn video_decoder_handle_missing_data<T: VideoDecoderImpl>(
|
||||
ptr: *mut ffi::GstVideoDecoder,
|
||||
timestamp: gst::ffi::GstClockTime,
|
||||
|
|
|
@ -218,16 +218,16 @@ impl<'a> VideoCodecFrame<'a> {
|
|||
unsafe { from_glib((*self.to_glib_none().0).deadline) }
|
||||
}
|
||||
|
||||
#[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_video_decoder_get_processed_subframe_index")]
|
||||
#[inline]
|
||||
pub fn subframes_processed(&self) -> u32 {
|
||||
unsafe { (*self.to_glib_none().0).abidata.ABI.subframes_processed }
|
||||
}
|
||||
|
||||
#[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_video_decoder_get_input_subframe_index")]
|
||||
#[inline]
|
||||
pub fn num_subframes(&self) -> u32 {
|
||||
|
|
|
@ -72,16 +72,16 @@ impl VideoConverter {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 = "get_in_info")]
|
||||
#[doc(alias = "gst_video_converter_get_in_info")]
|
||||
pub fn in_info(&self) -> crate::VideoInfo {
|
||||
unsafe { from_glib_none(ffi::gst_video_converter_get_in_info(self.0.as_ptr())) }
|
||||
}
|
||||
|
||||
#[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 = "get_out_info")]
|
||||
#[doc(alias = "gst_video_converter_get_out_info")]
|
||||
pub fn out_info(&self) -> crate::VideoInfo {
|
||||
|
|
|
@ -4,8 +4,8 @@ use std::{mem, ptr};
|
|||
|
||||
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 crate::VideoInterlaceMode;
|
||||
use crate::{
|
||||
utils::HasStreamLock,
|
||||
|
@ -62,8 +62,8 @@ pub trait VideoDecoderExtManual: 'static {
|
|||
height: u32,
|
||||
reference: Option<&VideoCodecState<Readable>>,
|
||||
) -> Result<VideoCodecState<InNegotiation>, 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")))]
|
||||
fn set_interlaced_output_state(
|
||||
&self,
|
||||
fmt: VideoFormat,
|
||||
|
@ -246,8 +246,8 @@ impl<O: IsA<VideoDecoder>> VideoDecoderExtManual 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")))]
|
||||
#[doc(alias = "gst_video_decoder_set_interlaced_output_state")]
|
||||
fn set_interlaced_output_state(
|
||||
&self,
|
||||
|
|
|
@ -32,8 +32,8 @@ pub trait VideoEncoderExtManual: 'static {
|
|||
#[doc(alias = "gst_video_encoder_get_allocator")]
|
||||
fn allocator(&self) -> (Option<gst::Allocator>, gst::AllocationParams);
|
||||
|
||||
#[cfg(any(feature = "v1_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_video_encoder_finish_subframe")]
|
||||
fn finish_subframe(&self, frame: &VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError>;
|
||||
|
||||
|
@ -99,8 +99,8 @@ impl<O: IsA<VideoEncoder>> VideoEncoderExtManual 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_subframe(&self, frame: &VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError> {
|
||||
unsafe {
|
||||
try_from_glib(ffi::gst_video_encoder_finish_subframe(
|
||||
|
|
|
@ -4,8 +4,8 @@ use std::mem;
|
|||
use glib::{translate::*, ToSendValue};
|
||||
use gst::EventType;
|
||||
|
||||
#[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")))]
|
||||
use crate::NavigationModifierType;
|
||||
use crate::{NavigationCommand, NavigationEventType};
|
||||
|
||||
|
@ -365,8 +365,8 @@ macro_rules! nav_event_builder {
|
|||
running_time_offset: Option<i64>,
|
||||
other_fields: Vec<(&'a str, &'a (dyn ToSendValue + Sync))>,
|
||||
$($field_names: $field_types,)*
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
$($event_field: $event_type,)?
|
||||
}
|
||||
|
@ -379,8 +379,8 @@ macro_rules! nav_event_builder {
|
|||
running_time_offset: None,
|
||||
other_fields: Vec::new(),
|
||||
$($field_names: <$field_types>::default(),)*
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
$($event_field,)?
|
||||
}
|
||||
|
@ -390,8 +390,8 @@ macro_rules! nav_event_builder {
|
|||
Self { $field_names, ..self }
|
||||
})*
|
||||
|
||||
#[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 modifier_state(self, modifier_state: NavigationModifierType) -> Self {
|
||||
Self { modifier_state, ..self }
|
||||
}
|
||||
|
@ -414,14 +414,14 @@ nav_event_builder!(
|
|||
let event = match s.kind {
|
||||
KeyEventType::Press { key } => NavigationEvent::KeyPress {
|
||||
key: key.to_owned(),
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
},
|
||||
KeyEventType::Release { key } => NavigationEvent::KeyRelease {
|
||||
key: key.to_owned(),
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
},
|
||||
};
|
||||
|
@ -437,8 +437,8 @@ pub enum MouseEventType {
|
|||
Release {
|
||||
button: 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")))]
|
||||
Scroll {
|
||||
delta_x: f64,
|
||||
delta_y: f64,
|
||||
|
@ -454,35 +454,35 @@ nav_event_builder!(
|
|||
MouseEventType::Move => NavigationEvent::MouseMove {
|
||||
x: s.x,
|
||||
y: s.y,
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
},
|
||||
MouseEventType::Press { button } => NavigationEvent::MouseButtonPress {
|
||||
button,
|
||||
x: s.x,
|
||||
y: s.y,
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
},
|
||||
MouseEventType::Release { button } => NavigationEvent::MouseButtonRelease {
|
||||
button,
|
||||
x: s.x,
|
||||
y: s.y,
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
},
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
MouseEventType::Scroll { delta_x, delta_y } => NavigationEvent::MouseScroll {
|
||||
x: s.x,
|
||||
y: s.y,
|
||||
delta_x,
|
||||
delta_y,
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
},
|
||||
};
|
||||
|
@ -496,8 +496,8 @@ pub struct CommandEventBuilder<'a> {
|
|||
running_time_offset: Option<i64>,
|
||||
other_fields: Vec<(&'a str, &'a (dyn ToSendValue + Sync))>,
|
||||
command: NavigationCommand,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
}
|
||||
|
||||
|
@ -509,14 +509,14 @@ impl<'a> CommandEventBuilder<'a> {
|
|||
running_time_offset: None,
|
||||
other_fields: Vec::new(),
|
||||
command,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[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 modifier_state(self, modifier_state: NavigationModifierType) -> Self {
|
||||
Self {
|
||||
modifier_state,
|
||||
|
@ -527,24 +527,24 @@ impl<'a> CommandEventBuilder<'a> {
|
|||
event_builder_generic_impl!(|s: &mut Self| {
|
||||
let event = NavigationEvent::Command {
|
||||
command: s.command,
|
||||
#[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")))]
|
||||
modifier_state: s.modifier_state,
|
||||
};
|
||||
gst::ffi::gst_event_new_navigation(event.structure().into_glib_ptr())
|
||||
});
|
||||
}
|
||||
|
||||
#[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 enum TouchEventType {
|
||||
Down { pressure: f64 },
|
||||
Motion { pressure: f64 },
|
||||
Up,
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
nav_event_builder!(
|
||||
TouchEventBuilder,
|
||||
kind: TouchEventType,
|
||||
|
@ -576,15 +576,15 @@ nav_event_builder!(
|
|||
}
|
||||
);
|
||||
|
||||
#[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 enum TouchMetaEventType {
|
||||
Frame,
|
||||
Cancel,
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
nav_event_builder!(
|
||||
TouchMetaEventBuilder,
|
||||
kind: TouchMetaEventType,
|
||||
|
@ -609,58 +609,58 @@ const NAVIGATION_EVENT_NAME: &str = "application/x-gst-navigation";
|
|||
pub enum NavigationEvent {
|
||||
KeyPress {
|
||||
key: String,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
KeyRelease {
|
||||
key: String,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
MouseMove {
|
||||
x: f64,
|
||||
y: f64,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
MouseButtonPress {
|
||||
button: i32,
|
||||
x: f64,
|
||||
y: f64,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
MouseButtonRelease {
|
||||
button: i32,
|
||||
x: f64,
|
||||
y: f64,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
Command {
|
||||
command: NavigationCommand,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
MouseScroll {
|
||||
x: f64,
|
||||
y: f64,
|
||||
delta_x: f64,
|
||||
delta_y: f64,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
#[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")))]
|
||||
TouchDown {
|
||||
identifier: u32,
|
||||
x: f64,
|
||||
|
@ -668,8 +668,8 @@ pub enum NavigationEvent {
|
|||
pressure: f64,
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
#[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")))]
|
||||
TouchMotion {
|
||||
identifier: u32,
|
||||
x: f64,
|
||||
|
@ -677,21 +677,21 @@ pub enum NavigationEvent {
|
|||
pressure: f64,
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
#[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")))]
|
||||
TouchUp {
|
||||
identifier: u32,
|
||||
x: f64,
|
||||
y: f64,
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
#[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")))]
|
||||
TouchFrame {
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
#[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")))]
|
||||
TouchCancel {
|
||||
modifier_state: NavigationModifierType,
|
||||
},
|
||||
|
@ -703,8 +703,8 @@ impl NavigationEvent {
|
|||
assert_initialized_main_thread!();
|
||||
Self::KeyPress {
|
||||
key: key.to_string(),
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
@ -714,8 +714,8 @@ impl NavigationEvent {
|
|||
assert_initialized_main_thread!();
|
||||
Self::KeyRelease {
|
||||
key: key.to_string(),
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
@ -726,8 +726,8 @@ impl NavigationEvent {
|
|||
Self::MouseMove {
|
||||
x,
|
||||
y,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
@ -739,8 +739,8 @@ impl NavigationEvent {
|
|||
button,
|
||||
x,
|
||||
y,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
@ -752,14 +752,14 @@ impl NavigationEvent {
|
|||
button,
|
||||
x,
|
||||
y,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_navigation_event_new_mouse_scroll")]
|
||||
pub fn new_mouse_scroll(x: f64, y: f64, delta_x: f64, delta_y: f64) -> NavigationEvent {
|
||||
assert_initialized_main_thread!();
|
||||
|
@ -768,8 +768,8 @@ impl NavigationEvent {
|
|||
y,
|
||||
delta_x,
|
||||
delta_y,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
@ -779,14 +779,14 @@ impl NavigationEvent {
|
|||
assert_initialized_main_thread!();
|
||||
Self::Command {
|
||||
command,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[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_navigation_event_new_touch_down")]
|
||||
pub fn new_touch_down(identifier: u32, x: f64, y: f64, pressure: f64) -> NavigationEvent {
|
||||
assert_initialized_main_thread!();
|
||||
|
@ -795,14 +795,14 @@ impl NavigationEvent {
|
|||
x,
|
||||
y,
|
||||
pressure,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[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_navigation_event_new_touch_motion")]
|
||||
pub fn new_touch_motion(identifier: u32, x: f64, y: f64, pressure: f64) -> NavigationEvent {
|
||||
assert_initialized_main_thread!();
|
||||
|
@ -811,14 +811,14 @@ impl NavigationEvent {
|
|||
x,
|
||||
y,
|
||||
pressure,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[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_navigation_event_new_touch_up")]
|
||||
pub fn new_touch_up(identifier: u32, x: f64, y: f64) -> NavigationEvent {
|
||||
assert_initialized_main_thread!();
|
||||
|
@ -826,32 +826,32 @@ impl NavigationEvent {
|
|||
identifier,
|
||||
x,
|
||||
y,
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[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_navigation_event_new_touch_frame")]
|
||||
pub fn new_touch_frame() -> NavigationEvent {
|
||||
assert_initialized_main_thread!();
|
||||
Self::TouchFrame {
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
#[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_navigation_event_new_touch_cancel")]
|
||||
pub fn new_touch_cancel() -> NavigationEvent {
|
||||
assert_initialized_main_thread!();
|
||||
Self::TouchCancel {
|
||||
#[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")))]
|
||||
modifier_state: NavigationModifierType::empty(),
|
||||
}
|
||||
}
|
||||
|
@ -885,8 +885,8 @@ impl NavigationEvent {
|
|||
.y(y)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 mouse_scroll_builder(
|
||||
x: f64,
|
||||
y: f64,
|
||||
|
@ -904,8 +904,8 @@ impl NavigationEvent {
|
|||
CommandEventBuilder::new(command)
|
||||
}
|
||||
|
||||
#[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 touch_down_builder(
|
||||
identifier: u32,
|
||||
x: f64,
|
||||
|
@ -919,8 +919,8 @@ impl NavigationEvent {
|
|||
.y(y)
|
||||
}
|
||||
|
||||
#[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 touch_motion_builder(
|
||||
identifier: u32,
|
||||
x: f64,
|
||||
|
@ -934,8 +934,8 @@ impl NavigationEvent {
|
|||
.y(y)
|
||||
}
|
||||
|
||||
#[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 touch_up_builder(identifier: u32, x: f64, y: f64) -> TouchEventBuilder<'static> {
|
||||
assert_initialized_main_thread!();
|
||||
TouchEventBuilder::new(TouchEventType::Up)
|
||||
|
@ -944,15 +944,15 @@ impl NavigationEvent {
|
|||
.y(y)
|
||||
}
|
||||
|
||||
#[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 touch_frame_builder() -> TouchMetaEventBuilder<'static> {
|
||||
assert_initialized_main_thread!();
|
||||
TouchMetaEventBuilder::new(TouchMetaEventType::Frame)
|
||||
}
|
||||
|
||||
#[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 touch_cancel_builder() -> TouchMetaEventBuilder<'static> {
|
||||
assert_initialized_main_thread!();
|
||||
TouchMetaEventBuilder::new(TouchMetaEventType::Cancel)
|
||||
|
@ -984,8 +984,8 @@ impl NavigationEvent {
|
|||
return Err(glib::bool_error!("Invalid navigation event"));
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
let modifier_state = structure
|
||||
.get("state")
|
||||
.unwrap_or(NavigationModifierType::empty());
|
||||
|
@ -997,8 +997,8 @@ impl NavigationEvent {
|
|||
y: structure
|
||||
.get("pointer_y")
|
||||
.map_err(|_| glib::bool_error!("Invalid mouse event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
NavigationEventType::MouseButtonPress => NavigationEvent::MouseButtonPress {
|
||||
|
@ -1011,8 +1011,8 @@ impl NavigationEvent {
|
|||
y: structure
|
||||
.get("pointer_y")
|
||||
.map_err(|_| glib::bool_error!("Invalid mouse event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
NavigationEventType::MouseButtonRelease => NavigationEvent::MouseButtonRelease {
|
||||
|
@ -1025,12 +1025,12 @@ impl NavigationEvent {
|
|||
y: structure
|
||||
.get("pointer_y")
|
||||
.map_err(|_| glib::bool_error!("Invalid mouse event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
NavigationEventType::MouseScroll => NavigationEvent::MouseScroll {
|
||||
x: structure
|
||||
.get("pointer_x")
|
||||
|
@ -1044,36 +1044,36 @@ impl NavigationEvent {
|
|||
delta_y: structure
|
||||
.get("delta_pointer_y")
|
||||
.map_err(|_| glib::bool_error!("Invalid mouse event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
NavigationEventType::KeyPress => NavigationEvent::KeyPress {
|
||||
key: structure
|
||||
.get("key")
|
||||
.map_err(|_| glib::bool_error!("Invalid key press event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
NavigationEventType::KeyRelease => NavigationEvent::KeyRelease {
|
||||
key: structure
|
||||
.get("key")
|
||||
.map_err(|_| glib::bool_error!("Invalid key press event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
NavigationEventType::Command => NavigationEvent::Command {
|
||||
command: structure
|
||||
.get("command-code")
|
||||
.map_err(|_| glib::bool_error!("Invalid key press event"))?,
|
||||
#[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")))]
|
||||
modifier_state,
|
||||
},
|
||||
#[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")))]
|
||||
NavigationEventType::TouchDown => NavigationEvent::TouchDown {
|
||||
identifier: structure
|
||||
.get("identifier")
|
||||
|
@ -1089,8 +1089,8 @@ impl NavigationEvent {
|
|||
.map_err(|_| glib::bool_error!("Invalid touch event"))?,
|
||||
modifier_state,
|
||||
},
|
||||
#[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")))]
|
||||
NavigationEventType::TouchMotion => NavigationEvent::TouchMotion {
|
||||
identifier: structure
|
||||
.get("identifier")
|
||||
|
@ -1106,8 +1106,8 @@ impl NavigationEvent {
|
|||
.map_err(|_| glib::bool_error!("Invalid touch event"))?,
|
||||
modifier_state,
|
||||
},
|
||||
#[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")))]
|
||||
NavigationEventType::TouchUp => NavigationEvent::TouchUp {
|
||||
identifier: structure
|
||||
.get("identifier")
|
||||
|
@ -1120,11 +1120,11 @@ impl NavigationEvent {
|
|||
.map_err(|_| glib::bool_error!("Invalid touch event"))?,
|
||||
modifier_state,
|
||||
},
|
||||
#[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")))]
|
||||
NavigationEventType::TouchFrame => NavigationEvent::TouchFrame { modifier_state },
|
||||
#[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")))]
|
||||
NavigationEventType::TouchCancel => NavigationEvent::TouchCancel { modifier_state },
|
||||
NavigationEventType::Invalid | NavigationEventType::__Unknown(_) => {
|
||||
return Err(glib::bool_error!("Invalid navigation event"))
|
||||
|
@ -1155,8 +1155,8 @@ impl NavigationEvent {
|
|||
.field("pointer_x", x)
|
||||
.field("pointer_y", y)
|
||||
}
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
Self::MouseScroll {
|
||||
x,
|
||||
y,
|
||||
|
@ -1178,8 +1178,8 @@ impl NavigationEvent {
|
|||
Self::Command { command, .. } => gst::Structure::builder(NAVIGATION_EVENT_NAME)
|
||||
.field("event", "command")
|
||||
.field("command-code", command),
|
||||
#[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")))]
|
||||
Self::TouchDown {
|
||||
identifier,
|
||||
x,
|
||||
|
@ -1192,8 +1192,8 @@ impl NavigationEvent {
|
|||
.field("pointer_x", x)
|
||||
.field("pointer_y", y)
|
||||
.field("pressure", pressure),
|
||||
#[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")))]
|
||||
Self::TouchMotion {
|
||||
identifier,
|
||||
x,
|
||||
|
@ -1206,8 +1206,8 @@ impl NavigationEvent {
|
|||
.field("pointer_x", x)
|
||||
.field("pointer_y", y)
|
||||
.field("pressure", pressure),
|
||||
#[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")))]
|
||||
Self::TouchUp {
|
||||
identifier, x, y, ..
|
||||
} => gst::Structure::builder(NAVIGATION_EVENT_NAME)
|
||||
|
@ -1215,19 +1215,19 @@ impl NavigationEvent {
|
|||
.field("identifier", identifier)
|
||||
.field("pointer_x", x)
|
||||
.field("pointer_y", y),
|
||||
#[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")))]
|
||||
Self::TouchFrame { .. } => {
|
||||
gst::Structure::builder(NAVIGATION_EVENT_NAME).field("event", "touch-frame")
|
||||
}
|
||||
#[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")))]
|
||||
Self::TouchCancel { .. } => {
|
||||
gst::Structure::builder(NAVIGATION_EVENT_NAME).field("event", "touch-cancel")
|
||||
}
|
||||
};
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
if true {
|
||||
structure = match self {
|
||||
Self::MouseMove { modifier_state, .. } => structure.field("state", modifier_state),
|
||||
|
@ -1269,8 +1269,8 @@ impl NavigationEvent {
|
|||
mod tests {
|
||||
#[test]
|
||||
#[cfg(feature = "serde")]
|
||||
#[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 serialize_navigation_events() {
|
||||
use crate::{NavigationEvent, NavigationModifierType};
|
||||
|
||||
|
|
|
@ -133,8 +133,8 @@ impl VideoFormatInfo {
|
|||
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_PALETTE != 0
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[inline]
|
||||
pub fn has_subtiles(&self) -> bool {
|
||||
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_SUBTILES != 0
|
||||
|
@ -347,8 +347,8 @@ impl VideoFormatInfo {
|
|||
(offset, scale)
|
||||
}
|
||||
|
||||
#[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_video_format_info_extrapolate_stride")]
|
||||
pub fn extrapolate_stride(&self, plane: u32, stride: u32) -> u32 {
|
||||
assert!(plane < self.n_planes());
|
||||
|
@ -362,8 +362,8 @@ impl VideoFormatInfo {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 tile_info(&self, plane: u32) -> &VideoTileInfo {
|
||||
assert!(plane < self.n_planes());
|
||||
|
||||
|
@ -498,7 +498,7 @@ impl fmt::Debug for VideoFormatInfo {
|
|||
.field("tile-ws", &self.tile_ws())
|
||||
.field("tile-hs", &self.tile_hs());
|
||||
|
||||
#[cfg(any(feature = "v1_22", feature = "dox"))]
|
||||
#[cfg(feature = "v1_22")]
|
||||
{
|
||||
fmt.field(
|
||||
"tile-info",
|
||||
|
@ -572,14 +572,14 @@ impl glib::translate::FromGlibPtrNone<*const ffi::GstVideoFormatInfo> for VideoF
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstVideoTileInfo")]
|
||||
pub struct VideoTileInfo(ffi::GstVideoTileInfo);
|
||||
|
||||
#[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")))]
|
||||
impl fmt::Debug for VideoTileInfo {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("VideoTileInfo")
|
||||
|
@ -591,8 +591,8 @@ impl fmt::Debug for VideoTileInfo {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
impl VideoTileInfo {
|
||||
#[inline]
|
||||
pub fn width(&self) -> u32 {
|
||||
|
|
|
@ -134,8 +134,8 @@ impl VideoColorimetry {
|
|||
unsafe { from_glib(self.0.primaries) }
|
||||
}
|
||||
|
||||
#[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_video_colorimetry_is_equivalent")]
|
||||
pub fn is_equivalent(&self, bitdepth: u32, other: &Self, other_bitdepth: u32) -> bool {
|
||||
unsafe {
|
||||
|
@ -621,8 +621,8 @@ impl VideoInfo {
|
|||
self.0.height as u32
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[inline]
|
||||
pub fn field_height(&self) -> u32 {
|
||||
if self.0.interlace_mode == ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE {
|
||||
|
@ -713,8 +713,8 @@ impl VideoInfo {
|
|||
gst::Fraction::new(self.0.fps_n, self.0.fps_d)
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[inline]
|
||||
pub fn field_rate(&self) -> gst::Fraction {
|
||||
if self.interlace_mode() == crate::VideoInterlaceMode::Alternate {
|
||||
|
@ -850,8 +850,8 @@ impl VideoInfo {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_video_info_align_full")]
|
||||
pub fn align_full(
|
||||
&mut self,
|
||||
|
|
|
@ -159,8 +159,8 @@ impl VideoMeta {
|
|||
&self.0.stride[0..(self.0.n_planes as usize)]
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 = "get_alignment")]
|
||||
#[inline]
|
||||
pub fn alignment(&self) -> crate::VideoAlignment {
|
||||
|
@ -173,8 +173,8 @@ impl VideoMeta {
|
|||
)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 = "get_plane_size")]
|
||||
#[doc(alias = "gst_video_meta_get_plane_size")]
|
||||
pub fn plane_size(&self) -> Result<[usize; crate::VIDEO_MAX_PLANES], glib::BoolError> {
|
||||
|
@ -193,8 +193,8 @@ impl VideoMeta {
|
|||
Ok(plane_size)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 = "get_plane_height")]
|
||||
#[doc(alias = "gst_video_meta_get_plane_height")]
|
||||
pub fn plane_height(&self) -> Result<[u32; crate::VIDEO_MAX_PLANES], glib::BoolError> {
|
||||
|
@ -213,8 +213,8 @@ impl VideoMeta {
|
|||
Ok(plane_height)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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_video_meta_set_alignment")]
|
||||
pub fn set_alignment(
|
||||
&mut self,
|
||||
|
@ -599,21 +599,21 @@ impl fmt::Debug for VideoOverlayCompositionMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstVideoCaptionMeta")]
|
||||
pub struct VideoCaptionMeta(ffi::GstVideoCaptionMeta);
|
||||
|
||||
#[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")))]
|
||||
unsafe impl Send for VideoCaptionMeta {}
|
||||
#[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")))]
|
||||
unsafe impl Sync for VideoCaptionMeta {}
|
||||
|
||||
#[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 VideoCaptionMeta {
|
||||
#[doc(alias = "gst_buffer_add_video_caption_meta")]
|
||||
pub fn add<'a>(
|
||||
|
@ -655,8 +655,8 @@ impl VideoCaptionMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
unsafe impl MetaAPI for VideoCaptionMeta {
|
||||
type GstType = ffi::GstVideoCaptionMeta;
|
||||
|
||||
|
@ -667,8 +667,8 @@ unsafe impl MetaAPI for VideoCaptionMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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::Debug for VideoCaptionMeta {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("VideoCaptionMeta")
|
||||
|
@ -678,21 +678,21 @@ impl fmt::Debug for VideoCaptionMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstVideoAFDMeta")]
|
||||
pub struct VideoAFDMeta(ffi::GstVideoAFDMeta);
|
||||
|
||||
#[cfg(any(feature = "v1_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 Send for VideoAFDMeta {}
|
||||
#[cfg(any(feature = "v1_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 Sync for VideoAFDMeta {}
|
||||
|
||||
#[cfg(any(feature = "v1_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 VideoAFDMeta {
|
||||
#[doc(alias = "gst_buffer_add_video_afd_meta")]
|
||||
pub fn add(
|
||||
|
@ -734,8 +734,8 @@ impl VideoAFDMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 MetaAPI for VideoAFDMeta {
|
||||
type GstType = ffi::GstVideoAFDMeta;
|
||||
|
||||
|
@ -746,8 +746,8 @@ unsafe impl MetaAPI for VideoAFDMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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::Debug for VideoAFDMeta {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("VideoAFDMeta")
|
||||
|
@ -758,21 +758,21 @@ impl fmt::Debug for VideoAFDMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(feature = "v1_18")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstVideoBarMeta")]
|
||||
pub struct VideoBarMeta(ffi::GstVideoBarMeta);
|
||||
|
||||
#[cfg(any(feature = "v1_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 Send for VideoBarMeta {}
|
||||
#[cfg(any(feature = "v1_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 Sync for VideoBarMeta {}
|
||||
|
||||
#[cfg(any(feature = "v1_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 VideoBarMeta {
|
||||
#[doc(alias = "gst_buffer_add_video_bar_meta")]
|
||||
pub fn add(
|
||||
|
@ -821,8 +821,8 @@ impl VideoBarMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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 MetaAPI for VideoBarMeta {
|
||||
type GstType = ffi::GstVideoBarMeta;
|
||||
|
||||
|
@ -833,8 +833,8 @@ unsafe impl MetaAPI for VideoBarMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_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::Debug for VideoBarMeta {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("VideoBarMeta")
|
||||
|
@ -846,21 +846,21 @@ impl fmt::Debug for VideoBarMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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")))]
|
||||
#[repr(transparent)]
|
||||
#[doc(alias = "GstVideoCodecAlphaMeta")]
|
||||
pub struct VideoCodecAlphaMeta(ffi::GstVideoCodecAlphaMeta);
|
||||
|
||||
#[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 Send for VideoCodecAlphaMeta {}
|
||||
#[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 Sync for VideoCodecAlphaMeta {}
|
||||
|
||||
#[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 VideoCodecAlphaMeta {
|
||||
#[doc(alias = "gst_buffer_add_video_codec_alpha_meta")]
|
||||
pub fn add(
|
||||
|
@ -889,8 +889,8 @@ impl VideoCodecAlphaMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 MetaAPI for VideoCodecAlphaMeta {
|
||||
type GstType = ffi::GstVideoCodecAlphaMeta;
|
||||
|
||||
|
@ -901,8 +901,8 @@ unsafe impl MetaAPI for VideoCodecAlphaMeta {
|
|||
}
|
||||
}
|
||||
|
||||
#[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 fmt::Debug for VideoCodecAlphaMeta {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("VideoCodecAlphaMeta")
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue