On Mon, 17 Aug 2009 09:02:31 +0700 Mikhail Gusarov <dotted...@dottedmag.net>
said:

> 
> Twas brillig at 11:42:20 17.08.2009 UTC+10 when ras...@rasterman.com did gyre
> and gimble:
> 
>  CH(R> On Sun, 16 Aug 2009 20:25:10 +0700 Mikhail Gusarov
> <dotted...@dottedmag.net> CH(R> said:
> 
>  >> This is needed for E-Ink devices outta there. Names of new files,
>  >> configure.ac variables and macros are awful, suggestions are welcome.
> 
>  CHR> strange that u use a palette table lookup and you like to use rgb
>  CHR> weighting on conversion to grayscale :)
> 
> Well, I would ask X server for RGB values available in palette (is there
> approprite X request for this?), sort them and build Voronoi's diagram

you can query palettes in x - yes. XGetRGBColormaps() to read colormaps. but i
don't quite know how your x is set up? is it set up that its default visual is
a greyscale one? or indexed color? truecolor?

> for optimal RGB->values mapping, but I felt it is kind of overkill :)
> Though it can be useful as a super-generic super-slow high-quality
> fallback.
> 
> So I relied on the fact palette filler in EFL provides uniform filling,
> and hence the grayscale palette is a linear approximation of full-range
> 0..255 grayscale, so index in palette corresponds to the luminance
> picewise-linearily.
> 
> </pretension to know math>
> 
> -- 
>   http://fossarchy.blogspot.com/
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to