|
| | FImageWrapperBase () |
| |
| const TArray64< uint8 > & | GetRawData () const |
| |
| void | MoveRawData (TArray64< uint8 > &OutRawData) |
| |
| virtual void | Compress (int32 Quality)=0 |
| |
| virtual void | Reset () |
| |
| void | SetError (const TCHAR *ErrorMessage) |
| |
| const FString & | GetLastError () const |
| |
| virtual void | Uncompress (const ERGBFormat InFormat, int32 InBitDepth)=0 |
| |
| virtual void | Uncompress (const ERGBFormat InFormat, int32 InBitDepth, FDecompressedImageOutput &OutDecompressedImage) |
| |
| virtual TArray64< uint8 > | GetCompressed (int32 Quality=0) override |
| |
| virtual int32 | GetBitDepth () const override |
| |
| virtual ERGBFormat | GetFormat () const override |
| |
| virtual int64 | GetHeight () const override |
| |
| virtual bool | GetRaw (const ERGBFormat InFormat, int32 InBitDepth, TArray64< uint8 > &OutRawData) override |
| |
| virtual bool | GetRaw (const ERGBFormat InFormat, int32 InBitDepth, FDecompressedImageOutput &OutDecompressedImage) override |
| |
| virtual int64 | GetWidth () const override |
| |
| virtual bool | SetCompressed (const void *InCompressedData, int64 InCompressedSize) override |
| |
| virtual bool | SetRaw (const void *InRawData, int64 InRawSize, const int32 InWidth, const int32 InHeight, const ERGBFormat InFormat, const int32 InBitDepth, const int32 InBytesPerRow=0) override |
| |
| virtual bool | SupportsMetadata () const override |
| |
| virtual void | AddMetadata (const FString &InKey, const FString &InValue) override |
| |
| virtual void | GetMetadata (TStringMap &OutMetadata) const override |
| |
| virtual bool | CanSetRawFormat (const ERGBFormat InFormat, const int32 InBitDepth) const =0 |
| |
| virtual ERawImageFormat::Type | GetSupportedRawFormat (const ERawImageFormat::Type InFormat) const =0 |
| |
| virtual TArray64< uint8 > | GetExportData (int32 Quality=0) |
| |
| bool | GetRaw (TArray64< uint8 > &OutRawData) |
| |
| bool | GetRaw (FDecompressedImageOutput &OutDecompressedImage) |
| |
| bool | GetRawImage (FImage &OutImage) |
| |
| bool | GetRawImage (FDecompressedImageOutput &OutDecompressedImage) |
| |
| bool | GetRaw (const ERGBFormat InFormat, int32 InBitDepth, TArray< uint8 > &OutRawData) |
| |
| bool | GetRaw (const ERGBFormat InFormat, int32 InBitDepth, TArrayView64< uint8 > OutRawData) |
| |
| bool | GetSRGB () const |
| |
| ERawImageFormat::Type | GetClosestRawImageFormat (bool *bIsExactMatch=nullptr) const |
| |
| void | SetDebugImageName (const TCHAR *InDebugImageName) |
| |
| virtual | ~IImageWrapper () |
| |
The abstract helper class for handling the different image formats
| bool FImageWrapperBase::SetCompressed |
( |
const void * |
InCompressedData, |
|
|
int64 |
InCompressedSize |
|
) |
| |
|
overridevirtual |
Sets the compressed data. Can then call GetRaw().
- Parameters
-
| InCompressedData | The memory address of the start of the compressed data. |
| InCompressedSize | The size of the compressed data parsed. |
- Returns
- true if data was the expected format.
after SetCompressed, image info queries like GetWidth and GetBitDepth are allowed call GetRaw to get the decoded bits decompression is not done until GetRaw
Implements IImageWrapper.
Reimplemented in FBmpImageWrapper, FDdsImageWrapper, FIcnsImageWrapper, FIcoImageWrapper, and FTgaImageWrapper.
Sets the raw image data. Prepares to call GetCompressed() next.
- Parameters
-
| InRawData | The memory address of the start of the raw data. |
| InRawSize | The size of the compressed data parsed. |
| InWidth | The width of the image data. |
| InHeight | the height of the image data. |
| InFormat | the format the raw data is in, normally RGBA. |
| InBitDepth | the bit-depth per channel, normally 8. |
| InBytesPerRow | the number of bytes between rows, 0 = tightly packed rows with no padding. |
- Returns
- true if data was the expected format.
you must not SetRaw() with a format unless it passes CanSetRawFormat() deprecated : avoid direct calls to SetRaw(), use ImageWrapperModule CompressImage instead do not use InBytesPerRow, it is ignored SetRaw does not take gamma information assumes U8 = SRGB and all else = Linear
Implements IImageWrapper.
Reimplemented in FIcnsImageWrapper.