Index:
[thread]
[date]
[subject]
[author]
From: Brian S. Julin <bri@tull.umassp.edu>
To : Christoph Egger <Christoph_Egger@t-online.de>
Date: Sun, 4 Jul 1999 10:07:41 -0400 (EDT)
Re: Got to be a faster way.
On Sun, 4 Jul 1999, Christoph Egger wrote:
> Any comments?
> Is that worth to integrate it into libggi or libggi2d?
No, but it would be worth starting a ggiColor extension that
does various optimal palettes, with functions like this:
ggiOptimalRGBFill(
ggi_visual vis,
int red_weight, int green_weight, int_blue_weight,
int s, int len, ggi_color *buf);
ggiOptimalBlend(
ggi_visual vis,
ggi_color *start, ggi_color *end,
int len, ggi_color *buf);
Those would be useful not only for paletted modes, to get the best
looking color swaths for the visual's pixelformat after ggiMapColor
(and if paletted ggiSetPalette) is called using the resulting colors.
Variants that automatically set the palette and return pixels instead
of colors would be nice, too, plus functions to calculate the best
color space/palette to display a particular image with. Of course, it all
doesn't have to be done at once.
But wait about a week and I should have the automated scripts
for generating extensions done, that will make things much easier.
--
Brian
Index:
[thread]
[date]
[subject]
[author]