Krita Source Code Documentation
Loading...
Searching...
No Matches
psd_layer_record.h File Reference
#include "kritapsd_export.h"
#include <QByteArray>
#include <QString>
#include <QVector>
#include <kis_node.h>
#include <kis_paint_device.h>
#include <kis_types.h>
#include <psd.h>
#include "psd_additional_layer_info_block.h"
#include "psd_header.h"

Go to the source code of this file.

Classes

struct  ChannelInfo
 
struct  PSDLayerRecord::LayerBlendingRanges::LayerBlendingRange
 
struct  PSDLayerRecord::LayerBlendingRanges
 
struct  PSDLayerRecord::LayerMaskData
 
class  PSDLayerRecord
 

Enumerations

enum  psd_layer_type {
  psd_layer_type_normal , psd_layer_type_hidden , psd_layer_type_folder , psd_layer_type_solid_color ,
  psd_layer_type_gradient_fill , psd_layer_type_pattern_fill , psd_layer_type_levels , psd_layer_type_curves ,
  psd_layer_type_brightness_contrast , psd_layer_type_color_balance , psd_layer_type_hue_saturation , psd_layer_type_selective_color ,
  psd_layer_type_threshold , psd_layer_type_invert , psd_layer_type_posterize , psd_layer_type_channel_mixer ,
  psd_layer_type_gradient_map , psd_layer_type_photo_filter
}
 

Functions

KRITAPSD_EXPORT QDebug operator<< (QDebug dbg, const ChannelInfo &layer)
 
KRITAPSD_EXPORT QDebug operator<< (QDebug dbg, const PSDLayerRecord &layer)
 
QDebug operator<< (QDebug dbg, const PSDLayerRecord::LayerBlendingRanges::LayerBlendingRange &data)
 

Enumeration Type Documentation

◆ psd_layer_type

Enumerator
psd_layer_type_normal 
psd_layer_type_hidden 
psd_layer_type_folder 
psd_layer_type_solid_color 
psd_layer_type_gradient_fill 
psd_layer_type_pattern_fill 
psd_layer_type_levels 
psd_layer_type_curves 
psd_layer_type_brightness_contrast 
psd_layer_type_color_balance 
psd_layer_type_hue_saturation 
psd_layer_type_selective_color 
psd_layer_type_threshold 
psd_layer_type_invert 
psd_layer_type_posterize 
psd_layer_type_channel_mixer 
psd_layer_type_gradient_map 
psd_layer_type_photo_filter 

Definition at line 27 of file psd_layer_record.h.

27 {
46};
@ psd_layer_type_brightness_contrast
@ psd_layer_type_channel_mixer
@ psd_layer_type_levels
@ psd_layer_type_hue_saturation
@ psd_layer_type_color_balance
@ psd_layer_type_photo_filter
@ psd_layer_type_gradient_map
@ psd_layer_type_invert
@ psd_layer_type_threshold
@ psd_layer_type_posterize
@ psd_layer_type_pattern_fill
@ psd_layer_type_curves
@ psd_layer_type_gradient_fill
@ psd_layer_type_normal
@ psd_layer_type_selective_color
@ psd_layer_type_folder
@ psd_layer_type_solid_color
@ psd_layer_type_hidden

Function Documentation

◆ operator<<() [1/3]

KRITAPSD_EXPORT QDebug operator<< ( QDebug dbg,
const ChannelInfo & layer )

Definition at line 1035 of file psd_layer_record.cpp.

1036{
1037#ifndef NODEBUG
1038 dbg.nospace() << "\tChannel type" << channel.channelId << "size: " << channel.channelDataLength << "compression type" << channel.compressionType << "\n";
1039#endif
1040 return dbg.nospace();
1041}

References ChannelInfo::channelDataLength, ChannelInfo::channelId, and ChannelInfo::compressionType.

◆ operator<<() [2/3]

KRITAPSD_EXPORT QDebug operator<< ( QDebug dbg,
const PSDLayerRecord & layer )

Definition at line 1012 of file psd_layer_record.cpp.

1013{
1014#ifndef NODEBUG
1015 dbg.nospace() << "valid: " << const_cast<PSDLayerRecord *>(&layer)->valid();
1016 dbg.nospace() << ", name: " << layer.layerName;
1017 dbg.nospace() << ", top: " << layer.top;
1018 dbg.nospace() << ", left:" << layer.left;
1019 dbg.nospace() << ", bottom: " << layer.bottom;
1020 dbg.nospace() << ", right: " << layer.right;
1021 dbg.nospace() << ", number of channels: " << layer.nChannels;
1022 dbg.nospace() << ", blendModeKey: " << layer.blendModeKey;
1023 dbg.nospace() << ", opacity: " << layer.opacity;
1024 dbg.nospace() << ", clipping: " << layer.clipping;
1025 dbg.nospace() << ", transparency protected: " << layer.transparencyProtected;
1026 dbg.nospace() << ", visible: " << layer.visible;
1027 dbg.nospace() << ", irrelevant: " << layer.irrelevant << "\n";
1028 Q_FOREACH (const ChannelInfo *channel, layer.channelInfoRecords) {
1029 dbg.space() << channel;
1030 }
1031#endif
1032 return dbg.nospace();
1033}
QVector< ChannelInfo * > channelInfoRecords

References PSDLayerRecord::blendModeKey, PSDLayerRecord::bottom, PSDLayerRecord::channelInfoRecords, PSDLayerRecord::clipping, PSDLayerRecord::irrelevant, PSDLayerRecord::layerName, PSDLayerRecord::left, PSDLayerRecord::nChannels, PSDLayerRecord::opacity, PSDLayerRecord::right, PSDLayerRecord::top, PSDLayerRecord::transparencyProtected, and PSDLayerRecord::visible.

◆ operator<<() [3/3]