2000-04-07 02:59:48 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1999 Peter Mattis and Spencer Kimball
|
1999-05-10 00:38:05 +08:00
|
|
|
*
|
|
|
|
* gimplimits.h
|
|
|
|
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
1999-11-18 05:13:50 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1999-05-10 00:38:05 +08:00
|
|
|
* License as published by the Free Software Foundation; either
|
2000-04-07 02:59:48 +08:00
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
1999-12-26 15:54:39 +08:00
|
|
|
* Lesser General Public License for more details.
|
1999-05-10 00:38:05 +08:00
|
|
|
*
|
1999-11-18 05:13:50 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
1999-05-10 00:38:05 +08:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
1999-05-10 00:38:05 +08:00
|
|
|
#ifndef __GIMP_LIMITS_H__
|
|
|
|
#define __GIMP_LIMITS_H__
|
|
|
|
|
2004-11-04 18:51:55 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
|
1999-05-10 00:38:05 +08:00
|
|
|
/* pixel sizes
|
|
|
|
*/
|
|
|
|
#define GIMP_MIN_IMAGE_SIZE 1
|
2003-04-04 23:11:30 +08:00
|
|
|
#define GIMP_MAX_IMAGE_SIZE 262144 /* 2^18 */
|
1999-05-10 00:38:05 +08:00
|
|
|
|
|
|
|
/* dots per inch
|
|
|
|
*/
|
2000-04-07 02:59:48 +08:00
|
|
|
#define GIMP_MIN_RESOLUTION 5e-3 /* shouldn't display as 0.000 */
|
1999-05-10 00:38:05 +08:00
|
|
|
#define GIMP_MAX_RESOLUTION 65536.0
|
|
|
|
|
2003-11-26 03:45:01 +08:00
|
|
|
/* memory sizes
|
|
|
|
*/
|
|
|
|
#define GIMP_MAX_MEMSIZE ((guint64) 1 << 42) /* 4 terabyte;
|
2004-01-06 18:04:31 +08:00
|
|
|
* needs a 64bit variable
|
|
|
|
* and must be < G_MAXDOUBLE
|
|
|
|
*/
|
2003-11-26 03:45:01 +08:00
|
|
|
|
|
|
|
|
2004-11-04 18:51:55 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
1999-05-10 00:38:05 +08:00
|
|
|
#endif /* __GIMP_LIMITS_H__ */
|