diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-12 06:22:02 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-12 06:22:02 +0000 |
commit | b13aba1af09480e6e9b61272ad68ae3c624bebae (patch) | |
tree | 4fc04e5782b3bc9cf1752ac9914023d5492d7dfd /Build/source/libs/poppler/poppler-0.20.2/goo/TiffWriter.h | |
parent | bf47e17d4653c1a5c3a77bd6bd6e27dd52c05fc3 (diff) |
poppler 0.20.2
git-svn-id: svn://tug.org/texlive/trunk@27008 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.20.2/goo/TiffWriter.h')
-rw-r--r-- | Build/source/libs/poppler/poppler-0.20.2/goo/TiffWriter.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.20.2/goo/TiffWriter.h b/Build/source/libs/poppler/poppler-0.20.2/goo/TiffWriter.h new file mode 100644 index 00000000000..b2b0ea99cf9 --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.20.2/goo/TiffWriter.h @@ -0,0 +1,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 |