Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/SplashOutputDev.cc
diff options
context:
space:
mode:
authorMartin Kretzschmar <martink@src.gnome.org>2005-01-08 21:59:23 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-01-08 21:59:23 (GMT)
commit0607a5da99d7206625d8537fb28096d755721de3 (patch)
tree978330e3a78189ac0586d88026733112820051cb /pdf/xpdf/SplashOutputDev.cc
parentfed5ac607fbe74668f1b74c2022ef56b5ee25d61 (diff)
pdf/splash/SplashBitmap.cc (SplashBitmap, ~SplashBitmap, writePNMFile):
* pdf/splash/Splash.cc (clear, drawPixel, drawSpan, xorSpan, getPixel) (fillGlyph, fillImageMask, drawImage): pdf/splash/SplashBitmap.cc (SplashBitmap, ~SplashBitmap, writePNMFile): pdf/splash/SplashTypes.h: pdf/xpdf/SplashOutputDev (startPage, getColor, imageSrc): implement RGB8 packed mode for Splash. * pdf/xpdf/GDKSplashOutputDev.cc (GDKSplashOutputDev, redraw): use RGB8 packed mode, eliminates the pixbuf data creation loop.
Diffstat (limited to 'pdf/xpdf/SplashOutputDev.cc')
-rw-r--r--pdf/xpdf/SplashOutputDev.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf/xpdf/SplashOutputDev.cc b/pdf/xpdf/SplashOutputDev.cc
index 0284d82..58da12c 100644
--- a/pdf/xpdf/SplashOutputDev.cc
+++ b/pdf/xpdf/SplashOutputDev.cc
@@ -276,7 +276,8 @@ void SplashOutputDev::startPage(int pageNum, GfxState *state) {
switch (colorMode) {
case splashModeMono1: color.mono1 = 0; break;
case splashModeMono8: color.mono8 = 0; break;
- case splashModeRGB8: color.rgb8 = splashMakeRGB8(0, 0, 0); break;
+ case splashModeRGB8:
+ case splashModeRGB8Packed: color.rgb8 = splashMakeRGB8(0, 0, 0); break;
case splashModeBGR8Packed: color.bgr8 = splashMakeBGR8(0, 0, 0); break;
}
splash->setStrokePattern(new SplashSolidColor(color));
@@ -469,6 +470,7 @@ SplashPattern *SplashOutputDev::getColor(double gray, GfxRGB *rgb) {
pattern = new SplashSolidColor(color1);
break;
case splashModeRGB8:
+ case splashModeRGB8Packed:
color1.rgb8 = splashMakeRGB8(soutRound(255 * r),
soutRound(255 * g),
soutRound(255 * b));
@@ -1201,6 +1203,7 @@ GBool SplashOutputDev::imageSrc(void *data, SplashColor *pixel,
pixel->mono8 = soutRound(255 * gray);
break;
case splashModeRGB8:
+ case splashModeRGB8Packed:
imgData->colorMap->getRGB(pix, &rgb);
pixel->rgb8 = splashMakeRGB8(soutRound(255 * rgb.r),
soutRound(255 * rgb.g),