Blender V2.61 - r43446
Classes | Typedefs | Functions

png.c File Reference

#include "png.h"
#include "BLI_blenlib.h"
#include "MEM_guardedalloc.h"
#include "imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "IMB_allocimbuf.h"
#include "IMB_metadata.h"
#include "IMB_filetype.h"

Go to the source code of this file.

Classes

struct  PNGReadStruct

Typedefs

typedef struct PNGReadStruct PNGReadStruct

Functions

static void ReadData (png_structp png_ptr, png_bytep data, png_size_t length)
static void WriteData (png_structp png_ptr, png_bytep data, png_size_t length)
static void Flush (png_structp png_ptr)
int imb_is_a_png (unsigned char *mem)
int imb_savepng (struct ImBuf *ibuf, const char *name, int flags)
struct ImBufimb_loadpng (unsigned char *mem, size_t size, int flags)

Detailed Description

Definition in file png.c.


Typedef Documentation

typedef struct PNGReadStruct PNGReadStruct

Function Documentation

static void Flush ( png_structp  png_ptr) [static]

Definition at line 66 of file png.c.

Referenced by imb_savepng().

int imb_is_a_png ( unsigned char *  mem)

Definition at line 58 of file png.c.

Referenced by imb_loadpng().

struct ImBuf* imb_loadpng ( unsigned char *  mem,
size_t  size,
int  flags 
) [read]
int imb_savepng ( struct ImBuf ibuf,
const char *  name,
int  flags 
)
static void ReadData ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
) [static]

Definition at line 84 of file png.c.

References PNGReadStruct::data, length(), PNGReadStruct::seek, and size().

Referenced by imb_loadpng().

static void WriteData ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
) [static]