view src/pic2img.h @ 117:0612954ba99c default tip

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 16:36:48 +0300
parents a68786b9c74b
children
line wrap: on
line source

/*
 *        pic2img.h
 *        AYM 1998-??-??
 */


#ifndef YH_PIC2IMG                /* DO NOT INSERT ANYTHING BEFORE THIS LINE */
#define YH_PIC2IMG


#include "img.h"


/* LoadPicture() normally attempts to load the whole picture lump
   into memory at once. However, this variable sets an upper limit
   to the size of the buffer that it allocates. If the picture is
   larger than this, it will be read in several passes. */
#define MAX_PICTURE_BUFFER_SIZE 100000


int LoadPicture(Img & img,
#if 0
                img_pixel_t * buffer,        /* Buffer to load picture into */
                int buf_width,        /* Dimensions of the buffer */
                int buf_height,
#endif
                const char *picname,        /* Picture lump name */
                const Lump_loc & picloc,        /* Picture lump name */
                int pic_x_offset,        /* Coordinates of top left corner of picture */
                int pic_y_offset,        /* relative to top left corner of buffer. */
                int *pic_width = 0,        /* To return the size of the picture */
                int *pic_height = 0);        /* (can be NULL) */


#endif /* DO NOT ADD ANYTHING AFTER THIS LINE */