/usr/include/poppler/goo/TiffWriter.h is in libpoppler-dev 0.18.4-1ubuntu3.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | //========================================================================
//
// TiffWriter.h
//
// This file is licensed under the GPLv2 or later
//
// Copyright (C) 2010 William Bader <williambader@hotmail.com>
// Copyright (C) 2011 Albert Astals Cid <aacid@kde.org>
//
//========================================================================
#ifndef TIFFWRITER_H
#define TIFFWRITER_H
#include "poppler/poppler-config.h"
#ifdef ENABLE_LIBTIFF
#include <sys/types.h>
#include "ImgWriter.h"
#include "splash/SplashTypes.h"
extern "C" {
#include "tiffio.h"
}
class TiffWriter : public ImgWriter
{
public:
TiffWriter();
~TiffWriter();
void setCompressionString(const char *compressionStringArg);
void setSplashMode(SplashColorMode splashModeArg);
bool init(FILE *openedFile, int width, int height, int hDPI, int vDPI);
bool writePointers(unsigned char **rowPointers, int rowCount);
bool writeRow(unsigned char **rowData);
bool close();
private:
TIFF *f; // LibTiff file context
int numRows; // number of rows in the image
int curRow; // number of rows written
const char *compressionString; // compression type
SplashColorMode splashMode; // format of image data
};
#endif
#endif
|