ggiGetGamma man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

ggiGetGamma(3)			      GGI			ggiGetGamma(3)

NAME
       ggiGetGamma, ggiSetGamma, ggiGetGammaMap, ggiSetGammaMap, ggiGammaMax :
       Manipulate the gamma maps and the gamma correction of a visual

SYNOPSIS
       #include <ggi/ggi.h>

       int ggiGetGamma(ggi_visual_t vis,
			     ggi_float *r, ggi_float *g, ggi_float *b);

       int ggiSetGamma(ggi_visual_t vis,
			     ggi_float r, ggi_float g, ggi_float b);

       int ggiGetGammaMap(ggi_visual_t vis,
			     int s, int len, ggi_color *gammamap);

       int ggiSetGammaMap(ggi_visual_t vis,
			     int s, int len, const ggi_color *gammamap);

       int ggiGammaMax(ggi_visual_t vis,
			     uint32_t bitmeaning, int *max_r, int *max_w);

DESCRIPTION
       Some modes on some hardware can use a per-channel palette to lookup the
       values before sending to the monitor.  Generally this is used for gamma
       correction by filling the lookup table with a  curve,  hence  the  name
       "gamma map", but it could be used for other things e.g. special effects
       in games.  Truecolor modes with gamma maps are sometimes referred to as
       "directcolor".

       ggiSetGammaMap  and  ggiGetGammaMap  set	 or get the gamma map, for len
       colors starting at s.  In the event that there are more map entries for
       some  channels  than others, values for the upper indices of the map in
       the shallow channels are ignored on write, and undefined on read.

       The ggiGammaMax function is used in order to find out how many readable
       and  writeable  entries are in the map (returned in the integers refer‐
       enced by max_w and max_r).  This must be done once  for	each  channel.
       The  parameter  bitmeaning  should  be  set  to	the  bit meaning (e.g.
       GGI_BM_TYPE_COLOR | GGI_BM_SUB_BLUE) of the channel of  which  you  are
       inquiring.   If ggiGammaMax returns an ggi-error(3), you cannot set the
       gamma map on this visual.  If ggiGammaMax succeeds, but max_w is -1  on
       return,	this means that ggiSetGamma will work, but that ggiSetGammaMap
       will not.

       ggiSetGamma and ggiGetGamma sets or gets the gamma correction  for  the
       visual  according  to  the usual curve associated with the given values
       for each channel, which should be positive.

RETURN VALUE
       All five functions 0 for OK, otherwise a ggi-error(3) code.

libggi-2.2.x			  2006-12-30			ggiGetGamma(3)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net