jbig2_refinement.h 1.2 KB

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