|
Krita Source Code Documentation
|
#include <psd_image_data.h>
Public Member Functions | |
| PSDImageData (PSDHeader *header) | |
| bool | read (QIODevice &io, KisPaintDeviceSP dev) |
| bool | write (QIODevice &io, KisPaintDeviceSP dev, bool hasAlpha, psd_compression_type compressionType) |
| virtual | ~PSDImageData () |
Public Attributes | |
| QString | error |
Private Member Functions | |
| bool | readCMYK (QIODevice &io, KisPaintDeviceSP dev) |
| bool | readGrayscale (QIODevice &io, KisPaintDeviceSP dev) |
| bool | readLAB (QIODevice &io, KisPaintDeviceSP dev) |
| bool | readRGB (QIODevice &io, KisPaintDeviceSP dev) |
Private Attributes | |
| quint64 | m_channelDataLength {0} |
| QVector< ChannelInfo > | m_channelInfoRecords |
| QVector< int > | m_channelOffsets |
| quint32 | m_channelSize {0} |
| quint16 | m_compression {0} |
| PSDHeader * | m_header {nullptr} |
Definition at line 23 of file psd_image_data.h.
| PSDImageData::PSDImageData | ( | PSDHeader * | header | ) |
Definition at line 27 of file psd_image_data.cpp.
References m_header.
|
virtual |
Definition at line 32 of file psd_image_data.cpp.
| bool PSDImageData::read | ( | QIODevice & | io, |
| KisPaintDeviceSP | dev ) |
Definition at line 36 of file psd_image_data.cpp.
References ChannelInfo::channelDataLength, ChannelInfo::channelDataStart, PSDHeader::channelDepth, ChannelInfo::channelId, KisPaintDevice::clear(), PSDHeader::colormode, ChannelInfo::compressionType, dbgFile, PSDHeader::height, m_channelDataLength, m_channelInfoRecords, m_channelOffsets, m_channelSize, m_compression, m_header, PSDHeader::nChannels, psdread(), PsdPixelUtils::readChannels(), RLE, ChannelInfo::rleRowLengths, Uncompressed, PSDHeader::version, and PSDHeader::width.
|
private |
|
private |
|
private |
|
private |
| bool PSDImageData::write | ( | QIODevice & | io, |
| KisPaintDeviceSP | dev, | ||
| bool | hasAlpha, | ||
| psd_compression_type | compressionType ) |
Definition at line 134 of file psd_image_data.cpp.
References KoColorSpace::channelCount(), PSDHeader::channelDepth, KoColorSpace::colorChannelCount(), PSDHeader::colormode, KisPaintDevice::colorSpace(), PSDHeader::height, m_header, psdwrite(), PSDHeader::width, and PsdPixelUtils::writePixelDataCommon().
| QString PSDImageData::error |
Definition at line 33 of file psd_image_data.h.
|
private |
Definition at line 44 of file psd_image_data.h.
|
private |
Definition at line 47 of file psd_image_data.h.
|
private |
Definition at line 48 of file psd_image_data.h.
|
private |
Definition at line 45 of file psd_image_data.h.
|
private |
Definition at line 43 of file psd_image_data.h.
|
private |
Definition at line 41 of file psd_image_data.h.