summaryrefslogtreecommitdiff
path: root/libopenjpeg/j2k.h
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2004-07-13 14:37:11 +0000
committerAntonin Descampe <antonin@gmail.com>2004-07-13 14:37:11 +0000
commitde5a22aea053d3934536ee3ff5d2f7b2f706d045 (patch)
tree91e0b034affe1ae8b98a06a6e12b1665b2cb7a7f /libopenjpeg/j2k.h
parentbc563fc5ba6e0369dc7da995e971b7077f4788a5 (diff)
Structure j2k_option_t deleted and option "-reduce" integrated to j2k_cp_t.
Parameters changed for j2k_decode, jp2_decode, j2k_decode_jpt_stream
Diffstat (limited to 'libopenjpeg/j2k.h')
-rw-r--r--libopenjpeg/j2k.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/libopenjpeg/j2k.h b/libopenjpeg/j2k.h
index a4c4a52f..06343f1b 100644
--- a/libopenjpeg/j2k.h
+++ b/libopenjpeg/j2k.h
@@ -59,11 +59,6 @@
#define J2K_CCP_QNTSTY_SEQNT 2
typedef struct {
- int reduce_on; /* option reduce is used if reduce = 1 */
- int reduce_value; /* if option reduce is used -> original dimension divided by 2^value */
-} j2k_option_t;
-
-typedef struct {
int dx, dy; /* XRsiz, YRsiz */
int w, h; /* width and height of data */
int x0, y0; /* offset of the component compare to the whole image */
@@ -207,8 +202,9 @@ LIBJ2K_API int j2k_encode(j2k_image_t * i, j2k_cp_t * cp, char *output,
* i: decode image
* cp: coding parameters that were used to encode the image
*/
-LIBJ2K_API int j2k_decode(unsigned char *src, int len, j2k_image_t ** img,
- j2k_cp_t ** cp, j2k_option_t option);
+
+LIBJ2K_API int j2k_decode(unsigned char *src, int len, j2k_image_t * img,
+ j2k_cp_t * cp);
/*
@@ -219,7 +215,7 @@ LIBJ2K_API int j2k_decode(unsigned char *src, int len, j2k_image_t ** img,
* cp: coding parameters that were used to encode the image
*
*/
-int j2k_decode_jpt_stream(unsigned char *src, int len, j2k_image_t ** img,
- j2k_cp_t ** cp);
+int j2k_decode_jpt_stream(unsigned char *src, int len, j2k_image_t * img,
+ j2k_cp_t * cp);
#endif