Changeset View
Changeset View
Standalone View
Standalone View
plugins/color/lcms2engine/LcmsEnginePlugin.cpp
Context not available. | |||||
65 | #include "colorspaces/ycbcr_u16/YCbCrU16ColorSpace.h" | 65 | #include "colorspaces/ycbcr_u16/YCbCrU16ColorSpace.h" | ||
---|---|---|---|---|---|
66 | #include "colorspaces/ycbcr_f32/YCbCrF32ColorSpace.h" | 66 | #include "colorspaces/ycbcr_f32/YCbCrF32ColorSpace.h" | ||
67 | 67 | | |||
68 | #include "LcmsRGBP2020PQColorSpace.h" | ||||
69 | | ||||
68 | #include <KoConfig.h> | 70 | #include <KoConfig.h> | ||
69 | 71 | | |||
70 | #ifdef HAVE_OPENEXR | 72 | #ifdef HAVE_OPENEXR | ||
Context not available. | |||||
166 | KoColorProfile *rgbProfile = LcmsColorProfileContainer::createFromLcmsProfile(cmsCreate_sRGBProfile()); | 168 | KoColorProfile *rgbProfile = LcmsColorProfileContainer::createFromLcmsProfile(cmsCreate_sRGBProfile()); | ||
167 | registry->addProfile(rgbProfile); | 169 | registry->addProfile(rgbProfile); | ||
168 | 170 | | |||
169 | registry->add(new RgbU8ColorSpaceFactory()); | 171 | registry->add(new LcmsRGBP2020PQColorSpaceFactoryWrapper<RgbU8ColorSpaceFactory>()); | ||
170 | registry->add(new RgbU16ColorSpaceFactory()); | 172 | registry->add(new LcmsRGBP2020PQColorSpaceFactoryWrapper<RgbU16ColorSpaceFactory>()); | ||
171 | #ifdef HAVE_LCMS24 | 173 | #ifdef HAVE_LCMS24 | ||
172 | #ifdef HAVE_OPENEXR | 174 | #ifdef HAVE_OPENEXR | ||
173 | registry->add(new RgbF16ColorSpaceFactory()); | 175 | registry->add(new LcmsRGBP2020PQColorSpaceFactoryWrapper<RgbF16ColorSpaceFactory>()); | ||
174 | #endif | 176 | #endif | ||
175 | #endif | 177 | #endif | ||
176 | registry->add(new RgbF32ColorSpaceFactory()); | 178 | registry->add(new LcmsRGBP2020PQColorSpaceFactoryWrapper<RgbF32ColorSpaceFactory>()); | ||
177 | 179 | | |||
178 | KoHistogramProducerFactoryRegistry::instance()->add( | 180 | KoHistogramProducerFactoryRegistry::instance()->add( | ||
179 | new KoBasicHistogramProducerFactory<KoBasicU8HistogramProducer> | 181 | new KoBasicHistogramProducerFactory<KoBasicU8HistogramProducer> | ||
Context not available. |