/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | scaling_tab.cpp | 50 const int32 scale[63] = {0, 262145, 131073, 87382, 65537, 52430, 43692, 37450, 32769, 29128, variable
|
H A D | scaling.h | 24 extern const int32 scale[63];
|
/frameworks/base/core/java/android/view/ |
H A D | IWindowSessionCallback.aidl | 26 void onAnimatorScaleChanged(float scale);
|
H A D | MagnificationSpec.java | 33 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 D | VelocityControl.cpp | 72 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 D | VelocityControl.h | 30 // 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 D | CropView.java | 99 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 D | ViewState.java | 32 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 D | DocumentaryFilter.java | 49 "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 D | FisheyeFilter.java | 40 @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 D | LomoishFilter.java | 50 "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 D | VignetteFilter.java | 30 @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 D | StraightenFilter.java | 138 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 D | BitmapUtils.java | 96 // 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 D | Resize.java | 35 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 D | Fisheye.java | 32 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 D | MathUtils.h | 54 * 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 D | BitmapUtils.java | 73 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 D | Fisheye.java | 35 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 D | Resize.java | 47 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 D | TaskViewTransform.java | 31 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 D | Resize.java | 47 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 D | Fisheye.java | 35 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 D | Utilities.java | 31 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 D | Scale.java | 29 private static final String PROPNAME_SCALE = "android:leanback:scale"; 67 final float scale = (Float) animation.getAnimatedValue(); 68 view.setScaleX(scale); 69 view.setScaleY(scale);
|