|
Krita Source Code Documentation
|
Public Member Functions | |
| bool | checkExtraLayersInfoConsistent (const QDomDocument &doc, std::set< std::string > exrLayerNames) |
| template<typename _T_ > | |
| void | decodeData1 (Imf::InputFile &file, ExrPaintLayerInfo &info, KisPaintLayerSP layer, int width, int xstart, int ystart, int height, Imf::PixelType ptype) |
| template<typename _T_ > | |
| void | decodeData4 (Imf::InputFile &file, ExrPaintLayerInfo &info, KisPaintLayerSP layer, int width, int xstart, int ystart, int height, Imf::PixelType ptype) |
| QString | fetchExtraLayersInfo (QList< ExrPaintLayerSaveInfo > &informationObjects) |
| QDomDocument | loadExtraLayersInfo (const Imf::Header &header) |
| void | makeLayerNamesUnique (QList< ExrPaintLayerSaveInfo > &informationObjects) |
| Private () | |
| void | recBuildPaintLayerSaveInfo (QList< ExrPaintLayerSaveInfo > &informationObjects, const QString &name, KisGroupLayerSP parent) |
| void | reportLayersNotSaved (const QSet< KisNodeSP > &layersNotSaved) |
| template<class WrapperType > | |
| void | unmultiplyAlpha (typename WrapperType::pixel_type *pixel) |
Public Attributes | |
| bool | alphaWasModified |
| KisDocument * | doc |
| QString | errorMessage |
| KisImageSP | image |
| bool | showNotifications |
Definition at line 126 of file exr_converter.cc.
|
inline |
Definition at line 127 of file exr_converter.cc.
| bool EXRConverter::Private::checkExtraLayersInfoConsistent | ( | const QDomDocument & | doc, |
| std::set< std::string > | exrLayerNames ) |
Definition at line 528 of file exr_converter.cc.
References dbgKrita, EXR_NAME, HDR_LAYER, KIS_ASSERT_RECOVER, and ppVar.
| void EXRConverter::Private::decodeData1 | ( | Imf::InputFile & | file, |
| ExrPaintLayerInfo & | info, | ||
| KisPaintLayerSP | layer, | ||
| int | width, | ||
| int | xstart, | ||
| int | ystart, | ||
| int | height, | ||
| Imf::PixelType | ptype ) |
Definition at line 434 of file exr_converter.cc.
References ExrPaintLayerInfo::channelMap, KoColorSpace::colorModelId(), KisPaintDevice::colorSpace(), dbgFile, GrayAColorModelID, KIS_ASSERT_RECOVER_RETURN, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), KisPaintLayer::paintDevice, and KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData().
| void EXRConverter::Private::decodeData4 | ( | Imf::InputFile & | file, |
| ExrPaintLayerInfo & | info, | ||
| KisPaintLayerSP | layer, | ||
| int | width, | ||
| int | xstart, | ||
| int | ystart, | ||
| int | height, | ||
| Imf::PixelType | ptype ) |
Definition at line 378 of file exr_converter.cc.
References Rgba< _T_ >::a, KoRgbTraits< _channels_type_ >::Pixel::alpha, Rgba< _T_ >::b, KoRgbTraits< _channels_type_ >::Pixel::blue, ExrPaintLayerInfo::channelMap, Rgba< _T_ >::g, KoRgbTraits< _channels_type_ >::Pixel::green, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), KisPaintLayer::paintDevice, Rgba< _T_ >::r, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData(), and KoRgbTraits< _channels_type_ >::Pixel::red.
| QString EXRConverter::Private::fetchExtraLayersInfo | ( | QList< ExrPaintLayerSaveInfo > & | informationObjects | ) |
Definition at line 1365 of file exr_converter.cc.
References KisSharedPtr< T >::data(), EXR_NAME, HDR_LAYER, KIS_ASSERT_RECOVER_NOOP, ExrPaintLayerSaveInfo::layer, ExrPaintLayerSaveInfo::name, and KisSaveXmlVisitor::savePaintLayerAttributes().
| QDomDocument EXRConverter::Private::loadExtraLayersInfo | ( | const Imf::Header & | header | ) |
Definition at line 513 of file exr_converter.cc.
References EXR_KRITA_LAYERS.
| void EXRConverter::Private::makeLayerNamesUnique | ( | QList< ExrPaintLayerSaveInfo > & | informationObjects | ) |
Definition at line 1212 of file exr_converter.cc.
References KIS_ASSERT_RECOVER.
| void EXRConverter::Private::recBuildPaintLayerSaveInfo | ( | QList< ExrPaintLayerSaveInfo > & | informationObjects, |
| const QString & | name, | ||
| KisGroupLayerSP | parent ) |
The EXR can store paint and group layers only. The rest will go to /dev/null :(
Definition at line 1255 of file exr_converter.cc.
References KisMetaData::Value::asArray(), ExrPaintLayerSaveInfo::channels, KoColorSpace::colorDepthId(), KoColorSpace::colorModelId(), KisPaintDevice::colorSpace(), KisMetaData::SchemaRegistry::create(), KisSharedPtr< T >::data(), dbgFile, Float16BitsColorDepthID, Float32BitsColorDepthID, GrayAColorModelID, HDR_LAYER, KisMetaData::SchemaRegistry::instance(), ExrPaintLayerSaveInfo::layer, ExrPaintLayerSaveInfo::layerDevice, ExrPaintLayerSaveInfo::name, ExrPaintLayerSaveInfo::pixelType, remap(), RGBAColorModelID, KisMetaData::Entry::value(), value(), warnFile, wrapLayerDevice(), and XYZAColorModelID.
Definition at line 1346 of file exr_converter.cc.
References EXRConverter::errorMessage(), KisBaseNode::name(), and KisPortingUtils::setUtf8OnStream().
| void EXRConverter::Private::unmultiplyAlpha | ( | typename WrapperType::pixel_type * | pixel | ) |
Division by a tiny alpha may result in an overflow of half value. That is why we use safe iterative approach.
Definition at line 318 of file exr_converter.cc.
References alphaWasModified.
| bool EXRConverter::Private::alphaWasModified |
Definition at line 136 of file exr_converter.cc.
| KisDocument* EXRConverter::Private::doc |
Definition at line 134 of file exr_converter.cc.
| QString EXRConverter::Private::errorMessage |
Definition at line 139 of file exr_converter.cc.
| KisImageSP EXRConverter::Private::image |
Definition at line 133 of file exr_converter.cc.
| bool EXRConverter::Private::showNotifications |
Definition at line 137 of file exr_converter.cc.