Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. /*
  2.     jbig2dec
  3.  
  4.     Copyright (C) 2001-2002 Artifex Software, Inc.
  5.  
  6.     This software is distributed under license and may not
  7.     be copied, modified or distributed except as expressly
  8.     authorized under the terms of the license contained in
  9.     the file LICENSE in this distribution.
  10.  
  11.     For further licensing information refer to http://artifex.com/ or
  12.     contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
  13.     San Rafael, CA  94903, U.S.A., +1(415)492-9861.
  14. */
  15.  
  16.  
  17. #ifndef _JBIG2_IMAGE_H
  18. #define _JBIG2_IMAGE_H
  19.  
  20. int jbig2_image_get_pixel(Jbig2Image *image, int x, int y);
  21. int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, int value);
  22.  
  23. /* routines for dumping the image data in various formats */
  24. /* FIXME: should these be in the client instead? */
  25.  
  26. #include <stdio.h>
  27.  
  28. int jbig2_image_write_pbm_file(Jbig2Image *image, char *filename);
  29. int jbig2_image_write_pbm(Jbig2Image *image, FILE *out);
  30. Jbig2Image *jbig2_image_read_pbm_file(Jbig2Ctx *ctx, char *filename);
  31. Jbig2Image *jbig2_image_read_pbm(Jbig2Ctx *ctx, FILE *in);
  32.  
  33. #ifdef HAVE_LIBPNG
  34. int jbig2_image_write_png_file(Jbig2Image *image, char *filename);
  35. int jbig2_image_write_png(Jbig2Image *image, FILE *out);
  36. #endif
  37.  
  38. #endif /* _JBIG2_IMAGE_H */
  39.