diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/gd_nnquant.h')
-rw-r--r-- | Build/source/libs/gd/libgd-src/src/gd_nnquant.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/src/gd_nnquant.h b/Build/source/libs/gd/libgd-src/src/gd_nnquant.h new file mode 100644 index 00000000000..b054fb1da44 --- /dev/null +++ b/Build/source/libs/gd/libgd-src/src/gd_nnquant.h @@ -0,0 +1,19 @@ + +/* maximum number of colours that can be used. + actual number is now passed to initcolors */ +#define MAXNETSIZE 256 + +/* For 256 colours, fixed arrays need 8kb, plus space for the image + ---------------------------------------------------------------- */ + + +/* four primes near 500 - assume no image has a length so large */ +/* that it is divisible by all four primes */ +#define prime1 499 +#define prime2 491 +#define prime3 487 +#define prime4 503 + +#define minpicturebytes (4*prime4) /* minimum size for input image */ + + |