ilcodec.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: ilcodec.h /main/3 1995/10/23 15:42:05 rswiston $ */
  24. /**---------------------------------------------------------------------
  25. ***
  26. *** (c)Copyright 1991 Hewlett-Packard Co.
  27. ***
  28. *** RESTRICTED RIGHTS LEGEND
  29. *** Use, duplication, or disclosure by the U.S. Government is subject to
  30. *** restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
  31. *** Technical Data and Computer Software clause in DFARS 252.227-7013.
  32. *** Hewlett-Packard Company
  33. *** 3000 Hanover Street
  34. *** Palo Alto, CA 94304 U.S.A.
  35. *** Rights for non-DOD U.S. Government Departments and Agencies are as set
  36. *** forth in FAR 52.227-19(c)(1,2).
  37. ***
  38. ***-------------------------------------------------------------------*/
  39. #ifndef ILCODEC_H
  40. #define ILCODEC_H
  41. #ifndef ILINT_H
  42. #include "ilint.h"
  43. #endif
  44. #ifndef ILPIPELEM_H
  45. #include "ilpipelem.h"
  46. #endif
  47. /* Realloc (or alloc the first time) the pixel buffer for plane "plane" of the
  48. compressed image "*pImage", so that its "bufferSize" is a minimum of
  49. "minNewSize" bytes in size.
  50. Returns: TRUE if successful (re)alloc;
  51. else false (malloc error -return IL_ERROR_MALLOC).
  52. */
  53. IL_EXTERN ilBool _ilReallocCompressedBuffer (
  54. ilImageInfo *pImage,
  55. unsigned int plane,
  56. unsigned long minNewSize
  57. );
  58. /* Add a filter to "pipe" (guaranteed to be a pipe in IL_PIPE_FORMING state)
  59. which decompresses the compressed pipe image.
  60. */
  61. IL_EXTERN void _ilDecompress (
  62. ilPipe pipe
  63. );
  64. #endif