5#include "Containers/Array.h"
6#include "Containers/Map.h"
8#include "Serialization/Archive.h"
9#include "Serialization/StructuredArchive.h"
10#include "UObject/NameTypes.h"
13
14
15
21
22
23
24
25
26
27
28
29 virtual bool CompressImage(
const TArray< uint8 >& InUncompressedData,
const int32 InWidth,
const int32 InHeight, TArray< uint8 >& OutCompressedData ) = 0;
32
33
34
35
36
37
38
39
40 virtual bool DecompressImage(
const TArray< uint8 >& InCompressedData,
const int32 InWidth,
const int32 InHeight, TArray< uint8 >& OutUncompressedData ) = 0;
43
44
45
49
50
51
57
58
64
65
66
67
68
102 return CompressedImageData.Num();
148 return CompressedImageData;
177
178
179
180
184
185
186
187
191
192
193
194
220 return ImageWidth == Other.ImageWidth
221 && ImageHeight == Other.ImageHeight
222 && bIsDirty == Other.bIsDirty
223 && CompressedImageData == Other.CompressedImageData;
228 return ImageWidth != Other.ImageWidth
229 || ImageHeight != Other.ImageHeight
230 || bIsDirty != Other.bIsDirty
231 || CompressedImageData != Other.CompressedImageData;
293
294
295
296
TMap< FName, FObjectThumbnail > FThumbnailMap
static FThumbnailCompressionInterface * JPEGThumbnailCompressor
void Serialize(FArchive &Ar)
void DecompressImageData()
void Serialize(FStructuredArchive::FSlot Slot)
static void SetThumbnailCompressors(FThumbnailCompressionInterface *InPNGThumbnailCompressor, FThumbnailCompressionInterface *InJPEGThumbnailCompressor)
void SetImageSize(int32 InWidth, int32 InHeight)
void CountImageBytes_Uncompressed(FArchive &Ar) const
int32 GetCompressedDataSize() const
int32 GetImageWidth() const
void SetCreatedAfterCustomThumbsEnabled(void)
FThumbnailCompressionInterface * ChooseNewCompressor() const
TArray< uint8 > ImageData
bool IsCreatedAfterCustomThumbsEnabled(void) const
bool bCreatedAfterCustomThumbForSharedTypesEnabled
bool operator==(const FObjectThumbnail &Other) const
int32 GetImageHeight() const
void CountBytes(FArchive &Ar) const
FThumbnailCompressionInterface * GetCompressor() const
bool IsLoadedFromDisk(void) const
void CountImageBytes_Compressed(FArchive &Ar) const
const TArray< uint8 > & GetUncompressedImageData() const
static FThumbnailCompressionInterface * PNGThumbnailCompressor
const TArray< uint8 > & AccessImageData() const
TArray< uint8 > CompressedImageData
TArray< uint8 > & AccessCompressedImageData()
TArray< uint8 > & AccessImageData()
bool operator!=(const FObjectThumbnail &Other) const
virtual FName GetThumbnailCompressorName() const =0
virtual bool CompressImage(const TArray< uint8 > &InUncompressedData, const int32 InWidth, const int32 InHeight, TArray< uint8 > &OutCompressedData)=0
virtual bool IsLosslessCompression() const =0
virtual bool DecompressImage(const TArray< uint8 > &InCompressedData, const int32 InWidth, const int32 InHeight, TArray< uint8 > &OutUncompressedData)=0
FORCEINLINE bool IsCountingMemory() const
void CountBytes(FArchive &Ar) const
const FObjectThumbnail * ObjectThumbnail
FObjectFullNameAndThumbnail()
FObjectFullNameAndThumbnail(const FName InFullName, const FObjectThumbnail *InThumbnail)