Commit 29cfa16d authored by Thomas Freitag's avatar Thomas Freitag Committed by Adam Reichold

Handle 1 bit RGB images in ICC colorspace

parent 4b56adac
......@@ -2847,7 +2847,7 @@ struct SplashOutImageData {
bool SplashOutputDev::useIccImageSrc(void *data) {
SplashOutImageData *imgData = (SplashOutImageData *)data;
if (!imgData->lookup && imgData->colorMap->getColorSpace()->getMode() == csICCBased) {
if (!imgData->lookup && imgData->colorMap->getColorSpace()->getMode() == csICCBased && imgData->colorMap->getBits() != 1) {
GfxICCBasedColorSpace *colorSpace = (GfxICCBasedColorSpace *) imgData->colorMap->getColorSpace();
switch (imgData->colorMode) {
case splashModeMono1:
......
......@@ -813,7 +813,7 @@ bool StreamPredictor::getNextLine() {
// apply TIFF (component) predictor
if (predictor == 2) {
if (nBits == 1) {
if (nBits == 1 && nComps == 1) {
inBuf = predLine[pixBytes - 1];
for (i = pixBytes; i < rowBytes; i += 8) {
// 1-bit add is just xor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment