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
fn apply<W: Write>(&mut self, sink: W, prior: &[u8], line: &[u8]) -> Result<()>
Apply a filter and write the result to the sink.
fn reset(&mut self, opts: &Options)
Reset the filter to encode an image with the given options.