1 /*
2  *	pic2img.h
3  *	AYM 1998-??-??
4  */
5 
6 
7 #ifndef YH_PIC2IMG  /* DO NOT INSERT ANYTHING BEFORE THIS LINE */
8 #define YH_PIC2IMG
9 
10 
11 #include "img.h"
12 
13 
14 /* LoadPicture() normally attempts to load the whole picture lump
15    into memory at once. However, this variable sets an upper limit
16    to the size of the buffer that it allocates. If the picture is
17    larger than this, it will be read in several passes. */
18 #define MAX_PICTURE_BUFFER_SIZE 100000
19 
20 
21 int LoadPicture (
22    Img& img,
23 #if 0
24    img_pixel_t *buffer,	/* Buffer to load picture into */
25    int buf_width,		/* Dimensions of the buffer */
26    int buf_height,
27 #endif
28    const char *picname,		/* Picture lump name */
29    const Lump_loc& picloc,	/* Picture lump name */
30    int pic_x_offset,		/* Coordinates of top left corner of picture */
31    int pic_y_offset,		/* relative to top left corner of buffer. */
32    int *pic_width = 0,		/* To return the size of the picture */
33    int *pic_height = 0);	/* (can be NULL) */
34 
35 
36 #endif  /* DO NOT ADD ANYTHING AFTER THIS LINE */
37