/external/freetype/src/base/ |
ftadvanc.c | 32 FT_Fixed scale; local 43 scale = face->size->metrics.y_scale; 45 scale = face->size->metrics.x_scale; 51 advances[nn] = FT_MulDiv( advances[nn], scale, 64 ); 152 /* scale from 26.6 to 16.16 */
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/ |
FilteredBasis.java | 44 private float scale;
field in class:FilteredBasis 71 public Basis setScale(float scale) {
72 this.scale = scale;
78 return this.scale;
|
/external/jmonkeyengine/engine/src/test/jme3test/model/ |
TestOgreLoading.java | 93 float scale = 0.05f;
local 94 elephant.scale(scale, scale, scale);
|
/external/llvm/test/CodeGen/ARM/ |
arm-modifier.ll | 3 define i32 @foo(float %scale, float %scale2) nounwind { 5 %scale.addr = alloca float, align 4 7 store float %scale, float* %scale.addr, align 4 9 %tmp = load float* %scale.addr, align 4
|
/external/skia/gm/ |
patheffects.cpp | 57 static void scale(SkPath* path, SkScalar scale) { function in namespace:skiagm 59 m.setScale(scale, scale); 70 scale(&path, 1.5f);
|
/external/skia/src/core/ |
SkEdge.h | 93 float scale = float(1 << (shift + 6)); 94 x0 = int(p0.fX * scale); 95 y0 = int(p0.fY * scale); 96 x1 = int(p1.fX * scale); 97 y1 = int(p1.fY * scale);
|
SkPoint.cpp | 73 void SkPoint::scale(SkScalar scale, SkPoint* dst) const { function in class:SkPoint 75 dst->set(SkScalarMul(fX, scale), SkScalarMul(fY, scale)); 117 float mag, scale; local 120 scale = 1 / mag; 132 // have a non-zero value for scale (thanks to denormalized numbers). 133 scale = (float)(1 / magmag); 135 pt->set(x * scale, y * scale); 164 float scale; local 218 SkScalar scale = SkScalarInvert(mag); local [all...] |
SkBlitter_A8.cpp | 41 unsigned scale = 256 - SkAlpha255To256(fSrcA); local 45 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); 71 unsigned scale = 256 - sa; local 74 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); 149 // scale our src by the alpha value 166 int scale = 256 - SkAlpha255To256(sa); local 167 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); 191 unsigned scale = 256 - SkAlpha255To256(sa); local 194 *device = SkToU8(sa + SkAlphaMul(*device, scale)); 218 unsigned scale = 256 - SkAlpha255To256(srcA) local 265 unsigned scale = 256 - SkAlpha255To256(srcA); local [all...] |
SkMatrix.cpp | 24 /* [scale-x skew-x trans-x] [X] [X'] 25 [skew-y scale-y trans-y] * [Y] = [Y'] 114 // The skew components may be scale-inducing, unless we are dealing 116 // so we opt for being conservative by always setting the scale bit. 135 // Only test for scale explicitly if not affine, since affine sets the 136 // scale bit. 194 // if no skew, can just compare scale factors 219 // identity, translate and/or scale 407 // scale matrices 849 double scale) { 969 SkDetScalar scale = sk_inv_determinant(fMat, isPersp, &shift); local 1002 SkFract scale = tmp.get32(); local 1540 const SkFixed scale = scalePt.fY; local 1787 SkPoint scale; local 1962 const float scale = 1 << subpixelBits; local [all...] |
/frameworks/base/docs/html/design/style/ |
typography.jd | 18 <p>The Android design language relies on traditional typographic tools such as scale, space, rhythm, 54 <h4>Typographic Scale</h4> 62 these accessibility features, type should be specified in scale-independent pixels 63 (<acronym title="Scale-independent pixels. One sp is one pixel on a 160 dpi screen if the user's global text scale is set to 100%.">sp</acronym>)
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
wbalance.rs | 21 static float3 scale; 99 scale.r = avg / estimation.r; 100 scale.g = avg / estimation.g; 101 scale.b = avg / estimation.b; 106 t *= scale;
|
/external/chromium_org/content/browser/devtools/ |
renderer_overrides_handler.cc | 161 double scale = 1; local 169 &scale); 175 if (scale <= 0 || scale > 1) 176 scale = 1; 182 // TODO(pfeldman): support format, scale and quality in ui::GrabViewSnapshot. 184 bool is_unscaled_png = scale == 1 && format == kPng; 205 gfx::ScaleSize(view_bounds.size(), scale)); 209 weak_factory_.GetWeakPtr(), command, format, quality, scale)); 217 double scale, [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
FastMath.java | 98 * @param scale 99 * scale value to use. if 1, use endValue, if 0, use startValue. 106 public static float interpolateLinear(float scale, float startValue, float endValue) { 110 if (scale <= 0f) { 113 if (scale >= 1f) { 116 return ((1f - scale) * startValue) + (scale * endValue); 123 * @param scale 124 * scale value to use. if 1, use endValue, if 0, use startValue. 132 public static Vector3f interpolateLinear(float scale, Vector3f startValue, Vector3f endValue, Vector3f store) [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkRRect.cpp | 25 SkScalar scale = SkMinScalar(SkScalarDiv(rect.width(), xRad + xRad), local 27 SkASSERT(scale < SK_Scalar1); 28 xRad = SkScalarMul(xRad, scale); 29 yRad = SkScalarMul(yRad, scale); 61 // could still be non-zero and play in the global scale factor 75 // Proportionally scale down all radii to fit. Find the minimum ratio 77 // that to scale down _all_ the radii. This algorithm is from the 85 SkScalar scale = SK_Scalar1; local 88 scale = SkMinScalar(scale, [all...] |
SkBlitter_A8.cpp | 41 unsigned scale = 256 - SkAlpha255To256(fSrcA); local 45 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); 71 unsigned scale = 256 - sa; local 74 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); 149 // scale our src by the alpha value 166 int scale = 256 - SkAlpha255To256(sa); local 167 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); 191 unsigned scale = 256 - SkAlpha255To256(sa); local 194 *device = SkToU8(sa + SkAlphaMul(*device, scale)); 218 unsigned scale = 256 - SkAlpha255To256(srcA) local 265 unsigned scale = 256 - SkAlpha255To256(srcA); local [all...] |
SkMatrix.cpp | 24 /* [scale-x skew-x trans-x] [X] [X'] 25 [skew-y scale-y trans-y] * [Y] = [Y'] 114 // The skew components may be scale-inducing, unless we are dealing 116 // so we opt for being conservative by always setting the scale bit. 135 // Only test for scale explicitly if not affine, since affine sets the 136 // scale bit. 194 // if no skew, can just compare scale factors 219 // identity, translate and/or scale 407 // scale matrices 849 double scale) { 969 SkDetScalar scale = sk_inv_determinant(fMat, isPersp, &shift); local 1002 SkFract scale = tmp.get32(); local 1540 const SkFixed scale = scalePt.fY; local 1787 SkPoint scale; local 1962 const float scale = 1 << subpixelBits; local [all...] |
/external/eigen/test/ |
geo_transformations.cpp | 55 t0.scale(v0); 64 t0.scale(v1); 82 t0.scale(v0); 175 t0.scale(v1); 185 t0.setIdentity(); t0.scale(v0).rotate(q1.toRotationMatrix()); 186 t1.setIdentity(); t1.scale(v0).rotate(q1); 189 t0.setIdentity(); t0.scale(v0).rotate(AngleAxisx(q1)); 192 VERIFY_IS_APPROX(t0.scale(a).matrix(), t1.scale(Vector3::Constant(a)).matrix()); 231 t4.scale(v3.cwiseInverse()) [all...] |
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 179 // Scale down the bitmap if it's too large. 184 float scale = 512f / max; local 185 int w = Math.round(scale * width); 186 int h = Math.round(scale * height); 224 float scale; local 226 scale = width / (float) source.getWidth(); 228 scale = height / (float) source.getHeight(); 231 matrix.setScale(scale, scale); 411 float scale = targetHeight / bitmapHeightF local 418 float scale = targetWidth \/ bitmapWidthF; local [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
LODGeomap.java | 80 public Mesh createMesh(Vector3f scale, Vector2f tcScale, Vector2f tcOffset, float offsetAmount, int totalSize, boolean center) {
81 return this.createMesh(scale, tcScale, tcOffset, offsetAmount, totalSize, center, 1, false, false, false, false);
84 public Mesh createMesh(Vector3f scale, Vector2f tcScale, Vector2f tcOffset, float offsetAmount, int totalSize, boolean center, int lod, boolean rightLod, boolean topLod, boolean leftLod, boolean bottomLod) {
85 FloatBuffer pb = writeVertexArray(null, scale, center);
87 FloatBuffer nb = writeNormalArray(null, scale);
91 writeTangentArray(nb, tanb, bb, texb, scale);
105 public FloatBuffer writeTexCoordArray(FloatBuffer store, Vector2f offset, Vector2f scale, float offsetAmount, int totalSize) {
124 float tx = tcStore.x * scale.x;
125 float ty = tcStore.y * scale.y;
631 public FloatBuffer[] writeTangentArray(FloatBuffer normalBuffer, FloatBuffer tangentStore, FloatBuffer binormalStore, FloatBuffer textureBuffer, Vector3f scale) {
[all...] |
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
WebFrameTest.cpp | 321 // Make sure we initialize to minimum scale, even if the window size 348 // Make sure we initialize to minimum scale, even if the window size 531 // Device scale factor should be independent of page scale. 553 // Make sure we initialize to minimum scale, even if the window size 565 // Assume the user has pinch zoomed to page scale factor 2. 570 // Make sure we don't reset to initial scale if the page continues to load. 577 // Make sure we don't reset to initial scale if the viewport size changes. 594 // Make sure we initialize to minimum scale, even if the window size 606 // Assume the user has pinch zoomed to page scale factor 2 1539 float scale; local 1546 webViewImpl->computeScaleAndScrollForBlockRect(WebPoint(doubleTapPointWide.x, doubleTapPointWide.y), wideBlockBounds, touchPointPadding, scale, scroll, doubleTapShouldZoomOut); local 1558 webViewImpl->computeScaleAndScrollForBlockRect(WebPoint(doubleTapPointWide.x, doubleTapPointWide.y), wideBlockBounds, touchPointPadding, scale, scroll, doubleTapShouldZoomOut); local 1566 webViewImpl->computeScaleAndScrollForBlockRect(WebPoint(doubleTapPointTall.x, doubleTapPointTall.y), tallBlockBounds, touchPointPadding, scale, scroll, doubleTapShouldZoomOut); local 1623 float scale; local 1668 float scale; local 1731 float scale; local 1812 float scale; local 1858 float scale; local [all...] |
/art/compiler/dex/quick/x86/ |
utility_x86.cc | 230 r_src2 /* index */, 0 /* scale */, 0 /* disp */); 233 r_src1 /* index */, 0 /* scale */, 0 /* disp */); 285 r_src /* index */, value /* scale */, 0 /* disp */); 288 r4sib_no_index /* index */, 0 /* scale */, value /* disp */); 344 LIR* X86Mir2Lir::LoadBaseIndexedDisp(int rBase, int r_index, int scale, 423 load = NewLIR5(opcode, r_dest, rBase, r_index, scale, 427 load2 = NewLIR5(opcode, r_dest_hi, rBase, r_index, scale, 429 load = NewLIR5(opcode, r_dest, rBase, r_index, scale, 432 load = NewLIR5(opcode, r_dest, rBase, r_index, scale, 434 load2 = NewLIR5(opcode, r_dest_hi, rBase, r_index, scale, [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/ |
vl_mc.c | 233 struct vertex2f scale = { local 247 t_vpos = calc_position(r, shader, ureg_imm2f(shader, scale.x, scale.y)); 258 * t_vtex.xy = vrect.y ? { 0, scale.y } : { -scale.y : 0 } 279 ureg_imm2f(shader, 0.0f, scale.y), 280 ureg_imm2f(shader, -scale.y, 0.0f)); 310 create_ycbcr_frag_shader(struct vl_mc *r, float scale, bool invert, 333 * fragment.xyz = tex(tc, sampler) * scale + tc.z 350 if (scale != 1.0f [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
AnimationFactory.java | 41 * you can add some keyFrames for a given time or a given keyFrameIndex, for translation rotation and scale. 67 Translation, Rotation, Scale; 310 * Adds a key frame for the given scale at the given time 312 * @param scale the scale to use for this keyFrame 314 public void addTimeScale(float time, Vector3f scale) { 315 addKeyFrameScale((int) (time / tpf), scale); 319 * Adds a key frame for the given scale at the given keyFrame index 321 * @param scale the scale to use for this keyFram [all...] |
/external/mesa3d/src/gallium/auxiliary/vl/ |
vl_mc.c | 233 struct vertex2f scale = { local 247 t_vpos = calc_position(r, shader, ureg_imm2f(shader, scale.x, scale.y)); 258 * t_vtex.xy = vrect.y ? { 0, scale.y } : { -scale.y : 0 } 279 ureg_imm2f(shader, 0.0f, scale.y), 280 ureg_imm2f(shader, -scale.y, 0.0f)); 310 create_ycbcr_frag_shader(struct vl_mc *r, float scale, bool invert, 333 * fragment.xyz = tex(tc, sampler) * scale + tc.z 350 if (scale != 1.0f [all...] |
/frameworks/base/core/java/android/widget/ |
AbsSeekBar.java | 227 void onProgressRefresh(float scale, boolean fromUser) { 228 super.onProgressRefresh(scale, fromUser); 231 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE); 257 float scale = max > 0 ? (float) getProgress() / (float) max : 0; 261 setThumbPos(w, thumb, scale, 0); 278 setThumbPos(w, thumb, scale, gap); 286 private void setThumbPos(int w, Drawable thumb, float scale, int gap) { 295 int thumbPos = (int) (scale * available); 427 float scale; 431 scale = 0.0f [all...] |