diff options
Diffstat (limited to 'jbig2dec/jbig2.h')
-rw-r--r-- | jbig2dec/jbig2.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/jbig2dec/jbig2.h b/jbig2dec/jbig2.h index fb195fec..38eb8603 100644 --- a/jbig2dec/jbig2.h +++ b/jbig2dec/jbig2.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2019 Artifex Software, Inc. +/* Copyright (C) 2001-2020 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -17,16 +17,16 @@ jbig2dec */ +#ifndef _JBIG2_H +#define _JBIG2_H + #ifdef __cplusplus extern "C" { #endif -#ifndef _JBIG2_H -#define _JBIG2_H - #define JBIG2_VERSION_MAJOR (0) -#define JBIG2_VERSION_MINOR (18) +#define JBIG2_VERSION_MINOR (19) /* warning levels */ typedef enum { @@ -65,7 +65,8 @@ struct _Jbig2Image { handler is used which prints fatal errors to the stderr stream. */ /* error callback */ -typedef void (*Jbig2ErrorCallback)(void *data, const char *msg, Jbig2Severity severity, int32_t seg_idx); +#define JBIG2_UNKNOWN_SEGMENT_NUMBER ~0U +typedef void (*Jbig2ErrorCallback)(void *data, const char *msg, Jbig2Severity severity, uint32_t seg_idx); /* memory allocation is likewise done via a set of callbacks so that clients can better control memory usage. If a NULL is passed for @@ -104,8 +105,6 @@ void jbig2_release_page(Jbig2Ctx *ctx, Jbig2Image *image); /* mark the current page as complete, simulating an end-of-page segment (for broken streams) */ int jbig2_complete_page(Jbig2Ctx *ctx); -#endif /* _JBIG2_H */ - /* If we don't have a definition for inline, make it nothing so the code will compile */ #ifndef inline #define inline @@ -114,3 +113,5 @@ int jbig2_complete_page(Jbig2Ctx *ctx); #ifdef __cplusplus } #endif + +#endif /* _JBIG2_H */ |