| 1 |
/* |
| 2 |
fbmngplay - fb console MNG player. |
| 3 |
(c) 2001 by Stefan Reinauer, <stepan :at: suse.de> |
| 4 |
|
| 5 |
This program is based on mngplay, part of libmng, written and (C) by |
| 6 |
Ralph Giles <giles :at: ashlu.bc.ca> |
| 7 |
|
| 8 |
This program my be redistributed under the terms of the |
| 9 |
GNU General Public Licence, version 2, or at your preference, |
| 10 |
any later version. |
| 11 |
*/ |
| 12 |
|
| 13 |
#ifndef __FBMNGPLAY_H |
| 14 |
#define __FBMNGPLAY_H |
| 15 |
|
| 16 |
#include <libmng.h> |
| 17 |
|
| 18 |
#define FBMNGPLAY_VERSION "0.3" |
| 19 |
|
| 20 |
/* structure for keeping track of our mng stream inside the callbacks */ |
| 21 |
typedef struct { |
| 22 |
FILE *file; /* pointer to the file we're decoding */ |
| 23 |
char *filename; /* pointer to the file's path/name */ |
| 24 |
mng_uint32 delay; /* ticks to wait before resuming decode */ |
| 25 |
unsigned char *display; /* pointer to display */ |
| 26 |
unsigned char *copybuffer; |
| 27 |
unsigned char *background; |
| 28 |
mng_handle mng; /* mng handle */ |
| 29 |
int width, height; |
| 30 |
int fbwidth, fbheight, fbbpp; |
| 31 |
int fbx, fby; |
| 32 |
int alpha; |
| 33 |
} mngstuff; |
| 34 |
|
| 35 |
extern volatile int run; |
| 36 |
extern int verbose; |
| 37 |
extern int buffered; |
| 38 |
extern int dynpos; |
| 39 |
extern int waitsignal; |
| 40 |
extern int delta; |
| 41 |
extern int sconly; |
| 42 |
|
| 43 |
#endif |