Skip to content

Commit

Permalink
Added q/rgb32-xbgr.bmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jsummers committed Dec 5, 2016
1 parent 00a9728 commit fe7fb3d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bmpsuite.c
Expand Up @@ -1808,6 +1808,18 @@ static int run(struct global_context *glctx, struct context *c)
set_calculated_fields(c);
if(!make_bmp_file(c)) goto done;

defaultbmp(glctx, c);
c->filename = "q/rgb32-xbgr.bmp";
c->headersize = 124;
c->bpp = 32;
c->compression = BI_BITFIELDS;
c->bf[I_R] = 0xff000000; c->nbits[I_R] = 8; c->bf_shift[I_R] = 24;
c->bf[I_G] = 0x00ff0000; c->nbits[I_G] = 8; c->bf_shift[I_G] = 16;
c->bf[I_B] = 0x0000ff00; c->nbits[I_B] = 8; c->bf_shift[I_B] = 8;
c->pal_entries = 0;
set_calculated_fields(c);
if(!make_bmp_file(c)) goto done;

defaultbmp(glctx, c);
c->filename = "q/rgb32fakealpha.bmp";
c->bpp = 32;
Expand Down
1 change: 1 addition & 0 deletions checksums
Expand Up @@ -72,6 +72,7 @@ e8df05187360a41fe35022e2826faf97 *q/rgb16-3103.bmp
adf760ffc7b143f19403de04b2c71296 *q/rgb24prof2.bmp
135dc8d131ce4b2408819c31b8748298 *q/rgb32-111110.bmp
74fe78820d1dea0851a35d6c2ffb0ef9 *q/rgb32-7187.bmp
c14d61500bf38d43b34771b4e83003a7 *q/rgb32-xbgr.bmp
0b93da4e1641c80842e7f075f20ad563 *q/rgb32fakealpha.bmp
c0d35065eb5684c1a5f996324d5600ae *q/rgb32h52.bmp
f9dff670ff0a0ce9ba155f4c84b1c269 *q/rgba16-1924.bmp
Expand Down
10 changes: 10 additions & 0 deletions html/bmpsuite.html
Expand Up @@ -585,6 +585,16 @@ <h1>BMP Suite Image List</h1>
can&rsquo;t confirm that this file is correct.</td>
</tr>

<tr>
<td class=q>q/rgb32-xbgr.bmp</td>
<td>5</td>
<td class=b><img src="rgb24.png"></td>
<td class=b><img src="../q/rgb32-xbgr.bmp"></td>
<td>Color channels are the same size and order as rgb32bfdef.bmp, but they use
the highest available bits, instead of the lowest (or vice versa, depending
on your byte-order perspective).</td>
</tr>

<tr>
<td class=q>q/rgb32fakealpha.bmp</td>
<td>3</td>
Expand Down

0 comments on commit fe7fb3d

Please sign in to comment.