summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h')
-rw-r--r--Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h b/Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h
index 42986222976..fb86ed8fd72 100644
--- a/Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h
+++ b/Build/source/libs/xpdf/xpdf-src/splash/SplashClip.h
@@ -57,7 +57,9 @@ public:
// Interesect the clip with <path>.
SplashError clipToPath(SplashPath *path, SplashCoord *matrix,
- SplashCoord flatness, GBool eoA);
+ SplashCoord flatness, GBool eoA,
+ GBool enablePathSimplification,
+ SplashStrokeAdjustMode strokeAdjust);
// Tests a rectangle against the clipping region. Returns one of:
// - splashClipAllInside if the entire rectangle is inside the
@@ -70,18 +72,18 @@ public:
// outside the clipping region
SplashClipResult testRect(int rectXMin, int rectYMin,
int rectXMax, int rectYMax,
- GBool strokeAdjust);
+ SplashStrokeAdjustMode strokeAdjust);
// Clip a scan line. Modifies line[] by multiplying with clipping
// shape values for one scan line: ([x0, x1], y).
void clipSpan(Guchar *line, int y, int x0, int x1,
- GBool strokeAdjust);
+ SplashStrokeAdjustMode strokeAdjust);
// Like clipSpan(), but uses the values 0 and 255 only.
// Returns true if there are any non-zero values in the result
// (i.e., returns false if the entire line is clipped out).
GBool clipSpanBinary(Guchar *line, int y, int x0, int x1,
- GBool strokeAdjust);
+ SplashStrokeAdjustMode strokeAdjust);
// Get the rectangle part of the clip region.
SplashCoord getXMin() { return xMin; }
@@ -90,19 +92,19 @@ public:
SplashCoord getYMax() { return yMax; }
// Get the rectangle part of the clip region, in integer coordinates.
- int getXMinI(GBool strokeAdjust);
- int getXMaxI(GBool strokeAdjust);
- int getYMinI(GBool strokeAdjust);
- int getYMaxI(GBool strokeAdjust);
+ int getXMinI(SplashStrokeAdjustMode strokeAdjust);
+ int getXMaxI(SplashStrokeAdjustMode strokeAdjust);
+ int getYMinI(SplashStrokeAdjustMode strokeAdjust);
+ int getYMaxI(SplashStrokeAdjustMode strokeAdjust);
// Get the number of arbitrary paths used by the clip region.
- int getNumPaths() { return length; }
+ int getNumPaths();
private:
SplashClip(SplashClip *clip);
void grow(int nPaths);
- void updateIntBounds(GBool strokeAdjust);
+ void updateIntBounds(SplashStrokeAdjustMode strokeAdjust);
int hardXMin, hardYMin, // coordinates cannot fall outside of
hardXMax, hardYMax; // [hardXMin, hardXMax), [hardYMin, hardYMax)
@@ -120,6 +122,8 @@ private:
Guchar *eo;
SplashXPathScanner **scanners;
int length, size;
+ GBool isSimple;
+ SplashClip *prev;
Guchar *buf;
};