Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef _FILE_H_
Toshihiro Shimizu 890ddd
#define _FILE_H_
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <stdio.h></stdio.h>
Toshihiro Shimizu 890ddd
#include "img.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef TNZAPI
Toshihiro Shimizu 890ddd
#undef TNZVAR
Toshihiro Shimizu 890ddd
#ifdef TNZ_IS_IMAGELIB
Toshihiro Shimizu 890ddd
#define TNZAPI TNZ_EXPORT_API
Toshihiro Shimizu 890ddd
#define TNZVAR TNZ_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define TNZAPI TNZ_IMPORT_API
Toshihiro Shimizu 890ddd
#define TNZVAR TNZ_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/* to avoid collision with img_read and img_write in libimage.a */
Toshihiro Shimizu 890ddd
#define img_read img_read_xxx
Toshihiro Shimizu 890ddd
#define img_write img_write_xxx
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/* byte-ordering dependent i/o */
Toshihiro Shimizu 890ddd
TNZAPI int fread_long(long *ptr, FILE *stream);
Toshihiro Shimizu 890ddd
TNZAPI int fread_short(short *ptr, FILE *stream);
Toshihiro Shimizu 890ddd
TNZAPI int fwrite_long(long *ptr, FILE *stream);
Toshihiro Shimizu 890ddd
TNZAPI int fwrite_short(short *ptr, FILE *stream);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef __LIBSIMAGE__
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI void next_img_read_plt_without_buffer(void);
Toshihiro Shimizu 890ddd
TNZAPI void next_img_read_with_extra(void);
Toshihiro Shimizu 890ddd
TNZAPI void next_img_read_tzr_cmapped(void);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI void img_enable_64_bits_input(int enable);
Toshihiro Shimizu 890ddd
TNZAPI int img_type_current_bpp(char *type);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI IMAGE
Toshihiro Shimizu 890ddd
	*
Toshihiro Shimizu 890ddd
	img_read(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_ciak(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_ciak_icon(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_rgb(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_png(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tga(char *filename),
Toshihiro Shimizu 890ddd
	/* *img_read_bw    (char *filename),        */
Toshihiro Shimizu 890ddd
	*img_read_cmap(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	*img_read_cmap_1(IMAGE *img),
Toshihiro Shimizu 890ddd
	*img_read_rla(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_sdl(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_yuv(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_qtl(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_qnt(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_gif(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tif(char *filename),
Toshihiro Shimizu 890ddd
	/* *img_read_rl7   (char *filename),       */
Toshihiro Shimizu 890ddd
	*img_read_pic(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tzup(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tzup_icon(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_jpg(char *filename),
Toshihiro Shimizu 890ddd
#ifndef WIN32
Toshihiro Shimizu 890ddd
	*img_read_cpg(char *filename),
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#ifndef ISALPHA
Toshihiro Shimizu 890ddd
	*img_read_pct(char *filename),
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
	*img_read_plt(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_bmp(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_vpb(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tzr(char *filename);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI IMAGE
Toshihiro Shimizu 890ddd
	*
Toshihiro Shimizu 890ddd
	img_read_region(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_ciak(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_rgb(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_png(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_rla(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_tif(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_tzup(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_tga(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_pic(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_gif(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_yuv(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_sdl(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_qnt(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_qtl(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_jpg(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
#ifndef WIN32
Toshihiro Shimizu 890ddd
	*img_read_region_cpg(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#ifndef ISALPHA
Toshihiro Shimizu 890ddd
	*img_read_region_pct(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
	*img_read_region_bmp(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_vpb(char *filename, int x1, int y1, int x2, int y2, int scale),
Toshihiro Shimizu 890ddd
	*img_read_region_tzr(char *filename, int x1, int y1, int x2, int y2, int scale);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI IMAGE
Toshihiro Shimizu 890ddd
	*
Toshihiro Shimizu 890ddd
	img_read_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_ciak_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_rgb_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_png_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tga_info(char *filename),
Toshihiro Shimizu 890ddd
	/* *img_read_bw_info  (char *filename),    */
Toshihiro Shimizu 890ddd
	*img_read_cmap_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tif_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_yuv_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_sdl_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_qnt_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_qtl_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_rla_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_gif_info(char *filename),
Toshihiro Shimizu 890ddd
	/* *img_read_rl7_info (char *filename),    */
Toshihiro Shimizu 890ddd
	*img_read_pic_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tzup_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_jpg_info(char *filename),
Toshihiro Shimizu 890ddd
#ifndef WIN32
Toshihiro Shimizu 890ddd
	*img_read_cpg_info(char *filename),
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#ifndef ISALPHA
Toshihiro Shimizu 890ddd
	*img_read_pct_info(char *filename),
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
	*img_read_plt_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_bmp_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_vpb_info(char *filename),
Toshihiro Shimizu 890ddd
	*img_read_tzr_info(char *filename);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI IMAGE
Toshihiro Shimizu 890ddd
	*
Toshihiro Shimizu 890ddd
	img_read_colormap(char *filename);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TNZAPI int
Toshihiro Shimizu 890ddd
img_write(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_ciak(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_rla(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	/* img_write_bw  (char *filename, IMAGE *image),    */
Toshihiro Shimizu 890ddd
	img_write_rgb(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_png(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_tif(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_yuv(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_sdl(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_qtl(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_qnt(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_tga(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_gif(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	/* img_write_rl7 (char *filename, IMAGE *image),    */
Toshihiro Shimizu 890ddd
	img_write_pic(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_tzup(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_jpg(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
#ifndef WIN32
Toshihiro Shimizu 890ddd
	img_write_cpg(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#ifndef ISALPHA
Toshihiro Shimizu 890ddd
	img_write_pct(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
	img_write_plt(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_bmp(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_vpb(char *filename, IMAGE *image),
Toshihiro Shimizu 890ddd
	img_write_tzr(char *filename, IMAGE *image);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif /* __LIBSIMAGE__ */
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif /* _FILE_H_ */