| 1 | /* Copyright (C) 2001-2019 Artifex Software, Inc. | 
|---|
| 2 | All Rights Reserved. | 
|---|
| 3 |  | 
|---|
| 4 | This software is provided AS-IS with no warranty, either express or | 
|---|
| 5 | implied. | 
|---|
| 6 |  | 
|---|
| 7 | This software is distributed under license and may not be copied, | 
|---|
| 8 | modified or distributed except as expressly authorized under the terms | 
|---|
| 9 | of the license contained in the file LICENSE in this distribution. | 
|---|
| 10 |  | 
|---|
| 11 | Refer to licensing information at http://www.artifex.com or contact | 
|---|
| 12 | Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato, | 
|---|
| 13 | CA 94945, U.S.A., +1(415)492-9861, for further information. | 
|---|
| 14 | */ | 
|---|
| 15 |  | 
|---|
| 16 | /* | 
|---|
| 17 | jbig2dec | 
|---|
| 18 | */ | 
|---|
| 19 |  | 
|---|
| 20 | #ifndef _JBIG2_REFINEMENT_H | 
|---|
| 21 | #define _JBIG2_REFINEMENT_H | 
|---|
| 22 |  | 
|---|
| 23 | /* 6.3 Table 6 */ | 
|---|
| 24 | typedef struct { | 
|---|
| 25 | /* GRW */ | 
|---|
| 26 | /* GRH */ | 
|---|
| 27 | bool GRTEMPLATE; | 
|---|
| 28 | Jbig2Image *GRREFERENCE; | 
|---|
| 29 | int32_t GRREFERENCEDX, GRREFERENCEDY; | 
|---|
| 30 | bool TPGRON; | 
|---|
| 31 | int8_t grat[4]; | 
|---|
| 32 | } Jbig2RefinementRegionParams; | 
|---|
| 33 |  | 
|---|
| 34 | int | 
|---|
| 35 | jbig2_decode_refinement_region(Jbig2Ctx *ctx, | 
|---|
| 36 | Jbig2Segment *segment, | 
|---|
| 37 | const Jbig2RefinementRegionParams *params, Jbig2ArithState *as, Jbig2Image *image, Jbig2ArithCx *GB_stats); | 
|---|
| 38 |  | 
|---|
| 39 | /* 7.4 */ | 
|---|
| 40 | int jbig2_refinement_region(Jbig2Ctx *ctx, Jbig2Segment *segment, const byte *segment_data); | 
|---|
| 41 |  | 
|---|
| 42 | #endif /* _JBIG2_REFINEMENT_H */ | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|