Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/KoColorConversionSystem_p.h
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Line(s) | |||||
296 | struct PathQualityChecker { | 296 | struct PathQualityChecker { | ||
297 | 297 | | |||
298 | PathQualityChecker(int _referenceDepth, bool _ignoreHdr, bool _ignoreColorCorrectness) | 298 | PathQualityChecker(int _referenceDepth, bool _ignoreHdr, bool _ignoreColorCorrectness) | ||
299 | : referenceDepth(_referenceDepth) | 299 | : referenceDepth(_referenceDepth) | ||
300 | , ignoreHdr(_ignoreHdr) | 300 | , ignoreHdr(_ignoreHdr) | ||
301 | , ignoreColorCorrectness(_ignoreColorCorrectness) | 301 | , ignoreColorCorrectness(_ignoreColorCorrectness) | ||
302 | {} | 302 | {} | ||
303 | 303 | | |||
304 | /// @return true if the path maximize all the criterions (except length) | 304 | /// @return true if the path maximize all the criteria (except length) | ||
305 | inline bool isGoodPath(const KoColorConversionSystem::Path & path) const { | 305 | inline bool isGoodPath(const KoColorConversionSystem::Path & path) const { | ||
306 | 306 | | |||
307 | return (path.respectColorCorrectness || ignoreColorCorrectness) && | 307 | return (path.respectColorCorrectness || ignoreColorCorrectness) && | ||
308 | (path.referenceDepth >= referenceDepth) && | 308 | (path.referenceDepth >= referenceDepth) && | ||
309 | (path.keepDynamicRange || ignoreHdr); | 309 | (path.keepDynamicRange || ignoreHdr); | ||
310 | } | 310 | } | ||
311 | 311 | | |||
312 | /** | 312 | /** | ||
Show All 23 Lines |