Subversion Repositories eduke32

Rev

Rev 8488 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8488 Rev 8491
Line 7... Line 7...
7
7
8
extern void paletteInitClosestColorScale(int32_t rscale, int32_t gscale, int32_t bscale);
8
extern void paletteInitClosestColorScale(int32_t rscale, int32_t gscale, int32_t bscale);
9
extern void paletteInitClosestColorMap(uint8_t const * pal) ATTRIBUTE((nonnull(1)));
9
extern void paletteInitClosestColorMap(uint8_t const * pal) ATTRIBUTE((nonnull(1)));
10
extern void paletteInitClosestColorGrid(void);
10
extern void paletteInitClosestColorGrid(void);
11
11
12
extern int32_t paletteGetClosestColorUpToIndex(int32_t r, int32_t g, int32_t b, int32_t lastokcol);
12
extern int32_t paletteGetClosestColorWithBlacklist(int32_t r, int32_t g, int32_t b, int32_t lastokcol, uint8_t const * blacklist);
13
extern int32_t paletteGetClosestColorUpToIndexNoCache(int32_t r, int32_t g, int32_t b, int32_t lastokcol);
13
extern int32_t paletteGetClosestColorWithBlacklistNoCache(int32_t r, int32_t g, int32_t b, int32_t lastokcol, uint8_t const * blacklist);
14
extern void paletteFlushClosestColor(void);
14
extern void paletteFlushClosestColor(void);
15
15
-
 
16
static FORCE_INLINE int32_t paletteGetClosestColorUpToIndex(int32_t r, int32_t g, int32_t b, int32_t lastokcol)
-
 
17
{
-
 
18
    return paletteGetClosestColorWithBlacklist(r, g, b, lastokcol, NULL);
-
 
19
}
-
 
20
static FORCE_INLINE int32_t paletteGetClosestColorUpToIndexNoCache(int32_t r, int32_t g, int32_t b, int32_t lastokcol)
-
 
21
{
-
 
22
    return paletteGetClosestColorWithBlacklistNoCache(r, g, b, lastokcol, NULL);
-
 
23
}
-
 
24
16
static FORCE_INLINE int32_t paletteGetClosestColor(int32_t r, int32_t g, int32_t b)
25
static FORCE_INLINE int32_t paletteGetClosestColor(int32_t r, int32_t g, int32_t b)
17
{
26
{
18
    return paletteGetClosestColorUpToIndex(r, g, b, 255);
27
    return paletteGetClosestColorUpToIndex(r, g, b, 255);
19
}
28
}
20
static FORCE_INLINE int32_t paletteGetClosestColorNoCache(int32_t r, int32_t g, int32_t b)
29
static FORCE_INLINE int32_t paletteGetClosestColorNoCache(int32_t r, int32_t g, int32_t b)