7 #ifndef SCIMGDATALOADER_PSD_H
8 #define SCIMGDATALOADER_PSD_H
12 #include "scimgdataloader.h"
34 virtual bool preloadAlphaChannel(
const QString& fn,
int page,
int res,
bool& hasAlpha);
35 virtual void loadEmbeddedProfile(
const QString& fn,
int page = 0);
36 virtual bool loadPicture(
const QString& fn,
int page,
int res,
bool thumbnail);
38 virtual bool useRawImage() {
return true; }
42 QList<unsigned int> colorTable;
43 QList<ScColor> colorTableSc;
44 int random_table[4096];
46 void initSupportedFormatList();
49 bool IsSupported(
const PSDHeader & header );
51 bool LoadPSD( QDataStream & s,
const PSDHeader & header);
52 bool LoadPSDResources( QDataStream & s,
const PSDHeader & header, uint dataOffset );
53 bool LoadPSDImgData( QDataStream & s,
const PSDHeader & header, uint dataOffset );
54 bool loadChannel( QDataStream & s,
const PSDHeader & header, QList<PSDLayer> &layerInfo, uint layer,
int channel,
int component,
RawImage &tmpImg);
55 bool loadLayerChannels( QDataStream & s,
const PSDHeader & header, QList<PSDLayer> &layerInfo, uint layer,
bool* firstLayer);
56 bool loadLayer( QDataStream & s,
const PSDHeader & header);
57 bool parseLayer( QDataStream & s,
const PSDHeader & header);
58 QString getLayerString(QDataStream & s);
59 void putDuotone(uchar *ptr, uchar cbyte);
61 QVector<int> curveTable1;
62 QVector<int> curveTable2;
63 QVector<int> curveTable3;
64 QVector<int> curveTable4;
Definition: scimgdataloader.h:19
Definition: scimgdataloader_psd.h:15
Definition: rawimage.h:15