summaryrefslogtreecommitdiff
path: root/psxdev/bs.h
diff options
context:
space:
mode:
authorPixel <Pixel>2002-06-23 11:19:06 +0000
committerPixel <Pixel>2002-06-23 11:19:06 +0000
commit54c77d2cb0f734615febdb3cb33548bf4cd6e953 (patch)
treec6105e4984b0c29f2db05352234e5fbed6a1d092 /psxdev/bs.h
parentcdbb43ea328883261c6f71e6e44b16ae39173fa6 (diff)
Pfiou, huge work...
Diffstat (limited to 'psxdev/bs.h')
-rw-r--r--psxdev/bs.h32
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);