X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FInfoOutputDev.cc;h=053a8e3e0553580d1d5335003417482bfb5ed74d;hb=7c45653cc0504bc02a837a2e8050ca8f42705b09;hp=aa253be35c384f488262503f1cf40dccb31d6b78;hpb=cce10b37d5db502e4612ddfa5d7b14d41814445b;p=swftools.git diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index aa253be..053a8e3 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -1,18 +1,7 @@ -#include "config.h" +#include "../../config.h" #include "Object.h" #include "InfoOutputDev.h" #include "SplashOutputDev.h" -#ifdef HAVE_POPPLER -#include -#include -#include -#include -#else -#include "SplashTypes.h" -#include "SplashPath.h" -#include "SplashFont.h" -#include "SplashFontFile.h" -#endif #include "GfxState.h" #include "../log.h" #include "../types.h" @@ -569,42 +558,48 @@ void InfoOutputDev::restoreState(GfxState *state) void InfoOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str, int width, int height, GBool invert, + POPPLER_INTERPOLATE GBool inlineImg) { if(str->getKind()==strDCT) num_jpeg_images++; else num_ppm_images++; - OutputDev::drawImageMask(state,ref,str,width,height,invert,inlineImg); + OutputDev::drawImageMask(state,ref,str,width,height,invert, POPPLER_INTERPOLATE_ARG inlineImg); } void InfoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, + POPPLER_INTERPOLATE int *maskColors, GBool inlineImg) { if(str->getKind()==strDCT) num_jpeg_images++; else num_ppm_images++; - OutputDev::drawImage(state,ref,str,width,height,colorMap,maskColors,inlineImg); + OutputDev::drawImage(state,ref,str,width,height,colorMap, POPPLER_INTERPOLATE_ARG maskColors,inlineImg); } void InfoOutputDev::drawMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, + POPPLER_INTERPOLATE Stream *maskStr, int maskWidth, int maskHeight, - GBool maskInvert) + GBool maskInvert + POPPLER_MASK_INTERPOLATE) { if(str->getKind()==strDCT) num_jpeg_images++; else num_ppm_images++; - OutputDev::drawMaskedImage(state,ref,str,width,height,colorMap,maskStr,maskWidth,maskHeight,maskInvert); + OutputDev::drawMaskedImage(state,ref,str,width,height,colorMap, POPPLER_INTERPOLATE_ARG maskStr,maskWidth,maskHeight,maskInvert POPPLER_MASK_INTERPOLATE_ARG); } void InfoOutputDev::drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, + POPPLER_INTERPOLATE Stream *maskStr, int maskWidth, int maskHeight, - GfxImageColorMap *maskColorMap) + GfxImageColorMap *maskColorMap + POPPLER_MASK_INTERPOLATE) { if(str->getKind()==strDCT) num_jpeg_images++; else num_ppm_images++; - OutputDev::drawSoftMaskedImage(state,ref,str,width,height,colorMap,maskStr,maskWidth,maskHeight,maskColorMap); + OutputDev::drawSoftMaskedImage(state,ref,str,width,height,colorMap, POPPLER_INTERPOLATE_ARG maskStr,maskWidth,maskHeight,maskColorMap POPPLER_MASK_INTERPOLATE_ARG); } void InfoOutputDev::dumpfonts(gfxdevice_t*dev)