version 1.28, 2008/12/27 16:10:39 |
version 1.29, 2008/12/27 17:02:13 |
|
|
ctx_start ^= 1; |
ctx_start ^= 1; |
ctx = ctxbuf + ctx_start; |
ctx = ctxbuf + ctx_start; |
for (c = inch; c > 0; c--) { |
for (c = inch; c > 0; c--) { |
*ctx = *idata; |
*ctx = *idata++; |
idata++; |
|
ctx += RESAMP_NCTX; |
ctx += RESAMP_NCTX; |
} |
} |
diff += oblksz; |
diff += oblksz; |
|
|
break; |
break; |
ctx = ctxbuf; |
ctx = ctxbuf; |
for (c = onch; c > 0; c--) { |
for (c = onch; c > 0; c--) { |
s1 = ctxbuf[ctx_start]; |
s1 = ctx[ctx_start]; |
s2 = ctxbuf[ctx_start ^ 1]; |
s2 = ctx[ctx_start ^ 1]; |
ctx += RESAMP_NCTX; |
ctx += RESAMP_NCTX; |
*odata++ = s1 + (s2 - s1) * diff / (int)oblksz; |
*odata++ = s1 + (s2 - s1) * diff / (int)oblksz; |
} |
} |