Home | History | Annotate | Download | only in gregbook

Lines Matching refs:uch

138 #define CLIP8P(c)        MAX(0,(MIN((c),255)))   /* 8-bit pos. integer (uch) */
159 (composite) = (uch)((temp + (temp >> 8)) >> 8); \
187 static uch inbuf[INBUFSIZE];
194 static uch *bg_data;
197 uch r, g, b;
264 static uch *dib;
265 static uch *wimage_data;
555 rpng2_info.bg_red = (uch)r;
556 rpng2_info.bg_green = (uch)g;
557 rpng2_info.bg_blue = (uch)b;
659 rpng2_info.image_data = (uch *)malloc(rowbytes * rpng2_info.height);
665 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *));
695 uch bg_red = rpng2_info.bg_red;
696 uch bg_green = rpng2_info.bg_green;
697 uch bg_blue = rpng2_info.bg_blue;
698 uch *dest;
712 if (!(dib = (uch *)malloc(sizeof(BITMAPINFOHEADER) +
841 uch *src, *dest;
842 uch r1, r2, g1, g2, b1, b2;
843 uch r1_inv, r2_inv, g1_inv, g2_inv, b1_inv, b2_inv;
857 bg_data = (uch *)malloc(bg_rowbytes * rpng2_info.height);
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;
974 uch ch;
1021 ch = (uch)(v * 255.0);
1040 *dest++ = (uch)(red * 255.0);
1041 *dest++ = (uch)(green * 255.0);
1042 *dest++ = (uch)(blue * 255.0);
1078 uch bg_red = rpng2_info.bg_red;
1079 uch bg_green = rpng2_info.bg_green;
1080 uch bg_blue = rpng2_info.bg_blue;
1081 uch *src, *src2=NULL, *dest;
1082 uch r, g, b, a;