Lines Matching refs:width

127 get_bytes_per_row(int32 width, int32 bitsPerPixel)
129 return (((bitsPerPixel * width + 7) / 8) + 3) & ~3;
254 int32 width, int32 height, int32 bytesPerRow)
257 for (int32 x = 0; x < width; x++) {
278 int32 xorRowBytes = get_bytes_per_row(entry.width, header.bits_per_pixel);
281 andRowBytes = get_bytes_per_row(entry.width, 1);
282 int32 outRowBytes = entry.width * 4;
318 for (uint32 x = 0; x < entry.width; x++) {
390 int32 xorRowBytes = get_bytes_per_row(entry.width, bitsPerPixel);
391 int32 andRowBytes = get_bytes_per_row(entry.width, 1);
409 for (uint32 x = 0; x < entry.width; x++) {
470 for (uint32 x = 0; x < entry.width; x++) {
542 TRACE(("width: %d, height: %d, planes: %d, color_count: %d, bits_per_pixel: %d, size: %ld, offset: %ld\n",
543 entry.width, entry.height, entry.planes, entry.color_count, entry.bits_per_pixel,
551 TRACE(("size: %ld, width: %ld, height: %ld, bits_per_pixel: %d, x/y per meter: %ld:%ld, compression: %ld, image_size: %ld, colors used: %ld, important colors: %ld\n",
552 bitmapHeader.size, bitmapHeader.width, bitmapHeader.height, bitmapHeader.bits_per_pixel,
626 if (entry.size != 0 && 2 * entry.width == entry.height && numColors != 0
627 && sizeof(rgba32_color) * numColors + entry.width * entry.height > entry.size)
628 entry.height = entry.width;
634 bitsHeader.bounds.right = entry.width - 1;
636 bitsHeader.bounds.Set(0, 0, entry.width - 1, entry.height - 1);
637 bitsHeader.rowBytes = entry.width * 4;
665 int32 width = bitsHeader.bounds.IntegerWidth() + 1;
667 if (!is_valid_size(width) || !is_valid_size(height))
707 width, height, bitsHeader.rowBytes)) {
735 entry.width = width;
745 int32 xorRowBytes = get_bytes_per_row(width, bitsPerPixel);
748 andRowBytes = get_bytes_per_row(width, 1);
750 entry.size = sizeof(ico_bitmap_header) + width * (xorRowBytes + andRowBytes);
759 bitmapHeader.width = width;