Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created September 13, 2017 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uploadcare-user/e995a337d6d85fe67b45b1bd042e87f3 to your computer and use it in GitHub Desktop.
Save uploadcare-user/e995a337d6d85fe67b45b1bd042e87f3 to your computer and use it in GitHub Desktop.
Single image resizing pass
for (yy = 0; yy < imOut->ysize; yy++) {
// Counting the coefficients
if (imIn->image8) {
// A single 8-bit channel loop
} else {
switch(imIn->type) {
case IMAGING_TYPE_UINT8:
// Loop, multiple 8-bit channels
case IMAGING_TYPE_INT32:
// Loop, single 32-bit channel
case IMAGING_TYPE_FLOAT32:
// Loop, single float channel
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment