pub struct Timecode {
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
pub frames: u8,
pub drop_frame: bool,
pub fps: u8,
}Expand description
Timecode for AAF (wrapper around oximedia-timecode)
Fields§
§hours: u8Hours (0-23)
minutes: u8Minutes (0-59)
seconds: u8Seconds (0-59)
frames: u8Frames (0 to fps-1)
drop_frame: boolDrop frame flag
fps: u8Frame rate
Implementations§
Source§impl Timecode
impl Timecode
Sourcepub fn new(
hours: u8,
minutes: u8,
seconds: u8,
frames: u8,
fps: u8,
drop_frame: bool,
) -> Self
pub fn new( hours: u8, minutes: u8, seconds: u8, frames: u8, fps: u8, drop_frame: bool, ) -> Self
Create a new timecode
Sourcepub fn from_position(position: Position, edit_rate: EditRate) -> Self
pub fn from_position(position: Position, edit_rate: EditRate) -> Self
Create from position and edit rate
Sourcepub fn to_position(&self, edit_rate: EditRate) -> Position
pub fn to_position(&self, edit_rate: EditRate) -> Position
Convert to position given edit rate
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timecode
impl<'de> Deserialize<'de> for Timecode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Timecode
impl Eq for Timecode
impl StructuralPartialEq for Timecode
Auto Trait Implementations§
impl Freeze for Timecode
impl RefUnwindSafe for Timecode
impl Send for Timecode
impl Sync for Timecode
impl Unpin for Timecode
impl UnsafeUnpin for Timecode
impl UnwindSafe for Timecode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more