pub trait SeekableH264Source {
type NalLocation;
// Required methods
fn nal_boundaries(&mut self) -> &[Self::NalLocation];
fn read_nal_units_at_location(
&mut self,
location: &Self::NalLocation,
) -> Result<Vec<Vec<u8>>>;
fn first_sps(&self) -> Option<Vec<u8>>;
fn first_pps(&self) -> Option<Vec<u8>>;
// Provided method
fn read_nal_units_at_locations(
&mut self,
locations: &[Self::NalLocation],
) -> Result<Vec<Vec<u8>>> { ... }
}Required Associated Types§
type NalLocation
Required Methods§
fn nal_boundaries(&mut self) -> &[Self::NalLocation]
Sourcefn read_nal_units_at_location(
&mut self,
location: &Self::NalLocation,
) -> Result<Vec<Vec<u8>>>
fn read_nal_units_at_location( &mut self, location: &Self::NalLocation, ) -> Result<Vec<Vec<u8>>>
Read multiple NAL units at the specified location
Provided Methods§
Sourcefn read_nal_units_at_locations(
&mut self,
locations: &[Self::NalLocation],
) -> Result<Vec<Vec<u8>>>
fn read_nal_units_at_locations( &mut self, locations: &[Self::NalLocation], ) -> Result<Vec<Vec<u8>>>
Read multiple NAL units at multiple specified locations