Ark Server API (ASA) - Wiki
|
#include <ObjectThumbnail.h>
Static Public Member Functions | |
static void | SetThumbnailCompressors (FThumbnailCompressionInterface *InPNGThumbnailCompressor, FThumbnailCompressionInterface *InJPEGThumbnailCompressor) |
Static Private Attributes | |
static FThumbnailCompressionInterface * | PNGThumbnailCompressor |
static FThumbnailCompressionInterface * | JPEGThumbnailCompressor |
Friends | |
FArchive & | operator<< (FArchive &Ar, FObjectThumbnail &Thumb) |
FArchive & | operator<< (FArchive &Ar, const FObjectThumbnail &Thumb) |
Thumbnail image data for an object.
Definition at line 59 of file ObjectThumbnail.h.
FObjectThumbnail::FObjectThumbnail | ( | ) |
Default constructor.
Access the compressed image data.
Definition at line 146 of file ObjectThumbnail.h.
Access the image data in place (does not decompress).
Definition at line 134 of file ObjectThumbnail.h.
Access the image data in place (does not decompress) const version.
Definition at line 140 of file ObjectThumbnail.h.
FThumbnailCompressionInterface * FObjectThumbnail::ChooseNewCompressor | ( | ) | const |
Returns thumbnail compressor that would be used on current uncompressed image data.
void FObjectThumbnail::CompressImageData | ( | ) |
Compress image data.
Calculates the memory usage of this FObjectThumbnail.
Ar | the FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation. |
Calculates the amount of memory used by the compressed bytes array.
Ar | the FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation. |
Calculates the amount of memory used by the uncompressed bytes array.
Ar | the FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation. |
void FObjectThumbnail::DecompressImageData | ( | ) |
Decompress image data.
|
inline |
Definition at line 100 of file ObjectThumbnail.h.
FThumbnailCompressionInterface * FObjectThumbnail::GetCompressor | ( | ) | const |
Returns thumbnail compressor used on current compressed image data.
|
inline |
Returns the height of the thumbnail.
Definition at line 94 of file ObjectThumbnail.h.
|
inline |
Returns the width of the thumbnail.
Definition at line 88 of file ObjectThumbnail.h.
Returns uncompressed image data, decompressing it on demand if needed.
Returns true if the thumbnail was saved AFTER custom-thumbnails for shared thumbnail asset types was supported.
Definition at line 116 of file ObjectThumbnail.h.
|
inline |
Returns true if the thumbnail is dirty and needs to be regenerated at some point.
Definition at line 122 of file ObjectThumbnail.h.
|
inline |
Returns true if this is an empty thumbnail.
Definition at line 152 of file ObjectThumbnail.h.
Returns true if the thumbnail was loaded from disk and not dynamically generated.
Definition at line 113 of file ObjectThumbnail.h.
|
inline |
Marks the thumbnail as dirty.
Definition at line 128 of file ObjectThumbnail.h.
|
inline |
Definition at line 226 of file ObjectThumbnail.h.
|
inline |
Comparison operator
Definition at line 218 of file ObjectThumbnail.h.
void FObjectThumbnail::Serialize | ( | FStructuredArchive::FSlot | Slot | ) |
For newly generated custom thumbnails, mark it as valid in the future.
Definition at line 119 of file ObjectThumbnail.h.
Sets the image dimensions.
Definition at line 106 of file ObjectThumbnail.h.
|
inlinestatic |
Static: Sets the thumbnail compressor to use when loading/saving packages. The caller is responsible for the object's lifespan.
InThumbnailCompressor | A class derived from FThumbnailCompressionInterface. |
Definition at line 69 of file ObjectThumbnail.h.
|
friend |
Definition at line 211 of file ObjectThumbnail.h.
|
friend |
I/O operator
Definition at line 198 of file ObjectThumbnail.h.
|
private |
Whether this was saved AFTER custom-thumbnails for shared thumbnail asset types was supported
Definition at line 258 of file ObjectThumbnail.h.
|
private |
True if the thumbnail is dirty and should be regenerated at some point
Definition at line 249 of file ObjectThumbnail.h.
|
private |
Whether compressed data is JPEG (else PNG)
Definition at line 255 of file ObjectThumbnail.h.
|
private |
Whether the thumbnail has a backup on disk
Definition at line 252 of file ObjectThumbnail.h.
Compressed image data (serialized)
Definition at line 243 of file ObjectThumbnail.h.
Image data bytes
Definition at line 246 of file ObjectThumbnail.h.
|
private |
Thumbnail height (serialized)
Definition at line 240 of file ObjectThumbnail.h.
|
private |
Thumbnail width (serialized)
Definition at line 237 of file ObjectThumbnail.h.
|
staticprivate |
Definition at line 80 of file ObjectThumbnail.h.
|
staticprivate |
Static: Thumbnail compressor.
Definition at line 79 of file ObjectThumbnail.h.