pub struct Cea708CueExtractor { /* private fields */ }Available on crate feature
cc-data only.Expand description
Extracts Cues from a single CEA-708 (DTVCC) service (CTA-708-E),
wrapping a cc-data cc_data::decode::Cea708Decoder.
Reads cc_data::decode::Cea708Decoder::service_text for the configured
service number (1-6; service 1 is the primary caption service) after
each fed frame — see crate::webvtt module docs for the diff-based
boundary design and its documented losses (styling, window geometry,
cross-service merging).
Implementations§
Source§impl Cea708CueExtractor
impl Cea708CueExtractor
Sourcepub fn new(service_number: usize) -> Self
pub fn new(service_number: usize) -> Self
A new extractor tracking the given CEA-708 service number (1-6).
Sourcepub fn push_frame(&mut self, pts33: u64, triplets: &[CcTriplet])
pub fn push_frame(&mut self, pts33: u64, triplets: &[CcTriplet])
Feed one access unit’s CEA-708 triplets (already demuxed from its
cc_data()), tagged with that access unit’s raw 33-bit PTS. Non-708
triplets in triplets are ignored.
Auto Trait Implementations§
impl Freeze for Cea708CueExtractor
impl RefUnwindSafe for Cea708CueExtractor
impl Send for Cea708CueExtractor
impl Sync for Cea708CueExtractor
impl Unpin for Cea708CueExtractor
impl UnsafeUnpin for Cea708CueExtractor
impl UnwindSafe for Cea708CueExtractor
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