92 lines
2.7 KiB
C
92 lines
2.7 KiB
C
/*
|
|
* CDE - Common Desktop Environment
|
|
*
|
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these libraries and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/* $XConsortium: iljpgint.h /main/4 1996/01/08 12:16:39 lehors $ */
|
|
/**---------------------------------------------------------------------
|
|
***
|
|
*** (c)Copyright 1992 Hewlett-Packard Co.
|
|
***
|
|
*** RESTRICTED RIGHTS LEGEND
|
|
*** Use, duplication, or disclosure by the U.S. Government is subject to
|
|
*** restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
|
|
*** Technical Data and Computer Software clause in DFARS 252.227-7013.
|
|
*** Hewlett-Packard Company
|
|
*** 3000 Hanover Street
|
|
*** Palo Alto, CA 94304 U.S.A.
|
|
*** Rights for non-DOD U.S. Government Departments and Agencies are as set
|
|
*** forth in FAR 52.227-19(c)(1,2).
|
|
***
|
|
***-------------------------------------------------------------------*/
|
|
|
|
#ifndef ILJPGINT_H
|
|
#define ILJPGINT_H
|
|
|
|
#ifndef ILJPG_H
|
|
#include "iljpg.h"
|
|
#endif
|
|
|
|
#ifdef TRUE
|
|
#undef TRUE
|
|
#endif
|
|
#ifdef FALSE
|
|
#undef FALSE
|
|
#endif
|
|
#define FALSE 0
|
|
#define TRUE 1
|
|
|
|
#ifndef __STDC__
|
|
#ifdef NULL
|
|
#undef NULL
|
|
#endif
|
|
#define NULL 0
|
|
#endif
|
|
|
|
typedef int iljpgBool;
|
|
|
|
/* JPEG zigzag scanning order (64 entries) */
|
|
ILJPG_PRIVATE_EXTERN
|
|
int _iljpgZigzagTable[];
|
|
|
|
/* Allocate _nBytes from heap and return a ptr to it. */
|
|
#ifndef ILJPG_MALLOC
|
|
# define ILJPG_MALLOC(_nBytes) (malloc (_nBytes))
|
|
#endif
|
|
|
|
/* Allocate _nBytes from heap, zero it, and return a ptr to it. */
|
|
#ifndef ILJPG_MALLOC_ZERO
|
|
# define ILJPG_MALLOC_ZERO(_nBytes) (calloc ((_nBytes), 1))
|
|
#endif
|
|
|
|
/* Free given block (*_ptr), allocated by ILJPG_MALLOC_ZERO(). */
|
|
#ifndef ILJPG_FREE
|
|
# define ILJPG_FREE(_ptr) (free (_ptr))
|
|
#endif
|
|
|
|
/* Validate the given parameter block and return true iff valid.
|
|
*/
|
|
ILJPG_PRIVATE_EXTERN
|
|
iljpgBool _iljpgValidPars (
|
|
iljpgDataPtr pData
|
|
);
|
|
|
|
#endif
|