pub struct VitcWriter { /* private fields */ }Expand description
VITC writer
Implementations§
Source§impl VitcWriter
impl VitcWriter
Sourcepub fn new(config: VitcWriterConfig) -> Self
pub fn new(config: VitcWriterConfig) -> Self
Create a new VITC writer with configuration
Sourcepub fn encode_line(
&mut self,
timecode: &Timecode,
field: u8,
) -> Result<Vec<u8>, TimecodeError>
pub fn encode_line( &mut self, timecode: &Timecode, field: u8, ) -> Result<Vec<u8>, TimecodeError>
Encode a timecode to VITC pixel data
Trait Implementations§
Source§impl TimecodeWriter for VitcWriter
impl TimecodeWriter for VitcWriter
Source§fn write_timecode(&mut self, timecode: &Timecode) -> Result<(), TimecodeError>
fn write_timecode(&mut self, timecode: &Timecode) -> Result<(), TimecodeError>
Write a timecode to the output
Source§fn frame_rate(&self) -> FrameRate
fn frame_rate(&self) -> FrameRate
Get the current frame rate
Auto Trait Implementations§
impl Freeze for VitcWriter
impl RefUnwindSafe for VitcWriter
impl Send for VitcWriter
impl Sync for VitcWriter
impl Unpin for VitcWriter
impl UnsafeUnpin for VitcWriter
impl UnwindSafe for VitcWriter
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