[][src]Struct vcsr::models::MediaInfo

pub struct MediaInfo {
    pub ffprobe: Ffprobe,
    pub media_attributes: Option<MediaAttributes>,
}

Fields

ffprobe: Ffprobemedia_attributes: Option<MediaAttributes>

Implementations

impl MediaInfo[src]

pub fn new(path: &Path, _verbose: bool) -> Result<MediaInfo, VcsrError>[src]

pub fn probe_media(path: &Path) -> Result<Ffprobe, VcsrError>[src]

pub fn human_readable_size(num: f64) -> String[src]

pub fn find_video_stream(ffprobe: &Ffprobe) -> Option<&Stream>[src]

pub fn compute_display_resolution(
    ffprobe: &Ffprobe
) -> Result<Dimensions, VcsrError>
[src]

pub fn compute_duration(ffprobe: &Ffprobe) -> Option<(f32, String)>[src]

pub fn compute_filename(ffprobe: &Ffprobe) -> String[src]

pub fn compute_size(ffprobe: &Ffprobe) -> Result<(f64, String), Box<dyn Error>>[src]

pub fn pretty_duration(
    seconds: f32,
    show_centis: bool,
    show_millis: bool
) -> String
[src]

pub fn pretty_to_seconds(pretty_duration: &str) -> Result<f32, VcsrError>[src]

pub fn parse_duration(seconds: f32) -> Time[src]

pub fn desired_size(dimensions: &Dimensions, width: Option<u32>) -> Grid[src]

pub fn create_media_attributes(
    ffprobe: &Ffprobe
) -> Result<MediaAttributes, VcsrError>
[src]

Trait Implementations

impl Clone for MediaInfo[src]

impl Debug for MediaInfo[src]

impl Default for MediaInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.