pub struct VitcReader { /* private fields */ }Expand description
VITC reader
Implementations§
Source§impl VitcReader
impl VitcReader
Sourcepub fn new(config: VitcReaderConfig) -> Self
pub fn new(config: VitcReaderConfig) -> Self
Create a new VITC reader with configuration
Sourcepub fn process_line(
&mut self,
line_number: u16,
field: u8,
pixels: &[u8],
) -> Result<Option<Timecode>, TimecodeError>
pub fn process_line( &mut self, line_number: u16, field: u8, pixels: &[u8], ) -> Result<Option<Timecode>, TimecodeError>
Process a video line and attempt to decode VITC
Sourcepub fn crc_errors(&self) -> u32
pub fn crc_errors(&self) -> u32
Get CRC error count
Trait Implementations§
Source§impl TimecodeReader for VitcReader
impl TimecodeReader for VitcReader
Source§fn read_timecode(&mut self) -> Result<Option<Timecode>, TimecodeError>
fn read_timecode(&mut self) -> Result<Option<Timecode>, TimecodeError>
Read the next timecode from the source
Source§fn frame_rate(&self) -> FrameRate
fn frame_rate(&self) -> FrameRate
Get the current frame rate
Source§fn is_synchronized(&self) -> bool
fn is_synchronized(&self) -> bool
Check if the reader is synchronized
Auto Trait Implementations§
impl Freeze for VitcReader
impl RefUnwindSafe for VitcReader
impl Send for VitcReader
impl Sync for VitcReader
impl Unpin for VitcReader
impl UnsafeUnpin for VitcReader
impl UnwindSafe for VitcReader
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