Trait h264_reader::push::NalFragmentHandler
source · pub trait NalFragmentHandler {
// Required method
fn nal_fragment(&mut self, bufs: &[&[u8]], end: bool);
}
Expand description
Handles arbitrary fragments of NALs. See NalAccumulator.
It’s probably unnecessary to provide your own implementation of this trait except when benchmarking or testing a parser.
Required Methods§
sourcefn nal_fragment(&mut self, bufs: &[&[u8]], end: bool)
fn nal_fragment(&mut self, bufs: &[&[u8]], end: bool)
Pushes a fragment of a NAL.
The caller must ensure that each element of bufs
(if there are any)
is non-empty.