Trait vtc::FramerateSource[][src]

pub trait FramerateSource: Debug {
    fn to_playback(
        &self,
        ntsc: Ntsc,
        is_timebase: bool
    ) -> FramerateSourceResult; }
Expand description

Implemented by any type that can be parsed into a rational playback frames-per-second value for a given an NTSC standard and whether the value represents a playback speed or a timecode timebase.

In most cases types that implement this trait can convert to a num::Rational64 value, then call num::Rational64::to_playback to complete the conversion.

Required methods

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

to_playback converts the implementing value to a Rational64 which represents the playback frames-per-second, then

Trait Implementations

impl FramerateSource for &dyn FramerateSource[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

to_playback converts the implementing value to a Rational64 which represents the playback frames-per-second, then Read more

Implementations on Foreign Types

impl<T> FramerateSource for &T where
    T: FramerateSource
[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for Rational64[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for Rational32[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for i64[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for u64[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for i32[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for u32[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for i16[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for u16[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for i8[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for u8[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for f64[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for f32[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for &str[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

impl FramerateSource for String[src]

fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult[src]

Implementors