Lines Matching refs:bg

169 #define alpha_composite(composite, fg, alpha, bg) {               \  argument
171 (ush)(bg)*(ush)(255 - (ush)(alpha)) + (ush)128); \
267 } bg[] = { variable
286 static int num_bgpat = sizeof(bg) / sizeof(struct background_pattern);
1094 int invert_gradient2 = (bg[pat].type & 0x08); in rpng2_x_load_bg_image()
1122 if ((bg[pat].type & 0x07) == 0) { in rpng2_x_load_bg_image()
1123 uch r1_min = rgb[bg[pat].rgb1_min].r; in rpng2_x_load_bg_image()
1124 uch g1_min = rgb[bg[pat].rgb1_min].g; in rpng2_x_load_bg_image()
1125 uch b1_min = rgb[bg[pat].rgb1_min].b; in rpng2_x_load_bg_image()
1126 uch r2_min = rgb[bg[pat].rgb2_min].r; in rpng2_x_load_bg_image()
1127 uch g2_min = rgb[bg[pat].rgb2_min].g; in rpng2_x_load_bg_image()
1128 uch b2_min = rgb[bg[pat].rgb2_min].b; in rpng2_x_load_bg_image()
1129 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min; in rpng2_x_load_bg_image()
1130 int g1_diff = rgb[bg[pat].rgb1_max].g - g1_min; in rpng2_x_load_bg_image()
1131 int b1_diff = rgb[bg[pat].rgb1_max].b - b1_min; in rpng2_x_load_bg_image()
1132 int r2_diff = rgb[bg[pat].rgb2_max].r - r2_min; in rpng2_x_load_bg_image()
1133 int g2_diff = rgb[bg[pat].rgb2_max].g - g2_min; in rpng2_x_load_bg_image()
1134 int b2_diff = rgb[bg[pat].rgb2_max].b - b2_min; in rpng2_x_load_bg_image()
1159 (even_odd_horiz && (bg[pat].type & 0x10)); in rpng2_x_load_bg_image()
1191 } else if ((bg[pat].type & 0x07) == 1) { in rpng2_x_load_bg_image()
1196 r1 = rgb[bg[pat].rgb1_max].r; in rpng2_x_load_bg_image()
1197 g1 = rgb[bg[pat].rgb1_max].g; in rpng2_x_load_bg_image()
1198 b1 = rgb[bg[pat].rgb1_max].b; in rpng2_x_load_bg_image()
1199 r2 = rgb[bg[pat].rgb2_max].r; in rpng2_x_load_bg_image()
1200 g2 = rgb[bg[pat].rgb2_max].g; in rpng2_x_load_bg_image()
1201 b2 = rgb[bg[pat].rgb2_max].b; in rpng2_x_load_bg_image()
1225 } else if ((bg[pat].type & 0x07) == 2) { in rpng2_x_load_bg_image()
1247 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw)); in rpng2_x_load_bg_image()
1248 freq = MAX((double)bg[pat].bg_freq, 0.0); in rpng2_x_load_bg_image()
1249 saturate = (double)bg[pat].bg_bsat * 0.1; in rpng2_x_load_bg_image()
1250 rotate = (double)bg[pat].bg_brot * 0.1; in rpng2_x_load_bg_image()
1881 int invert_gradient2 = (bg[pat].type & 0x08); in rpng2_x_reload_bg_image()
1894 if ((bg[pat].type & 0x07) == 0) { in rpng2_x_reload_bg_image()
1895 uch r1_min = rgb[bg[pat].rgb1_min].r; in rpng2_x_reload_bg_image()
1896 uch g1_min = rgb[bg[pat].rgb1_min].g; in rpng2_x_reload_bg_image()
1897 uch b1_min = rgb[bg[pat].rgb1_min].b; in rpng2_x_reload_bg_image()
1898 uch r2_min = rgb[bg[pat].rgb2_min].r; in rpng2_x_reload_bg_image()
1899 uch g2_min = rgb[bg[pat].rgb2_min].g; in rpng2_x_reload_bg_image()
1900 uch b2_min = rgb[bg[pat].rgb2_min].b; in rpng2_x_reload_bg_image()
1901 int r1_diff = rgb[bg[pat].rgb1_max].r - r1_min; in rpng2_x_reload_bg_image()
1902 int g1_diff = rgb[bg[pat].rgb1_max].g - g1_min; in rpng2_x_reload_bg_image()
1903 int b1_diff = rgb[bg[pat].rgb1_max].b - b1_min; in rpng2_x_reload_bg_image()
1904 int r2_diff = rgb[bg[pat].rgb2_max].r - r2_min; in rpng2_x_reload_bg_image()
1905 int g2_diff = rgb[bg[pat].rgb2_max].g - g2_min; in rpng2_x_reload_bg_image()
1906 int b2_diff = rgb[bg[pat].rgb2_max].b - b2_min; in rpng2_x_reload_bg_image()
1931 (even_odd_horiz && (bg[pat].type & 0x10)); in rpng2_x_reload_bg_image()
1963 } else if ((bg[pat].type & 0x07) == 1) { in rpng2_x_reload_bg_image()
1968 r1 = rgb[bg[pat].rgb1_max].r; in rpng2_x_reload_bg_image()
1969 g1 = rgb[bg[pat].rgb1_max].g; in rpng2_x_reload_bg_image()
1970 b1 = rgb[bg[pat].rgb1_max].b; in rpng2_x_reload_bg_image()
1971 r2 = rgb[bg[pat].rgb2_max].r; in rpng2_x_reload_bg_image()
1972 g2 = rgb[bg[pat].rgb2_max].g; in rpng2_x_reload_bg_image()
1973 b2 = rgb[bg[pat].rgb2_max].b; in rpng2_x_reload_bg_image()
1997 } else if ((bg[pat].type & 0x07) == 2) { in rpng2_x_reload_bg_image()
2015 grayspot = CLIP(bg[pat].bg_gray, 1, (hh + hw)); in rpng2_x_reload_bg_image()
2016 freq = MAX((double)bg[pat].bg_freq, 0.0); in rpng2_x_reload_bg_image()
2017 saturate = (double)bg[pat].bg_bsat * 0.1; in rpng2_x_reload_bg_image()
2018 rotate = (double)bg[pat].bg_brot * 0.1; in rpng2_x_reload_bg_image()