|
| virtual TSharedPtr< IImageWrapper > | CreateImageWrapper (const EImageFormat InFormat, const TCHAR *InOptionalDebugImageName=nullptr) override |
| |
| virtual EImageFormat | DetectImageFormat (const void *CompressedData, int64 CompressedSize) override |
| |
| virtual const TCHAR * | GetExtension (EImageFormat Format) override |
| |
| virtual EImageFormat | GetImageFormatFromExtension (const TCHAR *Name) override |
| |
| virtual ERawImageFormat::Type | ConvertRGBFormat (ERGBFormat RGBFormat, int BitDepth, bool *bIsExactMatch) override |
| |
| virtual void | ConvertRawImageFormat (ERawImageFormat::Type RawFormat, ERGBFormat &OutFormat, int &OutBitDepth) override |
| |
| virtual EImageFormat | GetDefaultOutputFormat (ERawImageFormat::Type RawFormat) override |
| |
| void | StressDecompressImage (TSharedPtr< IImageWrapper > ImageWrapper, const void *InCompressedData, int64 InCompressedSize) |
| |
| virtual bool | DecompressImage (const void *InCompressedData, int64 InCompressedSize, FImage &OutImage) override |
| |
| virtual bool | DecompressImage (const void *InCompressedData, int64 InCompressedSize, FDecompressedImageOutput &OutDecompressedImage) override |
| |
| virtual bool | CompressImage (TArray64< uint8 > &OutData, EImageFormat ToFormat, const FImageView &InImage, int32 Quality) override |
| |
| virtual void | StartupModule () override |
| |
| virtual void | ShutdownModule () override |
| |
| virtual | ~IImageWrapperModule () |
| |
| virtual | ~IModuleInterface () |
| |
| virtual void | PreUnloadCallback () |
| |
| virtual void | PostLoadCallback () |
| |
| virtual bool | SupportsDynamicReloading () |
| |
| virtual bool | SupportsAutomaticShutdown () |
| |
| virtual bool | IsGameModule () const |
| |
◆ CompressImage()
Convert input FImage into a file-format encoded array. in ImageWrapper land, "Compress" means "put in file format" OutData is filled with the file format encoded data lossy conversion of the pixel type may be done if necessary eg. if you pass F32 float pixels to write to BMP, they will be converted to SRGB U8 BGRA8
- Parameters
-
| OutData | Filled with image-format data |
| ToFormat | Image format to encode to |
| InImage | Image to encode |
| Quality | 50-100 for JPEG, or EImageCompressionQuality |
Implements IImageWrapperModule.
◆ ConvertRawImageFormat()
◆ ConvertRGBFormat()
◆ CreateImageWrapper()
Create an IImageWrapper helper of a specific type
- Parameters
-
| InFormat | - The type of image we want to deal with |
| InOptionalDebugImageName | - An optional string to be displayed with any errors or warnings |
- Returns
- The helper base class to manage the data EImageFormat is a compressor / file format, not a pixel format Deprecated. Prefer CompressImage/DecompressImage.
Implements IImageWrapperModule.
◆ DecompressImage() [1/2]
◆ DecompressImage() [2/2]
◆ DetectImageFormat()
Detect image format by looking at the first few bytes of the compressed image data. You can call this method as soon as you have 8-16 bytes of compressed file content available.
- Parameters
-
| InCompressedData | The raw image header. |
| InCompressedSize | The size of InCompressedData. |
- Returns
- the detected format or EImageFormat::Invalid if the method could not detect the image format.
Implements IImageWrapperModule.
◆ GetDefaultOutputFormat()
◆ GetExtension()
◆ GetImageFormatFromExtension()
◆ ShutdownModule()
Called before the module is unloaded, right before the module object is destroyed. During normal shutdown, this is called in reverse order that modules finish StartupModule(). This means that, as long as a module references dependent modules in it's StartupModule(), it can safely reference those dependencies in ShutdownModule() as well.
Reimplemented from IModuleInterface.
◆ StartupModule()
Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. ie:
FModuleManager::Get().LoadModuleChecked(TEXT("HTTP"));
Reimplemented from IModuleInterface.
◆ StressDecompressImage()
The documentation for this class was generated from the following file: