2
0

ilutiljpeg.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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: ilutiljpeg.h /main/3 1995/10/23 16:02:42 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 ILUTILJPEG_H
  40. #define ILUTILJPEG_H
  41. /* IL internal defs and functions for JPEG data.
  42. Exposes functions in ilutiljpeg.c .
  43. */
  44. #ifndef IL_H
  45. #include "il.h"
  46. #endif
  47. #ifndef ILJPGDECODE_H
  48. #include "iljpgdecode.h"
  49. #endif
  50. /* Copy general data (but *not* table info) from IL data into
  51. IL JPG package format.
  52. */
  53. IL_EXTERN void _ilJPEGDataIn (
  54. const ilImageDes *pDes,
  55. long width,
  56. long height,
  57. iljpgDataPtr pDst
  58. );
  59. /* Copy table info from IL format into IL JPG package format.
  60. Note: the restartInterval is also copied.
  61. */
  62. IL_EXTERN void _ilJPEGTablesIn (
  63. ilJPEGData *pSrc,
  64. iljpgDataPtr pDst
  65. );
  66. /* Free the tables in the given IL JPEG data block, which is not freed.
  67. */
  68. IL_EXTERN void _ilJPEGFreeTables (
  69. ilJPEGData *pData
  70. );
  71. /* Copy data from pSrc to pDst, mallocing and copying contents of tables.
  72. If an error, free all malloc'd tables in dest, null them and return false.
  73. */
  74. IL_EXTERN ilBool _ilJPEGCopyData (
  75. ilJPEGData *pSrc,
  76. ilJPEGData *pDst
  77. );
  78. #endif