Lines Matching refs:shift

38  * shift - number of bits of sub-pixel precision in scaled values
47 * 5. fetch and process pixel for (srcx >> shift, srcy >> shift)
60 * If the error ever reaches a magnitude of (1 << shift) then we
73 * - (1 << shift)
94 findpow2tilesize(jint shift, jint sxinc, jint syinc)
97 * The initial value of shift is our first estimate for
101 * Reducing it until (1 << shift) is not larger than the
112 while ((1 << shift) > sxinc) {
113 shift--;
116 * shift is now the largest it can be for less than 1 pixel
124 if (shift >= 16) {
126 shift -= 8;
130 /* Worst case, shift == 0 and tilesize == (1 << 0) == 1 */
131 shift /= 2;
133 return (1 << shift);
158 * (multiplied by fractional arithmetic "shift")
167 * source pixel of (1.0 / (1<<shift)) since the scale factor includes
168 * the fractional shift. As a result, the type of rounding used is
203 * end of the source image. Since our shift calculation code in the
204 * main function only guaranteed that "srcw << shift" did not overflow
205 * a 32-bit signed integer, we cannot guarantee that "(srcw+1) << shift"
206 * or, more generally, "(srcw << shift)+srcinc" does not overflow.
279 jint sxinc, syinc, shift;
308 * - Next shift it up until it goes negative
311 * - a source coordinate of 1.0 will be (1 << shift)
312 * - srcw & srch will be (srcw << shift) and (srch << shift)
316 * - shift will be 0
326 shift = 0;
329 shift++;
334 * the source image for each destination pixel. Our shift value
340 * parameters. We already know that "srcw<<shift" and "srch<<shift"
354 scaley = (((jdouble) (sy2 - sy1)) / (ddy2 - ddy1)) * (1 << shift);
355 syinc = (yunderflow ? ((sy2 - sy1) << shift) : (jint) scaley);
357 scalex = (((jdouble) (sx2 - sx1)) / (ddx2 - ddx1)) * (1 << shift);
358 sxinc = (xunderflow ? ((sx2 - sx1) << shift) : (jint) scalex);
359 tilesize = findpow2tilesize(shift, sxinc, syinc);
390 jdouble x = sx1 + (SRCLOC(idx1, ddx1, scalex) / (1 << shift));
399 (srcInfo.bounds.x1-sx1) << shift, sxinc));
401 (srcInfo.bounds.x2-sx1) << shift, sxinc);
404 jdouble y = sy1 + (SRCLOC(idy1, ddy1, scaley) / (1 << shift));
413 (srcInfo.bounds.y1-sy1) << shift, syinc));
415 (srcInfo.bounds.y2-sy1) << shift, syinc);
465 sxinc, syinc, shift,
514 sxinc, syinc, shift,