Home | History | Annotate | Download | only in gregbook

Lines Matching refs:bg

128 #define alpha_composite(composite, fg, alpha, bg) {               \
130 (ush)(bg)*(ush)(255 - (ush)(alpha)) + (ush)128); \
213 } bg[] = {
231 static int num_bgpat = sizeof(bg) / sizeof(struct background_pattern);
432 "Usage: %s [-gamma exp] [-bgcolor bg | -bgpat pat] [-timing]\n"
441 " bg \tdesired background color in 7-character hex RGB format\n"
816 int invert_gradient2 = (bg[pat].type & 0x08);
839 if ((bg[pat].type & 0x07) == 0) {
840 uch r1_min = rgb[bg[pat].rgb1_min].r;
841 uch g1_min = rgb[bg[pat].rgb1_min].g;
842 uch b1_min = rgb[bg[pat].rgb1_min].b;
843 uch r2_min = rgb[bg[pat].rgb2_min].r;
844 uch g2_min = rgb[bg[pat].rgb2_min].g;
845 uch b2_min = rgb[bg[pat].rgb2_min].b;
846 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min;
847 int g1_diff = rgb[bg[pat].rgb1_max].g - g1_min;
848 int b1_diff = rgb[bg[pat].rgb1_max].b - b1_min;
849 int r2_diff = rgb[bg[pat].rgb2_max].r - r2_min;
850 int g2_diff = rgb[bg[pat].rgb2_max].g - g2_min;
851 int b2_diff = rgb[bg[pat].rgb2_max].b - b2_min;
876 (even_odd_horiz && (bg[pat].type & 0x10));
908 } else if ((bg[pat].type & 0x07) == 1) {
913 r1 = rgb[bg[pat].rgb1_max].r;
914 g1 = rgb[bg[pat].rgb1_max].g;
915 b1 = rgb[bg[pat].rgb1_max].b;
916 r2 = rgb[bg[pat].rgb2_max].r;
917 g2 = rgb[bg[pat].rgb2_max].g;
918 b2 = rgb[bg[pat].rgb2_max].b;
942 } else if ((bg[pat].type & 0x07) == 2) {
964 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
965 freq = MAX((double)bg[pat].bg_freq, 0.0);
966 saturate = (double)bg[pat].bg_bsat * 0.1;
967 rotate = (double)bg[pat].bg_brot * 0.1;