diff options
Diffstat (limited to 'psxdev/bs.h')
-rw-r--r-- | psxdev/bs.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/psxdev/bs.h b/psxdev/bs.h index d8d9a6c..47a3762 100644 --- a/psxdev/bs.h +++ b/psxdev/bs.h @@ -1,4 +1,4 @@ -/* $Id: bs.h,v 1.1 2002-06-21 23:45:51 Pixel Exp $ */ +/* $Id: bs.h,v 1.2 2002-06-23 11:19:06 Pixel Exp $ */ /* libbs - library for the bitstream image format @@ -30,7 +30,9 @@ #ifndef __LIB_BS_H #define __LIB_BS_H +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <sys/types.h> #include <stdarg.h> @@ -60,26 +62,26 @@ extern "C" { void bs_init (void); -int bs_encode ( // returns BS image size in bytes - bs_header_t *outbuf, // output BS image - bs_input_image_t *img, // input image descriptor - int type, // image type (use BS_TYPE) - int q_scale, // Q scaling factor (1=best,>= lower quality) - unsigned char *myiqtab // provide own iqtab (NULL == default) +int bs_encode ( /* returns BS image size in bytes */ + bs_header_t *outbuf, /* output BS image */ + bs_input_image_t *img, /* input image descriptor */ + int type, /* image type (use BS_TYPE) */ + int q_scale, /* Q scaling factor (1=best,>= lower quality) */ + const unsigned char *myiqtab /* provide own iqtab (NULL == default) */ ); void bs_decode_rgb24 ( - unsigned char *outbuf, // output RGB bytes (width*height*3) - bs_header_t *img, // input BS image - int width, int height, // dimension of BS image - unsigned char *myiqtab + unsigned char *outbuf, /* output RGB bytes (width*height*3) */ + bs_header_t *img, /* input BS image */ + int width, int height, /* dimension of BS image */ + const unsigned char *myiqtab ); void bs_decode_rgb15 ( - unsigned short *outbuf, // output RGB bytes (width*height*2) - bs_header_t *img, // input BS image - int width, int height, // dimension of BS image - unsigned char *myiqtab + unsigned short *outbuf, /* output RGB bytes (width*height*2) */ + bs_header_t *img, /* input BS image */ + int width, int height, /* dimension of BS image */ + const unsigned char *myiqtab ); const unsigned char *bs_iqtab (void); |