LibGd
2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
src
gd_nnquant.h
1
/* maximum number of colours that can be used.
2
actual number is now passed to initcolors */
3
#define MAXNETSIZE 256
4
5
/* For 256 colours, fixed arrays need 8kb, plus space for the image
6
---------------------------------------------------------------- */
7
8
/* four primes near 500 - assume no image has a length so large */
9
/* that it is divisible by all four primes */
10
#define prime1 499
11
#define prime2 491
12
#define prime3 487
13
#define prime4 503
14
15
#define minpicturebytes (4 * prime4)
/* minimum size for input image */
Generated by
1.9.8