Classes | Static Public Member Functions | Private Types | Static Private Member Functions | Static Private Attributes | List of all members
gte::WICFileIO Class Reference

#include <GteWICFileIO.h>

Classes

class  ComInitializer
 
class  ComObject
 
struct  LoadFormatMap
 
struct  SaveFormatMap
 

Static Public Member Functions

static std::shared_ptr< Texture2Load (std::string const &filename, bool wantMipmaps)
 
static std::shared_ptr< Texture2Load (std::string const &filename, bool wantMipmaps)
 
static bool SaveToJPEG (std::string const &filename, std::shared_ptr< Texture2 > const &texture, float imageQuality)
 
static bool SaveToPNG (std::string const &filename, std::shared_ptr< Texture2 > const &texture)
 
static bool SaveToPNG (std::string const &filename, std::shared_ptr< Texture2 > const &texture)
 

Private Types

enum  { NUM_LOAD_FORMATS = 14 }
 
enum  { NUM_SAVE_FORMATS = 11 }
 

Static Private Member Functions

static bool SaveTo (std::string const &filename, std::shared_ptr< Texture2 > const &texture, float imageQuality)
 

Static Private Attributes

static LoadFormatMap const msLoadFormatMap [NUM_LOAD_FORMATS]
 
static SaveFormatMap const msSaveFormatMap [NUM_SAVE_FORMATS]
 

Detailed Description

Definition at line 19 of file GLX/GteWICFileIO.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
NUM_LOAD_FORMATS 

Definition at line 72 of file MSW/GteWICFileIO.h.

anonymous enum
private
Enumerator
NUM_SAVE_FORMATS 

Definition at line 80 of file MSW/GteWICFileIO.h.

Member Function Documentation

std::shared_ptr< Texture2 > WICFileIO::Load ( std::string const &  filename,
bool  wantMipmaps 
)
static

Definition at line 57 of file GLX/GteWICFileIO.cpp.

static std::shared_ptr<Texture2> gte::WICFileIO::Load ( std::string const &  filename,
bool  wantMipmaps 
)
static
bool WICFileIO::SaveTo ( std::string const &  filename,
std::shared_ptr< Texture2 > const &  texture,
float  imageQuality 
)
staticprivate

Definition at line 162 of file MSW/GteWICFileIO.cpp.

bool WICFileIO::SaveToJPEG ( std::string const &  filename,
std::shared_ptr< Texture2 > const &  texture,
float  imageQuality 
)
static

Definition at line 155 of file MSW/GteWICFileIO.cpp.

bool WICFileIO::SaveToPNG ( std::string const &  filename,
std::shared_ptr< Texture2 > const &  texture 
)
static

Definition at line 253 of file GLX/GteWICFileIO.cpp.

static bool gte::WICFileIO::SaveToPNG ( std::string const &  filename,
std::shared_ptr< Texture2 > const &  texture 
)
static

Member Data Documentation

WICFileIO::LoadFormatMap const WICFileIO::msLoadFormatMap
staticprivate
Initial value:
=
{
{ DF_B5G6R5_UNORM, &GUID_WICPixelFormat16bppBGR565, nullptr },
{ DF_B5G5R5A1_UNORM, &GUID_WICPixelFormat16bppBGR555, nullptr },
{ DF_R10G10B10A2_UNORM, &GUID_WICPixelFormat32bppRGBA1010102, nullptr },
{ DF_R10G10B10_XR_BIAS_A2_UNORM, &GUID_WICPixelFormat32bppRGBA1010102XR, nullptr },
{ DF_R1_UNORM, &GUID_WICPixelFormatBlackWhite, &GUID_WICPixelFormat8bppGray },
{ DF_R8_UNORM, &GUID_WICPixelFormat2bppGray, &GUID_WICPixelFormat8bppGray },
{ DF_R8_UNORM, &GUID_WICPixelFormat4bppGray, &GUID_WICPixelFormat8bppGray },
{ DF_R8_UNORM, &GUID_WICPixelFormat8bppGray, nullptr },
{ DF_R16_UNORM, &GUID_WICPixelFormat16bppGray, nullptr },
{ DF_R32_FLOAT, &GUID_WICPixelFormat32bppGrayFloat, nullptr },
{ DF_R8G8B8A8_UNORM, &GUID_WICPixelFormat32bppRGBA, nullptr },
{ DF_R8G8B8A8_UNORM, &GUID_WICPixelFormat32bppBGRA, &GUID_WICPixelFormat32bppRGBA },
{ DF_R16G16B16A16_UNORM, &GUID_WICPixelFormat64bppRGBA, nullptr },
{ DF_R16G16B16A16_UNORM, &GUID_WICPixelFormat64bppBGRA, &GUID_WICPixelFormat64bppRGBA }
}

Definition at line 73 of file MSW/GteWICFileIO.h.

WICFileIO::SaveFormatMap const WICFileIO::msSaveFormatMap
staticprivate
Initial value:
=
{
{ DF_B5G6R5_UNORM, &GUID_WICPixelFormat16bppBGR565 },
{ DF_B5G5R5A1_UNORM, &GUID_WICPixelFormat16bppBGR555 },
{ DF_R10G10B10A2_UNORM, &GUID_WICPixelFormat32bppRGBA1010102 },
{ DF_R10G10B10_XR_BIAS_A2_UNORM, &GUID_WICPixelFormat32bppRGBA1010102XR },
{ DF_R1_UNORM, &GUID_WICPixelFormatBlackWhite },
{ DF_R8_UNORM, &GUID_WICPixelFormat8bppGray },
{ DF_R16_UNORM, &GUID_WICPixelFormat16bppGray },
{ DF_R32_FLOAT, &GUID_WICPixelFormat32bppGrayFloat },
{ DF_R8G8B8A8_UNORM, &GUID_WICPixelFormat32bppRGBA },
{ DF_B8G8R8A8_UNORM, &GUID_WICPixelFormat32bppBGRA },
{ DF_R16G16B16A16_UNORM, &GUID_WICPixelFormat64bppRGBA }
}

Definition at line 81 of file MSW/GteWICFileIO.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07