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>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2000-04-07 02:59:48 +08:00
|
|
|
*
|
|
|
|
* 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
1999-05-10 00:38:05 +08:00
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_BASE_H_INSIDE__) && !defined (GIMP_BASE_COMPILATION)
|
|
|
|
#error "Only <libgimpbase/gimpbase.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
/**
|
|
|
|
* SECTION: gimplimits
|
|
|
|
* @title: gimplimits
|
|
|
|
* @short_description: Boundaries of some GIMP data types and some
|
|
|
|
* global constants.
|
|
|
|
*
|
|
|
|
* Boundaries of some GIMP data types and some global constants.
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_MIN_IMAGE_SIZE:
|
|
|
|
*
|
|
|
|
* The minimum width and height of a GIMP image in pixels.
|
|
|
|
**/
|
1999-05-10 00:38:05 +08:00
|
|
|
#define GIMP_MIN_IMAGE_SIZE 1
|
2010-06-30 01:13:40 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_MAX_IMAGE_SIZE:
|
|
|
|
*
|
|
|
|
* The maximum width and height of a GIMP image in pixels. This is a
|
2016-06-26 04:54:10 +08:00
|
|
|
* somewhat arbitrary value that can be used when an upper value for
|
2010-06-30 01:13:40 +08:00
|
|
|
* pixel sizes is needed; for example to give a spin button an upper
|
|
|
|
* limit.
|
|
|
|
**/
|
2013-09-19 15:07:18 +08:00
|
|
|
#define GIMP_MAX_IMAGE_SIZE 524288 /* 2^19 */
|
1999-05-10 00:38:05 +08:00
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_MIN_RESOLUTION:
|
|
|
|
*
|
|
|
|
* The minimum resolution of a GIMP image in pixels per inch. This is
|
2016-06-26 04:54:10 +08:00
|
|
|
* a somewhat arbitrary value that can be used when a lower value for a
|
2010-06-30 01:13:40 +08:00
|
|
|
* resolution is needed. GIMP will not accept resolutions smaller than
|
|
|
|
* this value.
|
|
|
|
**/
|
2000-04-07 02:59:48 +08:00
|
|
|
#define GIMP_MIN_RESOLUTION 5e-3 /* shouldn't display as 0.000 */
|
2010-06-30 01:13:40 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_MAX_RESOLUTION:
|
|
|
|
*
|
|
|
|
* The maximum resolution of a GIMP image in pixels per inch. This is
|
2016-06-26 04:54:10 +08:00
|
|
|
* a somewhat arbitrary value that can be used to when an upper value
|
2010-06-30 01:13:40 +08:00
|
|
|
* for a resolution is needed. GIMP will not accept resolutions larger
|
|
|
|
* than this value.
|
|
|
|
**/
|
2012-10-08 00:52:23 +08:00
|
|
|
#define GIMP_MAX_RESOLUTION 1048576.0
|
1999-05-10 00:38:05 +08:00
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_MAX_MEMSIZE:
|
|
|
|
*
|
|
|
|
* A large but arbitrary value that can be used when an upper limit
|
|
|
|
* for a memory size (in bytes) is needed. It is smaller than
|
|
|
|
* %G_MAXDOUBLE since the #GimpMemsizeEntry doesn't handle larger
|
|
|
|
* values.
|
|
|
|
**/
|
2003-11-26 03:45:01 +08:00
|
|
|
#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__ */
|