Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FThumbnailCompressionInterface Class Referenceabstract

#include <ObjectThumbnail.h>

Public Member Functions

virtual bool CompressImage (const TArray< uint8 > &InUncompressedData, const int32 InWidth, const int32 InHeight, TArray< uint8 > &OutCompressedData)=0
 
virtual bool DecompressImage (const TArray< uint8 > &InCompressedData, const int32 InWidth, const int32 InHeight, TArray< uint8 > &OutUncompressedData)=0
 
virtual FName GetThumbnailCompressorName () const =0
 
virtual bool IsLosslessCompression () const =0
 

Detailed Description

Thumbnail compression interface for packages. The engine registers a class that can compress and decompress thumbnails that the package linker uses while loading and saving data.

Definition at line 16 of file ObjectThumbnail.h.

Member Function Documentation

◆ CompressImage()

virtual bool FThumbnailCompressionInterface::CompressImage ( const TArray< uint8 > & InUncompressedData,
const int32 InWidth,
const int32 InHeight,
TArray< uint8 > & OutCompressedData )
pure virtual

Compresses an image

Parameters
InUncompressedDataThe uncompressed image data
InWidthWidth of the image
InHeightHeight of the image
OutCompressedData[Out] Compressed image data
Returns
true if the image was compressed successfully, otherwise false if an error occurred

◆ DecompressImage()

virtual bool FThumbnailCompressionInterface::DecompressImage ( const TArray< uint8 > & InCompressedData,
const int32 InWidth,
const int32 InHeight,
TArray< uint8 > & OutUncompressedData )
pure virtual

Decompresses an image

Parameters
InCompressedDataThe compressed image data
InWidthWidth of the image
InHeightHeight of the image
OutUncompressedData[Out] Uncompressed image data
Returns
true if the image was decompressed successfully, otherwise false if an error occurred

◆ GetThumbnailCompressorName()

virtual FName FThumbnailCompressionInterface::GetThumbnailCompressorName ( ) const
pure virtual

Get name of compressor

Returns
Name of thumbnail compressor

◆ IsLosslessCompression()

virtual bool FThumbnailCompressionInterface::IsLosslessCompression ( ) const
pure virtual

Is lossless compression

Returns
true if compression is lossless

The documentation for this class was generated from the following file: