656 |
|
if (CHK(C_RFLT|C_TWRD|C_TFLT|C_GRY) != (C_RFLT|C_TFLT)) |
657 |
|
quiterr("internal error 1 in Luv2Color"); |
658 |
|
|
659 |
+ |
if (cvts.pconf != PLANARCONFIG_CONTIG) |
660 |
+ |
quiterr("cannot handle separate 32-bit color planes"); |
661 |
+ |
|
662 |
|
if (TIFFReadScanline(cvts.tif, cvts.t.p, y, 0) < 0) |
663 |
|
quiterr("error reading TIFF input"); |
664 |
|
/* also works for float RGB */ |
696 |
|
|
697 |
|
if (CHK(C_RFLT|C_TWRD|C_TFLT|C_GRY) != (C_TWRD|C_RFLT)) |
698 |
|
quiterr("internal error 1 in RRGGBB2Color"); |
699 |
+ |
|
700 |
+ |
if (cvts.pconf != PLANARCONFIG_CONTIG) |
701 |
+ |
quiterr("cannot handle separate 16-bit color planes"); |
702 |
|
|
703 |
|
if (TIFFReadScanline(cvts.tif, cvts.t.p, y, 0) < 0) |
704 |
|
quiterr("error reading TIFF input"); |