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

1234567891011

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dscaling_tab.cpp50 const int32 scale[63] = {0, 262145, 131073, 87382, 65537, 52430, 43692, 37450, 32769, 29128, variable
H A Dscaling.h24 extern const int32 scale[63];
/frameworks/base/core/java/android/view/
H A DIWindowSessionCallback.aidl26 void onAnimatorScaleChanged(float scale);
H A DMagnificationSpec.java33 public float scale = 1.0f; field in class:MagnificationSpec
41 public void initialize(float scale, float offsetX, float offsetY) { argument
42 if (scale < 1) {
45 this.scale = scale;
51 return scale == 1.0f && offsetX == 0 && offsetY == 0;
56 info.scale = other.scale;
73 scale = 1.0f;
85 parcel.writeFloat(scale);
[all...]
/frameworks/native/libs/input/
H A DVelocityControl.cpp72 float scale = mParameters.scale; local
74 float speed = hypotf(vx, vy) * scale;
77 scale *= mParameters.acceleration;
81 scale *= 1 + (speed - mParameters.lowThreshold)
89 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold,
91 vx, vy, speed, scale / mParameters.scale);
96 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold,
102 *deltaX *= scale;
[all...]
/frameworks/native/include/input/
H A DVelocityControl.h30 // A scale factor that is multiplied with the raw velocity deltas
31 // prior to applying any other velocity control factors. The scale
37 float scale; member in struct:android::VelocityControlParameters
65 scale(1.0f), lowThreshold(0.0f), highThreshold(0.0f), acceleration(1.0f) {
68 VelocityControlParameters(float scale, float lowThreshold, argument
70 scale(scale), lowThreshold(lowThreshold),
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java99 final float scale = mRenderer.scale;
101 * scale + width / 2f;
103 * scale + height / 2f;
104 float leftEdge = centerX - imageWidth / 2f * scale;
105 float rightEdge = centerX + imageWidth / 2f * scale;
106 float topEdge = centerY - imageHeight / 2f * scale;
107 float bottomEdge = centerY + imageHeight / 2f * scale;
122 final float scale = mRenderer.scale;
151 setScale(float scale) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DViewState.java32 public float scale; field in class:ViewState
39 scale = viewState.scale;
47 scale = view.getScaleX();
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDocumentaryFilter.java49 "uniform vec2 scale;\n" +
74 " float dist = length(coord * scale);\n" +
144 float scale[] = new float[2];
146 scale[0] = 1f;
147 scale[1] = ((float) mHeight) / mWidth;
149 scale[0] = ((float) mWidth) / mHeight;
150 scale[1] = 1f;
152 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[
[all...]
H A DFisheyeFilter.java40 @GenerateFieldPort(name = "scale", hasDefault = true)
55 "uniform vec2 scale;\n" +
63 " float dist = length(coord * scale);\n" +
145 float scale[] = new float[2];
147 scale[0] = 1f;
148 scale[1] = ((float) mHeight) / mWidth;
150 scale[0] = ((float) mWidth) / mHeight;
151 scale[1] = 1f;
154 float bound2 = 0.25f * (scale[0] * scale[
[all...]
H A DLomoishFilter.java50 "uniform vec2 scale;\n" +
115 " float dist = length(coord * scale);\n" +
153 float scale[] = new float[2];
155 scale[0] = 1f;
156 scale[1] = ((float) mHeight) / mWidth;
158 scale[0] = ((float) mWidth) / mHeight;
159 scale[1] = 1f;
161 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[
[all...]
H A DVignetteFilter.java30 @GenerateFieldPort(name = "scale", hasDefault = true)
51 "uniform vec2 scale;\n" +
56 " float dist = length(coord * scale);\n" +
94 float scale[] = new float[2];
96 scale[0] = 1f;
97 scale[1] = ((float) mHeight) / mWidth;
99 scale[0] = ((float) mWidth) / mHeight;
100 scale[1] = 1f;
102 float max_dist = ((float) Math.sqrt(scale[0] * scale[
[all...]
H A DStraightenFilter.java138 float scale = 0.5f * Math.min( mWidth / maxWidth,
141 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f);
142 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f);
143 p2.set(scale * p2.x / mWidth + 0.5f, scale * p2.y / mHeight + 0.5f);
144 p3.set(scale * p3.x / mWidth + 0.5f, scale * p3.y / mHeight + 0.5f);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java96 // Find the min x that 1 / x >= scale
97 public static int computeSampleSizeLarger(float scale) { argument
98 int initialSize = (int) Math.floor(1 / scale);
106 // Find the max x that 1 / x <= scale.
107 public static int computeSampleSize(float scale) { argument
108 Utils.assertTrue(scale > 0);
109 int initialSize = Math.max(1, (int) Math.ceil(1 / scale));
116 Bitmap bitmap, float scale, boolean recycle) {
117 int width = Math.round(bitmap.getWidth() * scale);
118 int height = Math.round(bitmap.getHeight() * scale);
115 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument
[all...]
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DResize.java35 float scale = 1.f / 32.f;
38 tb.setX((int)(mWidth * scale));
39 tb.setY((int)(mHeight * scale));
48 mScript.set_scale(1.f / scale);
55 mScript.set_scale(scale);
H A DFisheye.java32 private float scale = 0.5f; field in class:Fisheye
59 scale = progress / 50.0f;
72 scale = time % 2.f;
82 center_y, scale);
87 center_y, scale);
92 scale);
97 scale);
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h54 * Clamps positive tessellation scale values
56 inline static float clampTessellationScale(float scale) { argument
59 if (scale < MIN_SCALE) {
61 } else if (scale > MAX_SCALE) {
64 return scale;
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java73 final float scale = Math.min(sampleSize, regularScale);
75 final int srcCroppedW = Math.round(dstW * scale);
76 final int srcCroppedH = Math.round(dstH * scale);
77 final int srcCroppedSliceH = Math.round(dstSliceH * scale);
118 final float scale = Math.min(sampleSize, regularScale);
120 final int srcCroppedW = Math.round(dstW * scale);
121 final int srcCroppedH = Math.round(dstH * scale);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DFisheye.java35 private float scale = 0.5f; field in class:Fisheye
62 scale = progress / 50.0f;
75 scale = time % 2.f;
85 center_y, scale);
90 center_y, scale);
95 scale);
100 scale);
H A DResize.java47 float scale = 1.f / 32.f;
50 (int)(mWidth * scale), (int)(mHeight * scale));
58 mScript.set_scale(1.f / scale);
65 mScript.set_scale(scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewTransform.java31 public float scale = 1f; field in class:TaskViewTransform
45 scale = o.scale;
57 scale = 1f;
69 return (Float.compare(scale, v) != 0);
94 anim.scaleX(scale)
95 .scaleY(scale);
124 v.setScaleX(scale);
125 v.setScaleY(scale);
148 " scale
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DResize.java47 float scale = 1.f / 32.f;
50 (int)(mWidth * scale), (int)(mHeight * scale));
58 mScript.set_scale(1.f / scale);
65 mScript.set_scale(scale);
H A DFisheye.java35 private float scale = 0.5f; field in class:Fisheye
62 scale = progress / 50.0f;
80 center_y, scale);
85 center_y, scale);
90 scale);
95 scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java31 public static void scaleRectAboutCenter(Rect r, float scale) { argument
32 if (scale != 1.0f) {
36 r.left = (int) (r.left * scale + 0.5f);
37 r.top = (int) (r.top * scale + 0.5f);
38 r.right = (int) (r.right * scale + 0.5f);
39 r.bottom = (int) (r.bottom * scale + 0.5f);
58 float scale = 1.0f;
72 scale *= v0.getScaleX();
77 return scale;
94 float scale
[all...]
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
H A DScale.java29 private static final String PROPNAME_SCALE = "android:leanback:scale";
67 final float scale = (Float) animation.getAnimatedValue();
68 view.setScaleX(scale);
69 view.setScaleY(scale);

Completed in 2325 milliseconds

1234567891011