Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
tex_png.cpp File Reference
#include "precompiled.h"
#include "lib/external_libraries/png.h"
#include "lib/byte_order.h"
#include "tex_codec.h"
#include "lib/allocators/shared_ptr.h"
#include "lib/timer.h"

Go to the source code of this file.

Classes

class  MemoryStream
 

Functions

static void io_read (png_struct *png_ptr, rpU8 data, png_size_t size)
 
static void io_write (png_struct *png_ptr, u8 *data, png_size_t length)
 
static void io_flush (png_structp png_ptr)
 
static Status png_transform (Tex *t, size_t transforms)
 
static Status png_decode_impl (MemoryStream *stream, png_structp png_ptr, png_infop info_ptr, Tex *t)
 
static Status png_encode_impl (Tex *t, png_structp png_ptr, png_infop info_ptr, DynArray *da)
 
static bool png_is_hdr (const u8 *file)
 
static bool png_is_ext (const OsPath &extension)
 
static size_t png_hdr_size (const u8 *file)
 
 TIMER_ADD_CLIENT (tc_png_decode)
 
static Status png_decode (rpU8 data, size_t size, Tex *RESTRICT t)
 
static Status png_encode (Tex *RESTRICT t, DynArray *RESTRICT da)
 
 TEX_CODEC_REGISTER (png)
 

Function Documentation

static void io_flush ( png_structp  png_ptr)
static

Definition at line 102 of file tex_png.cpp.

static void io_read ( png_struct *  png_ptr,
rpU8  data,
png_size_t  size 
)
static

Definition at line 80 of file tex_png.cpp.

static void io_write ( png_struct *  png_ptr,
u8 data,
png_size_t  length 
)
static

Definition at line 94 of file tex_png.cpp.

static Status png_decode ( rpU8  data,
size_t  size,
Tex *RESTRICT  t 
)
static

Definition at line 234 of file tex_png.cpp.

static Status png_decode_impl ( MemoryStream stream,
png_structp  png_ptr,
png_infop  info_ptr,
Tex t 
)
static

Definition at line 121 of file tex_png.cpp.

static Status png_encode ( Tex *RESTRICT  t,
DynArray *RESTRICT  da 
)
static

Definition at line 268 of file tex_png.cpp.

static Status png_encode_impl ( Tex t,
png_structp  png_ptr,
png_infop  info_ptr,
DynArray da 
)
static

Definition at line 171 of file tex_png.cpp.

static size_t png_hdr_size ( const u8 file)
static

Definition at line 225 of file tex_png.cpp.

static bool png_is_ext ( const OsPath extension)
static

Definition at line 219 of file tex_png.cpp.

static bool png_is_hdr ( const u8 file)
static

Definition at line 211 of file tex_png.cpp.

static Status png_transform ( Tex t,
size_t  transforms 
)
static

Definition at line 110 of file tex_png.cpp.

TEX_CODEC_REGISTER ( png  )
TIMER_ADD_CLIENT ( tc_png_decode  )