module HexaPDF::Filter::Predictor

Implements the predictor for the LZWDecode and FlateDecode filters.

Although a predictor isn’t a full PDF filter, it is implemented as one in HexaPDF terms to allow easy chaining of the predictor.

See: PDF2.0 s7.4.4.3, s7.4.4.4, partners.adobe.com/public/developer/en/tiff/TIFF6.pdf (p64f), www.w3.org/TR/PNG-Filters.html

Public Class Methods

decoder(source, options)
encoder(source, options)