pub struct Dtvcc708Decoder { /* private fields */ }Expand description
CEA-708 DTVCC stateful decoder.
Maintains the state of up to 8 caption windows across multiple packets.
Implementations§
Source§impl Dtvcc708Decoder
impl Dtvcc708Decoder
Sourcepub fn decode(&mut self, packet: &Dtvcc708Packet) -> Vec<CaptionWindow>
pub fn decode(&mut self, packet: &Dtvcc708Packet) -> Vec<CaptionWindow>
Decode a DTVCC packet and update internal window state.
Returns the current state of all 8 windows after processing.
Sourcepub fn current_window(&self) -> usize
pub fn current_window(&self) -> usize
Get the current active window index.
Sourcepub fn windows(&self) -> &[CaptionWindow; 8]
pub fn windows(&self) -> &[CaptionWindow; 8]
Get a reference to all 8 windows.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dtvcc708Decoder
impl RefUnwindSafe for Dtvcc708Decoder
impl Send for Dtvcc708Decoder
impl Sync for Dtvcc708Decoder
impl Unpin for Dtvcc708Decoder
impl UnsafeUnpin for Dtvcc708Decoder
impl UnwindSafe for Dtvcc708Decoder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more