-
-
Save uploadcare-user/cacb5738cf97917a9f6abbed9ec6fa40 to your computer and use it in GitHub Desktop.
Unfolding the vertical pass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (xx = 0; xx < imOut->xsize*4; xx++) { | |
/* FIXME: skip over unused pixels */ | |
ss = 0.0; | |
for (y = (int) ymin; y < (int) ymax; y++) | |
ss = ss + (UINT8) imIn->image[y][xx] * k[y-(int) ymin]; | |
ss = ss * ww + 0.5; | |
imOut->image[yy][xx] = clip8(ss); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment