2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: iljpgint.h /main/4 1996/01/08 12:16:39 lehors $ */
24 /**---------------------------------------------------------------------
26 *** (c)Copyright 1992 Hewlett-Packard Co.
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).
38 ***-------------------------------------------------------------------*/
63 typedef int iljpgBool;
65 /* JPEG zigzag scanning order (64 entries) */
67 int _iljpgZigzagTable[];
69 /* Allocate _nBytes from heap and return a ptr to it. */
71 # define ILJPG_MALLOC(_nBytes) (malloc (_nBytes))
74 /* Allocate _nBytes from heap, zero it, and return a ptr to it. */
75 #ifndef ILJPG_MALLOC_ZERO
76 # define ILJPG_MALLOC_ZERO(_nBytes) (calloc ((_nBytes), 1))
79 /* Free given block (*_ptr), allocated by ILJPG_MALLOC_ZERO(). */
81 # define ILJPG_FREE(_ptr) (free (_ptr))
84 /* Validate the given parameter block and return true iff valid.
87 iljpgBool _iljpgValidPars (
88 register iljpgDataPtr pData