pub struct VitcDecoder { /* private fields */ }Expand description
VITC decoder
Implementations§
Source§impl VitcDecoder
impl VitcDecoder
Sourcepub fn new(config: VitcReaderConfig) -> Self
pub fn new(config: VitcReaderConfig) -> Self
Create a new VITC decoder
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 decode VITC
Sourcepub fn is_synchronized(&self) -> bool
pub fn is_synchronized(&self) -> bool
Check if decoder is synchronized
Sourcepub fn crc_errors(&self) -> u32
pub fn crc_errors(&self) -> u32
Get CRC error count
Auto Trait Implementations§
impl Freeze for VitcDecoder
impl RefUnwindSafe for VitcDecoder
impl Send for VitcDecoder
impl Sync for VitcDecoder
impl Unpin for VitcDecoder
impl UnsafeUnpin for VitcDecoder
impl UnwindSafe for VitcDecoder
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