Trait frame_source::h264_source::SeekableH264Source

source ·
pub trait SeekableH264Source {
    type NalLocation;

    // Required methods
    fn nal_boundaries(&mut self) -> &[Self::NalLocation];
    fn read_nal(&mut self, location: &Self::NalLocation) -> Result<Vec<u8>>;

    // Provided method
    fn read_nals(
        &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(&mut self, location: &Self::NalLocation) -> Result<Vec<u8>>

Provided Methods§

source

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

Implementors§