Trait vtc::FramerateSource
source · pub trait FramerateSource: Debug {
// Required method
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§
sourcefn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult
fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult
to_playback converts the implementing value to a Rational64 which represents the playback frames-per-second, then
Trait Implementations§
source§impl FramerateSource for &dyn FramerateSource
impl FramerateSource for &dyn FramerateSource
source§fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult
fn to_playback(&self, ntsc: Ntsc, is_timebase: bool) -> FramerateSourceResult
to_playback converts the implementing value to a Rational64 which represents the playback
frames-per-second, then