![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <HdrImageWrapper.h>
Inheritance diagram for FHdrImageWrapper:Additional Inherited Members | |
Public Types inherited from IImageWrapper | |
| using | TStringMap = TMap< FString, FString > |
Static Public Member Functions inherited from IImageWrapper | |
| static IMAGEWRAPPER_API void | ConvertRawImageFormat (ERawImageFormat::Type RawFormat, ERGBFormat &OutFormat, int &OutBitDepth) |
| static IMAGEWRAPPER_API ERawImageFormat::Type | ConvertRGBFormat (ERGBFormat RGBFormat, int BitDepth, bool *bIsExactMatch=nullptr) |
| static IMAGEWRAPPER_API int64 | GetRGBFormatBytesPerPel (ERGBFormat RGBFormat, int BitDepth) |
Protected Attributes inherited from IImageWrapper | |
| const TCHAR * | DebugImageName = nullptr |
To load the HDR file image format. Does not support all possible types HDR formats (e.g. xyze is not supported)
|
overridevirtual |
Adds a key and value to this image's metadata. Will be saved in the image's header and restored when the image is loaded.
| InKey | Metadata consists of key value pairs. |
| InValue | Metadata consists of key value pairs. |
Implements IImageWrapper.
|
overridevirtual |
CanSetRawFormat returns true if SetRaw will accept this format
Implements IImageWrapper.
| void FHdrImageWrapper::FreeCompressedData | ( | ) |
|
overridevirtual |
Gets the bit depth of the image.
Beware several of the old wrappers (BMP,TGA) incorrectly used to return bits per color not per channel they now correctly return per-channel.
Implements IImageWrapper.
Gets the compressed data. (call SetRaw first) (Note: It may consume the data set in the SetCompressed function if it was set before)
Implements IImageWrapper.
| const FText & FHdrImageWrapper::GetErrorMessage | ( | ) | const |
|
overridevirtual |
Gets the format of the image. Theoretically, this is the format it would be best to call GetRaw() with, if you support it.
Implements IImageWrapper.
|
overridevirtual |
|
overridevirtual |
Copies this image's metadata to the caller's map.
| OutMetadata | A copy of this image's metadata. |
Implements IImageWrapper.
|
overridevirtual |
Gets the raw data and meta info (Note: It may consume the data set in the SetRaw function if it was set before)
| InFormat | How we want to manipulate the RGB data. |
| InBitDepth | The output bit-depth per channel, normally 8. |
| OutRawData | Will contain the uncompressed raw data. |
| OutDecompressedImage | Will contain the mip images if available and other metadata. |
this is often broken, should only be used with InFormat == GetFormat() DEPRECATED , use GetRaw() with 2 argument or GetRawImage() meta info overload
Implements IImageWrapper.
|
virtual |
Gets the raw data and meta info (Note: It may consume the data set in the SetRaw function if it was set before)
| InFormat | How we want to manipulate the RGB data. |
| InBitDepth | The output bit-depth per channel, normally 8. |
| OutRawData | Will contain the uncompressed raw data. |
| OutDecompressedImage | Will contain the mip images if available and other metadata. |
this is often broken, should only be used with InFormat == GetFormat() DEPRECATED , use GetRaw() with 2 argument or GetRawImage() meta info overload
Implements IImageWrapper.
|
overridevirtual |
Gets the raw data. (Note: It may consume the data set in the SetRaw function if it was set before)
| InFormat | How we want to manipulate the RGB data. |
| InBitDepth | The output bit-depth per channel, normally 8. |
| OutRawData | Will contain the uncompressed raw data. |
this is often broken, should only be used with InFormat == GetFormat() DEPRECATED , use GetRaw() with 1 argument or GetRawImage()
Implements IImageWrapper.
|
virtual |
Gets the raw data. (Note: It may consume the data set in the SetRaw function if it was set before)
| InFormat | How we want to manipulate the RGB data. |
| InBitDepth | The output bit-depth per channel, normally 8. |
| OutRawData | Will contain the uncompressed raw data. |
this is often broken, should only be used with InFormat == GetFormat() DEPRECATED , use GetRaw() with 1 argument or GetRawImage()
Implements IImageWrapper.
|
inline |
Gets the raw data in a TArray. Only use this if you're certain that the image is less than 2 GB in size. Prefer using the overload which takes a TArray64 in general. (Note: It may consume the data set in the SetRaw function if it was set before)
| InFormat | How we want to manipulate the RGB data. |
| InBitDepth | The output bit-depth per channel, normally 8. |
| OutRawData | Will contain the uncompressed raw data. |
this is often broken, should only be used with InFormat == GetFormat() DEPRECATED , use GetRaw() with 1 argument or GetRawImage()
|
inline |
Get the raw version of the image and write to the array view (Note: It may consume the data set in the SetRaw function if it was set before)
| InFormat | How we want to manipulate the RGB data. |
| InBitDepth | The output bit-depth per channel, normally 8. |
| OutRawData | Will contain the uncompressed raw data. |
this is often broken, should only be used with InFormat == GetFormat() DEPRECATED , use GetRaw() with 1 argument or GetRawImage()
|
inline |
GetRaw after SetCompressed fills the raw data in the native format/depth contained in the file along with meta info Do not use the GetRaw() variants that take format/depth arguments.
| OutRawData | Filled with raw image data. |
| OutDecompressedImage | Filled with mip images and other metadata. |
This GetRaw call replaces the variants with format/depth arguments, but prefer GetRawImage instead.
GetRaw after SetCompressed fills the raw data in the native format/depth contained in the file Do not use the GetRaw() variants that take format/depth arguments.
| OutRawData | Filled with raw image data. |
This GetRaw call replaces the variants with format/depth arguments, but prefer GetRawImage instead.
|
overridevirtual |
returns InFormat if supported, else maps to something supported the returned format will pass CanSetRawFormat()
Implements IImageWrapper.
|
overridevirtual |
|
overridevirtual |
Sets the compressed data. Can then call GetRaw().
| InCompressedData | The memory address of the start of the compressed data. |
| InCompressedSize | The size of the compressed data parsed. |
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.
| bool FHdrImageWrapper::SetCompressedFromView | ( | TArrayView64< const uint8 > | Data | ) |
|
overridevirtual |
Sets the raw image data. Prepares to call GetCompressed() next.
| 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. |
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.
|
overridevirtual |
Does this image type support embedded metadata in its header?
PNG is an example of an image type which supports adding user-defined metadata to its header.
Implements IImageWrapper.