X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FFullBitmapOutputDev.cc;h=e809f07bbce580289162afa8484c0eb1905a2edd;hb=refs%2Fheads%2Fpoppler;hp=6b80802cac49d1de758d6d7585c48884a5ba3c12;hpb=3583bb178b85790e8459da31ef69f852e3d8c05f;p=swftools.git diff --git a/lib/pdf/FullBitmapOutputDev.cc b/lib/pdf/FullBitmapOutputDev.cc index 6b80802..e809f07 100644 --- a/lib/pdf/FullBitmapOutputDev.cc +++ b/lib/pdf/FullBitmapOutputDev.cc @@ -19,12 +19,20 @@ #include #include #include -#include "config.h" #include "FullBitmapOutputDev.h" #include "GFXOutputDev.h" -#include "SplashBitmap.h" -#include "SplashPattern.h" -#include "Splash.h" + +#ifdef HAVE_POPPLER + #include "splash/SplashBitmap.h" + #include "splash/SplashPattern.h" + #include "splash/Splash.h" +#else + #include "xpdf/config.h" + #include "SplashBitmap.h" + #include "SplashPattern.h" + #include "Splash.h" +#endif + #include "../log.h" #include "../png.h" #include "../devices/record.h" @@ -408,42 +416,34 @@ void FullBitmapOutputDev::eoFill(GfxState *state) msg(" eoFill"); rgbdev->eoFill(state); } -#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 -void FullBitmapOutputDev::tilingPatternFill(GfxState *state, Object *str, +POPPLER_TILING_PATERN_RETURN FullBitmapOutputDev::tilingPatternFill(GfxState *state, POPPLER_TILING_PATERN_GFX + Object *str, int paintType, Dict *resDict, double *mat, double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep) { msg(" tilingPatternFill"); - rgbdev->tilingPatternFill(state, str, paintType, resDict, mat, bbox, x0, y0, x1, y1, xStep, yStep); -} -#else -void FullBitmapOutputDev::tilingPatternFill(GfxState *state, Gfx *gfx, Object *str, - int paintType, Dict *resDict, - double *mat, double *bbox, - int x0, int y0, int x1, int y1, - double xStep, double yStep) -{ - msg(" tilingPatternFill"); - rgbdev->tilingPatternFill(state, gfx, str, paintType, resDict, mat, bbox, x0, y0, x1, y1, xStep, yStep); -} +#ifdef HAVE_POPPLER + return #endif + rgbdev->tilingPatternFill(state, POPPLER_TILING_PATERN_GFX_ARG str, paintType, resDict, mat, bbox, x0, y0, x1, y1, xStep, yStep); +} GBool FullBitmapOutputDev::functionShadedFill(GfxState *state, GfxFunctionShading *shading) { msg(" functionShadedFill"); return rgbdev->functionShadedFill(state, shading); } -GBool FullBitmapOutputDev::axialShadedFill(GfxState *state, GfxAxialShading *shading) +GBool FullBitmapOutputDev::axialShadedFill(GfxState *state, GfxAxialShading *shading POPPLER_RAXIAL_MIN_MAX) { msg(" axialShadedFill"); - return rgbdev->axialShadedFill(state, shading); + return rgbdev->axialShadedFill(state, shading POPPLER_RAXIAL_MIN_MAX_ARG); } -GBool FullBitmapOutputDev::radialShadedFill(GfxState *state, GfxRadialShading *shading) +GBool FullBitmapOutputDev::radialShadedFill(GfxState *state, GfxRadialShading *shading POPPLER_RAXIAL_MIN_MAX) { msg(" radialShadedFill"); - return rgbdev->radialShadedFill(state, shading); + return rgbdev->radialShadedFill(state, shading POPPLER_RAXIAL_MIN_MAX_ARG); } void FullBitmapOutputDev::clip(GfxState *state) @@ -530,37 +530,41 @@ void FullBitmapOutputDev::endType3Char(GfxState *state) rgbdev->endType3Char(state); } void FullBitmapOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str, - int width, int height, GBool invert, + int width, int height, GBool invert, POPPLER_INTERPOLATE GBool inlineImg) { msg(" drawImageMask"); - rgbdev->drawImageMask(state, ref, str, width, height, invert, inlineImg); + rgbdev->drawImageMask(state, ref, str, width, height, invert, POPPLER_INTERPOLATE_ARG inlineImg); } void FullBitmapOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, + int width, int height, GfxImageColorMap *colorMap, POPPLER_INTERPOLATE int *maskColors, GBool inlineImg) { msg(" drawImage"); - rgbdev->drawImage(state, ref, str, width, height, colorMap, maskColors, inlineImg); + rgbdev->drawImage(state, ref, str, width, height, colorMap, + POPPLER_INTERPOLATE_ARG maskColors, inlineImg); } void FullBitmapOutputDev::drawMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, - GfxImageColorMap *colorMap, + GfxImageColorMap *colorMap, POPPLER_INTERPOLATE Stream *maskStr, int maskWidth, int maskHeight, - GBool maskInvert) + GBool maskInvert POPPLER_MASK_INTERPOLATE) { msg(" drawMaskedImage"); - rgbdev->drawMaskedImage(state, ref, str, width, height, colorMap, maskStr, maskWidth, maskHeight, maskInvert); + rgbdev->drawMaskedImage(state, ref, str, width, height, colorMap, + POPPLER_INTERPOLATE_ARG maskStr, maskWidth, maskHeight, + maskInvert POPPLER_MASK_INTERPOLATE_ARG); } void FullBitmapOutputDev::drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, - GfxImageColorMap *colorMap, - Stream *maskStr, - int maskWidth, int maskHeight, - GfxImageColorMap *maskColorMap) + GfxImageColorMap *colorMap, POPPLER_INTERPOLATE + Stream *maskStr, int maskWidth, int maskHeight, + GfxImageColorMap *maskColorMap POPPLER_MASK_INTERPOLATE) { msg(" drawSoftMaskedImage"); - rgbdev->drawSoftMaskedImage(state, ref, str, width, height, colorMap, maskStr, maskWidth, maskHeight, maskColorMap); + rgbdev->drawSoftMaskedImage(state, ref, str, width, height, colorMap, + POPPLER_INTERPOLATE_ARG maskStr, maskWidth, maskHeight, + maskColorMap POPPLER_MASK_INTERPOLATE_ARG); } void FullBitmapOutputDev::drawForm(Ref id) {