Lines Matching defs:spp
408 int spp = image->GetOptionInt(wxIMAGE_OPTION_SAMPLESPERPIXEL);
409 if ( !spp )
410 spp = 3;
426 TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, spp);
428 TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, spp*bpp == 1 ? PHOTOMETRIC_MINISBLACK
432 // scanlinesize if determined by spp and bpp
433 tsize_t linebytes = (tsize_t)image->GetWidth() * spp * bpp / 8;
435 if ( (image->GetWidth() % 8 > 0) && (spp * bpp < 8) )
440 if (TIFFScanlineSize(tif) > linebytes || (spp * bpp < 24))
465 if ( spp * bpp > 1 )