mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-10 17:25:33 +00:00
gst/format: move related modules under a directory
This commit is contained in:
parent
69ea30dbda
commit
79377337a4
6 changed files with 15 additions and 13 deletions
|
@ -191,8 +191,8 @@ impl fmt::Debug for BufferList {
|
||||||
|
|
||||||
impl fmt::Debug for BufferListRef {
|
impl fmt::Debug for BufferListRef {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
use crate::clock_time::ClockTime;
|
|
||||||
use crate::utils::Displayable;
|
use crate::utils::Displayable;
|
||||||
|
use crate::ClockTime;
|
||||||
|
|
||||||
let size = self.iter().map(|b| b.size()).sum::<usize>();
|
let size = self.iter().map(|b| b.size()).sum::<usize>();
|
||||||
let (pts, dts) = self
|
let (pts, dts) = self
|
||||||
|
|
|
@ -1,7 +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.
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
mod macros;
|
||||||
|
|
||||||
use crate::utils::Displayable;
|
use crate::utils::Displayable;
|
||||||
use crate::ClockTime;
|
|
||||||
|
mod clock_time;
|
||||||
|
pub use clock_time::ClockTime;
|
||||||
|
|
||||||
|
#[cfg(feature = "serde")]
|
||||||
|
mod clock_time_serde;
|
||||||
|
|
||||||
use crate::Format;
|
use crate::Format;
|
||||||
use glib::translate::{FromGlib, GlibNoneError, IntoGlib, OptionIntoGlib, TryFromGlib};
|
use glib::translate::{FromGlib, GlibNoneError, IntoGlib, OptionIntoGlib, TryFromGlib};
|
||||||
use muldiv::MulDiv;
|
use muldiv::MulDiv;
|
|
@ -46,9 +46,6 @@ mod auto;
|
||||||
pub use crate::auto::functions::*;
|
pub use crate::auto::functions::*;
|
||||||
pub use crate::auto::*;
|
pub use crate::auto::*;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
mod macros;
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
mod serde_macros;
|
mod serde_macros;
|
||||||
|
@ -170,9 +167,6 @@ mod bus_unix;
|
||||||
mod bus_windows;
|
mod bus_windows;
|
||||||
|
|
||||||
mod child_proxy;
|
mod child_proxy;
|
||||||
mod clock_time;
|
|
||||||
#[cfg(feature = "serde")]
|
|
||||||
mod clock_time_serde;
|
|
||||||
mod date_time;
|
mod date_time;
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
mod date_time_serde;
|
mod date_time_serde;
|
||||||
|
@ -207,7 +201,6 @@ pub use crate::element::{
|
||||||
pub use crate::task_pool::{TaskHandle, TaskPoolTaskHandle};
|
pub use crate::task_pool::{TaskHandle, TaskPoolTaskHandle};
|
||||||
|
|
||||||
pub use self::iterator::{Iterator, IteratorError, IteratorImpl, StdIterator};
|
pub use self::iterator::{Iterator, IteratorError, IteratorImpl, StdIterator};
|
||||||
pub use crate::clock_time::ClockTime;
|
|
||||||
pub use crate::device_monitor::DeviceMonitorFilterId;
|
pub use crate::device_monitor::DeviceMonitorFilterId;
|
||||||
pub use crate::enums::{
|
pub use crate::enums::{
|
||||||
ClockError, ClockSuccess, FlowError, FlowSuccess, PadLinkError, PadLinkSuccess,
|
ClockError, ClockSuccess, FlowError, FlowSuccess, PadLinkError, PadLinkSuccess,
|
||||||
|
@ -226,10 +219,10 @@ mod typefind_factory;
|
||||||
|
|
||||||
pub mod format;
|
pub mod format;
|
||||||
pub use crate::format::{
|
pub use crate::format::{
|
||||||
CompatibleFormattedValue, FormattedValue, FormattedValueFullRange, FormattedValueIntrinsic,
|
ClockTime, CompatibleFormattedValue, FormattedValue, FormattedValueFullRange,
|
||||||
FormattedValueNoneBuilder, GenericFormattedValue, NoneSignedBuilder, Signed,
|
FormattedValueIntrinsic, FormattedValueNoneBuilder, GenericFormattedValue, NoneSignedBuilder,
|
||||||
SpecificFormattedValue, SpecificFormattedValueFullRange, SpecificFormattedValueIntrinsic,
|
Signed, SpecificFormattedValue, SpecificFormattedValueFullRange,
|
||||||
UnsignedIntoSigned,
|
SpecificFormattedValueIntrinsic, UnsignedIntoSigned,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
mod format_serde;
|
mod format_serde;
|
||||||
|
|
Loading…
Reference in a new issue