pub struct PocReader { /* private fields */ }Expand description
Accumulates the H.264 parsing context (SPS/PPS) and the POC strategy as samples are read, so a whole file can be walked (in decode order) and each frame’s picture order count reconstructed the same way.
Implementations§
Source§impl PocReader
impl PocReader
pub fn new() -> Self
Sourcepub fn seed_from_container<H: SeekableH264Source>(
&mut self,
src: &H264Source<H>,
) -> Result<()>
pub fn seed_from_container<H: SeekableH264Source>( &mut self, src: &H264Source<H>, ) -> Result<()>
Seed SPS/PPS from container-level metadata (MP4). No-op for Annex B,
which carries them inline (handled in Self::poc_for_frame).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PocReader
impl RefUnwindSafe for PocReader
impl Send for PocReader
impl Sync for PocReader
impl Unpin for PocReader
impl UnsafeUnpin for PocReader
impl UnwindSafe for PocReader
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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