Lines Matching refs:NUM_SUBPIXEL_BITS
37 NUM_SUBPIXEL_BITS = 8 //!< Number of subpixel bits used when doing bilinear interpolation.
76 const deUint32 fx0 = (1u<<NUM_SUBPIXEL_BITS) - fx1;
77 const deUint32 fy0 = (1u<<NUM_SUBPIXEL_BITS) - fy1;
78 const deUint32 half = 1u<<(NUM_SUBPIXEL_BITS*2 - 1);
80 const deUint32 rounded = (sum + half) >> (NUM_SUBPIXEL_BITS*2);
88 deUint32 x0 = u>>NUM_SUBPIXEL_BITS;
89 deUint32 y0 = v>>NUM_SUBPIXEL_BITS;
96 deUint32 fx1 = u-(x0<<NUM_SUBPIXEL_BITS);
97 deUint32 fy1 = v-(y0<<NUM_SUBPIXEL_BITS);
176 const int u = (x<<NUM_SUBPIXEL_BITS) + (int)s_offsets[sampleNdx][0] - (1<<NUM_SUBPIXEL_BITS);
177 const int v = (y<<NUM_SUBPIXEL_BITS) + (int)s_offsets[sampleNdx][1] - (1<<NUM_SUBPIXEL_BITS);
179 if (!de::inBounds(u, 0, (reference.getWidth()-1)<<NUM_SUBPIXEL_BITS) ||
180 !de::inBounds(v, 0, (reference.getHeight()-1)<<NUM_SUBPIXEL_BITS))