_TIFFGetMaxColorChannels: update for LOGLUV, ITULAB and ICCLAB that have 3 color channels
This commit is contained in:
parent
47be9914dd
commit
c4f9b53aa5
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user