Searched refs:scale (Results 1 - 6 of 6) sorted by relevance

/system/media/mca/filterpacks/imageproc/java/
H A DStraightenFilter.java143 float scale = 0.5f * Math.min( mWidth / maxWidth,
146 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f);
147 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f);
148 p2.set(scale * p2.x / mWidth + 0.5f, scale * p2.y / mHeight + 0.5f);
149 p3.set(scale * p3.x / mWidth + 0.5f, scale * p3.y / mHeight + 0.5f);
H A DBlackWhiteFilter.java58 "uniform float scale;\n" +
64 " vec3 xform = clamp((color.rgb - black) * scale, 0.0, 1.0);\n" +
65 " vec3 temp = clamp((color.rgb + stepsize - black) * scale, 0.0, 1.0);\n" +
112 float scale = (mBlack != mWhite) ? 1.0f / (mWhite - mBlack) : 2000f;
116 mProgram.setHostValue("scale", scale);
/system/media/mca/filterpacks/base/native/
H A Dvec_types.h99 Vec<T, dim> operator * (const Vec<T,dim> &x, T scale) { argument
102 out.data[i] = x.data[i] * scale;
107 Vec<T, dim> operator / (const Vec<T,dim> &x, T scale) { argument
110 out.data[i] = x.data[i] / scale;
/system/core/include/private/pixelflinger/
H A Dggl_context.h359 int scale; member in struct:android::texture_shade_t::__anon315::__anon317
382 int scale; member in struct:android::texture_iterators_t::__anon318::__anon320
/system/core/libpixelflinger/
H A Dtrap.cpp260 GGLcoord rmin, GGLcoord rmax, GGLcoord scale)
265 return 0x7FFF - (d2-rmin)*scale;
304 GGLcoord scale; local
307 scale = 0x800000 / (rmax - rmin);
320 covPtr[i] = coverageFast(x, y, rmin, rmax, scale);
259 coverageFast(GGLcoord x, GGLcoord y, GGLcoord rmin, GGLcoord rmax, GGLcoord scale) argument
H A Dscanline.cpp494 // scale to 16 bits
1936 const int scale = ti.st[j].scale + (iwscale - 30); local
1937 if (scale >= 0) {
1938 ti.st[j].ydvdy = v0 << scale;
1939 ti.st[j].dvdx = dvdx << scale;
1941 ti.st[j].ydvdy = v0 >> -scale;
1942 ti.st[j].dvdx = dvdx >> -scale;

Completed in 99 milliseconds