Lines Matching refs:height
49 unsigned int height;
67 bmp_header_write(int fd, int width, int height, int bgra, int noflip, int alpha)
71 .size = (width * height * 4) +
78 .height = noflip ? -height : height,
82 .data_size = 4 * width * height,
104 bmp_dump32(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename)
114 bmp_header_write(fd, width, height, bgra, false, true);
116 write(fd, buffer, width * height * 4);
120 bmp_dump32_noflip(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename)
130 bmp_header_write(fd, width, height, bgra, true, true);
132 write(fd, buffer, width * height * 4);
136 bmp_dump32_ex(char *buffer, unsigned width, unsigned height, bool flip, bool bgra, bool alpha, const char *filename)
146 bmp_header_write(fd, width, height, bgra, flip, alpha);
148 write(fd, buffer, width * height * 4);