pub struct VitcParser { /* private fields */ }Expand description
VITC (Vertical Interval Timecode) parser.
Parses timecode data embedded in the vertical blanking interval of a video signal.
Implementations§
Source§impl VitcParser
impl VitcParser
Sourcepub fn new(frame_rate: FrameRate, pixels_per_line: usize) -> Self
pub fn new(frame_rate: FrameRate, pixels_per_line: usize) -> Self
Create a new VITC parser for the given frame rate and pixel clock.
Sourcepub fn set_sync_threshold(&mut self, threshold: f32)
pub fn set_sync_threshold(&mut self, threshold: f32)
Set the sync detection threshold (0.0–1.0).
Sourcepub fn parse_line(&self, pixels: &[f32]) -> VitcParseResult
pub fn parse_line(&self, pixels: &[f32]) -> VitcParseResult
Parse a VITC scan line represented as normalized pixel values (0.0–1.0).
Trait Implementations§
Source§impl Clone for VitcParser
impl Clone for VitcParser
Source§fn clone(&self) -> VitcParser
fn clone(&self) -> VitcParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VitcParser
impl RefUnwindSafe for VitcParser
impl Send for VitcParser
impl Sync for VitcParser
impl Unpin for VitcParser
impl UnsafeUnpin for VitcParser
impl UnwindSafe for VitcParser
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