Lines Matching refs:width
111 createwbmp (int width, int height, int color) in createwbmp() argument
119 if (overflow2(sizeof (int), width)) { in createwbmp()
123 if (overflow2(sizeof (int) * width, height)) { in createwbmp()
128 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) in createwbmp()
134 wbmp->width = width; in createwbmp()
137 for (i = 0; i < width * height; wbmp->bitmap[i++] = color); in createwbmp()
173 wbmp->width = getmbi (getin, in); in readwbmp()
174 if (wbmp->width == -1) in readwbmp()
188 printf ("W: %d, H: %d\n", wbmp->width, wbmp->height); in readwbmp()
191 if (overflow2(sizeof (int), wbmp->width) || in readwbmp()
192 overflow2(sizeof (int) * wbmp->width, wbmp->height)) in readwbmp()
198 …if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == N… in readwbmp()
211 for (col = 0; col < wbmp->width;) in readwbmp()
217 if (col++ < wbmp->width) in readwbmp()
263 putmbi (wbmp->width, putout, out); /* width */ in writewbmp()
272 for (col = 0; col < wbmp->width; col++) in writewbmp()
274 octet |= ((wbmp->bitmap[row * wbmp->width + col] == 1) ? WBMP_WHITE : WBMP_BLACK) << --bitpos; in writewbmp()
315 for (col = 0; col < wbmp->width; col++) in printwbmp()
317 if (wbmp->bitmap[wbmp->width * row + col] == WBMP_BLACK) in printwbmp()