Struct gstreamer_video::VideoVBIParser
source · pub struct VideoVBIParser { /* private fields */ }
Expand description
A parser for detecting and extracting VideoAncillary
data from
Vertical Blanking Interval lines of component signals.
Implementations§
source§impl VideoVBIParser
impl VideoVBIParser
pub fn try_new( format: VideoFormat, pixel_width: u32, ) -> Result<VideoVBIParser, VideoVBIError>
sourcepub fn line_buffer_len(&self) -> usize
pub fn line_buffer_len(&self) -> usize
Returns the buffer length needed to store the line.
sourcepub fn add_line(&mut self, data: &[u8]) -> Result<(), VideoVBIError>
pub fn add_line(&mut self, data: &[u8]) -> Result<(), VideoVBIError>
Provide a new line of data to the self
. Call [ancillary()
][Self::ancillary()]
to get the Ancillary data that might be present on that line.
§data
The line of data to parse
pub fn iter(&mut self) -> AncillaryIter<'_> ⓘ
pub fn next_ancillary( &mut self, ) -> Option<Result<VideoAncillary, VideoVBIError>>
Trait Implementations§
source§impl Debug for VideoVBIParser
impl Debug for VideoVBIParser
source§impl Hash for VideoVBIParser
impl Hash for VideoVBIParser
source§impl Ord for VideoVBIParser
impl Ord for VideoVBIParser
source§fn cmp(&self, other: &VideoVBIParser) -> Ordering
fn cmp(&self, other: &VideoVBIParser) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VideoVBIParser
impl PartialEq for VideoVBIParser
source§fn eq(&self, other: &VideoVBIParser) -> bool
fn eq(&self, other: &VideoVBIParser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VideoVBIParser
impl PartialOrd for VideoVBIParser
source§fn partial_cmp(&self, other: &VideoVBIParser) -> Option<Ordering>
fn partial_cmp(&self, other: &VideoVBIParser) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> TryFrom<&'a VideoInfo> for VideoVBIParser
impl<'a> TryFrom<&'a VideoInfo> for VideoVBIParser
§type Error = VideoVBIError
type Error = VideoVBIError
The type returned in the event of a conversion error.
source§fn try_from(info: &'a VideoInfo) -> Result<VideoVBIParser, VideoVBIError>
fn try_from(info: &'a VideoInfo) -> Result<VideoVBIParser, VideoVBIError>
Performs the conversion.
impl Eq for VideoVBIParser
impl Send for VideoVBIParser
impl StructuralPartialEq for VideoVBIParser
impl Sync for VideoVBIParser
Auto Trait Implementations§
impl Freeze for VideoVBIParser
impl RefUnwindSafe for VideoVBIParser
impl Unpin for VideoVBIParser
impl UnwindSafe for VideoVBIParser
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