Skip to content
Myr

stb_image_write: fix the previous fix (incorrectly labelled as stb_image)

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 aa223d9 · Browse files · 2 files+3 added−2 removed
This commit

State

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

Diff stats

2 files+3 added−2 removed

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

2 files+3 added−2 removed

modified:tests/image_test.dsp+2 added-1 removed
39 unmodified lines
40# PROP Output_Dir "Release"41# PROP Intermediate_Dir "Release"42# PROP Target_Dir ""43# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c44# ADD CPP /nologo /W3 /GX /O2 /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c44# ADD CPP /nologo /W3 /GX /O2 /I ".." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c45# SUBTRACT CPP /YX46# ADD BASE RSC /l 0x409 /d "NDEBUG"47# ADD RSC /l 0x409 /d "NDEBUG"48BSC32=bscmake.exe49# ADD BASE BSC32 /nologo
49 unmodified lines
modified:stb_image_write.h+1 added-1 removed
1467 unmodified lines
1468 for(y = 0; y < height; y += 8) {1469 for(x = 0; x < width; x += 8) {1470 float YDU[64], UDU[64], VDU[64];1471 for(row = y, pos = 0; row < y+8; ++row) {1472 int p;1473 if(row < height) {1474 p = (stbi__flip_vertically_on_write ? (height-1-row) : row)*width*comp;1475 } else {1476 // row >= height => use last input row (=> first if flipping)1477 p = stbi__flip_vertically_on_write ? 0 : ((height-1)*width*comp);1478 }1479 for(col = x; col < x+8; ++col, ++pos) {1480 float r, g, b;1480 int p;1481 // if col >= width => use pixel from last input column1482 p += ((col < width) ? col : (width-1))*comp;14831484 r = imageData[p+0];
132 unmodified lines