_TIFFGetMaxColorChannels: update for LOGLUV, ITULAB and ICCLAB that have 3 color channels

This commit is contained in:
Even Rouault 2018-04-14 17:17:34 +02:00
parent 47be9914dd
commit c4f9b53aa5
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -3520,15 +3520,15 @@ static int _TIFFGetMaxColorChannels( uint16 photometric )
case PHOTOMETRIC_YCBCR: case PHOTOMETRIC_YCBCR:
case PHOTOMETRIC_RGB: case PHOTOMETRIC_RGB:
case PHOTOMETRIC_CIELAB: case PHOTOMETRIC_CIELAB:
case PHOTOMETRIC_LOGLUV:
case PHOTOMETRIC_ITULAB:
case PHOTOMETRIC_ICCLAB:
return 3; return 3;
case PHOTOMETRIC_SEPARATED: case PHOTOMETRIC_SEPARATED:
case PHOTOMETRIC_MASK: case PHOTOMETRIC_MASK:
return 4; return 4;
case PHOTOMETRIC_LOGL: case PHOTOMETRIC_LOGL:
case PHOTOMETRIC_LOGLUV:
case PHOTOMETRIC_CFA: case PHOTOMETRIC_CFA:
case PHOTOMETRIC_ITULAB:
case PHOTOMETRIC_ICCLAB:
default: default:
return 0; return 0;
} }