oops, GRAY is an lcms2 feature
This commit is contained in:
parent
01bd7cad04
commit
980adb394a
@ -247,6 +247,7 @@ vips_icc_build( VipsObject *object )
|
|||||||
TYPE_RGB_16 : TYPE_RGB_8;
|
TYPE_RGB_16 : TYPE_RGB_8;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef HAVE_LCMS2
|
||||||
case cmsSigGrayData:
|
case cmsSigGrayData:
|
||||||
code->input_bands = 1;
|
code->input_bands = 1;
|
||||||
code->input_format =
|
code->input_format =
|
||||||
@ -256,6 +257,7 @@ vips_icc_build( VipsObject *object )
|
|||||||
code->in->BandFmt == VIPS_FORMAT_USHORT ?
|
code->in->BandFmt == VIPS_FORMAT_USHORT ?
|
||||||
TYPE_GRAY_16 : TYPE_GRAY_8;
|
TYPE_GRAY_16 : TYPE_GRAY_8;
|
||||||
break;
|
break;
|
||||||
|
#endif /*HAVE_LCMS2*/
|
||||||
|
|
||||||
case cmsSigCmykData:
|
case cmsSigCmykData:
|
||||||
code->input_bands = 4;
|
code->input_bands = 4;
|
||||||
@ -305,6 +307,7 @@ vips_icc_build( VipsObject *object )
|
|||||||
TYPE_RGB_16 : TYPE_RGB_8;
|
TYPE_RGB_16 : TYPE_RGB_8;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef HAVE_LCMS2
|
||||||
case cmsSigGrayData:
|
case cmsSigGrayData:
|
||||||
colour->interpretation =
|
colour->interpretation =
|
||||||
icc->depth == 8 ?
|
icc->depth == 8 ?
|
||||||
@ -318,6 +321,7 @@ vips_icc_build( VipsObject *object )
|
|||||||
icc->depth == 16 ?
|
icc->depth == 16 ?
|
||||||
TYPE_GRAY_16 : TYPE_GRAY_8;
|
TYPE_GRAY_16 : TYPE_GRAY_8;
|
||||||
break;
|
break;
|
||||||
|
#endif /*HAVE_LCMS2*/
|
||||||
|
|
||||||
case cmsSigCmykData:
|
case cmsSigCmykData:
|
||||||
colour->interpretation = VIPS_INTERPRETATION_CMYK;
|
colour->interpretation = VIPS_INTERPRETATION_CMYK;
|
||||||
|
Loading…
Reference in New Issue
Block a user