Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/formats/tiff/kis_tiff_converter.cc
Show First 20 Lines • Show All 307 Lines • ▼ Show 20 Line(s) | 306 | if (cs == 0) { | |||
---|---|---|---|---|---|
308 | TIFFClose(image); | 308 | TIFFClose(image); | ||
309 | return KisImageBuilder_RESULT_UNSUPPORTED_COLORSPACE; | 309 | return KisImageBuilder_RESULT_UNSUPPORTED_COLORSPACE; | ||
310 | } | 310 | } | ||
311 | 311 | | |||
312 | // Create the cmsTransform if needed | 312 | // Create the cmsTransform if needed | ||
313 | KoColorTransformation* transform = 0; | 313 | KoColorTransformation* transform = 0; | ||
314 | if (profile && !profile->isSuitableForOutput()) { | 314 | if (profile && !profile->isSuitableForOutput()) { | ||
315 | dbgFile << "The profile can't be used in krita, need conversion"; | 315 | dbgFile << "The profile can't be used in krita, need conversion"; | ||
316 | transform = KoColorSpaceRegistry::instance()->colorSpace(colorSpaceId.first, colorSpaceId.second, profile)->createColorConverter(cs, KoColorConversionTransformation::InternalRenderingIntent, KoColorConversionTransformation::InternalConversionFlags); | 316 | transform = KoColorSpaceRegistry::instance()->colorSpace(colorSpaceId.first, colorSpaceId.second, profile)->createColorConverter(cs, KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::internalConversionFlags()); | ||
317 | } | 317 | } | ||
318 | 318 | | |||
319 | // Check if there is an alpha channel | 319 | // Check if there is an alpha channel | ||
320 | int8 alphapos = -1; // <- no alpha | 320 | int8 alphapos = -1; // <- no alpha | ||
321 | // Check which extra is alpha if any | 321 | // Check which extra is alpha if any | ||
322 | dbgFile << "There are" << nbchannels << " channels and" << extrasamplescount << " extra channels"; | 322 | dbgFile << "There are" << nbchannels << " channels and" << extrasamplescount << " extra channels"; | ||
323 | if (sampleinfo) { // index images don't have any sampleinfo, and therefor sampleinfo == 0 | 323 | if (sampleinfo) { // index images don't have any sampleinfo, and therefor sampleinfo == 0 | ||
324 | for (int i = 0; i < extrasamplescount; i ++) { | 324 | for (int i = 0; i < extrasamplescount; i ++) { | ||
▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines |