Lines Matching defs:wb
134 mlib_s32 wb; /* width in bytes */
168 wb = width * channels;
172 if (!SAFE_TO_MULT(wb, 8)) {
175 wb *= 8;
180 if (!SAFE_TO_MULT(wb, 4)) {
183 wb *= 4;
188 if (!SAFE_TO_MULT(wb, 2)) {
191 wb *= 2;
195 // wb is ready
199 if (!SAFE_TO_ADD(7, wb)) {
202 wb = (wb + 7) / 8;
219 if ((stride != wb) ||
262 mlib_s32 wb; /* width in bytes */
274 wb = width * channels;
278 if (!SAFE_TO_MULT(wb, 8)) {
281 wb *= 8;
285 if (!SAFE_TO_MULT(wb, 4)) {
288 wb *= 4;
292 if (!SAFE_TO_MULT(wb, 2)) {
295 wb *= 2;
298 // wb is ready
301 if (!SAFE_TO_ADD(7, wb)) {
304 wb = (wb + 7) / 8;
310 if (!SAFE_TO_MULT(wb, height)) {
314 data = mlib_malloc(wb * height);
329 image -> stride = wb;
333 image -> flags |= ((wb & 0xf) << 16); /* set stride field */
344 if ((type == MLIB_BIT) && (wb * 8 != width * channels)) {