Struct h264_reader::nal::RefNal
source · pub struct RefNal<'a> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a> Nal for RefNal<'a>
impl<'a> Nal for RefNal<'a>
type BufRead = RefNalReader<'a>
source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Returns whether the NAL is completely buffered.
source§fn header(&self) -> Result<NalHeader, NalHeaderError>
fn header(&self) -> Result<NalHeader, NalHeaderError>
Returns the NAL header or error if corrupt.
source§fn reader(&self) -> Self::BufRead
fn reader(&self) -> Self::BufRead
Reads the bytes in NAL form (including the header byte and
any emulation-prevention-three-bytes) as a
std::io::BufRead
.
If the NAL is incomplete, reads may fail with std::io::ErrorKind::WouldBlock
.source§fn rbsp_bytes(&self) -> ByteReader<Self::BufRead> ⓘ
fn rbsp_bytes(&self) -> ByteReader<Self::BufRead> ⓘ
Reads the bytes in RBSP form (skipping header byte and
emulation-prevention-three-bytes).
source§impl<'a> PartialEq for RefNal<'a>
impl<'a> PartialEq for RefNal<'a>
impl<'a> Eq for RefNal<'a>
impl<'a> StructuralPartialEq for RefNal<'a>
Auto Trait Implementations§
impl<'a> Freeze for RefNal<'a>
impl<'a> RefUnwindSafe for RefNal<'a>
impl<'a> Send for RefNal<'a>
impl<'a> Sync for RefNal<'a>
impl<'a> Unpin for RefNal<'a>
impl<'a> UnwindSafe for RefNal<'a>
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