Lines Matching refs:width

170 // Parameters:	width, width of the row, in pixels
179 get_padding(uint32 width, uint16 bitsperpixel)
185 padding = (width * bytesPerPixel) % 4;
188 if (!(width % pixelsPerByte))
189 padding = (width / pixelsPerByte) % 4;
191 padding = ((width + pixelsPerByte -
192 (width % pixelsPerByte)) /
206 // with a width of width and a bit depth of bitsperpixel.
212 // Parameters: width, width of the row, in pixels
221 get_rowbytes(uint32 width, uint16 bitsperpixel)
224 int32 padding = get_padding(width, bitsperpixel);
228 rowbytes = (width * bytesPerPixel) + padding;
231 rowbytes = (width / pixelsPerByte) +
232 ((width % pixelsPerByte) ? 1 : 0) + padding;
345 if (msheader.width == 0 || msheader.height == 0)
393 pmsheader->width = abs(msheader.width);
428 if (os2header.width == 0 || os2header.height == 0)
454 pmsheader->width = os2header.width;
472 pmsheader->imagesize = get_rowbytes(pmsheader->width,
492 pmsheader->imagesize = get_rowbytes(pmsheader->width,
624 int32 bitsRowBytes = msheader.width * bitsBytesPerPixel;
625 int32 padding = get_padding(msheader.width, msheader.bitsperpixel);
627 get_rowbytes(msheader.width, msheader.bitsperpixel);
651 for (int32 i = 0; i < msheader.width; i++) {
762 } // for for (uint32 i = 0; i < msheader.width; i++)
811 int32 padding = get_padding(msheader.width, msheader.bitsperpixel);
813 get_rowbytes(msheader.width, msheader.bitsperpixel);
828 memcpy(bmpRowData, bitsRowData, msheader.width);
878 get_rowbytes(msheader.width, msheader.bitsperpixel);
894 for (int32 i = 0; (bmppixcol < msheader.width) &&
898 for (uint8 compbit = 128; (bmppixcol < msheader.width) &&
1025 msheader.width =
1057 msheader.imagesize = get_rowbytes(msheader.width, 24) *
1072 msheader.imagesize = get_rowbytes(msheader.width,
1086 msheader.imagesize = get_rowbytes(msheader.width,
1213 int32 bitsRowBytes = msheader.width * 4;
1216 get_rowbytes(msheader.width, msheader.bitsperpixel);
1269 for (int32 i = 0; i < msheader.width; i++) {
1340 get_rowbytes(msheader.width, msheader.bitsperpixel);
1346 int32 bitsRowBytes = msheader.width * 4;
1368 for (int32 i = 0; i < msheader.width; i++) {
1466 int32 bitsRowBytes = msheader.width * 4;
1489 if (bmppixcol == msheader.width) {
1497 if (count + bmppixcol > msheader.width)
1498 count = msheader.width - bmppixcol;
1524 if (bmppixcol < msheader.width)
1526 defaultcolor, msheader.width - bmppixcol);
1537 if (bmppixcol == msheader.width) {
1547 msheader.width - bmppixcol);
1572 if ((dx + bmppixcol >= msheader.width) ||
1584 msheader.width - bmppixcol);
1606 if (bmppixcol == msheader.width) {
1614 if (code + bmppixcol > msheader.width)
1615 code = msheader.width - bmppixcol;
1754 bitsHeader.bounds.right = msheader.width - 1;
1793 bitsHeader.rowBytes = msheader.width * 4;