|
Krita Source Code Documentation
|
Classes | |
| struct | ChannelWritingInfo |
Typedefs | |
| using | PixelFunc = std::function<void(int, const QMap<quint16, QByteArray> &, int, quint8 *)> |
Functions | |
| template<class Traits > | |
| Traits::channels_type | convertByteOrder (typename Traits::channels_type value) |
| template<> | |
| float | convertByteOrder< AlphaF32Traits > (float value) |
| template<> | |
| quint16 | convertByteOrder< AlphaU16Traits > (quint16 value) |
| template<> | |
| quint8 | convertByteOrder< AlphaU8Traits > (quint8 value) |
| template<> | |
| quint16 | convertByteOrder< KoBgrU16Traits > (quint16 value) |
| template<> | |
| quint32 | convertByteOrder< KoBgrU32Traits > (quint32 value) |
| template<> | |
| quint8 | convertByteOrder< KoBgrU8Traits > (quint8 value) |
| template<> | |
| float | convertByteOrder< KoCmykF32Traits > (float value) |
| template<> | |
| quint16 | convertByteOrder< KoCmykU16Traits > (quint16 value) |
| template<> | |
| quint8 | convertByteOrder< KoCmykU8Traits > (quint8 value) |
| template<> | |
| quint16 | convertByteOrder< KoGrayU16Traits > (quint16 value) |
| template<> | |
| quint32 | convertByteOrder< KoGrayU32Traits > (quint32 value) |
| template<> | |
| quint8 | convertByteOrder< KoGrayU8Traits > (quint8 value) |
| template<> | |
| float | convertByteOrder< KoLabF32Traits > (float value) |
| template<> | |
| quint16 | convertByteOrder< KoLabU16Traits > (quint16 value) |
| template<> | |
| quint8 | convertByteOrder< KoLabU8Traits > (quint8 value) |
| QMap< quint16, QByteArray > | fetchChannelsBytes (QIODevice &io, QVector< ChannelInfo * > channelInfoRecords, int row, int width, int channelSize, bool processMasks) |
| template<psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | preparePixelForWrite (quint8 *dataPlane, int numPixels, int channelSize, int channelId, psd_color_mode colorMode) |
| void | readAlphaMaskChannels (QIODevice &io, KisPaintDeviceSP device, int channelSize, const QRect &layerRect, QVector< ChannelInfo * > infoRecords, psd_byte_order byteOrder) |
| template<psd_byte_order byteOrder> | |
| void | readAlphaMaskChannelsImpl (QIODevice &io, KisPaintDeviceSP device, int channelSize, const QRect &layerRect, QVector< ChannelInfo * > infoRecords) |
| template<class Traits , psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | readAlphaMaskPixel (const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<psd_byte_order byteOrder> | |
| void | readAlphaMaskPixelCommon (int channelSize, const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| void | readChannels (QIODevice &io, KisPaintDeviceSP device, psd_color_mode colorMode, int channelSize, const QRect &layerRect, QVector< ChannelInfo * > infoRecords, psd_byte_order byteOrder) |
| template<psd_byte_order byteOrder> | |
| void | readChannelsImpl (QIODevice &io, KisPaintDeviceSP device, psd_color_mode colorMode, int channelSize, const QRect &layerRect, QVector< ChannelInfo * > infoRecords) |
| template<class Traits , psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| Traits::channels_type | readChannelValue (const QMap< quint16, QByteArray > &channelBytes, quint16 channelId, int col, typename Traits::channels_type defaultValue) |
| template<class Traits , psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | readCmykPixel (const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<psd_byte_order byteOrder> | |
| void | readCmykPixelCommon (int channelSize, const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| void | readCommon (KisPaintDeviceSP dev, QIODevice &io, const QRect &layerRect, QVector< ChannelInfo * > infoRecords, int channelSize, PixelFunc pixelFunc, bool processMasks) |
| template<class Traits , psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | readGrayPixel (const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<psd_byte_order byteOrder> | |
| void | readGrayPixelCommon (int channelSize, const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<class Traits , psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | readLabPixel (const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<psd_byte_order byteOrder> | |
| void | readLabPixelCommon (int channelSize, const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<class Traits , psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | readRgbPixel (const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<psd_byte_order byteOrder> | |
| void | readRgbPixelCommon (int channelSize, const QMap< quint16, QByteArray > &channelBytes, int col, quint8 *dstPtr) |
| template<class Traits > | |
| quint8 | truncateToOpacity (typename Traits::channels_type value) |
| template<> | |
| quint8 | truncateToOpacity< AlphaF32Traits > (typename AlphaF32Traits::channels_type value) |
| template<> | |
| quint8 | truncateToOpacity< AlphaU16Traits > (typename AlphaU16Traits::channels_type value) |
| template<> | |
| quint8 | truncateToOpacity< AlphaU8Traits > (typename AlphaU8Traits::channels_type value) |
| void | writeChannelDataRLE (QIODevice &io, const quint8 *plane, const int channelSize, const QRect &rc, const qint64 sizeFieldOffset, const qint64 rleBlockOffset, const bool writeCompressionType, psd_byte_order byteOrder) |
| template<psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | writeChannelDataRLEImpl (QIODevice &io, const quint8 *plane, const int channelSize, const QRect &rc, const qint64 sizeFieldOffset, const qint64 rleBlockOffset, const bool writeCompressionType) |
| template<psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | writeChannelDataZIPImpl (QIODevice &io, const quint8 *plane, const int channelSize, const QRect &rc, const qint64 sizeFieldOffset, const bool writeCompressionType) |
| void | writePixelDataCommon (QIODevice &io, KisPaintDeviceSP dev, const QRect &rc, psd_color_mode colorMode, int channelSize, bool alphaFirst, const bool writeCompressionType, QVector< ChannelWritingInfo > &writingInfoList, psd_compression_type compressionType, psd_byte_order byteOrder) |
| template<psd_byte_order byteOrder = psd_byte_order::psdBigEndian> | |
| void | writePixelDataCommonImpl (QIODevice &io, KisPaintDeviceSP dev, const QRect &rc, psd_color_mode colorMode, int channelSize, bool alphaFirst, const bool writeCompressionType, QVector< ChannelWritingInfo > &writingInfoList, psd_compression_type compressionType) |
| using PsdPixelUtils::PixelFunc = std::function<void(int, const QMap<quint16, QByteArray> &, int, quint8 *)> |
Definition at line 334 of file psd_pixel_utils.cpp.
| Traits::channels_type PsdPixelUtils::convertByteOrder | ( | typename Traits::channels_type | value | ) |
|
inline |
|
inline |
Definition at line 42 of file psd_pixel_utils.cpp.
References value().
|
inline |
|
inline |
Definition at line 78 of file psd_pixel_utils.cpp.
References value().
|
inline |
Definition at line 84 of file psd_pixel_utils.cpp.
References value().
|
inline |
|
inline |
Definition at line 102 of file psd_pixel_utils.cpp.
References value().
|
inline |
Definition at line 96 of file psd_pixel_utils.cpp.
References value().
|
inline |
|
inline |
Definition at line 60 of file psd_pixel_utils.cpp.
References value().
|
inline |
Definition at line 66 of file psd_pixel_utils.cpp.
References value().
|
inline |
|
inline |
Definition at line 120 of file psd_pixel_utils.cpp.
References value().
|
inline |
Definition at line 114 of file psd_pixel_utils.cpp.
References value().
|
inline |
| QMap< quint16, QByteArray > PsdPixelUtils::fetchChannelsBytes | ( | QIODevice & | io, |
| QVector< ChannelInfo * > | channelInfoRecords, | ||
| int | row, | ||
| int | width, | ||
| int | channelSize, | ||
| bool | processMasks ) |
Definition at line 301 of file psd_pixel_utils.cpp.
References ChannelInfo::channelDataStart, ChannelInfo::channelId, ChannelInfo::channelOffset, ChannelInfo::compressionType, dbgFile, RLE, ChannelInfo::rleRowLengths, Compression::uncompress(), and Uncompressed.
|
inline |
Definition at line 573 of file psd_pixel_utils.cpp.
References CMYK, CMYK64, psdBigEndian, and quint16_MAX.
| void KRITAPSD_EXPORT PsdPixelUtils::readAlphaMaskChannels | ( | QIODevice & | io, |
| KisPaintDeviceSP | device, | ||
| int | channelSize, | ||
| const QRect & | layerRect, | ||
| QVector< ChannelInfo * > | infoRecords, | ||
| psd_byte_order | byteOrder ) |
Definition at line 461 of file psd_pixel_utils.cpp.
References psdLittleEndian.
| void PsdPixelUtils::readAlphaMaskChannelsImpl | ( | QIODevice & | io, |
| KisPaintDeviceSP | device, | ||
| int | channelSize, | ||
| const QRect & | layerRect, | ||
| QVector< ChannelInfo * > | infoRecords ) |
Definition at line 455 of file psd_pixel_utils.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, and readCommon().
| void PsdPixelUtils::readAlphaMaskPixel | ( | const QMap< quint16, QByteArray > & | channelBytes, |
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 147 of file psd_pixel_utils.cpp.
References psdBigEndian.
| void PsdPixelUtils::readAlphaMaskPixelCommon | ( | int | channelSize, |
| const QMap< quint16, QByteArray > & | channelBytes, | ||
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 290 of file psd_pixel_utils.cpp.
| void KRITAPSD_EXPORT PsdPixelUtils::readChannels | ( | QIODevice & | io, |
| KisPaintDeviceSP | device, | ||
| psd_color_mode | colorMode, | ||
| int | channelSize, | ||
| const QRect & | layerRect, | ||
| QVector< ChannelInfo * > | infoRecords, | ||
| psd_byte_order | byteOrder ) |
Definition at line 438 of file psd_pixel_utils.cpp.
References psdLittleEndian.
| void PsdPixelUtils::readChannelsImpl | ( | QIODevice & | io, |
| KisPaintDeviceSP | device, | ||
| psd_color_mode | colorMode, | ||
| int | channelSize, | ||
| const QRect & | layerRect, | ||
| QVector< ChannelInfo * > | infoRecords ) |
Definition at line 407 of file psd_pixel_utils.cpp.
References Bitmap, CMYK, COLORMODE_UNKNOWN, DuoTone, Grayscale, Indexed, Lab, MultiChannel, readCommon(), and RGB.
|
inline |
Definition at line 161 of file psd_pixel_utils.cpp.
References dbgFile, and psdBigEndian.
| void PsdPixelUtils::readCmykPixel | ( | const QMap< quint16, QByteArray > & | channelBytes, |
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 211 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readCmykPixelCommon | ( | int | channelSize, |
| const QMap< quint16, QByteArray > & | channelBytes, | ||
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 266 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readCommon | ( | KisPaintDeviceSP | dev, |
| QIODevice & | io, | ||
| const QRect & | layerRect, | ||
| QVector< ChannelInfo * > | infoRecords, | ||
| int | channelSize, | ||
| PixelFunc | pixelFunc, | ||
| bool | processMasks ) |
don't write-access the row right after the the end of the read area
Definition at line 336 of file psd_pixel_utils.cpp.
References ChannelInfo::channelDataLength, ChannelInfo::channelDataStart, ChannelInfo::channelId, ChannelInfo::compressionType, KisPaintDevice::createHLineIteratorNG(), dbgFile, fetchChannelsBytes(), KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::nextPixel(), ppVar, KisSequentialIteratorBase< IteratorPolicy, SourcePolicy, ProgressPolicy >::rawData(), Compression::uncompress(), ZIP, and ZIPWithPrediction.
| void PsdPixelUtils::readGrayPixel | ( | const QMap< quint16, QByteArray > & | channelBytes, |
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 183 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readGrayPixelCommon | ( | int | channelSize, |
| const QMap< quint16, QByteArray > & | channelBytes, | ||
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 254 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readLabPixel | ( | const QMap< quint16, QByteArray > & | channelBytes, |
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 227 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readLabPixelCommon | ( | int | channelSize, |
| const QMap< quint16, QByteArray > & | channelBytes, | ||
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 278 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readRgbPixel | ( | const QMap< quint16, QByteArray > & | channelBytes, |
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 196 of file psd_pixel_utils.cpp.
| void PsdPixelUtils::readRgbPixelCommon | ( | int | channelSize, |
| const QMap< quint16, QByteArray > & | channelBytes, | ||
| int | col, | ||
| quint8 * | dstPtr ) |
Definition at line 242 of file psd_pixel_utils.cpp.
|
inline |
|
inline |
Definition at line 141 of file psd_pixel_utils.cpp.
References value().
|
inline |
Definition at line 135 of file psd_pixel_utils.cpp.
References value().
|
inline |
| void KRITAPSD_EXPORT PsdPixelUtils::writeChannelDataRLE | ( | QIODevice & | io, |
| const quint8 * | plane, | ||
| const int | channelSize, | ||
| const QRect & | rc, | ||
| const qint64 | sizeFieldOffset, | ||
| const qint64 | rleBlockOffset, | ||
| const bool | writeCompressionType, | ||
| psd_byte_order | byteOrder ) |
Definition at line 555 of file psd_pixel_utils.cpp.
References psdLittleEndian, and writeChannelDataRLEImpl().
| void PsdPixelUtils::writeChannelDataRLEImpl | ( | QIODevice & | io, |
| const quint8 * | plane, | ||
| const int | channelSize, | ||
| const QRect & | rc, | ||
| const qint64 | sizeFieldOffset, | ||
| const qint64 | rleBlockOffset, | ||
| const bool | writeCompressionType ) |
Definition at line 477 of file psd_pixel_utils.cpp.
References Compression::compress(), RLE, and SAFE_WRITE_EX.
| void PsdPixelUtils::writeChannelDataZIPImpl | ( | QIODevice & | io, |
| const quint8 * | plane, | ||
| const int | channelSize, | ||
| const QRect & | rc, | ||
| const qint64 | sizeFieldOffset, | ||
| const bool | writeCompressionType ) |
Definition at line 530 of file psd_pixel_utils.cpp.
References Compression::compress(), SAFE_WRITE_EX, and ZIP.
| void KRITAPSD_EXPORT PsdPixelUtils::writePixelDataCommon | ( | QIODevice & | io, |
| KisPaintDeviceSP | dev, | ||
| const QRect & | rc, | ||
| psd_color_mode | colorMode, | ||
| int | channelSize, | ||
| bool | alphaFirst, | ||
| const bool | writeCompressionType, | ||
| QVector< ChannelWritingInfo > & | writingInfoList, | ||
| psd_compression_type | compressionType, | ||
| psd_byte_order | byteOrder ) |
Definition at line 709 of file psd_pixel_utils.cpp.
References psdLittleEndian, and writePixelDataCommonImpl().
| void PsdPixelUtils::writePixelDataCommonImpl | ( | QIODevice & | io, |
| KisPaintDeviceSP | dev, | ||
| const QRect & | rc, | ||
| psd_color_mode | colorMode, | ||
| int | channelSize, | ||
| bool | alphaFirst, | ||
| const bool | writeCompressionType, | ||
| QVector< ChannelWritingInfo > & | writingInfoList, | ||
| psd_compression_type | compressionType ) |
Definition at line 613 of file psd_pixel_utils.cpp.
References KoChannelInfo::ALPHA, PsdPixelUtils::ChannelWritingInfo::channelId, KoColorSpace::channels, KoChannelInfo::channelType(), KisPaintDevice::colorSpace(), dbgFile, KoChannelInfo::displayOrderSorted(), KoChannelInfo::displayPosition(), KoChannelInfo::displayPositionToChannelIndex(), KIS_ASSERT_RECOVER_NOOP, KIS_ASSERT_RECOVER_RETURN, ppVar, PREPEND_METHOD, KisPaintDevice::readPlanarBytes(), RLE, PsdPixelUtils::ChannelWritingInfo::rleBlockOffset, PsdPixelUtils::ChannelWritingInfo::sizeFieldOffset, KisPaintDevice::x(), KisPaintDevice::y(), ZIP, and ZIPWithPrediction.