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

123

/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;
H A Dtinyplanet.cc60 // Get pointers and scale factors for the source pixels.
91 void StereographicProjection(float scale, float angle, unsigned char* input_image, argument
98 const float image_scale = output_width * scale;
101 // Center and scale x
105 // Center and scale y
132 void JNIFUNCF(ImageFilterTinyPlanet, nativeApplyFilter, jobject bitmap_in, jint width, jint height, jobject bitmap_out, jint output_size, jfloat scale,jfloat angle) argument
141 StereographicProjection(scale,angle, rgb_in, width, height, rgb_out, output_size, output_size);
/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/DeskClock/src/com/android/alarmclock/
H A DWidgetUtils.java36 public static void setClockSize(Context context, RemoteViews clock, float scale) { argument
39 R.id.the_clock, TypedValue.COMPLEX_UNIT_PX, fontSize * scale);
42 // Calculate the scale factor of the fonts in the widget
72 // Calculate the scale factor of the fonts in the list of the widget using the widget height
105 public static boolean showList(Context context, int id, float scale) { argument
131 scale * res.getDimension(R.dimen.digital_widget_list_min_scaled_height);
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/
H A DSeekBar.java85 void onProgressRefresh(float scale, boolean fromUser) { argument
86 super.onProgressRefresh(scale, fromUser);
/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;
/packages/apps/Camera2/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;
/packages/apps/LegacyCamera/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;
/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/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/Camera2/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/Camera2/src/com/android/camera/crop/
H A DGeometryMathUtils.java135 public static void scaleRect(RectF r, float scale) { argument
136 r.set(r.left * scale, r.top * scale, r.right * scale, r.bottom * scale);
155 public static float scale(float oldWidth, float oldHeight, float newWidth, float newHeight) { method in class:GeometryMathUtils
/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/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/Launcher3/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/LegacyCamera/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/UnifiedEmail/src/com/android/mail/photomanager/
H A DLetterTileProvider.java137 mPaint.setTextSize(getFontSize(dimensions.scale));
161 float scale = d.scale;
162 if (scale == Dimensions.SCALE_ONE) {
164 } else if (scale == Dimensions.SCALE_HALF) {
187 private int getFontSize(float scale) { argument
188 if (scale == Dimensions.SCALE_ONE) {
/packages/apps/Camera2/jni/
H A Dtinyplanet.cc61 // Get pointers and scale factors for the source pixels.
92 void StereographicProjection(float scale, float angle, unsigned char* input_image, argument
99 const float image_scale = output_width * scale;
102 // Center and scale x
106 // Center and scale y
133 JNIEXPORT void JNICALL Java_com_android_camera_tinyplanet_TinyPlanetNative_process(JNIEnv* env, jobject obj, jobject bitmap_in, jint width, jint height, jobject bitmap_out, jint output_size, jfloat scale, jfloat angle) argument
142 StereographicProjection(scale, angle, rgb_in, width, height, rgb_out, output_size, output_size);
/packages/apps/Camera2/src/com/android/camera/ui/
H A DFilmStripGestureRecognizer.java36 boolean onScale(float focusX, float focusY, float scale); argument
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
H A DPointCloud.java162 public void setScale(float scale) { argument
163 mScale = scale;
207 canvas.scale(mScale, mScale, mCenterX, mCenterY);
223 canvas.scale(s, s, px, py);
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
H A DStateTransitionAnimation.java146 private void applyOldTexture(GLView view, GLCanvas canvas, float alpha, float scale, boolean clear) { argument
155 canvas.scale(scale, scale, 1);
170 canvas.scale(mCurrentContentScale, mCurrentContentScale, 1);

Completed in 474 milliseconds

123