Searched refs:matrix (Results 1 - 24 of 24) sorted by relevance

/packages/apps/Camera/tests/src/com/android/camera/unittest/
H A DCameraUnitTest.java73 Matrix matrix = new Matrix();
77 Util.prepareMatrix(matrix, false, 0, 800, 480);
80 matrix.mapPoints(points);
83 Util.prepareMatrix(matrix, false, 90, 800, 480);
86 matrix.mapPoints(points);
89 Util.prepareMatrix(matrix, false, 180, 800, 480);
92 matrix.mapPoints(points);
95 Util.prepareMatrix(matrix, true, 180, 800, 480);
98 matrix.mapPoints(points);
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
H A DCameraTest.java77 Matrix matrix = new Matrix();
81 Util.prepareMatrix(matrix, false, 0, 800, 480);
84 matrix.mapPoints(points);
87 Util.prepareMatrix(matrix, false, 90, 800, 480);
90 matrix.mapPoints(points);
93 Util.prepareMatrix(matrix, false, 180, 800, 480);
96 matrix.mapPoints(points);
99 Util.prepareMatrix(matrix, true, 180, 800, 480);
102 matrix.mapPoints(points);
/packages/apps/Gallery/src/com/android/camera/
H A DRotateBitmap.java54 // By default this is an identity matrix.
55 Matrix matrix = new Matrix();
62 matrix.preTranslate(-cx, -cy);
63 matrix.postRotate(mRotation);
64 matrix.postTranslate(getWidth() / 2, getHeight() / 2);
66 return matrix;
H A DImageViewTouchBase.java39 // This matrix is recomputed when we go from the thumbnail image to
46 // This matrix remains the same when we go from the thumbnail image
50 // This is the final matrix which is computed as the concatentation
51 // of the base matrix and the supplementary matrix.
54 // Temporary buffer used for getting the values out of a matrix.
146 // This function changes bitmap, reset base matrix according to the size
147 // of the bitmap, and optionally reset the supplementary matrix.
244 protected float getValue(Matrix matrix, int whichValue) { argument
245 matrix
250 getScale(Matrix matrix) argument
259 getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) argument
[all...]
H A DCropImage.java508 Matrix matrix = new Matrix();
509 matrix.setScale(mScale, mScale);
511 .getWidth(), mBitmap.getHeight(), matrix, true);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DProfileAndContactsLoader.java77 MatrixCursor matrix = new MatrixCursor(mProjection);
83 matrix.addRow(row);
85 return matrix;
/packages/apps/Gallery2/jni/filters/
H A Dhue.c19 void JNIFUNCF(ImageFilterHue, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloatArray matrix) argument
26 jfloat* mat = (*env)->GetFloatArrayElements(env, matrix,0);
43 (*env)->ReleaseFloatArrayElements(env, matrix, mat, 0);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterHue.java38 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float []matrix); argument
H A DImageFilterRedEye.java37 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, short []matrix); argument
H A DColorSpaceMatrix.java34 * @param matrix
36 public ColorSpaceMatrix(ColorSpaceMatrix matrix) { argument
37 System.arraycopy(matrix.mMatrix, 0, mMatrix, 0, matrix.mMatrix.length);
41 * get the matrix
43 * @return the internal matrix
50 * set matrix to identity
161 * set it to a saturation matrix
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
H A DImageLoader.java185 Matrix matrix = new Matrix();
198 matrix.setRotate(90,w/2f,h/2f);
201 matrix.setRotate(180,w/2f,h/2f);
204 matrix.setRotate(270,w/2f,h/2f);
207 matrix.preScale(-1, 1);
210 matrix.preScale(1, -1);
213 matrix.setRotate(90,w/2f,h/2f);
214 matrix.preScale(1, -1);
217 matrix.setRotate(270,w/2f,h/2f);
218 matrix
[all...]
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java44 // This matrix is recomputed when we go from the thumbnail image to
51 // This matrix remains the same when we go from the thumbnail image
55 // This is the final matrix which is computed as the concatenation
56 // of the base matrix and the supplementary matrix.
59 // Temporary buffer used for getting the values out of a matrix.
179 * @param resetSupp true to reset the transform matrix
258 * Setup the base matrix so that the image is centered and scaled properly.
261 * @param matrix The matrix
263 getProperBaseMatrix(Bitmap bitmap, Matrix matrix) argument
526 getValue(Matrix matrix, int whichValue) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DGalleryUtils.java301 float matrix[], float x, float y, float z) {
302 // The matrix is
307 Arrays.fill(matrix, 0, 16, 0);
308 matrix[0] = matrix[5] = matrix[15] = -z;
309 matrix[8] = x;
310 matrix[9] = y;
311 matrix[10] = matrix[1
300 setViewPointMatrix( float matrix[], float x, float y, float z) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCameraScreenNail.java278 protected void updateTransformMatrix(float[] matrix) { argument
279 super.updateTransformMatrix(matrix);
280 Matrix.translateM(matrix, 0, .5f, .5f, 0);
281 Matrix.scaleM(matrix, 0, mScaleX, mScaleY, 1f);
282 Matrix.translateM(matrix, 0, -.5f, -.5f, 0);
H A DFocusOverlayManager.java178 Matrix matrix = new Matrix();
179 Util.prepareMatrix(matrix, mMirror, mDisplayOrientation,
181 // In face detection, the matrix converts the driver coordinates to UI
182 // coordinates. In tap focus, the inverted matrix converts the UI
184 matrix.invert(mMatrix);
H A DUtil.java641 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument
644 matrix.setScale(mirror ? -1 : 1, 1);
646 matrix.postRotate(displayOrientation);
649 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
650 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLCanvasImpl.java114 float matrix[] = mMatrixValues;
115 Matrix.setIdentityM(matrix, 0);
118 Matrix.translateM(matrix, 0, 0, height, 0);
119 Matrix.scaleM(matrix, 0, 1, -1, 1);
257 public void multiplyMatrix(float matrix[], int offset) { argument
259 Matrix.multiplyMM(temp, 0, mMatrixValues, 0, matrix, offset);
287 // Reset the texture matrix. We will set our own texture coordinates
314 // Transforms two points by the given matrix m. The result
575 private static boolean isMatrixRotatedOrFlipped(float matrix[]) { argument
577 return Math.abs(matrix[MSKEW_
[all...]
H A DSurfaceTextureScreenNail.java130 protected void updateTransformMatrix(float[] matrix) {} argument
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoSource.java194 Matrix matrix = new Matrix();
195 matrix.setRotate(data.orientation,
200 matrix, true);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java576 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument
579 matrix.setScale(mirror ? -1 : 1, 1);
581 matrix.postRotate(displayOrientation);
584 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
585 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
H A DFocusManager.java126 Matrix matrix = new Matrix();
127 Util.prepareMatrix(matrix, mirror, displayOrientation,
129 // In face detection, the matrix converts the driver coordinates to UI
130 // coordinates. In tap focus, the inverted matrix converts the UI
132 matrix.invert(mMatrix);
/packages/apps/Calendar/src/com/android/calendar/event/
H A DAttendeesView.java122 ColorMatrix matrix = new ColorMatrix();
123 matrix.setSaturation(0);
124 mGrayscaleFilter = new ColorMatrixColorFilter(matrix);
/packages/apps/Browser/src/com/android/browser/
H A DTabBar.java398 // TODO: We should change the matrix/shader only when needed
399 final Matrix matrix = mSelected ? mActiveMatrix : mInactiveMatrix;
400 matrix.setTranslate(-left, 0.0f);
401 (mSelected ? mActiveShader : mInactiveShader).setLocalMatrix(matrix);
/packages/apps/Music/src/com/android/music/
H A DMusicUtils.java1298 Matrix matrix = new Matrix();
1299 matrix.setTranslate(-bwidth/2, -bheight/2); // move bitmap center to origin
1300 matrix.postRotate(10);
1301 matrix.postScale(scale, scale);
1302 matrix.postTranslate(vwidth/2, vheight/2); // Move bitmap center to view center
1303 c.drawBitmap(bm, matrix, paint);

Completed in 1751 milliseconds