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:
Sebastian Dröge 2023-05-04 08:55:48 +03:00
parent 5c331e7e77
commit 3699da7314
132 changed files with 860 additions and 909 deletions

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -6,8 +6,8 @@ use std::{
use glib::{translate::*, Cast}; use glib::{translate::*, Cast};
use gst::{Memory, MemoryRef}; use gst::{Memory, MemoryRef};
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use crate::FdMemoryFlags; use crate::FdMemoryFlags;
use crate::{DmaBufAllocator, FdMemory, FdMemoryRef}; use crate::{DmaBufAllocator, FdMemory, FdMemoryRef};
@ -58,8 +58,8 @@ impl DmaBufAllocator {
.ok_or_else(|| glib::bool_error!("Failed to allocate memory")) .ok_or_else(|| glib::bool_error!("Failed to allocate memory"))
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_dmabuf_allocator_alloc_with_flags")] #[doc(alias = "gst_dmabuf_allocator_alloc_with_flags")]
pub unsafe fn alloc_with_flags( pub unsafe fn alloc_with_flags(
&self, &self,

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
@ -30,18 +30,18 @@ pub use crate::caps_features::CAPS_FEATURES_MEMORY_DMABUF;
mod fd_allocator; mod fd_allocator;
pub use fd_allocator::*; pub use fd_allocator::*;
#[cfg(any(target_os = "linux", feature = "dox"))] #[cfg(any(target_os = "linux", docsrs))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
mod dma_buf_allocator; mod dma_buf_allocator;
#[cfg(any(target_os = "linux", feature = "dox"))] #[cfg(any(target_os = "linux", docsrs))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
pub use dma_buf_allocator::*; pub use dma_buf_allocator::*;
#[cfg(any(all(feature = "v1_24", target_os = "linux"), feature = "dox"))] #[cfg(any(all(feature = "v1_24", target_os = "linux"), docsrs))]
#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v1_24", target_os = "linux"))))] #[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
mod drm_dumb_allocator; mod drm_dumb_allocator;
#[cfg(any(all(feature = "v1_24", target_os = "linux"), feature = "dox"))] #[cfg(any(all(feature = "v1_24", target_os = "linux"), docsrs))]
#[cfg_attr(feature = "dox", doc(cfg(all(feature = "v1_24", target_os = "linux"))))] #[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
pub use drm_dumb_allocator::*; pub use drm_dumb_allocator::*;
mod phys_memory; mod phys_memory;

View file

@ -1,5 +1,5 @@
#[cfg(any(target_os = "linux", feature = "dox"))] #[cfg(any(target_os = "linux", docsrs))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
mod dma_buf_allocator; mod dma_buf_allocator;
mod fd_allocator; mod fd_allocator;
@ -7,8 +7,8 @@ pub mod prelude {
#[doc(hidden)] #[doc(hidden)]
pub use gst::subclass::prelude::*; pub use gst::subclass::prelude::*;
#[cfg(any(target_os = "linux", feature = "dox"))] #[cfg(any(target_os = "linux", docsrs))]
#[cfg_attr(feature = "dox", doc(cfg(target_os = "linux")))] #[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
pub use super::dma_buf_allocator::DmaBufAllocatorImpl; pub use super::dma_buf_allocator::DmaBufAllocatorImpl;
pub use super::fd_allocator::FdAllocatorImpl; pub use super::fd_allocator::FdAllocatorImpl;
} }

View file

@ -21,7 +21,6 @@ shell-words = "1.0.0"
tempfile = "3" tempfile = "3"
[features] [features]
dox = ["glib/dox", "gobject/dox", "gst/dox"]
v1_16 = [] v1_16 = []
v1_18 = ["v1_16"] v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]

View file

@ -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_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_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"] 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] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -107,8 +107,8 @@ impl AppSinkCallbacksBuilder {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(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 { pub fn new_event<F: FnMut(&AppSink) -> bool + Send + 'static>(self, new_event: F) -> Self {
Self { Self {
new_event: Some(Box::new(new_event)), new_event: Some(Box::new(new_event)),
@ -116,8 +116,8 @@ impl AppSinkCallbacksBuilder {
} }
} }
#[cfg(any(feature = "v1_24", feature = "dox"))] #[cfg(feature = "v1_24")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
pub fn propose_allocation< pub fn propose_allocation<
F: FnMut(&AppSink, &mut gst::query::Allocation) -> bool + Send + 'static, F: FnMut(&AppSink, &mut gst::query::Allocation) -> bool + Send + 'static,
>( >(
@ -432,8 +432,8 @@ impl AppSink {
} }
#[doc(alias = "processing-deadline")] #[doc(alias = "processing-deadline")]
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_base_sink_get_processing_deadline")] #[doc(alias = "gst_base_sink_get_processing_deadline")]
pub fn processing_deadline(&self) -> gst::ClockTime { pub fn processing_deadline(&self) -> gst::ClockTime {
unsafe { unsafe {
@ -455,8 +455,8 @@ impl AppSink {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_base_sink_get_stats")] #[doc(alias = "gst_base_sink_get_stats")]
pub fn stats(&self) -> gst::Structure { pub fn stats(&self) -> gst::Structure {
unsafe { unsafe {
@ -579,8 +579,8 @@ impl AppSink {
} }
#[doc(alias = "processing-deadline")] #[doc(alias = "processing-deadline")]
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_base_sink_set_processing_deadline")] #[doc(alias = "gst_base_sink_set_processing_deadline")]
pub fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) { pub fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
unsafe { unsafe {
@ -812,8 +812,8 @@ impl AppSink {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "processing-deadline")] #[doc(alias = "processing-deadline")]
pub fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>( pub fn connect_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
@ -896,8 +896,8 @@ impl AppSink {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "stats")] #[doc(alias = "stats")]
pub fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>( pub fn connect_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
@ -1122,8 +1122,8 @@ impl AppSinkBuilder {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub fn processing_deadline(self, processing_deadline: i64) -> Self { pub fn processing_deadline(self, processing_deadline: i64) -> Self {
Self { Self {
builder: self builder: self

View file

@ -439,8 +439,8 @@ impl AppSrcBuilder {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub fn handle_segment_change(self, handle_segment_change: bool) -> Self { pub fn handle_segment_change(self, handle_segment_change: bool) -> Self {
Self { Self {
builder: self builder: self
@ -457,8 +457,8 @@ impl AppSrcBuilder {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn leaky_type(self, leaky_type: crate::AppLeakyType) -> Self { pub fn leaky_type(self, leaky_type: crate::AppLeakyType) -> Self {
Self { Self {
builder: self.builder.property("leaky-type", leaky_type), builder: self.builder.property("leaky-type", leaky_type),
@ -466,8 +466,8 @@ impl AppSrcBuilder {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn max_buffers(self, max_buffers: u64) -> Self { pub fn max_buffers(self, max_buffers: u64) -> Self {
Self { Self {
builder: self.builder.property("max-buffers", max_buffers), builder: self.builder.property("max-buffers", max_buffers),
@ -489,8 +489,8 @@ impl AppSrcBuilder {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn max_time(self, max_time: Option<gst::ClockTime>) -> Self { pub fn max_time(self, max_time: Option<gst::ClockTime>) -> Self {
Self { Self {
builder: self.builder.property("max-time", max_time), builder: self.builder.property("max-time", max_time),

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gst/dox", "gst_base/dox"]
[lib] [lib]
name = "gstreamer_app_sys" name = "gstreamer_app_sys"

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,9 +1,9 @@
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
use std::mem::transmute; use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
use glib::object::Cast; use glib::object::Cast;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
use glib::signal::{connect_raw, SignalHandlerId}; use glib::signal::{connect_raw, SignalHandlerId};
use glib::{object::IsA, translate::*}; use glib::{object::IsA, translate::*};
use gst::prelude::*; use gst::prelude::*;
@ -14,18 +14,18 @@ pub trait AudioAggregatorExtManual: 'static {
#[doc(alias = "gst_audio_aggregator_set_sink_caps")] #[doc(alias = "gst_audio_aggregator_set_sink_caps")]
fn set_sink_caps(&self, pad: &impl IsA<AudioAggregatorPad>, caps: &gst::CapsRef); fn set_sink_caps(&self, pad: &impl IsA<AudioAggregatorPad>, caps: &gst::CapsRef);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "output-buffer-duration-fraction")] #[doc(alias = "output-buffer-duration-fraction")]
fn output_buffer_duration_fraction(&self) -> gst::Fraction; fn output_buffer_duration_fraction(&self) -> gst::Fraction;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "output-buffer-duration-fraction")] #[doc(alias = "output-buffer-duration-fraction")]
fn set_output_buffer_duration_fraction(&self, output_buffer_duration_fraction: gst::Fraction); fn set_output_buffer_duration_fraction(&self, output_buffer_duration_fraction: gst::Fraction);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "output-buffer-duration-fraction")] #[doc(alias = "output-buffer-duration-fraction")]
fn connect_output_buffer_duration_fraction_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_output_buffer_duration_fraction_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
@ -47,14 +47,14 @@ impl<O: IsA<AudioAggregator>> AudioAggregatorExtManual for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn output_buffer_duration_fraction(&self) -> gst::Fraction { fn output_buffer_duration_fraction(&self) -> gst::Fraction {
glib::ObjectExt::property(self.as_ref(), "output-buffer-duration-fraction") glib::ObjectExt::property(self.as_ref(), "output-buffer-duration-fraction")
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(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) { fn set_output_buffer_duration_fraction(&self, output_buffer_duration_fraction: gst::Fraction) {
glib::ObjectExt::set_property( glib::ObjectExt::set_property(
self.as_ref(), self.as_ref(),
@ -63,8 +63,8 @@ impl<O: IsA<AudioAggregator>> AudioAggregatorExtManual for O {
) )
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(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>( fn connect_output_buffer_duration_fraction_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -163,15 +163,15 @@ impl AudioConverterConfig {
.unwrap_or_else(Vec::new) .unwrap_or_else(Vec::new)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn set_dither_threshold(&mut self, v: u32) { pub fn set_dither_threshold(&mut self, v: u32) {
self.0 self.0
.set(glib::gstr!("GstAudioConverter.dither-threshold"), v); .set(glib::gstr!("GstAudioConverter.dither-threshold"), v);
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "get_dither_threshold")] #[doc(alias = "get_dither_threshold")]
pub fn dither_threshold(&self) -> u32 { pub fn dither_threshold(&self) -> u32 {
self.0 self.0

View file

@ -23,8 +23,8 @@ extern "C" {
pub trait AudioDecoderExtManual: 'static { pub trait AudioDecoderExtManual: 'static {
fn negotiate(&self) -> Result<(), gst::FlowError>; fn negotiate(&self) -> Result<(), gst::FlowError>;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(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_caps(&self, caps: &gst::Caps) -> Result<(), gst::FlowError>;
fn set_output_format(&self, info: &AudioInfo) -> 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(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_audio_decoder_set_output_caps")] #[doc(alias = "gst_audio_decoder_set_output_caps")]
fn set_output_caps(&self, caps: &gst::Caps) -> Result<(), gst::FlowError> { fn set_output_caps(&self, caps: &gst::Caps) -> Result<(), gst::FlowError> {
unsafe { unsafe {

View file

@ -1,16 +1,16 @@
// Take a look at the license at the top of the repository in the LICENSE file. // Take a look at the license at the top of the repository in the LICENSE file.
use std::fmt; use std::fmt;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use std::ptr; use std::ptr;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use std::slice; use std::slice;
use glib::translate::{from_glib, IntoGlib}; use glib::translate::{from_glib, IntoGlib};
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use glib::translate::{from_glib_none, ToGlibPtr}; use glib::translate::{from_glib_none, ToGlibPtr};
use gst::prelude::*; use gst::prelude::*;
@ -74,21 +74,21 @@ impl fmt::Debug for AudioClippingMeta {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstAudioMeta")] #[doc(alias = "GstAudioMeta")]
pub struct AudioMeta(ffi::GstAudioMeta); pub struct AudioMeta(ffi::GstAudioMeta);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
unsafe impl Send for AudioMeta {} unsafe impl Send for AudioMeta {}
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
unsafe impl Sync for AudioMeta {} unsafe impl Sync for AudioMeta {}
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
impl AudioMeta { impl AudioMeta {
#[doc(alias = "gst_buffer_add_audio_meta")] #[doc(alias = "gst_buffer_add_audio_meta")]
pub fn add<'a>( pub fn add<'a>(
@ -200,8 +200,8 @@ impl AudioMeta {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
unsafe impl MetaAPI for AudioMeta { unsafe impl MetaAPI for AudioMeta {
type GstType = ffi::GstAudioMeta; type GstType = ffi::GstAudioMeta;
@ -212,8 +212,8 @@ unsafe impl MetaAPI for AudioMeta {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
impl fmt::Debug for AudioMeta { impl fmt::Debug for AudioMeta {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("AudioMeta") f.debug_struct("AudioMeta")
@ -224,21 +224,21 @@ impl fmt::Debug for AudioMeta {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstAudioLevelMeta")] #[doc(alias = "GstAudioLevelMeta")]
pub struct AudioLevelMeta(ffi::GstAudioLevelMeta); pub struct AudioLevelMeta(ffi::GstAudioLevelMeta);
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
unsafe impl Send for AudioLevelMeta {} unsafe impl Send for AudioLevelMeta {}
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
unsafe impl Sync for AudioLevelMeta {} unsafe impl Sync for AudioLevelMeta {}
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
impl AudioLevelMeta { impl AudioLevelMeta {
#[doc(alias = "gst_buffer_add_audio_level_meta")] #[doc(alias = "gst_buffer_add_audio_level_meta")]
pub fn add( pub fn add(
@ -271,8 +271,8 @@ impl AudioLevelMeta {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
unsafe impl MetaAPI for AudioLevelMeta { unsafe impl MetaAPI for AudioLevelMeta {
type GstType = ffi::GstAudioLevelMeta; type GstType = ffi::GstAudioLevelMeta;
@ -283,8 +283,8 @@ unsafe impl MetaAPI for AudioLevelMeta {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
impl fmt::Debug for AudioLevelMeta { impl fmt::Debug for AudioLevelMeta {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("AudioLevelMeta") f.debug_struct("AudioLevelMeta")

View file

@ -23,8 +23,8 @@ pub fn audio_buffer_clip(
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_audio_buffer_truncate")] #[doc(alias = "gst_audio_buffer_truncate")]
pub fn audio_buffer_truncate( pub fn audio_buffer_truncate(
buffer: gst::Buffer, buffer: gst::Buffer,

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
@ -49,11 +49,11 @@ mod audio_aggregator_pad;
mod audio_stream_align; mod audio_stream_align;
mod functions; mod functions;
pub use crate::functions::*; pub use crate::functions::*;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub mod audio_buffer; pub mod audio_buffer;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use audio_buffer::{AudioBuffer, AudioBufferRef}; pub use audio_buffer::{AudioBuffer, AudioBufferRef};
mod audio_decoder; mod audio_decoder;

View file

@ -30,7 +30,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_base/dox"]
[lib] [lib]
name = "gstreamer_audio_sys" name = "gstreamer_audio_sys"

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,15 +1,15 @@
// Take a look at the license at the top of the repository in the LICENSE file. // Take a look at the license at the top of the repository in the LICENSE file.
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use std::mem::transmute; use std::mem::transmute;
use std::{mem, ptr}; use std::{mem, ptr};
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use glib::signal::{connect_raw, SignalHandlerId}; use glib::signal::{connect_raw, SignalHandlerId};
use glib::{prelude::*, translate::*}; use glib::{prelude::*, translate::*};
use gst::{format::FormattedValue, prelude::*}; use gst::{format::FormattedValue, prelude::*};
@ -22,26 +22,26 @@ pub trait AggregatorExtManual: 'static {
#[doc(alias = "gst_aggregator_get_allocator")] #[doc(alias = "gst_aggregator_get_allocator")]
fn allocator(&self) -> (Option<gst::Allocator>, gst::AllocationParams); fn allocator(&self) -> (Option<gst::Allocator>, gst::AllocationParams);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "min-upstream-latency")] #[doc(alias = "min-upstream-latency")]
fn min_upstream_latency(&self) -> gst::ClockTime; fn min_upstream_latency(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "min-upstream-latency")] #[doc(alias = "min-upstream-latency")]
fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime); fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "min-upstream-latency")] #[doc(alias = "min-upstream-latency")]
fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_aggregator_update_segment")] #[doc(alias = "gst_aggregator_update_segment")]
fn update_segment<F: gst::format::FormattedValueIntrinsic>( fn update_segment<F: gst::format::FormattedValueIntrinsic>(
&self, &self,
@ -50,8 +50,8 @@ pub trait AggregatorExtManual: 'static {
fn set_position(&self, position: impl FormattedValue); fn set_position(&self, position: impl FormattedValue);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_aggregator_selected_samples")] #[doc(alias = "gst_aggregator_selected_samples")]
fn selected_samples( fn selected_samples(
&self, &self,
@ -61,8 +61,8 @@ pub trait AggregatorExtManual: 'static {
info: Option<&gst::StructureRef>, info: Option<&gst::StructureRef>,
); );
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn connect_samples_selected< fn connect_samples_selected<
F: Fn( F: Fn(
&Self, &Self,
@ -95,21 +95,21 @@ impl<O: IsA<Aggregator>> AggregatorExtManual for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
fn min_upstream_latency(&self) -> gst::ClockTime { fn min_upstream_latency(&self) -> gst::ClockTime {
self.as_ref().property("min-upstream-latency") self.as_ref().property("min-upstream-latency")
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime) { fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime) {
self.as_ref() self.as_ref()
.set_property("min-upstream-latency", min_upstream_latency); .set_property("min-upstream-latency", min_upstream_latency);
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_min_upstream_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -126,8 +126,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual for O {
) )
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn update_segment<F: gst::format::FormattedValueIntrinsic>( fn update_segment<F: gst::format::FormattedValueIntrinsic>(
&self, &self,
segment: &gst::FormattedSegment<F>, segment: &gst::FormattedSegment<F>,
@ -155,8 +155,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn selected_samples( fn selected_samples(
&self, &self,
pts: impl Into<Option<gst::ClockTime>>, 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(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn connect_samples_selected< fn connect_samples_selected<
F: Fn( F: Fn(
&Self, &Self,
@ -251,8 +251,8 @@ impl<O: IsA<Aggregator>> AggregatorExtManual for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(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>( unsafe extern "C" fn notify_min_upstream_latency_trampoline<P, F: Fn(&P) + Send + Sync + 'static>(
this: *mut ffi::GstAggregator, this: *mut ffi::GstAggregator,
_param_spec: glib::ffi::gpointer, _param_spec: glib::ffi::gpointer,

View file

@ -28,8 +28,8 @@ pub fn type_find_helper_for_data(
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_type_find_helper_for_data_with_extension")] #[doc(alias = "gst_type_find_helper_for_data_with_extension")]
pub fn type_find_helper_for_data_with_extension( pub fn type_find_helper_for_data_with_extension(
obj: Option<&impl IsA<gst::Object>>, 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(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_type_find_helper_for_buffer_with_extension")] #[doc(alias = "gst_type_find_helper_for_buffer_with_extension")]
pub fn type_find_helper_for_buffer_with_extension<P: IsA<gst::Object>>( pub fn type_find_helper_for_buffer_with_extension<P: IsA<gst::Object>>(
obj: Option<&P>, 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(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_type_find_helper_for_buffer_with_caps")] #[doc(alias = "gst_type_find_helper_for_buffer_with_caps")]
pub fn type_find_helper_for_buffer_with_caps( pub fn type_find_helper_for_buffer_with_caps(
obj: Option<&impl IsA<gst::Object>>, 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(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_type_find_helper_for_data_with_caps")] #[doc(alias = "gst_type_find_helper_for_data_with_caps")]
pub fn type_find_helper_for_data_with_caps( pub fn type_find_helper_for_data_with_caps(
obj: Option<&impl IsA<gst::Object>>, 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(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_type_find_list_factories_for_caps")] #[doc(alias = "gst_type_find_list_factories_for_caps")]
pub fn type_find_list_factories_for_caps( pub fn type_find_list_factories_for_caps(
obj: Option<&impl IsA<gst::Object>>, obj: Option<&impl IsA<gst::Object>>,

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -16,8 +16,8 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
self.parent_clip(aggregator_pad, buffer) self.parent_clip(aggregator_pad, buffer)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn finish_buffer_list( fn finish_buffer_list(
&self, &self,
buffer_list: gst::BufferList, buffer_list: gst::BufferList,
@ -33,8 +33,8 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
self.parent_sink_event(aggregator_pad, event) self.parent_sink_event(aggregator_pad, event)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn sink_event_pre_queue( fn sink_event_pre_queue(
&self, &self,
aggregator_pad: &AggregatorPad, aggregator_pad: &AggregatorPad,
@ -47,8 +47,8 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
self.parent_sink_query(aggregator_pad, query) self.parent_sink_query(aggregator_pad, query)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn sink_query_pre_queue( fn sink_query_pre_queue(
&self, &self,
aggregator_pad: &AggregatorPad, aggregator_pad: &AggregatorPad,
@ -122,14 +122,14 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
self.parent_decide_allocation(query) self.parent_decide_allocation(query)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool { fn negotiate(&self) -> bool {
self.parent_negotiate() self.parent_negotiate()
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample> { fn peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample> {
self.parent_peek_next_sample(pad) self.parent_peek_next_sample(pad)
} }
@ -147,8 +147,8 @@ pub trait AggregatorImplExt: ObjectSubclass {
fn parent_finish_buffer(&self, buffer: gst::Buffer) fn parent_finish_buffer(&self, buffer: gst::Buffer)
-> Result<gst::FlowSuccess, gst::FlowError>; -> Result<gst::FlowSuccess, gst::FlowError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_finish_buffer_list( fn parent_finish_buffer_list(
&self, &self,
buffer_list: gst::BufferList, buffer_list: gst::BufferList,
@ -156,8 +156,8 @@ pub trait AggregatorImplExt: ObjectSubclass {
fn parent_sink_event(&self, aggregator_pad: &AggregatorPad, event: gst::Event) -> bool; fn parent_sink_event(&self, aggregator_pad: &AggregatorPad, event: gst::Event) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_sink_event_pre_queue( fn parent_sink_event_pre_queue(
&self, &self,
aggregator_pad: &AggregatorPad, aggregator_pad: &AggregatorPad,
@ -166,8 +166,8 @@ pub trait AggregatorImplExt: ObjectSubclass {
fn parent_sink_query(&self, aggregator_pad: &AggregatorPad, query: &mut gst::QueryRef) -> bool; fn parent_sink_query(&self, aggregator_pad: &AggregatorPad, query: &mut gst::QueryRef) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_sink_query_pre_queue( fn parent_sink_query_pre_queue(
&self, &self,
aggregator_pad: &AggregatorPad, aggregator_pad: &AggregatorPad,
@ -217,12 +217,12 @@ pub trait AggregatorImplExt: ObjectSubclass {
query: &mut gst::query::Allocation, query: &mut gst::query::Allocation,
) -> Result<(), gst::LoggableError>; ) -> Result<(), gst::LoggableError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_negotiate(&self) -> bool; fn parent_negotiate(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample>; 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(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_finish_buffer_list( fn parent_finish_buffer_list(
&self, &self,
buffer_list: gst::BufferList, buffer_list: gst::BufferList,
@ -314,8 +314,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_sink_event_pre_queue( fn parent_sink_event_pre_queue(
&self, &self,
aggregator_pad: &AggregatorPad, aggregator_pad: &AggregatorPad,
@ -350,8 +350,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_sink_query_pre_queue( fn parent_sink_query_pre_queue(
&self, &self,
aggregator_pad: &AggregatorPad, aggregator_pad: &AggregatorPad,
@ -630,8 +630,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_negotiate(&self) -> bool { fn parent_negotiate(&self) -> bool {
unsafe { unsafe {
let data = Self::type_data(); let data = Self::type_data();
@ -649,8 +649,8 @@ impl<T: AggregatorImpl> AggregatorImplExt for T {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn parent_peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample> { fn parent_peek_next_sample(&self, pad: &AggregatorPad) -> Option<gst::Sample> {
unsafe { unsafe {
let data = Self::type_data(); 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.negotiated_src_caps = Some(aggregator_negotiated_src_caps::<T>);
klass.propose_allocation = Some(aggregator_propose_allocation::<T>); klass.propose_allocation = Some(aggregator_propose_allocation::<T>);
klass.decide_allocation = Some(aggregator_decide_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_event_pre_queue = Some(aggregator_sink_event_pre_queue::<T>);
klass.sink_query_pre_queue = Some(aggregator_sink_query_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() .into_glib()
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe extern "C" fn aggregator_finish_buffer_list<T: AggregatorImpl>( unsafe extern "C" fn aggregator_finish_buffer_list<T: AggregatorImpl>(
ptr: *mut ffi::GstAggregator, ptr: *mut ffi::GstAggregator,
buffer_list: *mut gst::ffi::GstBufferList, buffer_list: *mut gst::ffi::GstBufferList,
@ -767,8 +767,8 @@ unsafe extern "C" fn aggregator_sink_event<T: AggregatorImpl>(
.into_glib() .into_glib()
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe extern "C" fn aggregator_sink_event_pre_queue<T: AggregatorImpl>( unsafe extern "C" fn aggregator_sink_event_pre_queue<T: AggregatorImpl>(
ptr: *mut ffi::GstAggregator, ptr: *mut ffi::GstAggregator,
aggregator_pad: *mut ffi::GstAggregatorPad, aggregator_pad: *mut ffi::GstAggregatorPad,
@ -801,8 +801,8 @@ unsafe extern "C" fn aggregator_sink_query<T: AggregatorImpl>(
.into_glib() .into_glib()
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe extern "C" fn aggregator_sink_query_pre_queue<T: AggregatorImpl>( unsafe extern "C" fn aggregator_sink_query_pre_queue<T: AggregatorImpl>(
ptr: *mut ffi::GstAggregator, ptr: *mut ffi::GstAggregator,
aggregator_pad: *mut ffi::GstAggregatorPad, aggregator_pad: *mut ffi::GstAggregatorPad,
@ -1054,8 +1054,8 @@ unsafe extern "C" fn aggregator_decide_allocation<T: AggregatorImpl>(
.into_glib() .into_glib()
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe extern "C" fn aggregator_negotiate<T: AggregatorImpl>( unsafe extern "C" fn aggregator_negotiate<T: AggregatorImpl>(
ptr: *mut ffi::GstAggregator, ptr: *mut ffi::GstAggregator,
) -> glib::ffi::gboolean { ) -> 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() gst::panic_to_error!(imp, false, { imp.negotiate() }).into_glib()
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe extern "C" fn aggregator_peek_next_sample<T: AggregatorImpl>( unsafe extern "C" fn aggregator_peek_next_sample<T: AggregatorImpl>(
ptr: *mut ffi::GstAggregator, ptr: *mut ffi::GstAggregator,
pad: *mut ffi::GstAggregatorPad, pad: *mut ffi::GstAggregatorPad,

View file

@ -28,7 +28,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox"]
[lib] [lib]
name = "gstreamer_base_sys" name = "gstreamer_base_sys"

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -88,8 +88,8 @@ impl Harness {
pad.add_probe(mask, func); pad.add_probe(mask, func);
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_harness_add_propose_allocation_meta")] #[doc(alias = "gst_harness_add_propose_allocation_meta")]
pub fn add_propose_allocation_meta( pub fn add_propose_allocation_meta(
&mut self, &mut self,
@ -268,8 +268,8 @@ impl Harness {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_harness_pull_until_eos")] #[doc(alias = "gst_harness_pull_until_eos")]
pub fn pull_until_eos(&mut self) -> Result<Option<gst::Buffer>, glib::BoolError> { pub fn pull_until_eos(&mut self) -> Result<Option<gst::Buffer>, glib::BoolError> {
unsafe { unsafe {
@ -399,8 +399,8 @@ impl Harness {
} }
#[doc(alias = "gst_harness_set_live")] #[doc(alias = "gst_harness_set_live")]
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub fn set_live(&mut self, is_live: bool) { pub fn set_live(&mut self, is_live: bool) {
unsafe { ffi::gst_harness_set_live(self.0.as_ptr(), is_live.into_glib()) } unsafe { ffi::gst_harness_set_live(self.0.as_ptr(), is_live.into_glib()) }
} }

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -33,8 +33,8 @@ impl TestClock {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_test_clock_process_id")] #[doc(alias = "gst_test_clock_process_id")]
pub fn process_id(&self, pending_id: &gst::ClockId) -> bool { pub fn process_id(&self, pending_id: &gst::ClockId) -> bool {
unsafe { unsafe {
@ -86,8 +86,8 @@ impl TestClock {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_test_clock_timed_wait_for_multiple_pending_ids")] #[doc(alias = "gst_test_clock_timed_wait_for_multiple_pending_ids")]
pub fn timed_wait_for_multiple_pending_ids( pub fn timed_wait_for_multiple_pending_ids(
&self, &self,

View file

@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox"]
[lib] [lib]
name = "gstreamer_check_sys" name = "gstreamer_check_sys"

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -27,7 +27,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox"]
[lib] [lib]
name = "gstreamer_controller_sys" name = "gstreamer_controller_sys"

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde", "gst-pbutils/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gio/dox", "gst/dox", "gst_pbutils/dox"]
[lib] [lib]
name = "gstreamer_editing_services_sys" name = "gstreamer_editing_services_sys"

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde", "gst-video/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -29,7 +29,6 @@ gir-format-check = "0.1"
[features] [features]
default = [] default = []
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-gl/dox"]
v1_16 = ["gst/v1_16", "gst-gl/v1_16", "ffi/v1_16"] 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_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"] 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"] v1_24 = ["gst/v1_24", "gst-gl/v1_24", "ffi/v1_24", "v1_22"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -58,7 +58,6 @@ shell-words = "1.0.0"
tempfile = "3" tempfile = "3"
[features] [features]
dox = ["glib/dox", "gst_gl/dox"]
v1_16 = [] v1_16 = []
v1_18 = ["v1_16"] v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]

View file

@ -4,8 +4,8 @@ use glib::prelude::*;
use glib::translate::*; use glib::translate::*;
pub trait GLDisplayExtManual: 'static { pub trait GLDisplayExtManual: 'static {
#[cfg(any(feature = "v1_24", feature = "dox"))] #[cfg(feature = "v1_24")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_gl_display_ensure_context")] #[doc(alias = "gst_gl_display_ensure_context")]
fn ensure_context( fn ensure_context(
&self, &self,
@ -15,8 +15,8 @@ pub trait GLDisplayExtManual: 'static {
} }
impl<O: IsA<GLDisplay>> GLDisplayExtManual for O { impl<O: IsA<GLDisplay>> GLDisplayExtManual for O {
#[cfg(any(feature = "v1_24", feature = "dox"))] #[cfg(feature = "v1_24")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
fn ensure_context( fn ensure_context(
&self, &self,
other_context: Option<&impl IsA<GLContext>>, other_context: Option<&impl IsA<GLContext>>,
@ -99,8 +99,8 @@ impl GLDisplay {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_gl_display_remove_context")] #[doc(alias = "gst_gl_display_remove_context")]
pub fn remove_context( pub fn remove_context(
display: &gst::ObjectLockGuard<GLDisplay>, display: &gst::ObjectLockGuard<GLDisplay>,

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -1,6 +1,6 @@
mod gl_base_filter; mod gl_base_filter;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
mod gl_base_src; mod gl_base_src;
mod gl_filter; mod gl_filter;
@ -10,8 +10,8 @@ pub mod prelude {
#[doc(hidden)] #[doc(hidden)]
pub use gst_video::subclass::prelude::*; pub use gst_video::subclass::prelude::*;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(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_src::{GLBaseSrcImpl, GLBaseSrcImplExt};
pub use super::{ pub use super::{
gl_base_filter::{GLBaseFilterImpl, GLBaseFilterImplExt}, gl_base_filter::{GLBaseFilterImpl, GLBaseFilterImplExt},

View file

@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_base/dox", "gst_video/dox"]
[lib] [lib]
name = "gstreamer_gl_sys" name = "gstreamer_gl_sys"

View file

@ -29,7 +29,6 @@ gir-format-check = "0.1"
[features] [features]
default = [] default = []
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-gl/dox"]
v1_16 = ["gst/v1_16", "gst-gl/v1_16", "ffi/v1_16"] 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_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"] 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"] v1_24 = ["gst/v1_24", "gst-gl/v1_24", "ffi/v1_24", "v1_22"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -58,7 +58,6 @@ shell-words = "1.0.0"
tempfile = "3" tempfile = "3"
[features] [features]
dox = ["glib/dox", "gst_gl/dox"]
v1_16 = [] v1_16 = []
v1_18 = ["v1_16"] v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]

View file

@ -29,7 +29,6 @@ gir-format-check = "0.1"
[features] [features]
default = [] default = []
dox = ["ffi/dox", "glib/dox", "gst/dox", "gst-gl/dox"]
v1_16 = ["gst/v1_16", "gst-gl/v1_16", "ffi/v1_16"] 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_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"] 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"] v1_24 = ["gst/v1_24", "gst-gl/v1_24", "ffi/v1_24", "v1_22"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -58,7 +58,6 @@ shell-words = "1.0.0"
tempfile = "3" tempfile = "3"
[features] [features]
dox = ["glib/dox", "gst_gl/dox"]
v1_16 = [] v1_16 = []
v1_18 = ["v1_16"] v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,4 +1,4 @@
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]
use std::sync::Once; use std::sync::Once;

View file

@ -66,4 +66,3 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gst/dox"]

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gio/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gio/dox", "gst/dox"]
[lib] [lib]
name = "gstreamer_net_sys" name = "gstreamer_net_sys"

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -5,20 +5,20 @@ use glib::{prelude::*, translate::*};
use crate::auto::{ use crate::auto::{
EncodingAudioProfile, EncodingContainerProfile, EncodingProfile, EncodingVideoProfile, EncodingAudioProfile, EncodingContainerProfile, EncodingProfile, EncodingVideoProfile,
}; };
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
use crate::ElementProperties; use crate::ElementProperties;
pub trait EncodingProfileExtManual { pub trait EncodingProfileExtManual {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_encoding_profile_get_element_properties")] #[doc(alias = "gst_encoding_profile_get_element_properties")]
#[doc(alias = "get_element_properties")] #[doc(alias = "get_element_properties")]
fn element_properties(&self) -> Option<ElementProperties>; fn element_properties(&self) -> Option<ElementProperties>;
} }
impl<O: IsA<EncodingProfile>> EncodingProfileExtManual for O { impl<O: IsA<EncodingProfile>> EncodingProfileExtManual for O {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
fn element_properties(&self) -> Option<ElementProperties> { fn element_properties(&self) -> Option<ElementProperties> {
unsafe { unsafe {
from_glib_full::<_, Option<_>>(ffi::gst_encoding_profile_get_element_properties( from_glib_full::<_, Option<_>>(ffi::gst_encoding_profile_get_element_properties(

View file

@ -127,8 +127,8 @@ pub fn codec_utils_h264_caps_set_level_and_profile(
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_codec_utils_h264_get_profile_flags_level")] #[doc(alias = "gst_codec_utils_h264_get_profile_flags_level")]
pub fn codec_utils_h264_get_profile_flags_level( pub fn codec_utils_h264_get_profile_flags_level(
codec_data: &[u8], codec_data: &[u8],
@ -404,8 +404,8 @@ pub fn codec_utils_opus_parse_header(
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_codec_utils_caps_get_mime_codec")] #[doc(alias = "gst_codec_utils_caps_get_mime_codec")]
pub fn codec_utils_caps_get_mime_codec( pub fn codec_utils_caps_get_mime_codec(
caps: &gst::CapsRef, caps: &gst::CapsRef,
@ -419,8 +419,8 @@ pub fn codec_utils_caps_get_mime_codec(
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_pb_utils_get_caps_description_flags")] #[doc(alias = "gst_pb_utils_get_caps_description_flags")]
pub fn pb_utils_get_caps_description_flags( pub fn pb_utils_get_caps_description_flags(
caps: &gst::CapsRef, 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())) } unsafe { from_glib(ffi::gst_pb_utils_get_caps_description_flags(caps.as_ptr())) }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_pb_utils_get_file_extension_from_caps")] #[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> { pub fn pb_utils_get_file_extension_from_caps(caps: &gst::CapsRef) -> Option<glib::GString> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
@ -30,9 +30,9 @@ macro_rules! skip_assert_initialized {
mod auto; mod auto;
pub use crate::auto::{functions::*, *}; pub use crate::auto::{functions::*, *};
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
mod element_properties; mod element_properties;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
pub use crate::element_properties::{ElementProperties, ElementPropertiesMapItem}; pub use crate::element_properties::{ElementProperties, ElementPropertiesMapItem};
#[cfg(feature = "serde")] #[cfg(feature = "serde")]

View file

@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_audio/dox", "gst_video/dox"]
[lib] [lib]
name = "gstreamer_pbutils_sys" name = "gstreamer_pbutils_sys"

View file

@ -28,7 +28,6 @@ gir-format-check = "0.1"
[features] [features]
v1_22 = ["gst/v1_22", "gst-video/v1_22", "ffi/v1_22"] 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"] 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] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -27,7 +27,6 @@ tempfile = "3"
[features] [features]
v1_22 = [] v1_22 = []
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_video/dox"]
[lib] [lib]
name = "gstreamer_play_sys" name = "gstreamer_play_sys"

View file

@ -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_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_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"] 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] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -30,7 +30,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox", "gst_video/dox"]
[lib] [lib]
name = "gstreamer_player_sys" name = "gstreamer_player_sys"

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox", "serde"]
serde = ["dep:serde", "gst/serde"] serde = ["dep:serde", "gst/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
@ -32,12 +32,12 @@ pub mod rtp_buffer;
pub use crate::rtp_buffer::{ pub use crate::rtp_buffer::{
calc_header_len, calc_packet_len, calc_payload_len, compare_seqnum, ext_timestamp, RTPBuffer, calc_header_len, calc_packet_len, calc_payload_len, compare_seqnum, ext_timestamp, RTPBuffer,
}; };
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub mod rtp_header_extension; pub mod rtp_header_extension;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub mod rtp_base_payload; pub mod rtp_base_payload;
pub mod rtp_base_depayload; pub mod rtp_base_depayload;
@ -48,11 +48,11 @@ pub mod prelude {
#[doc(hidden)] #[doc(hidden)]
pub use gst::prelude::*; pub use gst::prelude::*;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub use crate::rtp_base_payload::RTPBasePayloadExtManual; pub use crate::rtp_base_payload::RTPBasePayloadExtManual;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub use crate::rtp_header_extension::RTPHeaderExtensionExtManual; pub use crate::rtp_header_extension::RTPHeaderExtensionExtManual;
pub use crate::{ pub use crate::{
auto::traits::*, rtp_base_depayload::RTPBaseDepayloadExtManual, rtp_buffer::RTPBufferExt, auto::traits::*, rtp_base_depayload::RTPBaseDepayloadExtManual, rtp_buffer::RTPBufferExt,

View file

@ -5,8 +5,8 @@ use glib::{object::IsA, translate::*};
use crate::RTPBasePayload; use crate::RTPBasePayload;
pub trait RTPBasePayloadExtManual: 'static { pub trait RTPBasePayloadExtManual: 'static {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(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_structure")]
#[doc(alias = "gst_rtp_base_payload_set_outcaps")] #[doc(alias = "gst_rtp_base_payload_set_outcaps")]
fn set_outcaps(&self, s: Option<&gst::StructureRef>) -> Result<(), glib::error::BoolError>; 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 { impl<O: IsA<RTPBasePayload>> RTPBasePayloadExtManual for O {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
fn set_outcaps(&self, s: Option<&gst::StructureRef>) -> Result<(), glib::error::BoolError> { fn set_outcaps(&self, s: Option<&gst::StructureRef>) -> Result<(), glib::error::BoolError> {
unsafe { unsafe {
glib::result_from_gboolean!( glib::result_from_gboolean!(

View file

@ -186,8 +186,8 @@ impl<'a> RTPBuffer<'a, Writable> {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_rtp_buffer_remove_extension_data")] #[doc(alias = "gst_rtp_buffer_remove_extension_data")]
pub fn remove_extension_data(&mut self) { pub fn remove_extension_data(&mut self) {
unsafe { unsafe {

View file

@ -2,14 +2,14 @@
#![allow(clippy::cast_ptr_alignment)] #![allow(clippy::cast_ptr_alignment)]
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
mod rtp_base_payload; mod rtp_base_payload;
mod rtp_base_depayload; mod rtp_base_depayload;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
mod rtp_header_extension; mod rtp_header_extension;
pub mod prelude { pub mod prelude {
@ -17,10 +17,10 @@ pub mod prelude {
pub use gst::subclass::prelude::*; pub use gst::subclass::prelude::*;
pub use super::rtp_base_depayload::{RTPBaseDepayloadImpl, RTPBaseDepayloadImplExt}; pub use super::rtp_base_depayload::{RTPBaseDepayloadImpl, RTPBaseDepayloadImplExt};
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub use super::rtp_base_payload::{RTPBasePayloadImpl, RTPBasePayloadImplExt}; pub use super::rtp_base_payload::{RTPBasePayloadImpl, RTPBasePayloadImplExt};
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
pub use super::rtp_header_extension::{RTPHeaderExtensionImpl, RTPHeaderExtensionImplExt}; pub use super::rtp_header_extension::{RTPHeaderExtensionImpl, RTPHeaderExtensionImplExt};
} }

View file

@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gst/dox", "gst_base/dox"]
[lib] [lib]
name = "gstreamer_rtp_sys" name = "gstreamer_rtp_sys"

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde", "gst-rtsp/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -14,7 +14,7 @@ pub trait RTSPSessionExtManual: 'static {
impl<O: IsA<RTSPSession>> RTSPSessionExtManual for O { impl<O: IsA<RTSPSession>> RTSPSessionExtManual for O {
fn media(&self, path: &str) -> (Option<RTSPSessionMedia>, i32) { fn media(&self, path: &str) -> (Option<RTSPSessionMedia>, i32) {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
unsafe { unsafe {
let mut matched = mem::MaybeUninit::uninit(); let mut matched = mem::MaybeUninit::uninit();
let ret = from_glib_full(ffi::gst_rtsp_session_dup_media( 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()) (ret, matched.assume_init())
} }
#[cfg(not(any(feature = "v1_20", feature = "dox")))] #[cfg(not(any(feature = "v1_20", docsrs)))]
unsafe { unsafe {
let mut matched = mem::MaybeUninit::uninit(); let mut matched = mem::MaybeUninit::uninit();
let ret = from_glib_none(ffi::gst_rtsp_session_get_media( let ret = from_glib_none(ffi::gst_rtsp_session_get_media(

View file

@ -144,8 +144,8 @@ pub trait RTSPClientImpl: RTSPClientImplExt + ObjectImpl + Send + Sync {
self.parent_pre_record_request(ctx) self.parent_pre_record_request(ctx)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn adjust_error_code( fn adjust_error_code(
&self, &self,
ctx: &crate::RTSPContext, ctx: &crate::RTSPContext,
@ -241,8 +241,8 @@ pub trait RTSPClientImplExt: ObjectSubclass {
fn parent_pre_record_request(&self, ctx: &crate::RTSPContext) -> gst_rtsp::RTSPStatusCode; fn parent_pre_record_request(&self, ctx: &crate::RTSPContext) -> gst_rtsp::RTSPStatusCode;
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn parent_adjust_error_code( fn parent_adjust_error_code(
&self, &self,
ctx: &crate::RTSPContext, ctx: &crate::RTSPContext,
@ -710,8 +710,8 @@ impl<T: RTSPClientImpl> RTSPClientImplExt for T {
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn parent_adjust_error_code( fn parent_adjust_error_code(
&self, &self,
ctx: &crate::RTSPContext, 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_get_parameter_request = Some(client_pre_get_parameter_request::<T>);
klass.pre_announce_request = Some(client_pre_announce_request::<T>); klass.pre_announce_request = Some(client_pre_announce_request::<T>);
klass.pre_record_request = Some(client_pre_record_request::<T>); klass.pre_record_request = Some(client_pre_record_request::<T>);
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
{ {
klass.adjust_error_code = Some(client_adjust_error_code::<T>); 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() imp.pre_record_request(&from_glib_borrow(ctx)).into_glib()
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
unsafe extern "C" fn client_adjust_error_code<T: RTSPClientImpl>( unsafe extern "C" fn client_adjust_error_code<T: RTSPClientImpl>(
ptr: *mut ffi::GstRTSPClient, ptr: *mut ffi::GstRTSPClient,
ctx: *mut ffi::GstRTSPContext, ctx: *mut ffi::GstRTSPContext,

View file

@ -42,7 +42,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gio/dox", "gst/dox", "gst_net/dox", "gst_sdp/dox", "gst_rtsp/dox"]
[lib] [lib]
name = "gstreamer_rtsp_server_sys" name = "gstreamer_rtsp_server_sys"

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -34,7 +34,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gio/dox", "gst/dox", "gst_sdp/dox"]
[lib] [lib]
name = "gstreamer_rtsp_sys" name = "gstreamer_rtsp_sys"

View file

@ -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_20 = ["gst/v1_20", "ffi/v1_20", "v1_18"]
v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"] v1_22 = ["gst/v1_22", "ffi/v1_22", "v1_20"]
v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"] v1_24 = ["gst/v1_24", "ffi/v1_24", "v1_22"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -22,7 +22,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gst/dox"]
[lib] [lib]
name = "gstreamer_sdp_sys" name = "gstreamer_sdp_sys"

View file

@ -26,7 +26,6 @@ v1_18 = ["v1_16"]
v1_20 = ["v1_18"] v1_20 = ["v1_18"]
v1_22 = ["v1_20"] v1_22 = ["v1_20"]
v1_24 = ["v1_22"] v1_24 = ["v1_22"]
dox = ["glib/dox", "gobject/dox", "gst/dox"]
[lib] [lib]
name = "gstreamer_tag_sys" name = "gstreamer_tag_sys"

View file

@ -27,7 +27,6 @@ tempfile = "3"
[features] [features]
default = [] default = []
v1_24 = ["gst/v1_24", "ffi/v1_24"] v1_24 = ["gst/v1_24", "ffi/v1_24"]
dox = ["ffi/dox", "glib/dox", "gst/dox"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]

View file

@ -53,5 +53,4 @@ shell-words = "1.0.0"
tempfile = "3" tempfile = "3"
[features] [features]
dox = ["glib/dox", "gio/dox", "gobject/dox", "gst/dox"]
v1_24 = [] v1_24 = []

View file

@ -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_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_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"] 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"] serde = ["dep:serde", "gst/serde"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] rustdoc-args = ["--cfg", "docsrs"]

View file

@ -3,12 +3,12 @@
use gst::CapsFeatures; use gst::CapsFeatures;
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub static CAPS_FEATURE_FORMAT_INTERLACED: &glib::GStr = pub static CAPS_FEATURE_FORMAT_INTERLACED: &glib::GStr =
unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_CAPS_FEATURE_FORMAT_INTERLACED) }; unsafe { glib::GStr::from_utf8_with_nul_unchecked(ffi::GST_CAPS_FEATURE_FORMAT_INTERLACED) };
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub static CAPS_FEATURES_FORMAT_INTERLACED: Lazy<CapsFeatures> = pub static CAPS_FEATURES_FORMAT_INTERLACED: Lazy<CapsFeatures> =
Lazy::new(|| CapsFeatures::new([CAPS_FEATURE_FORMAT_INTERLACED])); Lazy::new(|| CapsFeatures::new([CAPS_FEATURE_FORMAT_INTERLACED]));

View file

@ -1,18 +1,18 @@
// Take a look at the license at the top of the repository in the LICENSE file. // Take a look at the license at the top of the repository in the LICENSE file.
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use glib::translate::*; use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use crate::VideoCaptionType; use crate::VideoCaptionType;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
use crate::VideoOrientationMethod; use crate::VideoOrientationMethod;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
impl VideoCaptionType { impl VideoCaptionType {
#[doc(alias = "gst_video_caption_type_from_caps")] #[doc(alias = "gst_video_caption_type_from_caps")]
pub fn from_caps(caps: &gst::CapsRef) -> VideoCaptionType { pub fn from_caps(caps: &gst::CapsRef) -> VideoCaptionType {
@ -21,11 +21,11 @@ impl VideoCaptionType {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
impl VideoOrientationMethod { impl VideoOrientationMethod {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_video_orientation_from_tag")] #[doc(alias = "gst_video_orientation_from_tag")]
pub fn from_tag(taglist: &gst::TagListRef) -> Option<VideoOrientationMethod> { pub fn from_tag(taglist: &gst::TagListRef) -> Option<VideoOrientationMethod> {
skip_assert_initialized!(); skip_assert_initialized!();

View file

@ -193,8 +193,8 @@ pub fn guess_framerate(duration: gst::ClockTime) -> Option<gst::Fraction> {
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_video_is_common_aspect_ratio")] #[doc(alias = "gst_video_is_common_aspect_ratio")]
pub fn is_common_aspect_ratio(width: u32, height: u32, par: gst::Fraction) -> bool { pub fn is_common_aspect_ratio(width: u32, height: u32, par: gst::Fraction) -> bool {
skip_assert_initialized!(); skip_assert_initialized!();

View file

@ -1,6 +1,6 @@
// Take a look at the license at the top of the repository in the LICENSE file. // 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)] #![allow(clippy::missing_safety_doc)]
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
@ -34,8 +34,8 @@ mod caps;
pub use crate::caps::VideoCapsBuilder; pub use crate::caps::VideoCapsBuilder;
mod caps_features; mod caps_features;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(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_FORMAT_INTERLACED, CAPS_FEATURE_FORMAT_INTERLACED};
pub use crate::caps_features::{ pub use crate::caps_features::{
CAPS_FEATURES_META_GST_VIDEO_AFFINE_TRANSFORMATION_META, CAPS_FEATURES_META_GST_VIDEO_AFFINE_TRANSFORMATION_META,
@ -53,11 +53,11 @@ mod video_format_info;
pub use crate::video_format_info::*; pub use crate::video_format_info::*;
mod video_info; mod video_info;
pub use crate::video_info::*; pub use crate::video_info::*;
#[cfg(any(feature = "v1_24", feature = "dox"))] #[cfg(feature = "v1_24")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
mod video_info_dma_drm; mod video_info_dma_drm;
#[cfg(any(feature = "v1_24", feature = "dox"))] #[cfg(feature = "v1_24")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_24")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
pub use crate::video_info_dma_drm::*; pub use crate::video_info_dma_drm::*;
pub mod video_frame; pub mod video_frame;
pub use crate::video_frame::{VideoFrame, VideoFrameRef}; pub use crate::video_frame::{VideoFrame, VideoFrameRef};
@ -83,11 +83,11 @@ pub use crate::video_overlay_composition::{
VideoOverlayRectangleRef, VideoOverlayRectangleRef,
}; };
pub mod video_meta; pub mod video_meta;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use crate::video_meta::VideoCaptionMeta; pub use crate::video_meta::VideoCaptionMeta;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub use crate::video_meta::{VideoAFDMeta, VideoBarMeta}; pub use crate::video_meta::{VideoAFDMeta, VideoBarMeta};
pub use crate::video_meta::{ pub use crate::video_meta::{
VideoAffineTransformationMeta, VideoCropMeta, VideoMeta, VideoOverlayCompositionMeta, VideoAffineTransformationMeta, VideoCropMeta, VideoMeta, VideoOverlayCompositionMeta,
@ -114,23 +114,23 @@ pub mod video_codec_state;
pub use crate::video_codec_state::{VideoCodecState, VideoCodecStateContext}; pub use crate::video_codec_state::{VideoCodecState, VideoCodecStateContext};
mod utils; mod utils;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
mod video_hdr; mod video_hdr;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub use crate::video_hdr::*; pub use crate::video_hdr::*;
mod color_balance_channel; mod color_balance_channel;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
mod video_aggregator; mod video_aggregator;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
mod video_aggregator_convert_pad; mod video_aggregator_convert_pad;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
mod video_aggregator_pad; mod video_aggregator_pad;
pub const VIDEO_ENCODER_FLOW_NEED_DATA: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess; pub const VIDEO_ENCODER_FLOW_NEED_DATA: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
@ -142,14 +142,14 @@ pub mod prelude {
#[doc(hidden)] #[doc(hidden)]
pub use gst_base::prelude::*; pub use gst_base::prelude::*;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use crate::video_aggregator::VideoAggregatorExtManual; pub use crate::video_aggregator::VideoAggregatorExtManual;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use crate::video_aggregator_convert_pad::VideoAggregatorConvertPadExtManual; pub use crate::video_aggregator_convert_pad::VideoAggregatorConvertPadExtManual;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use crate::video_aggregator_pad::VideoAggregatorPadExtManual; pub use crate::video_aggregator_pad::VideoAggregatorPadExtManual;
pub use crate::{ pub use crate::{
auto::traits::*, video_buffer_pool::VideoBufferPoolConfig, auto::traits::*, video_buffer_pool::VideoBufferPoolConfig,

View file

@ -3,36 +3,36 @@
#![allow(clippy::cast_ptr_alignment)] #![allow(clippy::cast_ptr_alignment)]
mod navigation; mod navigation;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
mod video_aggregator; mod video_aggregator;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
mod video_aggregator_convert_pad; mod video_aggregator_convert_pad;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
mod video_aggregator_pad; mod video_aggregator_pad;
mod video_decoder; mod video_decoder;
mod video_encoder; mod video_encoder;
mod video_filter; mod video_filter;
mod video_sink; mod video_sink;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use video_aggregator::AggregateFramesToken; pub use video_aggregator::AggregateFramesToken;
pub mod prelude { pub mod prelude {
#[doc(hidden)] #[doc(hidden)]
pub use gst_base::subclass::prelude::*; pub use gst_base::subclass::prelude::*;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use super::video_aggregator::{VideoAggregatorImpl, VideoAggregatorImplExt}; pub use super::video_aggregator::{VideoAggregatorImpl, VideoAggregatorImplExt};
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use super::video_aggregator_convert_pad::VideoAggregatorConvertPadImpl; pub use super::video_aggregator_convert_pad::VideoAggregatorConvertPadImpl;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
pub use super::video_aggregator_pad::{VideoAggregatorPadImpl, VideoAggregatorPadImplExt}; pub use super::video_aggregator_pad::{VideoAggregatorPadImpl, VideoAggregatorPadImplExt};
pub use super::{ pub use super::{
navigation::NavigationImpl, navigation::NavigationImpl,

View file

@ -7,8 +7,8 @@ use crate::Navigation;
pub trait NavigationImpl: ObjectImpl { pub trait NavigationImpl: ObjectImpl {
fn send_event(&self, structure: gst::Structure); fn send_event(&self, structure: gst::Structure);
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn send_event_simple(&self, event: gst::Event) { fn send_event_simple(&self, event: gst::Event) {
if let Some(structure) = event.structure() { if let Some(structure) = event.structure() {
self.send_event(structure.to_owned()); self.send_event(structure.to_owned());
@ -19,8 +19,8 @@ pub trait NavigationImpl: ObjectImpl {
pub trait NavigationImplExt: ObjectSubclass { pub trait NavigationImplExt: ObjectSubclass {
fn parent_send_event(&self, structure: gst::Structure); fn parent_send_event(&self, structure: gst::Structure);
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn parent_send_event_simple(&self, event: gst::Event) { fn parent_send_event_simple(&self, event: gst::Event) {
if let Some(structure) = event.structure() { if let Some(structure) = event.structure() {
self.parent_send_event(structure.to_owned()); 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(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn parent_send_event_simple(&self, event: gst::Event) { fn parent_send_event_simple(&self, event: gst::Event) {
unsafe { unsafe {
let type_data = Self::type_data(); let type_data = Self::type_data();
@ -69,15 +69,15 @@ impl<T: NavigationImpl> NavigationImplExt for T {
} }
unsafe impl<T: NavigationImpl> IsImplementable<T> for Navigation { 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>) { fn interface_init(iface: &mut glib::Interface<Self>) {
let iface = iface.as_mut(); let iface = iface.as_mut();
iface.send_event = Some(navigation_send_event::<T>); iface.send_event = Some(navigation_send_event::<T>);
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn interface_init(iface: &mut glib::Interface<Self>) { fn interface_init(iface: &mut glib::Interface<Self>) {
let iface = iface.as_mut(); 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)); imp.send_event(from_glib_full(structure));
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
unsafe extern "C" fn navigation_send_event_simple<T: NavigationImpl>( unsafe extern "C" fn navigation_send_event_simple<T: NavigationImpl>(
nav: *mut ffi::GstNavigation, nav: *mut ffi::GstNavigation,
event: *mut gst::ffi::GstEvent, event: *mut gst::ffi::GstEvent,

View file

@ -96,8 +96,8 @@ pub trait VideoDecoderImpl: VideoDecoderImplExt + ElementImpl {
self.parent_decide_allocation(query) self.parent_decide_allocation(query)
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
fn handle_missing_data( fn handle_missing_data(
&self, &self,
timestamp: gst::ClockTime, timestamp: gst::ClockTime,
@ -161,8 +161,8 @@ pub trait VideoDecoderImplExt: ObjectSubclass {
query: &mut gst::query::Allocation, query: &mut gst::query::Allocation,
) -> Result<(), gst::LoggableError>; ) -> Result<(), gst::LoggableError>;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
fn parent_handle_missing_data( fn parent_handle_missing_data(
&self, &self,
timestamp: gst::ClockTime, timestamp: gst::ClockTime,
@ -560,8 +560,8 @@ impl<T: VideoDecoderImpl> VideoDecoderImplExt for T {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
fn parent_handle_missing_data( fn parent_handle_missing_data(
&self, &self,
timestamp: gst::ClockTime, 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.src_query = Some(video_decoder_src_query::<T>);
klass.propose_allocation = Some(video_decoder_propose_allocation::<T>); klass.propose_allocation = Some(video_decoder_propose_allocation::<T>);
klass.decide_allocation = Some(video_decoder_decide_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>); 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() .into_glib()
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
unsafe extern "C" fn video_decoder_handle_missing_data<T: VideoDecoderImpl>( unsafe extern "C" fn video_decoder_handle_missing_data<T: VideoDecoderImpl>(
ptr: *mut ffi::GstVideoDecoder, ptr: *mut ffi::GstVideoDecoder,
timestamp: gst::ffi::GstClockTime, timestamp: gst::ffi::GstClockTime,

View file

@ -218,16 +218,16 @@ impl<'a> VideoCodecFrame<'a> {
unsafe { from_glib((*self.to_glib_none().0).deadline) } unsafe { from_glib((*self.to_glib_none().0).deadline) }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_video_decoder_get_processed_subframe_index")] #[doc(alias = "gst_video_decoder_get_processed_subframe_index")]
#[inline] #[inline]
pub fn subframes_processed(&self) -> u32 { pub fn subframes_processed(&self) -> u32 {
unsafe { (*self.to_glib_none().0).abidata.ABI.subframes_processed } unsafe { (*self.to_glib_none().0).abidata.ABI.subframes_processed }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_video_decoder_get_input_subframe_index")] #[doc(alias = "gst_video_decoder_get_input_subframe_index")]
#[inline] #[inline]
pub fn num_subframes(&self) -> u32 { pub fn num_subframes(&self) -> u32 {

View file

@ -72,16 +72,16 @@ impl VideoConverter {
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "get_in_info")] #[doc(alias = "get_in_info")]
#[doc(alias = "gst_video_converter_get_in_info")] #[doc(alias = "gst_video_converter_get_in_info")]
pub fn in_info(&self) -> crate::VideoInfo { pub fn in_info(&self) -> crate::VideoInfo {
unsafe { from_glib_none(ffi::gst_video_converter_get_in_info(self.0.as_ptr())) } unsafe { from_glib_none(ffi::gst_video_converter_get_in_info(self.0.as_ptr())) }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "get_out_info")] #[doc(alias = "get_out_info")]
#[doc(alias = "gst_video_converter_get_out_info")] #[doc(alias = "gst_video_converter_get_out_info")]
pub fn out_info(&self) -> crate::VideoInfo { pub fn out_info(&self) -> crate::VideoInfo {

View file

@ -4,8 +4,8 @@ use std::{mem, ptr};
use glib::{prelude::*, translate::*}; use glib::{prelude::*, translate::*};
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
use crate::VideoInterlaceMode; use crate::VideoInterlaceMode;
use crate::{ use crate::{
utils::HasStreamLock, utils::HasStreamLock,
@ -62,8 +62,8 @@ pub trait VideoDecoderExtManual: 'static {
height: u32, height: u32,
reference: Option<&VideoCodecState<Readable>>, reference: Option<&VideoCodecState<Readable>>,
) -> Result<VideoCodecState<InNegotiation>, gst::FlowError>; ) -> Result<VideoCodecState<InNegotiation>, gst::FlowError>;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
fn set_interlaced_output_state( fn set_interlaced_output_state(
&self, &self,
fmt: VideoFormat, fmt: VideoFormat,
@ -246,8 +246,8 @@ impl<O: IsA<VideoDecoder>> VideoDecoderExtManual for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_video_decoder_set_interlaced_output_state")] #[doc(alias = "gst_video_decoder_set_interlaced_output_state")]
fn set_interlaced_output_state( fn set_interlaced_output_state(
&self, &self,

View file

@ -32,8 +32,8 @@ pub trait VideoEncoderExtManual: 'static {
#[doc(alias = "gst_video_encoder_get_allocator")] #[doc(alias = "gst_video_encoder_get_allocator")]
fn allocator(&self) -> (Option<gst::Allocator>, gst::AllocationParams); fn allocator(&self) -> (Option<gst::Allocator>, gst::AllocationParams);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_video_encoder_finish_subframe")] #[doc(alias = "gst_video_encoder_finish_subframe")]
fn finish_subframe(&self, frame: &VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError>; 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(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
fn finish_subframe(&self, frame: &VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError> { fn finish_subframe(&self, frame: &VideoCodecFrame) -> Result<gst::FlowSuccess, gst::FlowError> {
unsafe { unsafe {
try_from_glib(ffi::gst_video_encoder_finish_subframe( try_from_glib(ffi::gst_video_encoder_finish_subframe(

View file

@ -4,8 +4,8 @@ use std::mem;
use glib::{translate::*, ToSendValue}; use glib::{translate::*, ToSendValue};
use gst::EventType; use gst::EventType;
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
use crate::NavigationModifierType; use crate::NavigationModifierType;
use crate::{NavigationCommand, NavigationEventType}; use crate::{NavigationCommand, NavigationEventType};
@ -365,8 +365,8 @@ macro_rules! nav_event_builder {
running_time_offset: Option<i64>, running_time_offset: Option<i64>,
other_fields: Vec<(&'a str, &'a (dyn ToSendValue + Sync))>, other_fields: Vec<(&'a str, &'a (dyn ToSendValue + Sync))>,
$($field_names: $field_types,)* $($field_names: $field_types,)*
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
$($event_field: $event_type,)? $($event_field: $event_type,)?
} }
@ -379,8 +379,8 @@ macro_rules! nav_event_builder {
running_time_offset: None, running_time_offset: None,
other_fields: Vec::new(), other_fields: Vec::new(),
$($field_names: <$field_types>::default(),)* $($field_names: <$field_types>::default(),)*
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
$($event_field,)? $($event_field,)?
} }
@ -390,8 +390,8 @@ macro_rules! nav_event_builder {
Self { $field_names, ..self } Self { $field_names, ..self }
})* })*
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn modifier_state(self, modifier_state: NavigationModifierType) -> Self { pub fn modifier_state(self, modifier_state: NavigationModifierType) -> Self {
Self { modifier_state, ..self } Self { modifier_state, ..self }
} }
@ -414,14 +414,14 @@ nav_event_builder!(
let event = match s.kind { let event = match s.kind {
KeyEventType::Press { key } => NavigationEvent::KeyPress { KeyEventType::Press { key } => NavigationEvent::KeyPress {
key: key.to_owned(), key: key.to_owned(),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}, },
KeyEventType::Release { key } => NavigationEvent::KeyRelease { KeyEventType::Release { key } => NavigationEvent::KeyRelease {
key: key.to_owned(), key: key.to_owned(),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}, },
}; };
@ -437,8 +437,8 @@ pub enum MouseEventType {
Release { Release {
button: i32, button: i32,
}, },
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
Scroll { Scroll {
delta_x: f64, delta_x: f64,
delta_y: f64, delta_y: f64,
@ -454,35 +454,35 @@ nav_event_builder!(
MouseEventType::Move => NavigationEvent::MouseMove { MouseEventType::Move => NavigationEvent::MouseMove {
x: s.x, x: s.x,
y: s.y, y: s.y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}, },
MouseEventType::Press { button } => NavigationEvent::MouseButtonPress { MouseEventType::Press { button } => NavigationEvent::MouseButtonPress {
button, button,
x: s.x, x: s.x,
y: s.y, y: s.y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}, },
MouseEventType::Release { button } => NavigationEvent::MouseButtonRelease { MouseEventType::Release { button } => NavigationEvent::MouseButtonRelease {
button, button,
x: s.x, x: s.x,
y: s.y, y: s.y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}, },
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
MouseEventType::Scroll { delta_x, delta_y } => NavigationEvent::MouseScroll { MouseEventType::Scroll { delta_x, delta_y } => NavigationEvent::MouseScroll {
x: s.x, x: s.x,
y: s.y, y: s.y,
delta_x, delta_x,
delta_y, delta_y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}, },
}; };
@ -496,8 +496,8 @@ pub struct CommandEventBuilder<'a> {
running_time_offset: Option<i64>, running_time_offset: Option<i64>,
other_fields: Vec<(&'a str, &'a (dyn ToSendValue + Sync))>, other_fields: Vec<(&'a str, &'a (dyn ToSendValue + Sync))>,
command: NavigationCommand, command: NavigationCommand,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
} }
@ -509,14 +509,14 @@ impl<'a> CommandEventBuilder<'a> {
running_time_offset: None, running_time_offset: None,
other_fields: Vec::new(), other_fields: Vec::new(),
command, command,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn modifier_state(self, modifier_state: NavigationModifierType) -> Self { pub fn modifier_state(self, modifier_state: NavigationModifierType) -> Self {
Self { Self {
modifier_state, modifier_state,
@ -527,24 +527,24 @@ impl<'a> CommandEventBuilder<'a> {
event_builder_generic_impl!(|s: &mut Self| { event_builder_generic_impl!(|s: &mut Self| {
let event = NavigationEvent::Command { let event = NavigationEvent::Command {
command: s.command, command: s.command,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: s.modifier_state, modifier_state: s.modifier_state,
}; };
gst::ffi::gst_event_new_navigation(event.structure().into_glib_ptr()) gst::ffi::gst_event_new_navigation(event.structure().into_glib_ptr())
}); });
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub enum TouchEventType { pub enum TouchEventType {
Down { pressure: f64 }, Down { pressure: f64 },
Motion { pressure: f64 }, Motion { pressure: f64 },
Up, Up,
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
nav_event_builder!( nav_event_builder!(
TouchEventBuilder, TouchEventBuilder,
kind: TouchEventType, kind: TouchEventType,
@ -576,15 +576,15 @@ nav_event_builder!(
} }
); );
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub enum TouchMetaEventType { pub enum TouchMetaEventType {
Frame, Frame,
Cancel, Cancel,
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
nav_event_builder!( nav_event_builder!(
TouchMetaEventBuilder, TouchMetaEventBuilder,
kind: TouchMetaEventType, kind: TouchMetaEventType,
@ -609,58 +609,58 @@ const NAVIGATION_EVENT_NAME: &str = "application/x-gst-navigation";
pub enum NavigationEvent { pub enum NavigationEvent {
KeyPress { KeyPress {
key: String, key: String,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
KeyRelease { KeyRelease {
key: String, key: String,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
MouseMove { MouseMove {
x: f64, x: f64,
y: f64, y: f64,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
MouseButtonPress { MouseButtonPress {
button: i32, button: i32,
x: f64, x: f64,
y: f64, y: f64,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
MouseButtonRelease { MouseButtonRelease {
button: i32, button: i32,
x: f64, x: f64,
y: f64, y: f64,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
Command { Command {
command: NavigationCommand, command: NavigationCommand,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
MouseScroll { MouseScroll {
x: f64, x: f64,
y: f64, y: f64,
delta_x: f64, delta_x: f64,
delta_y: f64, delta_y: f64,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
TouchDown { TouchDown {
identifier: u32, identifier: u32,
x: f64, x: f64,
@ -668,8 +668,8 @@ pub enum NavigationEvent {
pressure: f64, pressure: f64,
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
TouchMotion { TouchMotion {
identifier: u32, identifier: u32,
x: f64, x: f64,
@ -677,21 +677,21 @@ pub enum NavigationEvent {
pressure: f64, pressure: f64,
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
TouchUp { TouchUp {
identifier: u32, identifier: u32,
x: f64, x: f64,
y: f64, y: f64,
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
TouchFrame { TouchFrame {
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
TouchCancel { TouchCancel {
modifier_state: NavigationModifierType, modifier_state: NavigationModifierType,
}, },
@ -703,8 +703,8 @@ impl NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
Self::KeyPress { Self::KeyPress {
key: key.to_string(), key: key.to_string(),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
@ -714,8 +714,8 @@ impl NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
Self::KeyRelease { Self::KeyRelease {
key: key.to_string(), key: key.to_string(),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
@ -726,8 +726,8 @@ impl NavigationEvent {
Self::MouseMove { Self::MouseMove {
x, x,
y, y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
@ -739,8 +739,8 @@ impl NavigationEvent {
button, button,
x, x,
y, y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
@ -752,14 +752,14 @@ impl NavigationEvent {
button, button,
x, x,
y, y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_navigation_event_new_mouse_scroll")] #[doc(alias = "gst_navigation_event_new_mouse_scroll")]
pub fn new_mouse_scroll(x: f64, y: f64, delta_x: f64, delta_y: f64) -> NavigationEvent { pub fn new_mouse_scroll(x: f64, y: f64, delta_x: f64, delta_y: f64) -> NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
@ -768,8 +768,8 @@ impl NavigationEvent {
y, y,
delta_x, delta_x,
delta_y, delta_y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
@ -779,14 +779,14 @@ impl NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
Self::Command { Self::Command {
command, command,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_navigation_event_new_touch_down")] #[doc(alias = "gst_navigation_event_new_touch_down")]
pub fn new_touch_down(identifier: u32, x: f64, y: f64, pressure: f64) -> NavigationEvent { pub fn new_touch_down(identifier: u32, x: f64, y: f64, pressure: f64) -> NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
@ -795,14 +795,14 @@ impl NavigationEvent {
x, x,
y, y,
pressure, pressure,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_navigation_event_new_touch_motion")] #[doc(alias = "gst_navigation_event_new_touch_motion")]
pub fn new_touch_motion(identifier: u32, x: f64, y: f64, pressure: f64) -> NavigationEvent { pub fn new_touch_motion(identifier: u32, x: f64, y: f64, pressure: f64) -> NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
@ -811,14 +811,14 @@ impl NavigationEvent {
x, x,
y, y,
pressure, pressure,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_navigation_event_new_touch_up")] #[doc(alias = "gst_navigation_event_new_touch_up")]
pub fn new_touch_up(identifier: u32, x: f64, y: f64) -> NavigationEvent { pub fn new_touch_up(identifier: u32, x: f64, y: f64) -> NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
@ -826,32 +826,32 @@ impl NavigationEvent {
identifier, identifier,
x, x,
y, y,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_navigation_event_new_touch_frame")] #[doc(alias = "gst_navigation_event_new_touch_frame")]
pub fn new_touch_frame() -> NavigationEvent { pub fn new_touch_frame() -> NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
Self::TouchFrame { Self::TouchFrame {
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_navigation_event_new_touch_cancel")] #[doc(alias = "gst_navigation_event_new_touch_cancel")]
pub fn new_touch_cancel() -> NavigationEvent { pub fn new_touch_cancel() -> NavigationEvent {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
Self::TouchCancel { Self::TouchCancel {
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state: NavigationModifierType::empty(), modifier_state: NavigationModifierType::empty(),
} }
} }
@ -885,8 +885,8 @@ impl NavigationEvent {
.y(y) .y(y)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
pub fn mouse_scroll_builder( pub fn mouse_scroll_builder(
x: f64, x: f64,
y: f64, y: f64,
@ -904,8 +904,8 @@ impl NavigationEvent {
CommandEventBuilder::new(command) CommandEventBuilder::new(command)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn touch_down_builder( pub fn touch_down_builder(
identifier: u32, identifier: u32,
x: f64, x: f64,
@ -919,8 +919,8 @@ impl NavigationEvent {
.y(y) .y(y)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn touch_motion_builder( pub fn touch_motion_builder(
identifier: u32, identifier: u32,
x: f64, x: f64,
@ -934,8 +934,8 @@ impl NavigationEvent {
.y(y) .y(y)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(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> { pub fn touch_up_builder(identifier: u32, x: f64, y: f64) -> TouchEventBuilder<'static> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
TouchEventBuilder::new(TouchEventType::Up) TouchEventBuilder::new(TouchEventType::Up)
@ -944,15 +944,15 @@ impl NavigationEvent {
.y(y) .y(y)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn touch_frame_builder() -> TouchMetaEventBuilder<'static> { pub fn touch_frame_builder() -> TouchMetaEventBuilder<'static> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
TouchMetaEventBuilder::new(TouchMetaEventType::Frame) TouchMetaEventBuilder::new(TouchMetaEventType::Frame)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn touch_cancel_builder() -> TouchMetaEventBuilder<'static> { pub fn touch_cancel_builder() -> TouchMetaEventBuilder<'static> {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
TouchMetaEventBuilder::new(TouchMetaEventType::Cancel) TouchMetaEventBuilder::new(TouchMetaEventType::Cancel)
@ -984,8 +984,8 @@ impl NavigationEvent {
return Err(glib::bool_error!("Invalid navigation event")); return Err(glib::bool_error!("Invalid navigation event"));
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
let modifier_state = structure let modifier_state = structure
.get("state") .get("state")
.unwrap_or(NavigationModifierType::empty()); .unwrap_or(NavigationModifierType::empty());
@ -997,8 +997,8 @@ impl NavigationEvent {
y: structure y: structure
.get("pointer_y") .get("pointer_y")
.map_err(|_| glib::bool_error!("Invalid mouse event"))?, .map_err(|_| glib::bool_error!("Invalid mouse event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
NavigationEventType::MouseButtonPress => NavigationEvent::MouseButtonPress { NavigationEventType::MouseButtonPress => NavigationEvent::MouseButtonPress {
@ -1011,8 +1011,8 @@ impl NavigationEvent {
y: structure y: structure
.get("pointer_y") .get("pointer_y")
.map_err(|_| glib::bool_error!("Invalid mouse event"))?, .map_err(|_| glib::bool_error!("Invalid mouse event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
NavigationEventType::MouseButtonRelease => NavigationEvent::MouseButtonRelease { NavigationEventType::MouseButtonRelease => NavigationEvent::MouseButtonRelease {
@ -1025,12 +1025,12 @@ impl NavigationEvent {
y: structure y: structure
.get("pointer_y") .get("pointer_y")
.map_err(|_| glib::bool_error!("Invalid mouse event"))?, .map_err(|_| glib::bool_error!("Invalid mouse event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
NavigationEventType::MouseScroll => NavigationEvent::MouseScroll { NavigationEventType::MouseScroll => NavigationEvent::MouseScroll {
x: structure x: structure
.get("pointer_x") .get("pointer_x")
@ -1044,36 +1044,36 @@ impl NavigationEvent {
delta_y: structure delta_y: structure
.get("delta_pointer_y") .get("delta_pointer_y")
.map_err(|_| glib::bool_error!("Invalid mouse event"))?, .map_err(|_| glib::bool_error!("Invalid mouse event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
NavigationEventType::KeyPress => NavigationEvent::KeyPress { NavigationEventType::KeyPress => NavigationEvent::KeyPress {
key: structure key: structure
.get("key") .get("key")
.map_err(|_| glib::bool_error!("Invalid key press event"))?, .map_err(|_| glib::bool_error!("Invalid key press event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
NavigationEventType::KeyRelease => NavigationEvent::KeyRelease { NavigationEventType::KeyRelease => NavigationEvent::KeyRelease {
key: structure key: structure
.get("key") .get("key")
.map_err(|_| glib::bool_error!("Invalid key press event"))?, .map_err(|_| glib::bool_error!("Invalid key press event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
NavigationEventType::Command => NavigationEvent::Command { NavigationEventType::Command => NavigationEvent::Command {
command: structure command: structure
.get("command-code") .get("command-code")
.map_err(|_| glib::bool_error!("Invalid key press event"))?, .map_err(|_| glib::bool_error!("Invalid key press event"))?,
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
modifier_state, modifier_state,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
NavigationEventType::TouchDown => NavigationEvent::TouchDown { NavigationEventType::TouchDown => NavigationEvent::TouchDown {
identifier: structure identifier: structure
.get("identifier") .get("identifier")
@ -1089,8 +1089,8 @@ impl NavigationEvent {
.map_err(|_| glib::bool_error!("Invalid touch event"))?, .map_err(|_| glib::bool_error!("Invalid touch event"))?,
modifier_state, modifier_state,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
NavigationEventType::TouchMotion => NavigationEvent::TouchMotion { NavigationEventType::TouchMotion => NavigationEvent::TouchMotion {
identifier: structure identifier: structure
.get("identifier") .get("identifier")
@ -1106,8 +1106,8 @@ impl NavigationEvent {
.map_err(|_| glib::bool_error!("Invalid touch event"))?, .map_err(|_| glib::bool_error!("Invalid touch event"))?,
modifier_state, modifier_state,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
NavigationEventType::TouchUp => NavigationEvent::TouchUp { NavigationEventType::TouchUp => NavigationEvent::TouchUp {
identifier: structure identifier: structure
.get("identifier") .get("identifier")
@ -1120,11 +1120,11 @@ impl NavigationEvent {
.map_err(|_| glib::bool_error!("Invalid touch event"))?, .map_err(|_| glib::bool_error!("Invalid touch event"))?,
modifier_state, modifier_state,
}, },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
NavigationEventType::TouchFrame => NavigationEvent::TouchFrame { modifier_state }, NavigationEventType::TouchFrame => NavigationEvent::TouchFrame { modifier_state },
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
NavigationEventType::TouchCancel => NavigationEvent::TouchCancel { modifier_state }, NavigationEventType::TouchCancel => NavigationEvent::TouchCancel { modifier_state },
NavigationEventType::Invalid | NavigationEventType::__Unknown(_) => { NavigationEventType::Invalid | NavigationEventType::__Unknown(_) => {
return Err(glib::bool_error!("Invalid navigation event")) return Err(glib::bool_error!("Invalid navigation event"))
@ -1155,8 +1155,8 @@ impl NavigationEvent {
.field("pointer_x", x) .field("pointer_x", x)
.field("pointer_y", y) .field("pointer_y", y)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
Self::MouseScroll { Self::MouseScroll {
x, x,
y, y,
@ -1178,8 +1178,8 @@ impl NavigationEvent {
Self::Command { command, .. } => gst::Structure::builder(NAVIGATION_EVENT_NAME) Self::Command { command, .. } => gst::Structure::builder(NAVIGATION_EVENT_NAME)
.field("event", "command") .field("event", "command")
.field("command-code", command), .field("command-code", command),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
Self::TouchDown { Self::TouchDown {
identifier, identifier,
x, x,
@ -1192,8 +1192,8 @@ impl NavigationEvent {
.field("pointer_x", x) .field("pointer_x", x)
.field("pointer_y", y) .field("pointer_y", y)
.field("pressure", pressure), .field("pressure", pressure),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
Self::TouchMotion { Self::TouchMotion {
identifier, identifier,
x, x,
@ -1206,8 +1206,8 @@ impl NavigationEvent {
.field("pointer_x", x) .field("pointer_x", x)
.field("pointer_y", y) .field("pointer_y", y)
.field("pressure", pressure), .field("pressure", pressure),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
Self::TouchUp { Self::TouchUp {
identifier, x, y, .. identifier, x, y, ..
} => gst::Structure::builder(NAVIGATION_EVENT_NAME) } => gst::Structure::builder(NAVIGATION_EVENT_NAME)
@ -1215,19 +1215,19 @@ impl NavigationEvent {
.field("identifier", identifier) .field("identifier", identifier)
.field("pointer_x", x) .field("pointer_x", x)
.field("pointer_y", y), .field("pointer_y", y),
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
Self::TouchFrame { .. } => { Self::TouchFrame { .. } => {
gst::Structure::builder(NAVIGATION_EVENT_NAME).field("event", "touch-frame") gst::Structure::builder(NAVIGATION_EVENT_NAME).field("event", "touch-frame")
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
Self::TouchCancel { .. } => { Self::TouchCancel { .. } => {
gst::Structure::builder(NAVIGATION_EVENT_NAME).field("event", "touch-cancel") gst::Structure::builder(NAVIGATION_EVENT_NAME).field("event", "touch-cancel")
} }
}; };
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
if true { if true {
structure = match self { structure = match self {
Self::MouseMove { modifier_state, .. } => structure.field("state", modifier_state), Self::MouseMove { modifier_state, .. } => structure.field("state", modifier_state),
@ -1269,8 +1269,8 @@ impl NavigationEvent {
mod tests { mod tests {
#[test] #[test]
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
fn serialize_navigation_events() { fn serialize_navigation_events() {
use crate::{NavigationEvent, NavigationModifierType}; use crate::{NavigationEvent, NavigationModifierType};

View file

@ -133,8 +133,8 @@ impl VideoFormatInfo {
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_PALETTE != 0 self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_PALETTE != 0
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[inline] #[inline]
pub fn has_subtiles(&self) -> bool { pub fn has_subtiles(&self) -> bool {
self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_SUBTILES != 0 self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_SUBTILES != 0
@ -347,8 +347,8 @@ impl VideoFormatInfo {
(offset, scale) (offset, scale)
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_video_format_info_extrapolate_stride")] #[doc(alias = "gst_video_format_info_extrapolate_stride")]
pub fn extrapolate_stride(&self, plane: u32, stride: u32) -> u32 { pub fn extrapolate_stride(&self, plane: u32, stride: u32) -> u32 {
assert!(plane < self.n_planes()); assert!(plane < self.n_planes());
@ -362,8 +362,8 @@ impl VideoFormatInfo {
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
pub fn tile_info(&self, plane: u32) -> &VideoTileInfo { pub fn tile_info(&self, plane: u32) -> &VideoTileInfo {
assert!(plane < self.n_planes()); assert!(plane < self.n_planes());
@ -498,7 +498,7 @@ impl fmt::Debug for VideoFormatInfo {
.field("tile-ws", &self.tile_ws()) .field("tile-ws", &self.tile_ws())
.field("tile-hs", &self.tile_hs()); .field("tile-hs", &self.tile_hs());
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
{ {
fmt.field( fmt.field(
"tile-info", "tile-info",
@ -572,14 +572,14 @@ impl glib::translate::FromGlibPtrNone<*const ffi::GstVideoFormatInfo> for VideoF
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstVideoTileInfo")] #[doc(alias = "GstVideoTileInfo")]
pub struct VideoTileInfo(ffi::GstVideoTileInfo); pub struct VideoTileInfo(ffi::GstVideoTileInfo);
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
impl fmt::Debug for VideoTileInfo { impl fmt::Debug for VideoTileInfo {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("VideoTileInfo") f.debug_struct("VideoTileInfo")
@ -591,8 +591,8 @@ impl fmt::Debug for VideoTileInfo {
} }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
impl VideoTileInfo { impl VideoTileInfo {
#[inline] #[inline]
pub fn width(&self) -> u32 { pub fn width(&self) -> u32 {

View file

@ -134,8 +134,8 @@ impl VideoColorimetry {
unsafe { from_glib(self.0.primaries) } unsafe { from_glib(self.0.primaries) }
} }
#[cfg(any(feature = "v1_22", feature = "dox"))] #[cfg(feature = "v1_22")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
#[doc(alias = "gst_video_colorimetry_is_equivalent")] #[doc(alias = "gst_video_colorimetry_is_equivalent")]
pub fn is_equivalent(&self, bitdepth: u32, other: &Self, other_bitdepth: u32) -> bool { pub fn is_equivalent(&self, bitdepth: u32, other: &Self, other_bitdepth: u32) -> bool {
unsafe { unsafe {
@ -621,8 +621,8 @@ impl VideoInfo {
self.0.height as u32 self.0.height as u32
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[inline] #[inline]
pub fn field_height(&self) -> u32 { pub fn field_height(&self) -> u32 {
if self.0.interlace_mode == ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE { 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) gst::Fraction::new(self.0.fps_n, self.0.fps_d)
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[inline] #[inline]
pub fn field_rate(&self) -> gst::Fraction { pub fn field_rate(&self) -> gst::Fraction {
if self.interlace_mode() == crate::VideoInterlaceMode::Alternate { if self.interlace_mode() == crate::VideoInterlaceMode::Alternate {
@ -850,8 +850,8 @@ impl VideoInfo {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_video_info_align_full")] #[doc(alias = "gst_video_info_align_full")]
pub fn align_full( pub fn align_full(
&mut self, &mut self,

View file

@ -159,8 +159,8 @@ impl VideoMeta {
&self.0.stride[0..(self.0.n_planes as usize)] &self.0.stride[0..(self.0.n_planes as usize)]
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_alignment")] #[doc(alias = "get_alignment")]
#[inline] #[inline]
pub fn alignment(&self) -> crate::VideoAlignment { pub fn alignment(&self) -> crate::VideoAlignment {
@ -173,8 +173,8 @@ impl VideoMeta {
) )
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_plane_size")] #[doc(alias = "get_plane_size")]
#[doc(alias = "gst_video_meta_get_plane_size")] #[doc(alias = "gst_video_meta_get_plane_size")]
pub fn plane_size(&self) -> Result<[usize; crate::VIDEO_MAX_PLANES], glib::BoolError> { pub fn plane_size(&self) -> Result<[usize; crate::VIDEO_MAX_PLANES], glib::BoolError> {
@ -193,8 +193,8 @@ impl VideoMeta {
Ok(plane_size) Ok(plane_size)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "get_plane_height")] #[doc(alias = "get_plane_height")]
#[doc(alias = "gst_video_meta_get_plane_height")] #[doc(alias = "gst_video_meta_get_plane_height")]
pub fn plane_height(&self) -> Result<[u32; crate::VIDEO_MAX_PLANES], glib::BoolError> { pub fn plane_height(&self) -> Result<[u32; crate::VIDEO_MAX_PLANES], glib::BoolError> {
@ -213,8 +213,8 @@ impl VideoMeta {
Ok(plane_height) Ok(plane_height)
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_video_meta_set_alignment")] #[doc(alias = "gst_video_meta_set_alignment")]
pub fn set_alignment( pub fn set_alignment(
&mut self, &mut self,
@ -599,21 +599,21 @@ impl fmt::Debug for VideoOverlayCompositionMeta {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstVideoCaptionMeta")] #[doc(alias = "GstVideoCaptionMeta")]
pub struct VideoCaptionMeta(ffi::GstVideoCaptionMeta); pub struct VideoCaptionMeta(ffi::GstVideoCaptionMeta);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
unsafe impl Send for VideoCaptionMeta {} unsafe impl Send for VideoCaptionMeta {}
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
unsafe impl Sync for VideoCaptionMeta {} unsafe impl Sync for VideoCaptionMeta {}
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
impl VideoCaptionMeta { impl VideoCaptionMeta {
#[doc(alias = "gst_buffer_add_video_caption_meta")] #[doc(alias = "gst_buffer_add_video_caption_meta")]
pub fn add<'a>( pub fn add<'a>(
@ -655,8 +655,8 @@ impl VideoCaptionMeta {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
unsafe impl MetaAPI for VideoCaptionMeta { unsafe impl MetaAPI for VideoCaptionMeta {
type GstType = ffi::GstVideoCaptionMeta; type GstType = ffi::GstVideoCaptionMeta;
@ -667,8 +667,8 @@ unsafe impl MetaAPI for VideoCaptionMeta {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(feature = "v1_16")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
impl fmt::Debug for VideoCaptionMeta { impl fmt::Debug for VideoCaptionMeta {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("VideoCaptionMeta") f.debug_struct("VideoCaptionMeta")
@ -678,21 +678,21 @@ impl fmt::Debug for VideoCaptionMeta {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstVideoAFDMeta")] #[doc(alias = "GstVideoAFDMeta")]
pub struct VideoAFDMeta(ffi::GstVideoAFDMeta); pub struct VideoAFDMeta(ffi::GstVideoAFDMeta);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe impl Send for VideoAFDMeta {} unsafe impl Send for VideoAFDMeta {}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe impl Sync for VideoAFDMeta {} unsafe impl Sync for VideoAFDMeta {}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
impl VideoAFDMeta { impl VideoAFDMeta {
#[doc(alias = "gst_buffer_add_video_afd_meta")] #[doc(alias = "gst_buffer_add_video_afd_meta")]
pub fn add( pub fn add(
@ -734,8 +734,8 @@ impl VideoAFDMeta {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe impl MetaAPI for VideoAFDMeta { unsafe impl MetaAPI for VideoAFDMeta {
type GstType = ffi::GstVideoAFDMeta; type GstType = ffi::GstVideoAFDMeta;
@ -746,8 +746,8 @@ unsafe impl MetaAPI for VideoAFDMeta {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
impl fmt::Debug for VideoAFDMeta { impl fmt::Debug for VideoAFDMeta {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("VideoAFDMeta") f.debug_struct("VideoAFDMeta")
@ -758,21 +758,21 @@ impl fmt::Debug for VideoAFDMeta {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstVideoBarMeta")] #[doc(alias = "GstVideoBarMeta")]
pub struct VideoBarMeta(ffi::GstVideoBarMeta); pub struct VideoBarMeta(ffi::GstVideoBarMeta);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe impl Send for VideoBarMeta {} unsafe impl Send for VideoBarMeta {}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe impl Sync for VideoBarMeta {} unsafe impl Sync for VideoBarMeta {}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
impl VideoBarMeta { impl VideoBarMeta {
#[doc(alias = "gst_buffer_add_video_bar_meta")] #[doc(alias = "gst_buffer_add_video_bar_meta")]
pub fn add( pub fn add(
@ -821,8 +821,8 @@ impl VideoBarMeta {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
unsafe impl MetaAPI for VideoBarMeta { unsafe impl MetaAPI for VideoBarMeta {
type GstType = ffi::GstVideoBarMeta; type GstType = ffi::GstVideoBarMeta;
@ -833,8 +833,8 @@ unsafe impl MetaAPI for VideoBarMeta {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(feature = "v1_18")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
impl fmt::Debug for VideoBarMeta { impl fmt::Debug for VideoBarMeta {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("VideoBarMeta") f.debug_struct("VideoBarMeta")
@ -846,21 +846,21 @@ impl fmt::Debug for VideoBarMeta {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[repr(transparent)] #[repr(transparent)]
#[doc(alias = "GstVideoCodecAlphaMeta")] #[doc(alias = "GstVideoCodecAlphaMeta")]
pub struct VideoCodecAlphaMeta(ffi::GstVideoCodecAlphaMeta); pub struct VideoCodecAlphaMeta(ffi::GstVideoCodecAlphaMeta);
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
unsafe impl Send for VideoCodecAlphaMeta {} unsafe impl Send for VideoCodecAlphaMeta {}
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
unsafe impl Sync for VideoCodecAlphaMeta {} unsafe impl Sync for VideoCodecAlphaMeta {}
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
impl VideoCodecAlphaMeta { impl VideoCodecAlphaMeta {
#[doc(alias = "gst_buffer_add_video_codec_alpha_meta")] #[doc(alias = "gst_buffer_add_video_codec_alpha_meta")]
pub fn add( pub fn add(
@ -889,8 +889,8 @@ impl VideoCodecAlphaMeta {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
unsafe impl MetaAPI for VideoCodecAlphaMeta { unsafe impl MetaAPI for VideoCodecAlphaMeta {
type GstType = ffi::GstVideoCodecAlphaMeta; type GstType = ffi::GstVideoCodecAlphaMeta;
@ -901,8 +901,8 @@ unsafe impl MetaAPI for VideoCodecAlphaMeta {
} }
} }
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(feature = "v1_20")]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
impl fmt::Debug for VideoCodecAlphaMeta { impl fmt::Debug for VideoCodecAlphaMeta {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("VideoCodecAlphaMeta") f.debug_struct("VideoCodecAlphaMeta")

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