[poppler] poppler/poppler: SplashOutputDev.cc,1.8,1.9
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed May 31 13:14:06 PDT 2006
Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv6676/poppler
Modified Files:
SplashOutputDev.cc
Log Message:
* poppler/SplashOutputDev.cc:
* splash/Splash.cc: Fix no splashModeRGB8Qt mode, that is, make it
show images
I'm sorry, really, i'll try to do better
Index: SplashOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/SplashOutputDev.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- SplashOutputDev.cc 23 May 2006 20:49:16 -0000 1.8
+++ SplashOutputDev.cc 31 May 2006 20:14:04 -0000 1.9
@@ -227,6 +227,7 @@
blend[0] = dest[0];
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
cvtRGBToHSV(src[0], src[1], src[2], &hs, &ss, &vs);
cvtRGBToHSV(dest[0], dest[1], dest[2], &hd, &sd, &vd);
cvtHSVToRGB(hs, sd, vd, &blend[0], &blend[1], &blend[2]);
@@ -273,6 +274,7 @@
blend[0] = dest[0];
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
cvtRGBToHSV(src[0], src[1], src[2], &hs, &ss, &vs);
cvtRGBToHSV(dest[0], dest[1], dest[2], &hd, &sd, &vd);
cvtHSVToRGB(hd, ss, vd, &blend[0], &blend[1], &blend[2]);
@@ -318,6 +320,7 @@
blend[0] = dest[0];
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
cvtRGBToHSV(src[0], src[1], src[2], &hs, &ss, &vs);
cvtRGBToHSV(dest[0], dest[1], dest[2], &hd, &sd, &vd);
cvtHSVToRGB(hs, ss, vd, &blend[0], &blend[1], &blend[2]);
@@ -364,6 +367,7 @@
blend[0] = dest[0];
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
cvtRGBToHSV(src[0], src[1], src[2], &hs, &ss, &vs);
cvtRGBToHSV(dest[0], dest[1], dest[2], &hd, &sd, &vd);
cvtHSVToRGB(hd, sd, vs, &blend[0], &blend[1], &blend[2]);
@@ -1935,6 +1939,7 @@
}
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
imgData.lookup = (SplashColorPtr)gmalloc(3 * n);
for (i = 0; i < n; ++i) {
pix = (Guchar)i;
@@ -1979,6 +1984,7 @@
srcMode = maskColors ? splashModeAMono8 : splashModeMono8;
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
srcMode = maskColors ? splashModeARGB8 : splashModeRGB8;
break;
case splashModeBGR8:
@@ -2215,6 +2221,7 @@
}
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
imgData.lookup = (SplashColorPtr)gmalloc(3 * n);
for (i = 0; i < n; ++i) {
pix = (Guchar)i;
@@ -2259,6 +2266,7 @@
srcMode = splashModeAMono8;
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
srcMode = splashModeARGB8;
break;
case splashModeBGR8:
@@ -2373,6 +2381,7 @@
}
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
imgData.lookup = (SplashColorPtr)gmalloc(3 * n);
for (i = 0; i < n; ++i) {
pix = (Guchar)i;
@@ -2417,6 +2426,7 @@
srcMode = splashModeMono8;
break;
case splashModeRGB8:
+ case splashModeRGB8Qt:
srcMode = splashModeRGB8;
break;
case splashModeBGR8:
More information about the poppler
mailing list