Struct scte35_reader::Scte35SectionProcessor
source · pub struct Scte35SectionProcessor<P, Ctx: DemuxContext>where
P: SpliceInfoProcessor,{ /* private fields */ }
Implementations§
source§impl<P, Ctx: DemuxContext> Scte35SectionProcessor<P, Ctx>where
P: SpliceInfoProcessor,
impl<P, Ctx: DemuxContext> Scte35SectionProcessor<P, Ctx>where
P: SpliceInfoProcessor,
pub fn new(processor: P) -> Scte35SectionProcessor<P, Ctx>
Trait Implementations§
source§impl<P, Ctx: DemuxContext> SectionProcessor for Scte35SectionProcessor<P, Ctx>where
P: SpliceInfoProcessor,
impl<P, Ctx: DemuxContext> SectionProcessor for Scte35SectionProcessor<P, Ctx>where
P: SpliceInfoProcessor,
type Context = Ctx
source§fn start_section<'a>(
&mut self,
_ctx: &mut Self::Context,
header: &SectionCommonHeader,
data: &'a [u8]
)
fn start_section<'a>(
&mut self,
_ctx: &mut Self::Context,
header: &SectionCommonHeader,
data: &'a [u8]
)
Note that the first 3 bytes of
section_data
contain the header fields that have also
been supplied to this call in the header
parameter. This is to allow implementers to
calculate a CRC over the whole section if required. Read more