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

12345678910

/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.java100 final float scale = mRenderer.scale;
102 * scale + width / 2f;
104 * scale + height / 2f;
105 float leftEdge = centerX - imageWidth / 2f * scale;
106 float rightEdge = centerX + imageWidth / 2f * scale;
107 float topEdge = centerY - imageHeight / 2f * scale;
108 float bottomEdge = centerY + imageHeight / 2f * scale;
123 final float scale = mRenderer.scale;
152 setScale(float scale) argument
[all...]
/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.java97 // Find the min x that 1 / x >= scale
98 public static int computeSampleSizeLarger(float scale) { argument
99 int initialSize = (int) FloatMath.floor(1f / scale);
107 // Find the max x that 1 / x <= scale.
108 public static int computeSampleSize(float scale) { argument
109 Utils.assertTrue(scale > 0);
110 int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale));
117 Bitmap bitmap, float scale, boolean recycle) {
118 int width = Math.round(bitmap.getWidth() * scale);
119 int height = Math.round(bitmap.getHeight() * scale);
116 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h52 * Clamps positive tessellation scale values
54 inline static float clampTessellationScale(float scale) { argument
57 if (scale < MIN_SCALE) {
59 } else if (scale > MAX_SCALE) {
62 return scale;
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java69 final float scale = Math.min(sampleSize, regularScale);
71 final int srcCroppedW = Math.round(dstW * scale);
72 final int srcCroppedH = Math.round(dstH * scale);
73 final int srcCroppedSliceH = Math.round(dstSliceH * scale);
114 final float scale = Math.min(sampleSize, regularScale);
116 final int srcCroppedW = Math.round(dstW * scale);
117 final int srcCroppedH = Math.round(dstH * scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewTransform.java32 public float scale = 1f; field in class:TaskViewTransform
46 scale = o.scale;
58 scale = 1f;
70 return (Float.compare(scale, v) != 0);
95 anim.scaleX(scale)
96 .scaleY(scale);
125 v.setScaleX(scale);
126 v.setScaleY(scale);
147 " 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/rs/java/tests/ImageProcessing_jb/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/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DFisheye.java32 private float scale = 0.5f; field in class:Fisheye
59 scale = progress / 50.0f;
77 center_y, scale);
82 center_y, scale);
87 scale);
92 scale);
H A DVignette.java31 private float scale = 0.5f; field in class:Vignette
72 scale = progress / 50.0f;
98 center_y, scale, shade, slope);
103 center_y, scale, shade, slope);
108 scale, shade, slope);
113 scale, shade, slope);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java61 public static void scaleRectAboutCenter(Rect r, float scale) { argument
62 if (scale != 1.0f) {
66 r.left = (int) (r.left * scale + 0.5f);
67 r.top = (int) (r.top * scale + 0.5f);
68 r.right = (int) (r.right * scale + 0.5f);
69 r.bottom = (int) (r.bottom * scale + 0.5f);
88 float scale = 1.0f;
102 scale *= v0.getScaleX();
107 return scale;
124 float scale
[all...]
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
H A DScale.java26 private static final String PROPNAME_SCALE = "android:leanback:scale";
64 final float scale = (Float) animation.getAnimatedValue();
65 view.setScaleX(scale);
66 view.setScaleY(scale);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DScreenMagnifier.java80 * magnification scale which will become the current default magnification
81 * scale. The next time the user magnifies the same magnification scale
89 * fingers to change the magnification scale which will become the current
90 * default magnification scale. The next time the user magnifies the same
91 * magnification scale would be used.
93 * 6. The magnification scale will be persisted in settings and in the cloud.
231 final float scale = spec.scale;
232 final float centerX = (-spec.offsetX + magnifiedFrame.width() / 2) / scale;
851 persistScale(final float scale) argument
1012 setScale(float scale, float pivotX, float pivotY, boolean animate) argument
1043 setScaleAndMagnifiedRegionCenter(float scale, float centerX, float centerY, boolean animate) argument
1069 updateMagnificationSpec(float scale, float magnifiedCenterX, float magnifiedCenterY) argument
[all...]

Completed in 975 milliseconds

12345678910