mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-11 07:30:57 +00:00
12f1eb15ca
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
31 lines
739 B
C++
31 lines
739 B
C++
#include <qpdf/QPDFStreamFilter.hh>
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#ifndef SF_FLATELZWDECODE_HH
|
|
# define SF_FLATELZWDECODE_HH
|
|
|
|
class SF_FlateLzwDecode: public QPDFStreamFilter
|
|
{
|
|
public:
|
|
SF_FlateLzwDecode(bool lzw);
|
|
virtual ~SF_FlateLzwDecode() = default;
|
|
|
|
virtual bool setDecodeParms(QPDFObjectHandle decode_parms);
|
|
virtual Pipeline* getDecodePipeline(Pipeline* next);
|
|
|
|
static std::shared_ptr<QPDFStreamFilter> flate_factory();
|
|
static std::shared_ptr<QPDFStreamFilter> lzw_factory();
|
|
|
|
private:
|
|
bool lzw;
|
|
int predictor;
|
|
int columns;
|
|
int colors;
|
|
int bits_per_component;
|
|
bool early_code_change;
|
|
std::vector<std::shared_ptr<Pipeline>> pipelines;
|
|
};
|
|
|
|
#endif // SF_FLATELZWDECODE_HH
|