Home | History | Annotate | Download | only in gfx

Lines Matching refs:hdr

12 void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr) {
13 CreateBitmapHeaderWithColorDepth(width, height, 32, hdr);
17 BITMAPINFOHEADER* hdr) {
19 hdr->biSize = sizeof(BITMAPINFOHEADER);
20 hdr->biWidth = width;
21 hdr->biHeight = -height; // minus means top-down bitmap
22 hdr->biPlanes = 1;
23 hdr->biBitCount = color_depth;
24 hdr->biCompression = BI_RGB; // no compression
25 hdr->biSizeImage = 0;
26 hdr->biXPelsPerMeter = 1;
27 hdr->biYPelsPerMeter = 1;
28 hdr->biClrUsed = 0;
29 hdr->biClrImportant = 0;
32 void CreateBitmapV4Header(int width, int height, BITMAPV4HEADER* hdr) {
37 memset(hdr, 0, sizeof(BITMAPV4HEADER));
38 memcpy(hdr, &header_v3, sizeof(BITMAPINFOHEADER));
41 hdr->bV4Size = sizeof(BITMAPV4HEADER);
42 hdr->bV4RedMask = 0x00ff0000;
43 hdr->bV4GreenMask = 0x0000ff00;
44 hdr->bV4BlueMask = 0x000000ff;
45 hdr->bV4AlphaMask = 0xff000000;
51 BITMAPINFOHEADER* hdr) {
52 hdr->biSize = sizeof(BITMAPINFOHEADER);
53 hdr->biWidth = width;
54 hdr->biHeight = -height;
55 hdr->biPlanes = 1;
56 hdr->biBitCount = 1;
57 hdr->biCompression = BI_RGB;
58 hdr->biSizeImage = 0;
59 hdr->biXPelsPerMeter = 1;
60 hdr->biYPelsPerMeter = 1;
61 hdr->biClrUsed = 0;
62 hdr->biClrImportant = 0;