~matttbe/ubuntu/raring/poppler/lp1072129

« back to all changes in this revision

Viewing changes to goo/TiffWriter.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2011-12-05 17:23:02 UTC
  • mfrom: (1.7.1)
  • Revision ID: package-import@ubuntu.com-20111205172302-tmhrk7s9hikjsa79
Tags: 0.18.2-0ubuntu1
* New upstream version, bugs fixed in the new version (lp: #869850):
  - lines and graphics wrongly rendered (lp: #603929) (lp: #780169)
  - rendering issues on some documents (lp: #784154)
  - some pages are displayed blank (lp: #817626)
* debian/control, debian/rules:
  - updated for the libpoppler and libpoppler-glib soname changes
* drop patches included in the new version
* debian/libpoppler-glib-dev.install:
  - drop deprecated test-poppler-glib
* debian/rules: 
  - drop deprecated qt3 and abiword configure options

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// TiffWriter.h
 
4
//
 
5
// This file is licensed under the GPLv2 or later
 
6
//
 
7
// Copyright (C) 2010 William Bader <williambader@hotmail.com>
 
8
// Copyright (C) 2011 Albert Astals Cid <aacid@kde.org>
 
9
//
 
10
//========================================================================
 
11
 
 
12
#ifndef TIFFWRITER_H
 
13
#define TIFFWRITER_H
 
14
 
 
15
#include "poppler/poppler-config.h"
 
16
 
 
17
#ifdef ENABLE_LIBTIFF
 
18
 
 
19
#include <sys/types.h>
 
20
#include "ImgWriter.h"
 
21
#include "splash/SplashTypes.h"
 
22
 
 
23
extern "C" {
 
24
#include "tiffio.h"
 
25
}
 
26
 
 
27
class TiffWriter : public ImgWriter
 
28
{
 
29
        public:
 
30
                TiffWriter();
 
31
                ~TiffWriter();
 
32
                
 
33
                void setCompressionString(const char *compressionStringArg);
 
34
                void setSplashMode(SplashColorMode splashModeArg);
 
35
 
 
36
                bool init(FILE *openedFile, int width, int height, int hDPI, int vDPI);
 
37
                
 
38
                bool writePointers(unsigned char **rowPointers, int rowCount);
 
39
                bool writeRow(unsigned char **rowData);
 
40
                
 
41
                bool close();
 
42
        
 
43
        private:
 
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
 
49
 
 
50
};
 
51
 
 
52
#endif
 
53
 
 
54
#endif