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

1234567

/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_framestitching.h36 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 Ddb_image_homography.h82 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/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_framestitching.h36 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 Ddb_image_homography.h82 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/Contacts/src/com/android/contacts/detail/
H A DTransformableImageView.java55 float scale;
59 scale = (float) vheight / (float) dheight;
60 dx = (vwidth - dwidth * scale) * 0.5f;
62 scale = (float) vwidth / (float) dwidth;
63 dy = (vheight - dheight * scale) * 0.5f;
66 drawMatrix.setScale(scale, scale);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
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...]
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetNative.java37 * @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 Dshadows.c20 void JNIFUNCF(ImageFilterShadows, nativeApplyFilter, jobject bitmap, jint width, jint height, float scale){ argument
33 double s = (scale>=0)?scale:scale/5;
/packages/apps/Gallery2/gallerycommon/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...]
/packages/apps/Launcher3/WallpaperPicker/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...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetUtils.java61 float scale;
63 scale = Math.max((float) sStackPhotoWidth / w,
66 scale = Math.max((float) sStackPhotoWidth / h,
75 canvas.scale(scale, scale);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DImageCanvas.java27 * Dimensions holds the desired width, height, and scale for a bitmap being
33 public float scale; field in class:ImageCanvas.Dimensions
45 scale = s;
/packages/apps/Gallery2/src/com/android/photos/drawables/
H A DAutoThumbnailDrawable.java127 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 DImageFilterTinyPlanet.java71 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/UnifiedEmail/src/com/android/mail/utils/
H A DBitmapUtil.java143 final float scale = Math.max(
146 m.setScale(scale, scale);
151 srcCroppedW = Math.round(w / scale);
152 srcCroppedH = Math.round(h / scale);
165 " innerW/H=%s/%s scale=%s resultW/H=%s/%s",
166 srcWidth, srcHeight, w, h, srcX, srcY, srcCroppedW, srcCroppedH, scale,
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/
H A DAbsSeekBar.java217 void onProgressRefresh(float scale, boolean fromUser) { argument
218 super.onProgressRefresh(scale, fromUser);
221 setThumbPos(getWidth(), getHeight(), thumb, scale, Integer.MIN_VALUE);
247 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
251 setThumbPos(w, h, thumb, scale, 0);
268 setThumbPos(w, h, thumb, scale, gap);
278 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
282 setThumbPos(w, h, thumb, scale, 0);
299 setThumbPos(w, h, thumb, scale, gap);
308 private void setThumbPos(int w, int h, Drawable thumb, float scale, in argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DIconFactory.java31 * 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 DMtpImageView.java130 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/Camera/src/com/android/camera/
H A DThumbnail.java61 float scale = (float) targetWidth / width;
62 int w = Math.round(scale * width);
63 int h = Math.round(scale * height);
/packages/apps/Camera2/src/com/android/camera/
H A DThumbnail.java61 float scale = (float) targetWidth / width;
62 int w = Math.round(scale * width);
63 int h = Math.round(scale * height);
/packages/apps/Mms/src/com/android/mms/layout/
H A DHVGALayoutParameters.java50 float scale = context.getResources().getDisplayMetrics().density;
51 mMaxWidth = (int) (context.getResources().getConfiguration().screenWidthDp * scale + 0.5f);
53 (int) (context.getResources().getConfiguration().screenHeightDp * scale + 0.5f);
/packages/apps/Gallery/src/com/android/camera/
H A DImageViewTouchBase.java249 // 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/Gallery2/src/com/android/gallery3d/ui/
H A DAbstractSlotRenderer.java60 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 DBitmapJobDrawable.java106 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/Gallery2/src/com/android/photos/views/
H A DTiledImageView.java64 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...]

Completed in 528 milliseconds

1234567