/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 | 34 public float scale = 1.0f; field in class:MagnificationSpec 52 public void initialize(float scale, float offsetX, float offsetY) { argument 53 if (scale < 1) { 56 this.scale = scale; 62 return scale == 1.0f && offsetX == 0 && offsetY == 0; 67 info.scale = other.scale; 84 scale = 1.0f; 90 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/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/services/accessibility/java/com/android/server/accessibility/ |
H A D | MagnificationController.java | 175 * @return {@code true} if magnification is active, e.g. the scale 179 return mCurrentMagnificationSpec.scale > 1.0f; 186 * @param updateSpec {@code true} to update the scale and center based on 205 final float scale = sentSpec.scale; 211 + mMagnificationBounds.left - offsetX) / scale; 213 + mMagnificationBounds.top - offsetY) / scale; 215 scale, centerX, centerY, false, INVALID_ID); 268 * Returns the magnification scale. If an animation is in progress, 271 * @return the scale 401 setScale(float scale, float pivotX, float pivotY, boolean animate, int id) argument 465 setScaleAndCenter( float scale, float centerX, float centerY, boolean animate, int id) argument 475 setScaleAndCenterLocked(float scale, float centerX, float centerY, boolean animate, int id) argument 569 updateMagnificationSpecLocked(float scale, float centerX, float centerY) argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 55 * Clamps positive tessellation scale values 57 inline static float clampTessellationScale(float scale) { argument 60 if (scale < MIN_SCALE) { 62 } else if (scale > MAX_SCALE) { 65 return scale;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 21 * Essentially, it allows the creation of custom graphics that will scale the 48 opticalRect.scale(decodeScale); 63 * Scales up the rect by the given scale, ceiling values, so actual outline Rect 66 public static Rect scaleInsets(int left, int top, int right, int bottom, float scale) { argument 67 if (scale == 1.0f) { 72 result.left = (int) Math.ceil(left * scale); 73 result.top = (int) Math.ceil(top * scale); 74 result.right = (int) Math.ceil(right * scale); 75 result.bottom = (int) Math.ceil(bottom * 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/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/views/ |
H A D | TaskViewTransform.java | 55 public float scale = 1f; field in class:TaskViewTransform 70 scale = tv.getScaleX(); 83 scale = other.scale; 96 && scale == other.scale 108 scale = 1f; 122 return (Float.compare(scale, v) != 0); 149 v.setScaleX(scale); 150 v.setScaleY(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);
|