NVIDIA DeepLearning Dataset Synthesizer (NDDS)
 All Classes Namespaces Functions Variables Typedefs Pages
FNVImageExporter Struct Reference

Public Member Functions

 FNVImageExporter (IImageWrapperModule *InImageWrapperModule)
 
bool ExportImage (const FNVImageExporterData &ImageExporterData)
 

Static Public Member Functions

static TArray< uint8 > CompressImage (IImageWrapperModule *ImageWrapperModule, const FNVTexturePixelData &SourcePixelData, ENVImageFormat ImageFormat, uint8 CompressionQuality=100)
 Compress a source image to a certain image type. More...
 
static TArray< uint8 > CompressImagePNG (const FNVTexturePixelData &SourcePixelData)
 Compress a source image data to PNG format NOTE: PNG is lossless compression so we can't change the compression quality This function always use Z_BEST_SPEED, may be we want to customize the compression level result The compressed data in bytes. More...
 
static bool ExportImage (IImageWrapperModule *ImageWrapperModule, const FNVImageExporterData &ImageExporterData)
 Export an in-memory image to file on disk. More...
 

Protected Attributes

IImageWrapperModule * ImageWrapperModule
 

Detailed Description

Definition at line 40 of file NVImageExporter.h.

Member Function Documentation

static TArray<uint8> FNVImageExporter::CompressImage ( IImageWrapperModule *  ImageWrapperModule,
const FNVTexturePixelData SourcePixelData,
ENVImageFormat  ImageFormat,
uint8  CompressionQuality = 100 
)
static

Compress a source image to a certain image type.

Parameters
ImageWrapperModuleReference to the ImageWrapper module
SourcePixelDataThe source, raw pixel data
ImageFormatThe type of the image to compress to
CompressionQualityThe quality of the compression result The compressed data in bytes
static TArray<uint8> FNVImageExporter::CompressImagePNG ( const FNVTexturePixelData SourcePixelData)
static

Compress a source image data to PNG format NOTE: PNG is lossless compression so we can't change the compression quality This function always use Z_BEST_SPEED, may be we want to customize the compression level result The compressed data in bytes.

static bool FNVImageExporter::ExportImage ( IImageWrapperModule *  ImageWrapperModule,
const FNVImageExporterData ImageExporterData 
)
static

Export an in-memory image to file on disk.


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