Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtHelp / il / ilcodec.h
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 librararies 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
40 #ifndef ILCODEC_H
41 #define ILCODEC_H
42
43 #ifndef ILINT_H
44 #include "ilint.h"
45 #endif
46
47 #ifndef ILPIPELEM_H
48 #include "ilpipelem.h"
49 #endif
50
51
52
53     /*  Realloc (or alloc the first time) the pixel buffer for plane "plane" of the 
54         compressed image "*pImage", so that its "bufferSize" is a minimum of 
55         "minNewSize" bytes in size.
56        
57         Returns: TRUE if successful (re)alloc;
58                  else false (malloc error -return IL_ERROR_MALLOC).
59     */
60 IL_EXTERN ilBool _ilReallocCompressedBuffer (
61     ilImageInfo        *pImage,
62     unsigned int        plane,
63     unsigned long       minNewSize
64     );
65
66         
67
68     /*  Add a filter to "pipe" (guaranteed to be a pipe in IL_PIPE_FORMING state)
69         which decompresses the compressed pipe image.
70     */
71 IL_EXTERN void _ilDecompress (
72     ilPipe              pipe
73     );
74
75
76 #endif