25 lines
454 B
C++
25 lines
454 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
namespace pdfengine {
|
|
|
|
// Basic color spaces we might encounter
|
|
enum class ColorSpace {
|
|
DeviceGray,
|
|
DeviceRGB,
|
|
DeviceCMYK,
|
|
Indexed
|
|
};
|
|
|
|
// Holds decoded image data ready for the display list (typically RGBA)
|
|
struct ImageInfo {
|
|
int width = 0;
|
|
int height = 0;
|
|
int channels = 4; // 4 = RGBA
|
|
std::vector<uint8_t> pixelData; // Decoded raw pixels
|
|
};
|
|
|
|
} // namespace pdfengine
|