2017-07-07 11:47:28 +00:00
|
|
|
// Copyright (C) 2017 Sebastian Dröge <sebastian@centricular.com>
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2017-07-31 11:16:42 +00:00
|
|
|
#![recursion_limit = "256"]
|
2017-05-12 12:24:03 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate bitflags;
|
2018-03-19 10:53:01 +00:00
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
#[macro_use]
|
|
|
|
extern crate cfg_if;
|
2017-09-10 11:55:29 +00:00
|
|
|
extern crate libc;
|
2020-01-22 17:38:13 +00:00
|
|
|
extern crate once_cell;
|
2020-01-10 11:33:03 +00:00
|
|
|
extern crate thiserror;
|
2017-05-12 12:24:03 +00:00
|
|
|
|
2018-11-18 12:20:16 +00:00
|
|
|
// Re-exported for the subclass gst_plugin_define! macro
|
|
|
|
#[doc(hidden)]
|
2019-03-19 07:58:20 +00:00
|
|
|
pub extern crate glib_sys;
|
2018-11-18 12:20:16 +00:00
|
|
|
#[doc(hidden)]
|
2019-03-19 07:58:20 +00:00
|
|
|
pub extern crate gobject_sys;
|
2018-11-18 12:20:16 +00:00
|
|
|
#[doc(hidden)]
|
2019-03-19 07:58:20 +00:00
|
|
|
pub extern crate gstreamer_sys as gst_sys;
|
2019-05-27 20:42:37 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub extern crate paste;
|
2017-05-12 12:24:03 +00:00
|
|
|
|
|
|
|
#[macro_use]
|
2018-11-18 12:20:16 +00:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub extern crate glib;
|
2017-05-12 12:24:03 +00:00
|
|
|
|
2017-07-12 10:25:11 +00:00
|
|
|
extern crate num_rational;
|
|
|
|
|
2020-01-20 09:59:13 +00:00
|
|
|
extern crate futures_channel;
|
2018-04-23 14:55:31 +00:00
|
|
|
extern crate futures_core;
|
2020-01-20 09:59:13 +00:00
|
|
|
extern crate futures_util;
|
2017-08-17 10:07:32 +00:00
|
|
|
|
2017-11-11 10:21:55 +00:00
|
|
|
extern crate muldiv;
|
|
|
|
|
2019-12-23 09:44:11 +00:00
|
|
|
extern crate pretty_hex;
|
|
|
|
|
2018-06-20 19:38:49 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
|
|
|
extern crate serde;
|
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-05 18:42:28 +00:00
|
|
|
extern crate serde_bytes;
|
|
|
|
#[cfg(feature = "ser_de")]
|
2018-06-20 19:38:49 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
|
2020-01-30 12:30:17 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate futures_executor;
|
|
|
|
|
2017-07-03 09:26:40 +00:00
|
|
|
use glib::translate::{from_glib, from_glib_full};
|
|
|
|
|
2017-07-10 09:36:15 +00:00
|
|
|
macro_rules! assert_initialized_main_thread {
|
2018-04-01 08:30:03 +00:00
|
|
|
() => {
|
2019-03-19 07:58:20 +00:00
|
|
|
if unsafe { ::gst_sys::gst_is_initialized() } != ::glib_sys::GTRUE {
|
2017-08-30 09:48:01 +00:00
|
|
|
panic!("GStreamer has not been initialized. Call `gst::init` first.");
|
|
|
|
}
|
2018-04-01 08:30:03 +00:00
|
|
|
};
|
2017-07-10 09:36:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! skip_assert_initialized {
|
2018-04-01 08:30:03 +00:00
|
|
|
() => {};
|
2017-07-10 09:36:15 +00:00
|
|
|
}
|
|
|
|
|
2019-02-28 08:32:13 +00:00
|
|
|
#[allow(clippy::unreadable_literal)]
|
|
|
|
#[allow(clippy::too_many_arguments)]
|
|
|
|
#[allow(clippy::match_same_arms)]
|
|
|
|
#[allow(clippy::type_complexity)]
|
2017-05-12 12:24:03 +00:00
|
|
|
mod auto;
|
2017-08-17 12:31:00 +00:00
|
|
|
pub use auto::functions::*;
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use auto::*;
|
2017-05-12 12:24:03 +00:00
|
|
|
|
2017-09-09 11:12:49 +00:00
|
|
|
#[macro_use]
|
|
|
|
mod log;
|
|
|
|
pub use log::*;
|
|
|
|
|
2017-12-20 17:52:57 +00:00
|
|
|
#[macro_use]
|
|
|
|
mod error;
|
|
|
|
pub use error::*;
|
|
|
|
|
2018-09-28 15:11:46 +00:00
|
|
|
#[macro_use]
|
2017-07-03 10:56:26 +00:00
|
|
|
pub mod miniobject;
|
2017-08-10 11:39:57 +00:00
|
|
|
pub use miniobject::{GstRc, MiniObject};
|
2017-07-03 10:56:26 +00:00
|
|
|
pub mod message;
|
2017-09-15 15:35:54 +00:00
|
|
|
pub use message::{Message, MessageErrorDomain, MessageRef, MessageView};
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2018-06-21 18:44:51 +00:00
|
|
|
mod value;
|
|
|
|
pub use value::*;
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
|
|
|
#[macro_use]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod value_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2017-07-07 13:04:54 +00:00
|
|
|
pub mod structure;
|
2017-07-24 22:17:50 +00:00
|
|
|
pub use structure::{Structure, StructureRef};
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod structure_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2017-07-10 21:02:08 +00:00
|
|
|
pub mod caps;
|
2017-07-24 22:17:50 +00:00
|
|
|
pub use caps::{Caps, CapsRef};
|
2018-09-28 09:01:14 +00:00
|
|
|
mod caps_features;
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod caps_serde;
|
2018-09-28 09:01:14 +00:00
|
|
|
pub use caps_features::{
|
|
|
|
CapsFeatures, CapsFeaturesRef, CAPS_FEATURES_MEMORY_SYSTEM_MEMORY,
|
|
|
|
CAPS_FEATURE_MEMORY_SYSTEM_MEMORY,
|
|
|
|
};
|
2018-09-28 09:00:08 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
|
|
|
mod caps_features_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2017-07-12 07:27:43 +00:00
|
|
|
pub mod tags;
|
2019-01-23 13:52:56 +00:00
|
|
|
pub use tags::{
|
|
|
|
tag_exists, tag_get_description, tag_get_flag, tag_get_nick, tag_get_type, Tag, TagList,
|
|
|
|
TagListRef,
|
|
|
|
};
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod tags_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2018-09-29 08:13:57 +00:00
|
|
|
pub mod meta;
|
2020-01-24 15:46:18 +00:00
|
|
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
pub use meta::MetaSeqnum;
|
2019-07-14 19:32:10 +00:00
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
pub use meta::ReferenceTimestampMeta;
|
2018-09-29 08:13:57 +00:00
|
|
|
pub use meta::{Meta, MetaAPI, MetaRef, MetaRefMut, ParentBufferMeta};
|
2017-07-25 12:01:24 +00:00
|
|
|
pub mod buffer;
|
2018-07-27 10:36:40 +00:00
|
|
|
pub use buffer::{
|
|
|
|
Buffer, BufferMap, BufferRef, MappedBuffer, BUFFER_COPY_ALL, BUFFER_COPY_METADATA,
|
|
|
|
};
|
2019-05-11 15:00:03 +00:00
|
|
|
pub mod memory;
|
|
|
|
pub use memory::{MappedMemory, Memory, MemoryMap, MemoryRef};
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod buffer_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2017-07-28 17:04:15 +00:00
|
|
|
pub mod sample;
|
|
|
|
pub use sample::{Sample, SampleRef};
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod sample_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2017-07-28 17:20:11 +00:00
|
|
|
pub mod bufferlist;
|
|
|
|
pub use bufferlist::{BufferList, BufferListRef};
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod bufferlist_serde;
|
2018-07-16 19:46:10 +00:00
|
|
|
|
2017-07-29 11:58:54 +00:00
|
|
|
pub mod query;
|
|
|
|
pub use query::{Query, QueryRef, QueryView};
|
2017-07-30 14:06:44 +00:00
|
|
|
pub mod event;
|
2020-01-24 15:46:18 +00:00
|
|
|
pub use event::{Event, EventRef, EventView, GroupId, Seqnum};
|
2017-08-02 17:34:37 +00:00
|
|
|
pub mod context;
|
|
|
|
pub use context::{Context, ContextRef};
|
2017-10-15 08:08:56 +00:00
|
|
|
mod static_caps;
|
|
|
|
pub use static_caps::*;
|
|
|
|
mod static_pad_template;
|
|
|
|
pub use static_pad_template::*;
|
2017-07-03 10:56:26 +00:00
|
|
|
|
2018-03-15 09:43:35 +00:00
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
mod promise;
|
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
pub use promise::*;
|
|
|
|
|
2020-01-29 12:40:17 +00:00
|
|
|
pub mod bus;
|
2018-04-01 08:30:03 +00:00
|
|
|
mod element;
|
2018-03-19 10:53:01 +00:00
|
|
|
|
2018-11-19 16:37:00 +00:00
|
|
|
mod bin;
|
2018-11-19 23:22:22 +00:00
|
|
|
|
2019-05-12 13:38:40 +00:00
|
|
|
mod allocator;
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use allocator::AllocatorExtManual;
|
2019-05-12 13:38:16 +00:00
|
|
|
mod pipeline;
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use pipeline::GstPipelineExtManual;
|
2019-05-12 13:38:16 +00:00
|
|
|
|
2019-05-11 15:00:03 +00:00
|
|
|
mod allocation_params;
|
|
|
|
pub use self::allocation_params::AllocationParams;
|
|
|
|
|
2018-03-19 10:53:01 +00:00
|
|
|
// OS dependent Bus extensions (also import the other plateform mod for doc)
|
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
cfg_if! {
|
|
|
|
if #[cfg(unix)] {
|
|
|
|
mod bus_unix;
|
|
|
|
#[cfg(feature = "dox")]
|
|
|
|
mod bus_windows;
|
|
|
|
} else {
|
|
|
|
mod bus_windows;
|
|
|
|
#[cfg(feature = "dox")]
|
|
|
|
mod bus_unix;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-29 14:10:10 +00:00
|
|
|
mod child_proxy;
|
2017-11-11 10:21:55 +00:00
|
|
|
mod clock_time;
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod clock_time_serde;
|
2017-12-01 09:21:20 +00:00
|
|
|
mod date_time;
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
|
|
|
mod date_time_serde;
|
2018-05-09 09:20:59 +00:00
|
|
|
mod device_monitor;
|
2018-04-01 08:30:03 +00:00
|
|
|
mod device_provider;
|
|
|
|
mod enums;
|
2019-05-10 16:07:02 +00:00
|
|
|
pub use enums::MessageType;
|
2018-04-01 08:30:03 +00:00
|
|
|
mod ghost_pad;
|
|
|
|
mod gobject;
|
|
|
|
mod iterator;
|
|
|
|
mod object;
|
|
|
|
mod pad;
|
|
|
|
mod parse_context;
|
|
|
|
mod proxy_pad;
|
2019-05-23 20:28:07 +00:00
|
|
|
pub use proxy_pad::ProxyPadExtManual;
|
2018-04-01 08:30:03 +00:00
|
|
|
mod tag_setter;
|
2018-10-28 11:30:41 +00:00
|
|
|
pub use bin::GstBinExtManual;
|
2018-04-25 08:10:06 +00:00
|
|
|
pub use element::{ElementExtManual, ElementMessageType, NotifyWatchId};
|
2018-07-27 10:36:40 +00:00
|
|
|
pub use element::{
|
|
|
|
ELEMENT_METADATA_AUTHOR, ELEMENT_METADATA_DESCRIPTION, ELEMENT_METADATA_DOC_URI,
|
|
|
|
ELEMENT_METADATA_ICON_NAME, ELEMENT_METADATA_KLASS, ELEMENT_METADATA_LONGNAME,
|
|
|
|
};
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use object::GstObjectExtManual;
|
2018-03-19 10:53:01 +00:00
|
|
|
|
|
|
|
// OS dependent Bus extensions (also import the other plateform trait for doc)
|
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
cfg_if! {
|
|
|
|
if #[cfg(unix)] {
|
|
|
|
pub use bus_unix::UnixBusExtManual;
|
|
|
|
#[cfg(feature = "dox")]
|
|
|
|
pub use bus_windows::WindowsBusExtManual;
|
|
|
|
} else {
|
|
|
|
pub use bus_windows::WindowsBusExtManual;
|
|
|
|
#[cfg(feature = "dox")]
|
|
|
|
pub use bus_unix::UnixBusExtManual;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-04 12:34:05 +00:00
|
|
|
pub use self::iterator::{Iterator, IteratorError, IteratorImpl, StdIterator};
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use child_proxy::ChildProxyExtManual;
|
|
|
|
pub use clock_time::ClockTime;
|
2019-01-19 11:59:46 +00:00
|
|
|
pub use device_monitor::{DeviceMonitorExtManual, DeviceMonitorFilterId};
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use device_provider::DeviceProviderExtManual;
|
2018-07-27 10:36:40 +00:00
|
|
|
pub use enums::{
|
|
|
|
ClockError, ClockSuccess, FlowError, FlowSuccess, PadLinkError, PadLinkSuccess,
|
|
|
|
StateChangeError, StateChangeSuccess, TagError,
|
|
|
|
};
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use gobject::GObjectExtManualGst;
|
|
|
|
pub use pad::{PadExtManual, PadProbeData, PadProbeId, PadProbeInfo};
|
|
|
|
pub use parse_context::ParseContext;
|
2019-06-04 09:34:50 +00:00
|
|
|
mod plugin_feature;
|
|
|
|
pub use plugin_feature::PluginFeatureExtManual;
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use tag_setter::TagSetterExtManual;
|
2017-12-09 16:20:21 +00:00
|
|
|
|
2017-12-17 12:26:17 +00:00
|
|
|
mod plugin;
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use plugin::GstPluginExtManual;
|
2017-12-20 16:54:56 +00:00
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
2018-05-09 09:20:59 +00:00
|
|
|
mod stream;
|
2018-07-27 10:36:40 +00:00
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
|
|
|
pub mod stream_collection;
|
2017-12-17 12:26:17 +00:00
|
|
|
|
2017-12-19 17:13:54 +00:00
|
|
|
mod typefind;
|
|
|
|
pub use typefind::*;
|
|
|
|
|
2017-12-09 16:20:21 +00:00
|
|
|
pub mod format;
|
|
|
|
pub use format::{FormattedValue, GenericFormattedValue, SpecificFormattedValue};
|
2018-07-28 15:23:45 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod format_serde;
|
2017-07-05 08:09:49 +00:00
|
|
|
|
2017-07-31 09:45:04 +00:00
|
|
|
mod segment;
|
|
|
|
pub use segment::*;
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod segment_serde;
|
2017-07-31 09:45:04 +00:00
|
|
|
|
2017-08-08 20:37:48 +00:00
|
|
|
pub mod toc;
|
|
|
|
pub use toc::{Toc, TocEntry, TocEntryRef, TocRef};
|
2018-07-16 19:46:10 +00:00
|
|
|
#[cfg(feature = "ser_de")]
|
2018-07-30 19:10:34 +00:00
|
|
|
mod toc_serde;
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2017-08-13 22:40:43 +00:00
|
|
|
mod clock;
|
2019-09-25 14:17:39 +00:00
|
|
|
pub use clock::{AtomicClockReturn, ClockExtManual, ClockId};
|
2017-08-13 22:40:43 +00:00
|
|
|
|
2018-03-07 09:07:30 +00:00
|
|
|
mod buffer_pool;
|
|
|
|
pub use buffer_pool::*;
|
|
|
|
|
2018-03-15 08:46:49 +00:00
|
|
|
mod pad_template;
|
|
|
|
|
2018-11-29 19:18:06 +00:00
|
|
|
mod param_spec;
|
|
|
|
pub use param_spec::*;
|
|
|
|
|
2017-08-17 13:17:02 +00:00
|
|
|
pub mod functions;
|
|
|
|
pub use functions::*;
|
|
|
|
|
2017-05-12 12:24:03 +00:00
|
|
|
use std::ptr;
|
|
|
|
|
2017-07-03 09:26:40 +00:00
|
|
|
pub fn init() -> Result<(), glib::Error> {
|
2017-05-12 12:24:03 +00:00
|
|
|
unsafe {
|
2017-07-03 09:26:40 +00:00
|
|
|
let mut error = ptr::null_mut();
|
2019-03-19 07:58:20 +00:00
|
|
|
if from_glib(gst_sys::gst_init_check(
|
2017-07-10 21:33:24 +00:00
|
|
|
ptr::null_mut(),
|
|
|
|
ptr::null_mut(),
|
|
|
|
&mut error,
|
|
|
|
)) {
|
2017-07-03 09:26:40 +00:00
|
|
|
Ok(())
|
|
|
|
} else {
|
|
|
|
Err(from_glib_full(error))
|
|
|
|
}
|
2017-05-12 12:24:03 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-25 12:31:45 +00:00
|
|
|
|
2019-11-14 10:44:17 +00:00
|
|
|
/// Deinitialize GStreamer
|
|
|
|
///
|
|
|
|
/// # Safety
|
|
|
|
///
|
|
|
|
/// This must only be called once during the lifetime of the process, once no GStreamer threads
|
|
|
|
/// are running anymore and all GStreamer resources are released.
|
2018-08-04 09:39:38 +00:00
|
|
|
pub unsafe fn deinit() {
|
2019-03-19 07:58:20 +00:00
|
|
|
gst_sys::gst_deinit();
|
2018-08-04 09:39:38 +00:00
|
|
|
}
|
|
|
|
|
2019-03-19 07:58:20 +00:00
|
|
|
pub const BUFFER_OFFSET_NONE: u64 = gst_sys::GST_BUFFER_OFFSET_NONE;
|
2017-11-11 10:21:55 +00:00
|
|
|
pub const CLOCK_TIME_NONE: ClockTime = ClockTime(None);
|
|
|
|
|
|
|
|
pub const SECOND: ClockTime = ClockTime(Some(1_000_000_000));
|
|
|
|
pub const MSECOND: ClockTime = ClockTime(Some(1_000_000));
|
|
|
|
pub const USECOND: ClockTime = ClockTime(Some(1_000));
|
|
|
|
pub const NSECOND: ClockTime = ClockTime(Some(1));
|
2017-08-29 08:07:59 +00:00
|
|
|
|
2017-11-11 12:00:50 +00:00
|
|
|
pub const SECOND_VAL: u64 = 1_000_000_000;
|
|
|
|
pub const MSECOND_VAL: u64 = 1_000_000;
|
|
|
|
pub const USECOND_VAL: u64 = 1_000;
|
|
|
|
pub const NSECOND_VAL: u64 = 1;
|
|
|
|
|
2019-03-19 07:58:20 +00:00
|
|
|
pub const FORMAT_PERCENT_MAX: u32 = gst_sys::GST_FORMAT_PERCENT_MAX as u32;
|
|
|
|
pub const FORMAT_PERCENT_SCALE: u32 = gst_sys::GST_FORMAT_PERCENT_SCALE as u32;
|
2017-08-17 14:58:15 +00:00
|
|
|
|
|
|
|
// Re-export all the traits in a prelude module, so that applications
|
|
|
|
// can always "use gst::prelude::*" without getting conflicts
|
|
|
|
pub mod prelude {
|
|
|
|
pub use glib::prelude::*;
|
|
|
|
|
|
|
|
pub use auto::traits::*;
|
|
|
|
|
2018-09-29 08:13:57 +00:00
|
|
|
pub use meta::MetaAPI;
|
|
|
|
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use allocator::AllocatorExtManual;
|
2018-10-28 11:30:41 +00:00
|
|
|
pub use bin::GstBinExtManual;
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use element::ElementExtManual;
|
2018-03-19 10:53:01 +00:00
|
|
|
|
|
|
|
// OS dependent Bus extensions (also import the other plateform trait for doc)
|
|
|
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
|
|
cfg_if! {
|
|
|
|
if #[cfg(unix)] {
|
|
|
|
pub use bus_unix::UnixBusExtManual;
|
|
|
|
#[cfg(feature = "dox")]
|
|
|
|
pub use bus_windows::WindowsBusExtManual;
|
|
|
|
} else {
|
|
|
|
pub use bus_windows::WindowsBusExtManual;
|
|
|
|
#[cfg(feature = "dox")]
|
|
|
|
pub use bus_unix::UnixBusExtManual;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use buffer_pool::BufferPoolExtManual;
|
2017-08-17 14:58:15 +00:00
|
|
|
pub use child_proxy::ChildProxyExtManual;
|
|
|
|
pub use clock::ClockExtManual;
|
2019-01-19 11:59:46 +00:00
|
|
|
pub use device_monitor::DeviceMonitorExtManual;
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use device_provider::DeviceProviderExtManual;
|
|
|
|
pub use gobject::GObjectExtManualGst;
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use message::MessageErrorDomain;
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use object::GstObjectExtManual;
|
|
|
|
pub use pad::PadExtManual;
|
2018-12-11 10:37:15 +00:00
|
|
|
pub use param_spec::GstParamSpecExt;
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use pipeline::GstPipelineExtManual;
|
|
|
|
pub use plugin::GstPluginExtManual;
|
2019-06-04 09:34:50 +00:00
|
|
|
pub use plugin_feature::PluginFeatureExtManual;
|
2019-05-23 20:28:07 +00:00
|
|
|
pub use proxy_pad::ProxyPadExtManual;
|
2018-04-01 08:30:03 +00:00
|
|
|
pub use tag_setter::TagSetterExtManual;
|
2019-10-17 10:04:29 +00:00
|
|
|
pub use typefind::TypeFindImpl;
|
2017-08-17 14:58:15 +00:00
|
|
|
pub use value::GstValueExt;
|
|
|
|
|
|
|
|
pub use miniobject::MiniObject;
|
2019-01-23 13:42:46 +00:00
|
|
|
pub use tags::{CustomTag, Tag};
|
2017-11-11 10:21:55 +00:00
|
|
|
|
|
|
|
pub use muldiv::MulDiv;
|
2017-12-09 16:20:21 +00:00
|
|
|
|
|
|
|
pub use format::{FormattedValue, SpecificFormattedValue};
|
2017-08-17 14:58:15 +00:00
|
|
|
}
|
2017-10-25 10:54:52 +00:00
|
|
|
|
|
|
|
mod utils;
|
2018-11-18 12:20:16 +00:00
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
pub mod subclass;
|