1
//========================================================================
5
// This file is licensed under the GPLv2 or later
7
// Copyright (C) 2010 William Bader <williambader@hotmail.com>
8
// Copyright (C) 2011 Albert Astals Cid <aacid@kde.org>
10
//========================================================================
15
#include "poppler/poppler-config.h"
19
#include <sys/types.h>
20
#include "ImgWriter.h"
21
#include "splash/SplashTypes.h"
27
class TiffWriter : public ImgWriter
33
void setCompressionString(const char *compressionStringArg);
34
void setSplashMode(SplashColorMode splashModeArg);
36
bool init(FILE *openedFile, int width, int height, int hDPI, int vDPI);
38
bool writePointers(unsigned char **rowPointers, int rowCount);
39
bool writeRow(unsigned char **rowData);
44
TIFF *f; // LibTiff file context
45
int numRows; // number of rows in the image
46
int curRow; // number of rows written
47
const char *compressionString; // compression type
48
SplashColorMode splashMode; // format of image data