Struct mpeg2ts_reader::psi::DedupSectionSyntaxPayloadParser [−][src]
pub struct DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, { /* fields omitted */ }A wrapper around some other implementation of SectionSyntaxPayloadParser that passes-through
section data, unless the TableSyntaxHeader indicates a version_number which is the same as
the last data that was passed though.
This avoids the underlying code needing to re-parse duplicate copies of the section, which are usually inserted periodically in the Transport Stream.
Methods
impl<SSPP> DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, [src]
impl<SSPP> DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, pub fn new(inner: SSPP) -> DedupSectionSyntaxPayloadParser<SSPP>[src]
pub fn new(inner: SSPP) -> DedupSectionSyntaxPayloadParser<SSPP>Trait Implementations
impl<SSPP> SectionSyntaxPayloadParser for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, [src]
impl<SSPP> SectionSyntaxPayloadParser for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: SectionSyntaxPayloadParser, type Context = SSPP::Context
fn start_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader,
data: &'a [u8]
)[src]
fn start_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
header: &SectionCommonHeader,
table_syntax_header: &TableSyntaxHeader,
data: &'a [u8]
)NB the data buffer passed to will include the bytes which are represented by header and table_syntax_header (in order that the called code can check any CRC that covers the whole section). Read more
fn continue_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
data: &'a [u8]
)[src]
fn continue_syntax_section<'a>(
&mut self,
ctx: &mut Self::Context,
data: &'a [u8]
)fn reset(&mut self)[src]
fn reset(&mut self)Auto Trait Implementations
impl<SSPP> Send for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Send,
impl<SSPP> Send for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Send, impl<SSPP> Sync for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Sync,
impl<SSPP> Sync for DedupSectionSyntaxPayloadParser<SSPP> where
SSPP: Sync,