Searched defs:scale (Results 1 - 25 of 26) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/
H A DAbstractScaleFilter.java22 * Filter base that has a scale value ranging from 0 to 1 for adjustments and can persist states.
26 protected float scale; field in class:AbstractScaleFilter
29 * Sets the scale from 0 to 1.
31 public void setScale(float scale) { argument
32 this.scale = scale;
38 out.writeFloat(scale);
43 scale = in.readFloat();
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/
H A DSeekBar.java85 void onProgressRefresh(float scale, boolean fromUser) { argument
86 super.onProgressRefresh(scale, fromUser);
H A DAbsSeekBar.java209 void onProgressRefresh(float scale, boolean fromUser) { argument
210 super.onProgressRefresh(scale, fromUser);
213 setThumbPos(getWidth(), getHeight(), thumb, scale, Integer.MIN_VALUE);
239 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
243 setThumbPos(w, h, thumb, scale, 0);
260 setThumbPos(w, h, thumb, scale, gap);
270 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
274 setThumbPos(w, h, thumb, scale, 0);
291 setThumbPos(w, h, thumb, scale, gap);
300 private void setThumbPos(int w, int h, Drawable thumb, float scale, in argument
[all...]
H A DProgressBar.java593 float scale = mMax > 0 ? (float) progress / (float) mMax : 0;
602 final int level = (int) (scale * MAX_LEVEL);
609 onProgressRefresh(scale, fromUser);
613 void onProgressRefresh(float scale, boolean fromUser) { argument
959 float scale = mTransformation.getAlpha();
962 d.setLevel((int) (scale * MAX_LEVEL));
/packages/apps/Camera/jni/feature_stab/db_vlvm/
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)
H A Ddb_framestitching.cpp80 void db_StitchSimilarity3DRaw(double *scale,double R[9],double t[3], argument
127 /*Compute scale*/
130 *scale=sc;
H A Ddb_metrics.h150 point x and the squared scale coefficient one_over_scale2=1.0/(scale*scale)
151 where scale is the half width at half maximum (hWahM) of the
324 inline int db_RemoveOutliers_Homography(const double H[9], double *x_i,double *xp_i, double *wp,double *im, double *im_p, double *im_r, double *im_raw,double *im_raw_p,int point_count,double scale, double thresh=DB_OUTLIER_THRESHOLD) argument
H A Ddb_image_homography.cpp236 void db_StitchSimilarity2DRaw(double *scale,double R[4],double t[2], argument
276 /*Compute scale*/
279 *scale=sc;
H A Ddb_rob_image_homography.cpp650 double scale,
689 /*One over the squared scale of
729 /*Compute scale coefficient*/
730 one_over_scale2=1.0/(scale*scale);
623 db_RobImageHomography( double H[9], double *im, double *im_p, int nr_points, double K[9], double Kp[9], double *temp_d, int *temp_i, int homography_type, db_Statistics *stat, int max_iterations, int max_points, double scale, int nr_samples, int chunk_size, int outlierremoveflagE, double *wp, double *im_r, double *im_raw, double *im_raw_p, int *finalNumE) argument
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DAlignFeatures.cpp45 // Free gray-scale image
61 double scale = DB_POINT_STANDARDDEV; local
83 scale, reference_update_period, false, 0, nrsamples, chunk_size,
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java96 // Fin the min x that 1 / x <= scale
97 public static int computeSampleSizeLarger(float scale) { argument
98 int initialSize = (int) Math.floor(1f / 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));
119 float scale = (float) Math.sqrt(
121 if (scale >= 1.0f) return bitmap;
122 return resizeBitmapByScale(bitmap, scale, recycl
125 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument
[all...]
/packages/apps/Camera/jni/feature_stab/src/dbreg/
H A Ddbreg.cpp152 double scale,
147 Init(int width, int height, int homography_type, int max_iterations, bool linear_polish, bool quarter_resolution, double scale, unsigned int reference_update_period, bool do_motion_smoothing, double motion_smoothing_gain, int nr_samples, int chunk_size, int cd_target_nr_corners, double cm_max_disparity, bool cm_use_smaller_matching_window, int cd_nr_horz_blocks, int cd_nr_vert_blocks ) argument
/packages/apps/Gallery/src/com/android/camera/
H A DCropImage.java73 // scale the output to fit it (or just crop it).
126 mScale = extras.getBoolean("scale", true);
228 // Don't scale the image but instead fill it so it's the
287 // If the required dimension is specified, scale the image.
584 protected void zoomTo(float scale, float centerX, float centerY) { argument
585 super.zoomTo(scale, centerX, centerY);
755 // view's center and scale according to the cropping rectangle.
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 DGLCanvas.java57 public void scale(float sx, float sy, float sz); method in interface:GLCanvas
H A DCropView.java152 private boolean setImageViewPosition(int centerX, int centerY, float scale) { argument
158 case 0: return t.setPosition(centerX, centerY, scale, 0);
159 case 90: return t.setPosition(centerY, inverseX, scale, 90);
160 case 180: return t.setPosition(inverseX, inverseY, scale, 180);
161 case 270: return t.setPosition(inverseY, centerX, scale, 270);
381 float scale = Utils.clamp(SELECTION_RATIO * Math.min(
389 if (Math.round(mImageWidth * scale) > width) {
390 int limitX = Math.round(width * 0.5f / scale);
397 if (Math.round(mImageHeight * scale) > height) {
398 int limitY = Math.round(height * 0.5f / scale);
[all...]
H A DGLCanvasImpl.java175 scale(width, height, 1);
193 scale(x2 - x1, y2 - y1, 1);
208 scale(width, height, 1);
221 public void scale(float sx, float sy, float sz) { method in class:GLCanvasImpl
243 scale(width, height, 1);
H A DPositionController.java62 // We try to scale up the image to fill the screen. But in order not to
63 // scale too much for small icons, we limit the max up-scaling factor here.
87 // The minimum and maximum scale we allow.
158 float scale = 240f / Math.min(width, height);
159 mCurrentX = Math.round((mViewW / 2f - position.x) / scale) + mImageW / 2;
160 mCurrentY = Math.round((mViewH / 2f - position.y) / scale) + mImageH / 2;
161 mCurrentScale = scale;
212 // First we scale down the new bitmap by a factor r = min(w/w', h/h').
275 // Returns true if the result scale is outside the stable range.
279 // we begin the scale guestur
405 startAnimation( int targetX, int targetY, float scale, int kind) argument
597 calculateStableBound(float scale) argument
601 calculateStableBound(float scale, float horizontalSlack) argument
[all...]
H A DTileImageView.java204 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { argument
215 mLevel = Utils.clamp(Utils.floorLog2(1f / scale), 0, mLevelCount);
218 // we use for display. So it can be faster when the scale moves to the
219 // next level. We choose a level closer to the current scale.
222 getRange(range, centerX, centerY, mLevel, scale, rotation);
223 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale);
224 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale);
225 fromLevel = scale * (1 << mLevel) > 0.75f ? mLevel - 1 : mLevel;
229 mOffsetX = Math.round(width / 2f - centerX * scale);
230 mOffsetY = Math.round(height / 2f - centerY * scale);
296 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument
349 setPosition(int centerX, int centerY, float scale, int rotation) argument
[all...]
H A DPhotoView.java187 private void setTileViewPosition(int centerX, int centerY, float scale) { argument
208 centerX = Math.round(width / 2f / scale);
210 scale *= getScrollScale(progress);
219 case 0: t.setPosition(centerX, centerY, scale, 0); break;
220 case 90: t.setPosition(centerY, inverseX, scale, 90); break;
221 case 180: t.setPosition(inverseX, inverseY, scale, 180); break;
222 case 270: t.setPosition(inverseY, centerX, scale, 270); break;
227 public void setPosition(int centerX, int centerY, float scale) { argument
228 setTileViewPosition(centerX, centerY, scale);
574 float scale
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasStub.java36 public void scale(float sx, float sy, float sz) {} method in class:GLCanvasStub
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java34 // Zoom scale is applied after the transform that fits the image screen,
69 // The zoom scale
244 * @return The scale
276 float scale = Math.min(widthScale, heightScale);
277 matrix.postScale(scale, scale);
278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F);
303 * Sets the maximum zoom, which is a scale relative to the base matrix. It
321 * Sets the maximum zoom, which is a scale relativ
341 correctedZoomScale(float scale) argument
359 zoomTo(float scale, float centerX, float centerY) argument
375 zoomTo(float scale) argument
389 zoomToPoint(float scale, float pointX, float pointY) argument
404 zoomToOffset(float scale, float pointX, float pointY) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDragLayer.java260 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
263 return scale;
281 float scale = 1.0f;
284 scale *= descendant.getScaleX();
291 scale *= view.getScaleX();
298 return scale;
415 public void animateViewIntoPosition(DragView dragView, final int[] pos, float scale, argument
422 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], scale,
444 float scale = getDescendantCoordRelativeToSelf((View) child.getParent(), coord);
452 toY += Math.round(scale * t
[all...]
H A DFolderIcon.java353 float scale = getLocalCenterForIndex(index, center);
363 scale * scaleRelativeToDragLayer, DROP_IN_ANIMATION_DURATION,
420 PreviewItemDrawingParams(float transX, float transY, float scale, int overlayAlpha) { argument
423 this.scale = scale;
428 float scale; field in class:FolderIcon.PreviewItemDrawingParams
438 float offsetX = mParams.transX + (mParams.scale * mIntrinsicIconSize) / 2;
439 float offsetY = mParams.transY + (mParams.scale * mIntrinsicIconSize) / 2;
443 return mParams.scale;
450 float scale
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DUtils.java702 final float scale = context.getResources().getDisplayMetrics().density;
703 return scale;
707 public static int dipToPixel(float scale, int dip) { argument
708 return (int) (dip * scale + 0.5);

Completed in 340 milliseconds

12