pub trait Header: Sized {
    // Required methods
    fn parse<T: AsRef<[u8]>>(cursor: &Cursor<T>) -> Result<Self>;
    fn is_end(&self) -> bool;
    fn len(&self) -> usize;
}

Required Methods§

source

fn parse<T: AsRef<[u8]>>(cursor: &Cursor<T>) -> Result<Self>

Parse the NALU header, returning it.

source

fn is_end(&self) -> bool

Whether this header type indicates EOS.

source

fn len(&self) -> usize

The length of the header.

Implementors§

source§

impl Header for cros_codecs::decoders::h264::parser::NaluHeader

source§

impl Header for cros_codecs::decoders::h265::parser::NaluHeader