|
Krita Source Code Documentation
|
#include "exr_converter.h"#include <half.h>#include <ImfAttribute.h>#include <ImfChannelList.h>#include <ImfFrameBuffer.h>#include <ImfHeader.h>#include <ImfInputFile.h>#include <ImfOutputFile.h>#include <ImfStringAttribute.h>#include "exr_extra_tags.h"#include <QApplication>#include <QMessageBox>#include <QDomDocument>#include <QThread>#include <KoColorSpaceRegistry.h>#include <KoCompositeOpRegistry.h>#include <KoColorSpaceTraits.h>#include <KoColorModelStandardIds.h>#include <KoColor.h>#include <KoColorProfile.h>#include <KisDocument.h>#include <kis_group_layer.h>#include <kis_image.h>#include <kis_paint_device.h>#include <kis_paint_layer.h>#include <kis_transaction.h>#include "kis_iterator_ng.h"#include <kis_exr_layers_sorter.h>#include <kis_meta_data_entry.h>#include <kis_meta_data_schema.h>#include <kis_meta_data_schema_registry.h>#include <kis_meta_data_store.h>#include <kis_meta_data_value.h>#include "kis_kra_savexml_visitor.h"#include <KisImportExportAdditionalChecks.h>#include <KisPortingUtils.h>Go to the source code of this file.
Classes | |
| class | Encoder |
| class | EncoderImpl< _T_, size, alphaPos > |
| struct | ExrGroupLayerInfo |
| struct | ExrLayerInfoBase |
| struct | ExrPaintLayerInfo |
| struct | ExrPaintLayerSaveInfo |
| struct | ExrPixel_< _T_, size > |
| struct | GrayPixelWrapper< T > |
| struct | EXRConverter::Private |
| struct | ExrPaintLayerInfo::Remap |
| struct | Rgba< _T_ > |
| struct | RgbPixelWrapper< T > |
Macros | |
| #define | HDR_LAYER "HDR Layer" |
Enumerations | |
| enum | ImageType { IT_UNKNOWN , IT_FLOAT16 , IT_FLOAT32 , IT_UNSUPPORTED } |
Functions | |
| template<typename T > | |
| static T | alphaEpsilon () |
| template<typename T > | |
| static T | alphaNoiseThreshold () |
| void | encodeData (Imf::OutputFile &file, const QList< ExrPaintLayerSaveInfo > &informationObjects, int width, int height) |
| Encoder * | encoder (Imf::OutputFile &file, const ExrPaintLayerSaveInfo &info, int width) |
| ImageType | imfTypeToKisType (Imf::PixelType type) |
| const KoColorSpace * | kisTypeToColorSpace (QString colorModelID, ImageType imageType) |
| template<typename T , typename Pixel , int size, int alphaPos> | |
| void | multiplyAlpha (Pixel *pixel) |
| static bool | qFuzzyCompare (half p1, half p2) |
| static bool | qFuzzyIsNull (half h) |
| bool | recCheckGroup (const ExrGroupLayerInfo &group, QStringList list, int idx1, int idx2) |
| QString | remap (const QMap< QString, QString > ¤t2original, const QString ¤t) |
| ExrGroupLayerInfo * | searchGroup (QList< ExrGroupLayerInfo > *groups, QStringList list, int idx1, int idx2) |
| KisPaintDeviceSP | wrapLayerDevice (KisPaintDeviceSP device) |
| #define HDR_LAYER "HDR Layer" |
Definition at line 56 of file exr_converter.cc.
| enum ImageType |
| Enumerator | |
|---|---|
| IT_UNKNOWN | |
| IT_FLOAT16 | |
| IT_FLOAT32 | |
| IT_UNSUPPORTED | |
Definition at line 81 of file exr_converter.cc.
|
inlinestatic |
Definition at line 222 of file exr_converter.cc.
|
inlinestatic |
Definition at line 228 of file exr_converter.cc.
| void encodeData | ( | Imf::OutputFile & | file, |
| const QList< ExrPaintLayerSaveInfo > & | informationObjects, | ||
| int | width, | ||
| int | height ) |
Definition at line 1075 of file exr_converter.cc.
References Encoder::encodeData(), encoder(), and Encoder::prepareFrameBuffer().
| Encoder * encoder | ( | Imf::OutputFile & | file, |
| const ExrPaintLayerSaveInfo & | info, | ||
| int | width ) |
Definition at line 1035 of file exr_converter.cc.
References KoColorSpace::channelCount(), ExrPaintLayerSaveInfo::channels, KoColorSpace::colorDepthId(), KisPaintDevice::colorSpace(), dbgFile, Float16BitsColorDepthID, Float32BitsColorDepthID, ExrPaintLayerSaveInfo::layerDevice, ExrPaintLayerSaveInfo::name, and ExrPaintLayerSaveInfo::pixelType.
| ImageType imfTypeToKisType | ( | Imf::PixelType | type | ) |
Definition at line 174 of file exr_converter.cc.
References IT_FLOAT16, IT_FLOAT32, IT_UNKNOWN, and IT_UNSUPPORTED.
| const KoColorSpace * kisTypeToColorSpace | ( | QString | colorModelID, |
| ImageType | imageType ) |
Our user settings are only for the RGB color model, for other models just use the default one provided by the color space.
Definition at line 190 of file exr_converter.cc.
References KoColorSpaceRegistry::colorSpace(), KoColorSpaceRegistry::colorSpaceId(), KoColorSpaceRegistry::defaultProfileForColorSpace(), Float16BitsColorDepthID, Float32BitsColorDepthID, KoID::id(), KoColorSpaceRegistry::instance(), IT_FLOAT16, IT_FLOAT32, KisConfig::readEntry(), and RGBAColorModelID.
| void multiplyAlpha | ( | Pixel * | pixel | ) |
Definition at line 356 of file exr_converter.cc.
|
inlinestatic |
Definition at line 233 of file exr_converter.cc.
|
inlinestatic |
Definition at line 238 of file exr_converter.cc.
| bool recCheckGroup | ( | const ExrGroupLayerInfo & | group, |
| QStringList | list, | ||
| int | idx1, | ||
| int | idx2 ) |
Definition at line 485 of file exr_converter.cc.
References ExrLayerInfoBase::name, ExrLayerInfoBase::parent, and recCheckGroup().
| QString remap | ( | const QMap< QString, QString > & | current2original, |
| const QString & | current ) |
Definition at line 1204 of file exr_converter.cc.
| ExrGroupLayerInfo * searchGroup | ( | QList< ExrGroupLayerInfo > * | groups, |
| QStringList | list, | ||
| int | idx1, | ||
| int | idx2 ) |
Definition at line 494 of file exr_converter.cc.
References ExrLayerInfoBase::name, ExrLayerInfoBase::parent, recCheckGroup(), and searchGroup().
| KisPaintDeviceSP wrapLayerDevice | ( | KisPaintDeviceSP | device | ) |
We should try to keep the same profile of the space when possible (i.e. when the color model is kept the same)
Definition at line 1096 of file exr_converter.cc.
References KoColorSpace::colorDepthId(), KoColorSpace::colorModelId(), KisPaintDevice::colorSpace(), KoColorSpaceRegistry::colorSpace(), KisPaintDevice::convertTo(), Float16BitsColorDepthID, Float32BitsColorDepthID, GrayAColorModelID, KoID::id(), KoColorSpaceRegistry::instance(), KoColorSpace::profile(), and RGBAColorModelID.