DDraceNetwork Docs
image_loader.cpp File Reference
#include "image_loader.h"
#include <base/log.h>
#include <base/system.h>
#include <csetjmp>
#include <cstdlib>
#include <png.h>
Include dependency graph for image_loader.cpp:

Classes

class  CUserErrorStruct
 

Functions

static void PngErrorCallback (png_structp pPngStruct, png_const_charp pErrorMessage)
 
static void PngWarningCallback (png_structp pPngStruct, png_const_charp pWarningMessage)
 
static void PngReadDataCallback (png_structp pPngStruct, png_bytep pOutBytes, png_size_t ByteCountToRead)
 
static CImageInfo::EImageFormat ImageFormatFromChannelCount (int ColorChannelCount)
 
static int PngliteIncompatibility (png_structp pPngStruct, png_infop pPngInfo)
 
static void PngWriteDataCallback (png_structp pPngStruct, png_bytep pOutBytes, png_size_t ByteCountToWrite)
 
static void PngOutputFlushCallback (png_structp pPngStruct)
 
static int PngColorTypeFromFormat (CImageInfo::EImageFormat Format)
 

Function Documentation

◆ ImageFormatFromChannelCount()

static CImageInfo::EImageFormat ImageFormatFromChannelCount ( int  ColorChannelCount)
static

◆ PngColorTypeFromFormat()

static int PngColorTypeFromFormat ( CImageInfo::EImageFormat  Format)
static

◆ PngErrorCallback()

static void PngErrorCallback ( png_structp  pPngStruct,
png_const_charp  pErrorMessage 
)
static

◆ PngliteIncompatibility()

static int PngliteIncompatibility ( png_structp  pPngStruct,
png_infop  pPngInfo 
)
static

◆ PngOutputFlushCallback()

static void PngOutputFlushCallback ( png_structp  pPngStruct)
static

◆ PngReadDataCallback()

static void PngReadDataCallback ( png_structp  pPngStruct,
png_bytep  pOutBytes,
png_size_t  ByteCountToRead 
)
static

◆ PngWarningCallback()

static void PngWarningCallback ( png_structp  pPngStruct,
png_const_charp  pWarningMessage 
)
static

◆ PngWriteDataCallback()

static void PngWriteDataCallback ( png_structp  pPngStruct,
png_bytep  pOutBytes,
png_size_t  ByteCountToWrite 
)
static