Lines Matching refs:width
112 createwbmp (int width, int height, int color) in createwbmp() argument
120 if (overflow2(sizeof (int), width)) { in createwbmp()
124 if (overflow2(sizeof (int) * width, height)) { in createwbmp()
129 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) in createwbmp()
135 wbmp->width = width; in createwbmp()
138 for (i = 0; i < width * height; wbmp->bitmap[i++] = color); in createwbmp()
174 wbmp->width = getmbi (getin, in); in readwbmp()
175 if (wbmp->width == -1) in readwbmp()
189 printf ("W: %d, H: %d\n", wbmp->width, wbmp->height); in readwbmp()
192 if (overflow2(sizeof (int), wbmp->width) || in readwbmp()
193 overflow2(sizeof (int) * wbmp->width, wbmp->height)) in readwbmp()
199 …if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == N… in readwbmp()
212 for (col = 0; col < wbmp->width;) in readwbmp()
218 if (col++ < wbmp->width) in readwbmp()
264 putmbi (wbmp->width, putout, out); /* width */ in writewbmp()
273 for (col = 0; col < wbmp->width; col++) in writewbmp()
275 octet |= ((wbmp->bitmap[row * wbmp->width + col] == 1) ? WBMP_WHITE : WBMP_BLACK) << --bitpos; in writewbmp()
316 for (col = 0; col < wbmp->width; col++) in printwbmp()
318 if (wbmp->bitmap[wbmp->width * row + col] == WBMP_BLACK) in printwbmp()