Trait repng::filter::Filter [] [src]

pub trait Filter: for<'a> From<&'a Options> {
    fn apply<W: Write>(
        &mut self,
        sink: W,
        prior: &[u8],
        line: &[u8]
    ) -> Result<()>;
fn reset(&mut self, opts: &Options); }

A filter selection algorithm.

Required Methods

Apply a filter and write the result to the sink.

Reset the filter to encode an image with the given options.

Implementors