Logo Search packages:      
Sourcecode: vdr-plugin-osdteletext version File versions

colormapping.h

/*Color mapping table
Here you can adjust the translation of colors to your needs.
Forget about the "Bpp==3" part below, only adjust the "Bpp==2" part.
You have to pick one background and three
foreground colors, not more! These four distinct colors you define as
COLORMAPPING_2_COLOR 1 - 4 and distribute them over COLORMAPPING_..._2.
To avoid invisible chars you also have to define a COLORMAPPING_INVERTEDCOLOR
for each color. That color will be used as foreground color when the mapped
foreground color else would be the same as the mapped background color.
*/

//for Bpp==2. Adjust these twenty lines to your needs! 

//FIRST STEP: Pick four colors. (see osdbase.h for some more colors)
#define COLORMAPPING_2_COLOR1    configurableBackground
#define COLORMAPPING_2_COLOR2    clrRed
#define COLORMAPPING_2_COLOR3    clrYellow
#define COLORMAPPING_2_COLOR4    clrCyan

//SECOND STEP: Take the four colors you chose and distribute them
//so that it is optimal for the channel you use most often
#define COLORMAPPING_BLACK_2     configurableBackground
#define COLORMAPPING_RED_2       clrRed
#define COLORMAPPING_GREEN_2     clrYellow
#define COLORMAPPING_YELLOW_2    clrYellow
#define COLORMAPPING_BLUE_2      configurableBackground
#define COLORMAPPING_MAGENTA_2   clrRed
#define COLORMAPPING_CYAN_2      clrCyan
#define COLORMAPPING_WHITE_2     clrCyan

//THIRD STEP: Invert the colors you chose above,
//still only using your four colors!
#define COLORMAPPING_INVERTEDBLACK_2     clrCyan
#define COLORMAPPING_INVERTEDRED_2       clrYellow
#define COLORMAPPING_INVERTEDGREEN_2     clrRed
#define COLORMAPPING_INVERTEDYELLOW_2    clrRed
#define COLORMAPPING_INVERTEDBLUE_2      clrCyan
#define COLORMAPPING_INVERTEDMAGENTA_2   clrYellow
#define COLORMAPPING_INVERTEDCYAN_2      ((eDvbColor)ttSetup.configuredClrBackground)
#define COLORMAPPING_INVERTEDWHITE_2     ((eDvbColor)ttSetup.configuredClrBackground)







//for Bpp==3. Not used currently. Forget it.
//Ignore anything below this line.
#define COLORMAPPING_BLACK_3     clrBackground
#define COLORMAPPING_RED_3       clrRed
#define COLORMAPPING_GREEN_3     clrGreen
#define COLORMAPPING_YELLOW_3    clrYellow
#define COLORMAPPING_BLUE_3      clrBlue
#define COLORMAPPING_MAGENTA_3   clrMagenta
#define COLORMAPPING_CYAN_3      clrWhite
#define COLORMAPPING_WHITE_3     clrCyan

#define COLORMAPPING_3_COLOR1 COLORMAPPING_BLACK_3     
#define COLORMAPPING_3_COLOR2 COLORMAPPING_RED_3       
#define COLORMAPPING_3_COLOR3 COLORMAPPING_GREEN_3     
#define COLORMAPPING_3_COLOR4 COLORMAPPING_YELLOW_3    
#define COLORMAPPING_3_COLOR5 COLORMAPPING_BLUE_3      
#define COLORMAPPING_3_COLOR6 COLORMAPPING_MAGENTA_3   
#define COLORMAPPING_3_COLOR7 COLORMAPPING_CYAN_3      
#define COLORMAPPING_3_COLOR8 COLORMAPPING_WHITE_3     



Generated by  Doxygen 1.6.0   Back to index