27 lines
512 B
C++
27 lines
512 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace pdfengine {
|
|
|
|
struct ImageDiagnostics {
|
|
uint64_t decodeTimeUs = 0;
|
|
uint64_t originalBytes = 0;
|
|
uint64_t decodedBytes = 0;
|
|
bool fromCache = false;
|
|
bool usedSoftMask = false;
|
|
};
|
|
|
|
struct ImageStatistics {
|
|
uint64_t memoryBytes = 0;
|
|
uint64_t compressedBytes = 0;
|
|
uint64_t decodedBytes = 0;
|
|
int width = 0;
|
|
int height = 0;
|
|
bool hasAlpha = false;
|
|
bool hasMask = false;
|
|
bool interpolated = false;
|
|
};
|
|
|
|
} // namespace pdfengine
|