~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to filter/pdftoopvp/oprs/OPVPWrapper_0_2.h

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  OPVPWrapper_0_2.h
 
3
*/
 
4
 
 
5
#ifndef OPVPWRAPPER_0_2_H
 
6
#define OPVPWRAPPER_0_2_H
 
7
 
 
8
#include "OPVPWrapper.h"
 
9
 
 
10
/* ROP */
 
11
#define OPVP_0_2_ROP_S  0xCC
 
12
#define OPVP_0_2_ROP_P  0xF0
 
13
#define OPVP_0_2_ROP_OR 0xB8
 
14
 
 
15
class OPVPWrapper_0_2: public OPVPWrapper {
 
16
private:
 
17
    static opvp_cspace_t cspace_0_2_to_1_0[];
 
18
    static OPVP_ColorSpace cspace_1_0_to_0_2[];
 
19
    static OPVP_ImageFormat iformat_1_0_to_0_2[];
 
20
    static int colorDepth_0_2[];
 
21
public:
 
22
    OPVPWrapper_0_2(void *opvpHandleA, int *opvpErrorNoA,
 
23
      OPVP_api_procs *procsA, int printerContextA);
 
24
    virtual ~OPVPWrapper_0_2();
 
25
    virtual opvp_int_t getErrorNo(); 
 
26
 
 
27
    virtual opvp_result_t ClosePrinter();
 
28
    virtual opvp_result_t StartJob(const opvp_char_t *jobInfo);
 
29
    virtual opvp_result_t EndJob();
 
30
    virtual opvp_result_t AbortJob();
 
31
    virtual opvp_result_t StartDoc(const opvp_char_t *docInfo);
 
32
    virtual opvp_result_t EndDoc();
 
33
    virtual opvp_result_t StartPage(const opvp_char_t *pageInfo);
 
34
    virtual opvp_result_t EndPage();
 
35
    virtual opvp_result_t QueryDeviceCapability(opvp_flag_t queryflag,
 
36
      opvp_int_t *buflen, opvp_byte_t *infoBuf);
 
37
    virtual opvp_result_t QueryDeviceInfo(opvp_flag_t queryflag,
 
38
      opvp_int_t *buflen, opvp_byte_t *infoBuf);
 
39
    virtual opvp_result_t ResetCTM();
 
40
    virtual opvp_result_t SetCTM(const opvp_ctm_t *pCTM);
 
41
    virtual opvp_result_t GetCTM(opvp_ctm_t *pCTM);
 
42
    virtual opvp_result_t InitGS();
 
43
    virtual opvp_result_t SaveGS();
 
44
    virtual opvp_result_t RestoreGS();
 
45
    virtual opvp_result_t QueryColorSpace(opvp_int_t *pnum,
 
46
      opvp_cspace_t *pcspace);
 
47
    virtual opvp_result_t SetColorSpace(opvp_cspace_t cspace);
 
48
    virtual opvp_result_t GetColorSpace(opvp_cspace_t *pcspace);
 
49
    virtual opvp_result_t SetFillMode(opvp_fillmode_t fillmode);
 
50
    virtual opvp_result_t GetFillMode(opvp_fillmode_t *pfillmode);
 
51
    virtual opvp_result_t SetAlphaConstant(opvp_float_t alpha);
 
52
    virtual opvp_result_t GetAlphaConstant(opvp_float_t *palpha);
 
53
    virtual opvp_result_t SetLineWidth(opvp_fix_t width);
 
54
    virtual opvp_result_t GetLineWidth(opvp_fix_t *pwidth);
 
55
    virtual opvp_result_t SetLineDash(opvp_int_t num, const opvp_fix_t *pdash);
 
56
    virtual opvp_result_t GetLineDash(opvp_int_t *pnum, opvp_fix_t *pdash);
 
57
    virtual opvp_result_t SetLineDashOffset(opvp_fix_t offset);
 
58
    virtual opvp_result_t GetLineDashOffset(opvp_fix_t *poffset);
 
59
    virtual opvp_result_t SetLineStyle(opvp_linestyle_t linestyle);
 
60
    virtual opvp_result_t GetLineStyle(opvp_linestyle_t *plinestyle);
 
61
    virtual opvp_result_t SetLineCap(opvp_linecap_t linecap);
 
62
    virtual opvp_result_t GetLineCap(opvp_linecap_t *plinecap);
 
63
    virtual opvp_result_t SetLineJoin(opvp_linejoin_t linejoin);
 
64
    virtual opvp_result_t GetLineJoin(opvp_linejoin_t *plinejoin);
 
65
    virtual opvp_result_t SetMiterLimit(opvp_fix_t miterlimit);
 
66
    virtual opvp_result_t GetMiterLimit(opvp_fix_t *pmiterlimit);
 
67
    virtual opvp_result_t SetPaintMode(opvp_paintmode_t paintmode);
 
68
    virtual opvp_result_t GetPaintMode(opvp_paintmode_t *ppaintmode);
 
69
    virtual opvp_result_t SetStrokeColor(const opvp_brush_t *brush);
 
70
    virtual opvp_result_t SetFillColor(const opvp_brush_t *brush);
 
71
    virtual opvp_result_t SetBgColor(const opvp_brush_t *brush);
 
72
    virtual opvp_result_t NewPath();
 
73
    virtual opvp_result_t EndPath();
 
74
    virtual opvp_result_t StrokePath();
 
75
    virtual opvp_result_t FillPath();
 
76
    virtual opvp_result_t StrokeFillPath();
 
77
    virtual opvp_result_t SetClipPath(opvp_cliprule_t clipRule);
 
78
    virtual opvp_result_t SetCurrentPoint(opvp_fix_t x, opvp_fix_t y);
 
79
    virtual opvp_result_t LinePath(opvp_pathmode_t flag,
 
80
      opvp_int_t npoints, const opvp_point_t *points);
 
81
    virtual opvp_result_t PolygonPath(opvp_int_t npolygons,
 
82
      const opvp_int_t *nvertexes, const opvp_point_t *points);
 
83
    virtual opvp_result_t RectanglePath(opvp_int_t nrectangles,
 
84
      const opvp_rectangle_t *reclangles);
 
85
    virtual opvp_result_t RoundRectanglePath(opvp_int_t nrectangles,
 
86
      const opvp_roundrectangle_t *reclangles);
 
87
    virtual opvp_result_t BezierPath(opvp_int_t npoints,
 
88
      const opvp_point_t *points);
 
89
    virtual opvp_result_t ArcPath(opvp_arcmode_t kind,
 
90
      opvp_arcdir_t dir, opvp_fix_t bbx0, opvp_fix_t bby0,
 
91
      opvp_fix_t bbx1, opvp_fix_t bby1, opvp_fix_t x0,
 
92
      opvp_fix_t y0, opvp_fix_t x1, opvp_fix_t y1);
 
93
    virtual opvp_result_t DrawImage(opvp_int_t sourceWidth,
 
94
      opvp_int_t sourceHeight, opvp_int_t sourcePitch,
 
95
      opvp_imageformat_t imageFormat,
 
96
      opvp_int_t destinationWidth, opvp_int_t destinationHeight,
 
97
      const void *imageData);
 
98
    virtual opvp_result_t StartDrawImage(opvp_int_t sourceWidth,
 
99
      opvp_int_t sourceHeight, opvp_int_t sourcePitch,
 
100
      opvp_imageformat_t imageFormat,
 
101
      opvp_int_t destinationWidth, opvp_int_t destinationHeight);
 
102
    virtual opvp_result_t TransferDrawImage(opvp_int_t count,
 
103
      const void *imageData);
 
104
    virtual opvp_result_t EndDrawImage();
 
105
    virtual opvp_result_t StartScanline(opvp_int_t yposition);
 
106
    virtual opvp_result_t Scanline(opvp_int_t nscanpairs,
 
107
      const opvp_int_t *scanpairs);
 
108
    virtual opvp_result_t EndScanline();
 
109
    virtual opvp_result_t StartRaster(opvp_int_t rasterWidth);
 
110
    virtual opvp_result_t TransferRasterData(opvp_int_t count,
 
111
      const opvp_byte_t *data);
 
112
    virtual opvp_result_t SkipRaster(opvp_int_t count);
 
113
    virtual opvp_result_t EndRaster();
 
114
    virtual opvp_result_t StartStream();
 
115
    virtual opvp_result_t TransferStreamData(opvp_int_t count,
 
116
      const void *data);
 
117
    virtual opvp_result_t EndStream();
 
118
    virtual opvp_result_t ResetClipPath();
 
119
 
 
120
private:
 
121
    OPVP_api_procs *procs_0_2;
 
122
    int *opvpErrorNo_0_2;
 
123
    int printerContext_0_2;
 
124
    opvp_cspace_t colorSpace;
 
125
};
 
126
 
 
127
#endif