Tachyon (current)  Current Main Branch
Macros | Functions
pngfile.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "util.h"
#include "imageio.h"
#include "pngfile.h"

Go to the source code of this file.

Macros

#define TACHYON_INTERNAL   1
 

Functions

int readpng (const char *name, int *xres, int *yres, unsigned char **imgdata)
 
int writepng (const char *name, int xres, int yres, unsigned char *imgdata)
 

Macro Definition Documentation

◆ TACHYON_INTERNAL

#define TACHYON_INTERNAL   1

Definition at line 22 of file pngfile.c.

Function Documentation

◆ readpng()

int readpng ( const char *  name,
int *  xres,
int *  yres,
unsigned char **  imgdata 
)

Definition at line 30 of file pngfile.c.

References IMAGEUNSUP.

Referenced by readimage().

◆ writepng()

int writepng ( const char *  name,
int  xres,
int  yres,
unsigned char *  imgdata 
)

Definition at line 34 of file pngfile.c.

References IMAGEUNSUP.

Referenced by writeimage().