Lines Matching refs:bg
156 #define alpha_composite(composite, fg, alpha, bg) { \ argument
158 (ush)(bg)*(ush)(255 - (ush)(alpha)) + (ush)128); \
241 } bg[] = { variable
259 static int num_bgpat = sizeof(bg) / sizeof(struct background_pattern);
847 int invert_gradient2 = (bg[pat].type & 0x08);
870 if ((bg[pat].type & 0x07) == 0) {
871 uch r1_min = rgb[bg[pat].rgb1_min].r;
872 uch g1_min = rgb[bg[pat].rgb1_min].g;
873 uch b1_min = rgb[bg[pat].rgb1_min].b;
874 uch r2_min = rgb[bg[pat].rgb2_min].r;
875 uch g2_min = rgb[bg[pat].rgb2_min].g;
876 uch b2_min = rgb[bg[pat].rgb2_min].b;
877 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min;
878 int g1_diff = rgb[bg[pat].rgb1_max].g - g1_min;
879 int b1_diff = rgb[bg[pat].rgb1_max].b - b1_min;
880 int r2_diff = rgb[bg[pat].rgb2_max].r - r2_min;
881 int g2_diff = rgb[bg[pat].rgb2_max].g - g2_min;
882 int b2_diff = rgb[bg[pat].rgb2_max].b - b2_min;
907 (even_odd_horiz && (bg[pat].type & 0x10));
939 } else if ((bg[pat].type & 0x07) == 1) {
944 r1 = rgb[bg[pat].rgb1_max].r;
945 g1 = rgb[bg[pat].rgb1_max].g;
946 b1 = rgb[bg[pat].rgb1_max].b;
947 r2 = rgb[bg[pat].rgb2_max].r;
948 g2 = rgb[bg[pat].rgb2_max].g;
949 b2 = rgb[bg[pat].rgb2_max].b;
973 } else if ((bg[pat].type & 0x07) == 2) {
995 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw));
996 freq = MAX((double)bg[pat].bg_freq, 0.0);
997 saturate = (double)bg[pat].bg_bsat * 0.1;
998 rotate = (double)bg[pat].bg_brot * 0.1;