/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_framestitching.h | 36 Find scale, rotation and translation of the similarity that 76 \param scale scale 83 \param allow_scaling estimate scale 87 DB_API void db_StitchSimilarity3DRaw(double *scale,double R[9],double t[3],
|
H A D | db_image_homography.h | 82 double scale,t[3]; local 88 db_StitchSimilarity3DRaw(&scale,R,t,xp,x,2,1,0,1,0); 104 Find scale, rotation and translation of the similarity that 144 \param scale (out) 151 \param allow_scaling compute scale (if 0, scale=1) 155 DB_API void db_StitchSimilarity2DRaw(double *scale,double R[4],double t[2], 165 \param allow_scaling compute scale (if 0, scale=1)
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
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...] |
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
H A D | TinyPlanetNative.java | 37 * @param scale the scale factor (used for fast previews). 41 float scale, float angleRadians); 40 process(Bitmap in, int width, int height, Bitmap out, int outputSize, float scale, float angleRadians) argument
|
/packages/apps/Gallery2/jni/filters/ |
H A D | shadows.c | 20 void JNIFUNCF(ImageFilterShadows, nativeApplyFilter, jobject bitmap, jint width, jint height, float scale){ argument 33 double s = (scale>=0)?scale:scale/5;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ImageCanvas.java | 27 * Dimensions holds the desired width, height, and scale for a bitmap being 33 public float scale; field in class:ImageCanvas.Dimensions 47 public Dimensions(int width, int height, float scale, float fontSize) { argument 50 this.scale = scale;
|
/packages/apps/Gallery2/gallerycommon/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(1d / 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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetUtils.java | 61 float scale; 63 scale = Math.max((float) sStackPhotoWidth / w, 66 scale = Math.max((float) sStackPhotoWidth / h, 75 canvas.scale(scale, scale);
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
H A D | LinearScale.java | 20 * Represents a discrete linear scale function. 37 float scale = (mRangeB - mRangeA) / (mDomainB - mDomainA); 38 mScale = Float.isNaN(scale) ? 0.0f : scale; 63 * Linearly scale a given domain value into the output range. 65 public float scale(float domainValue) { method in class:LinearScale 70 * For the current domain and range parameters produce a new scale function 71 * that is the inverse of the current scale function.
|
H A D | InterpolateUtils.java | 43 * @param v value to scale into the 'to' number space. 51 public static float scale(float v, float vMin, float vMax, float pMin, float pMax) { method in class:InterpolateUtils
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
H A D | StackFolderIconLayoutRule.java | 60 float scale = (1 - PERSPECTIVE_SCALE_FACTOR * (1 - r)); 63 float scaledSize = scale * mBaselineIconSize; 64 float scaleOffsetCorrection = (1 - scale) * mBaselineIconSize; 70 float totalScale = mBaselineIconScale * scale;
|
H A D | ClippedFolderIconLayoutRule.java | 108 float scale = 1f; 110 scale = MAX_SCALE; 112 scale = (MAX_SCALE + MIN_SCALE) / 2; 114 scale = MIN_SCALE; 117 return scale * mBaselineIconScale;
|
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
H A D | AutoThumbnailDrawable.java | 127 float scale; 137 scale = (float) vheight / (float) dheight; 138 dx = (vwidth - dwidth * scale) * 0.5f; 140 scale = (float) vwidth / (float) dwidth; 141 dy = (vheight - dheight * scale) * 0.5f; 143 if (scale < .8f) { 144 Log.w(TAG, "sample size was too small! Overdrawing! " + scale + ", " + mSampleSize); 145 } else if (scale > 1.5f) { 146 Log.w(TAG, "Potential quality loss! " + scale + ", " + mSampleSize); 149 mDrawMatrix.setScale(scale, scal [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterTinyPlanet.java | 71 Bitmap bitmapIn, int width, int height, Bitmap bitmapOut, int outSize, float scale, 129 float scale = intermediateWidth / (float) fullPanoWidth; 133 (int) (fullPanoWidth * scale), (int) (fullPanoHeight * scale), 137 scale /= 2; 144 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale); 70 nativeApplyFilter( Bitmap bitmapIn, int width, int height, Bitmap bitmapOut, int outSize, float scale, float angle) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
H A D | ShortcutDragPreviewProvider.java | 74 canvas.scale(((float) size) / bounds.width(), ((float) size) / bounds.height(), 0, 0); 85 float scale = launcher.getDragLayer().getLocationInDragLayer(mView, outPos); 92 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 + 94 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2 97 return scale * iconSize / size;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | IconFactory.java | 31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set 38 * @param scale if true, stretch sourceImage to fit the icon dimensions. 42 boolean scale) { 56 drawIcon(icon, sourceImage, scale); 61 * Draws an icon in the destination bitmap. If scale is set the source image 67 * @param scale if true, stretch sourceImage to fit the destination. 69 public static void drawIcon(Bitmap dest, Bitmap sourceImage, boolean scale) { argument 87 if (scale) { 88 // scale image to fit in icon (stretches if aspect isn't the same) 41 createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, boolean scale) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
H A D | MtpImageView.java | 130 float scale; 140 scale = 1.0f; 142 scale = Math.min(vwidth / dwidth, vheight / dheight); 144 mDrawMatrix.setScale(scale, scale); 146 mDrawMatrix.postTranslate(-dheight * scale * 0.5f, 147 -dwidth * scale * 0.5f); 149 mDrawMatrix.postTranslate(dwidth * scale * 0.5f, 150 dheight * scale * 0.5f); 152 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0. [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Thumbnail.java | 61 float scale = (float) targetWidth / width; 62 int w = Math.round(scale * width); 63 int h = Math.round(scale * height);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageViewTouchBase.java | 249 // Get the scale factor out of the matrix. 271 float scale = Math.min(widthScale, heightScale); 274 matrix.postScale(scale, scale); 277 (viewWidth - w * scale) / 2F, 278 (viewHeight - h * scale) / 2F); 292 // Sets the maximum zoom, which is a scale relative to the base matrix. It 307 protected void zoomTo(float scale, float centerX, float centerY) { argument 308 if (scale > mMaxZoom) { 309 scale 320 zoomTo(final float scale, final float centerX, final float centerY, final float durationMs) argument 340 zoomTo(float scale) argument 347 zoomToPoint(float scale, float pointX, float pointY) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
H A D | PreviewTransformCalculator.java | 84 * previewStreamSize is always in landscape. To calculate the scale 91 float scale = Math.min( 94 transformMatrix.postScale(scale, scale, previewViewCenter.x, previewViewCenter.y); 97 0.0f, 0.0f, previewStreamSize.width() * scale, previewStreamSize.height() * scale);
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | ShadowGenerator.java | 100 float scale = 1; 105 scale = (HALF_DISTANCE - BLUR_FACTOR) / (HALF_DISTANCE - minSide); 110 scale = Math.min(scale, (HALF_DISTANCE - bottomSpace) / (HALF_DISTANCE - bounds.bottom)); 112 return scale;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | AbstractSlotRenderer.java | 60 float scale = Math.min( 63 canvas.scale(scale, scale, 1); 73 float scale = (float) height / v.getHeight(); 74 int w = Math.round(scale * v.getWidth()); 75 int h = Math.round(scale * v.getHeight());
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
H A D | BitmapJobDrawable.java | 106 float scale; 116 scale = (float) vheight / (float) dheight; 117 dx = (vwidth - dwidth * scale) * 0.5f; 119 scale = (float) vwidth / (float) dwidth; 120 dy = (vheight - dheight * scale) * 0.5f; 123 mDrawMatrix.setScale(scale, scale);
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
H A D | LetterTileProvider.java | 105 dimensions.fontSize > 0 ? dimensions.fontSize : getFontSize(dimensions.scale)); 129 float scale = d.scale; 130 if (scale == Dimensions.SCALE_ONE) { 132 } else if (scale == Dimensions.SCALE_HALF) { 155 private int getFontSize(float scale) { argument 156 if (scale == Dimensions.SCALE_ONE) {
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | TiledImageView.java | 64 float scale; field in class:TiledImageView.ImageRendererWrapper 162 mRenderer.scale = 0; 182 || renderer.scale > 0 || getWidth() == 0) { 185 renderer.scale = Math.min( 261 float scale = mValues[Matrix.MSCALE_X]; 262 int xoffset = Math.round((getWidth() - mTempRectF.width()) / 2 / scale); 263 int yoffset = Math.round((getHeight() - mTempRectF.height()) / 2 / scale); 265 cx += (mTempRectF.left / scale) - xoffset; 267 cx -= (mTempRectF.left / scale) - xoffset; 270 cy += (mTempRectF.top / scale) [all...] |