1#ifndef ENGINE_GFX_IMAGE_LOADER_H
2#define ENGINE_GFX_IMAGE_LOADER_H
22 bool Read(
void *pData,
size_t Size);
31 void Write(
const void *pData,
size_t Size);
Definition: image_loader.h:11
size_t m_Size
Definition: image_loader.h:13
const uint8_t * m_pData
Definition: image_loader.h:12
bool m_Error
Definition: image_loader.h:15
CByteBufferReader(const uint8_t *pData, size_t Size)
Definition: image_loader.h:18
bool Error() const
Definition: image_loader.h:23
bool Read(void *pData, size_t Size)
Definition: image_loader.cpp:11
size_t m_ReadOffset
Definition: image_loader.h:14
Definition: image_loader.h:27
const uint8_t * Data() const
Definition: image_loader.h:32
std::vector< uint8_t > m_vBuffer
Definition: image_loader.h:28
size_t Size() const
Definition: image_loader.h:33
void Write(const void *pData, size_t Size)
Definition: image_loader.cpp:29
Definition: image_loader.h:37
static bool LoadPng(CByteBufferReader &Reader, const char *pContextName, CImageInfo &Image, int &PngliteIncompatible)
Definition: image_loader.cpp:137
static bool SavePng(CByteBufferWriter &Writer, const CImageInfo &Image)
Definition: image_loader.cpp:333
@ PNGLITE_COMPRESSION_TYPE
Definition: image_loader.h:46
@ PNGLITE_BIT_DEPTH
Definition: image_loader.h:44
@ PNGLITE_COLOR_TYPE
Definition: image_loader.h:43
@ PNGLITE_FILTER_TYPE
Definition: image_loader.h:47
@ PNGLITE_INTERLACE_TYPE
Definition: image_loader.h:45
void * IOHANDLE
Definition: logger.h:11