Lines Matching refs:width
80 int32_t width, height; in bmp_info_header_parse() local
108 width = read_int16(data, 4); in bmp_info_header_parse()
110 if ((width <= 0) || (height == 0)) in bmp_info_header_parse()
123 if ((width > 256) || (height > 512)) { in bmp_info_header_parse()
126 bmp->width = width; in bmp_info_header_parse()
130 bmp->width = width; in bmp_info_header_parse()
185 width = read_int32(data, 4); in bmp_info_header_parse()
187 if ((width <= 0) || (height == 0)) in bmp_info_header_parse()
204 if ((width > 256) || (height > 512)) { in bmp_info_header_parse()
207 bmp->width = width; in bmp_info_header_parse()
211 bmp->width = width; in bmp_info_header_parse()
339 bmp->bitmap = bmp->bitmap_callbacks.bitmap_create(bmp->width, bmp->height, flags); in bmp_info_header_parse()
460 image->bmp.width = read_uint8(data, 0); in ico_header_parse()
461 if (image->bmp.width == 0) in ico_header_parse()
462 image->bmp.width = 256; in ico_header_parse()
491 area = image->bmp.width * image->bmp.height; in ico_header_parse()
493 ico->width = image->bmp.width; in ico_header_parse()
522 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_rgb32()
541 if ((data + (4 * bmp->width)) > end) in bmp_decode_rgb32()
548 for (x = 0; x < bmp->width; x++) { in bmp_decode_rgb32()
562 for (x = 0; x < bmp->width; x++) { in bmp_decode_rgb32()
601 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_rgb24()
622 if ((data + (3 * bmp->width)) > end) { in bmp_decode_rgb24()
632 for (x = 0; x < bmp->width; x++) { in bmp_decode_rgb24()
672 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_rgb16()
689 if ((data + (2 * bmp->width)) > end) in bmp_decode_rgb16()
696 for (x = 0; x < bmp->width; x++) { in bmp_decode_rgb16()
714 for (x = 0; x < bmp->width; x++) { in bmp_decode_rgb16()
763 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_rgb()
782 if ((data + ((bmp->width + ppb - 1) / ppb)) > end) in bmp_decode_rgb()
788 for (x = 0; x < bmp->width; x++) { in bmp_decode_rgb()
828 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_mask()
838 if ((data + (bmp->width >> 3)) > end) in bmp_decode_mask()
841 for (x = 0; x < bmp->width; x++) { in bmp_decode_mask()
883 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_rle8()
918 if (x >= bmp->width) in bmp_decode_rle8()
928 pixels_left = (bmp->height - y) * bmp->width - x; in bmp_decode_rle8()
931 pixels_left = (y + 1) * bmp->width - x; in bmp_decode_rle8()
945 if (x >= bmp->width) { in bmp_decode_rle8()
951 scanline += bmp->width; in bmp_decode_rle8()
953 scanline -= bmp->width; in bmp_decode_rle8()
971 pixels_left = (bmp->height - y) * bmp->width - x; in bmp_decode_rle8()
974 pixels_left = (y + 1) * bmp->width - x; in bmp_decode_rle8()
994 if (x >= bmp->width) { in bmp_decode_rle8()
1000 scanline += bmp->width; in bmp_decode_rle8()
1002 scanline -= bmp->width; in bmp_decode_rle8()
1037 swidth = sizeof(uint32_t) * bmp->width; in bmp_decode_rle4()
1072 if (x >= bmp->width) in bmp_decode_rle4()
1082 pixels_left = (bmp->height - y) * bmp->width - x; in bmp_decode_rle4()
1085 pixels_left = (y + 1) * bmp->width - x; in bmp_decode_rle4()
1099 if (x >= bmp->width) { in bmp_decode_rle4()
1105 scanline += bmp->width; in bmp_decode_rle4()
1107 scanline -= bmp->width; in bmp_decode_rle4()
1134 pixels_left = (bmp->height - y) * bmp->width - x; in bmp_decode_rle4()
1137 pixels_left = (y + 1) * bmp->width - x; in bmp_decode_rle4()
1159 if (x >= bmp->width) { in bmp_decode_rle4()
1165 scanline += bmp->width; in bmp_decode_rle4()
1167 scanline -= bmp->width; in bmp_decode_rle4()
1320 bmp_image *ico_find(ico_collection *ico, uint16_t width, uint16_t height) in ico_find() argument
1326 if (width == 0) in ico_find()
1327 width = ico->width; in ico_find()
1331 if ((image->bmp.width == width) && (image->bmp.height == height)) in ico_find()
1333 x = image->bmp.width - width; in ico_find()