You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/processing/imagestructs.h
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -41,18 +41,19 @@ namespace Image
41
41
/// @brief Stores data for an image
42
42
structData
43
43
{
44
-
uint32_t index = 0; // image index counter
45
-
std::string fileName; // input file name
46
-
Magick::ImageType type = Magick::ImageType::UndefinedType; // input image type
47
-
Magick::Geometry size = {0, 0}; // image size
48
-
DataType dataType = DataType::Unknown; // image data type
49
-
ColorFormat colorFormat = ColorFormat::Unknown; // image color format
50
-
std::vector<uint16_t> mapData; // raw screen / map data (only if dataType == Tilemap)
51
-
std::vector<uint8_t> data; // raw image / bitmap / tile data
52
-
std::vector<Magick::Color> colorMap; // image color map if paletted
53
-
ColorFormat colorMapFormat = ColorFormat::Unknown; // raw color map data format
54
-
std::vector<uint8_t> colorMapData; // raw color map data
55
-
uint32_t maxMemoryNeeded = 0; // max. intermediate memory needed to process the image. 0 if it can be directly written to destination (single processing stage)
44
+
uint32_t index = 0; // image index counter
45
+
std::string fileName; // input file name
46
+
Magick::ImageType type = Magick::ImageType::UndefinedType; // input image type
47
+
Magick::ClassType classType = Magick::ClassType::UndefinedClass; // input image class
48
+
Magick::Geometry size = {0, 0}; // image size
49
+
DataType dataType = DataType::Unknown; // image data type
50
+
ColorFormat colorFormat = ColorFormat::Unknown; // image color format
51
+
std::vector<uint16_t> mapData; // raw screen / map data (only if dataType == Tilemap)
52
+
std::vector<uint8_t> data; // raw image / bitmap / tile data
53
+
std::vector<Magick::Color> colorMap; // image color map if paletted
54
+
ColorFormat colorMapFormat = ColorFormat::Unknown; // raw color map data format
55
+
std::vector<uint8_t> colorMapData; // raw color map data
56
+
uint32_t maxMemoryNeeded = 0; // max. intermediate memory needed to process the image. 0 if it can be directly written to destination (single processing stage)
56
57
};
57
58
58
59
/// @brief Return true if the data has a color map, false if not.
0 commit comments