Skip to main content

SeekableH264Source

Trait SeekableH264Source 

Source
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§

Required Methods§

Source

fn nal_boundaries(&mut self) -> &[Self::NalLocation]

Source

fn read_nal_units_at_location( &mut self, location: &Self::NalLocation, ) -> Result<Vec<Vec<u8>>>

Read multiple NAL units at the specified location

Source

fn first_sps(&self) -> Option<Vec<u8>>

Return the first SPS

Source

fn first_pps(&self) -> Option<Vec<u8>>

Return the first PPS

Provided Methods§

Source

fn read_nal_units_at_locations( &mut self, locations: &[Self::NalLocation], ) -> Result<Vec<Vec<u8>>>

Read multiple NAL units at multiple specified locations

Implementors§