XXXFB_SETCOLREG

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

xxxfb_setcolreg - Optional function. Sets a color register.  

SYNOPSIS

"SYNOPSIS"

int xxxfb_setcolreg (unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, const struct fb_info * info);  

ARGUMENTS

regno
Which register in the CLUT we are programming
red
The red value which can be up to 16 bits wide
green
The green value which can be up to 16 bits wide
blue
The blue value which can be up to 16 bits wide.
transp
If supported the alpha value which can be up to 16 bits wide.
info
frame buffer info structure
 

DESCRIPTION

Set a single color register. The values supplied have a 16 bit magnitude which needs to be scaled in this function for the hardware. Things to take into consideration are how many color registers, if any, are supported with the current color visual. With truecolor mode no color palettes are supported. Here a psuedo palette is created which we store the value in pseudo_palette in struct fb_info. For pseudocolor mode we have a limited color palette. To deal with this we can program what color is displayed for a particular pixel value. DirectColor is similar in that we can program each color field. If we have a static colormap we don't need to implement this function.

Returns negative errno on error, or zero on success.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 07:07:34 GMT, October 06, 2005