Skip to content
Myr

fix some typos, add image test program

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent a31d50a · Browse files · 4 files+16 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+16 added−4 removed

  • tests:+14 added−2 removed
  • other:+2 added−2 removed

4 files+16 added−4 removed

modified:tests/stb_cpp.dsp+1 added-1 removed
63 unmodified lines
64# PROP Intermediate_Dir "Debug"65# PROP Ignore_Export_Lib 066# PROP Target_Dir ""67# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c68# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c68# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c69# ADD BASE RSC /l 0x409 /d "_DEBUG"70# ADD RSC /l 0x409 /d "_DEBUG"71BSC32=bscmake.exe72# ADD BASE BSC32 /nologo
29 unmodified lines
modified:tests/stb.dsp+1 added-1 removed
64 unmodified lines
65# PROP Intermediate_Dir "Debug"66# PROP Ignore_Export_Lib 067# PROP Target_Dir ""68# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c69# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "MAIN_TEST" /FR /FD /GZ /c69# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "MAIN_TEST" /FR /FD /GZ /c70# SUBTRACT CPP /YX71# ADD BASE RSC /l 0x409 /d "_DEBUG"72# ADD RSC /l 0x409 /d "_DEBUG"73BSC32=bscmake.exe
35 unmodified lines
modified:tests/stb.dsw+12 added
1 unmodified line
2# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!34###############################################################################56Project: "image_test"=.\image_test\image_test.dsp - Package Owner=<4>78Package=<5>9{{{10}}}1112Package=<4>13{{{14}}}1516###############################################################################1718Project: "stb"=.\stb.dsp - Package Owner=<4>1920Package=<5>21{{{
35 unmodified lines
modified:stb_image.c+2 added-2 removed
3022 unmodified lines
3023 mg = 0xffu << 8;3024 mb = 0xffu << 0;3025 ma = 0xffu << 24;3026 fake_a = 1; // @TODO: check for cases like alpha value is all 0 and switch it to 2553027 STBI_UNUSED(fake_a);3027 STBI_NOTUSED(fake_a);3028 } else {3029 mr = 31u << 10;3030 mg = 31u << 5;3031 mb = 31u << 0;
100 unmodified lines
3132 if (target == 4) out[z++] = (stbi__uint8) a;3133 }3134 } else {3135 for (i=0; i < (int) s->img_x; ++i) {3136 stbi__uint32 v = (stbi_uint32) (bpp == 16 ? get16le(s) : get32le(s));3136 stbi__uint32 v = (stbi__uint32) (bpp == 16 ? get16le(s) : get32le(s));3137 int a;3138 out[z++] = (stbi__uint8) shiftsigned(v & mr, rshift, rcount);3139 out[z++] = (stbi__uint8) shiftsigned(v & mg, gshift, gcount);3140 out[z++] = (stbi__uint8) shiftsigned(v & mb, bshift, bcount);
1572 unmodified lines