/packages/apps/Gallery2/jni/filters/ |
H A D | hue.c | 19 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 D | ImageFilterHue.java | 47 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float []matrix); argument
|
H A D | ImageFilterRedEye.java | 50 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, short[] matrix); argument
|
H A D | ColorSpaceMatrix.java | 34 * @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/tools/ |
H A D | MatrixFit.java | 22 // Simple implementation of a matrix fit in N dimensions. 75 // Make an empty (dim) x (dim + 1) matrix and fill it 89 // Make an empty (dim+1) x (dim+1) matrix and fill it 144 private void printMatrix(String name, double[][] matrix) { argument 146 for (int i = 0; i < matrix.length; i++) { 148 for (int j = 0; j < matrix[0].length; j++) { 149 str += "" + matrix[i][j] + " "; 156 * Transforms the given matrix into a row echelon matrix
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SurfaceTextureScreenNail.java | 132 protected void updateTransformMatrix(float[] matrix) {} argument
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageViewTouchBase.java | 39 // 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...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | TiledImageView.java | 245 public void positionFromMatrix(Matrix matrix) { argument 257 matrix.mapRect(mTempRectF); 258 matrix.getValues(mValues);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
H A D | TiledImageView.java | 257 public void positionFromMatrix(Matrix matrix) { argument 269 matrix.mapRect(mTempRectF); 270 matrix.getValues(mValues);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | DividedImageCanvas.java | 385 public void draw(final Canvas canvas, final Matrix matrix) { argument 387 canvas.drawBitmap(mDividedBitmap, matrix, null);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
H A D | ImageViewTouchBase.java | 44 // 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/Camera/src/com/android/camera/ |
H A D | CameraScreenNail.java | 306 protected void updateTransformMatrix(float[] matrix) { argument 307 super.updateTransformMatrix(matrix); 308 Matrix.translateM(matrix, 0, .5f, .5f, 0); 309 Matrix.scaleM(matrix, 0, mScaleX, mScaleY, 1f); 310 Matrix.translateM(matrix, 0, -.5f, -.5f, 0);
|
H A D | Util.java | 641 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/util/ |
H A D | GalleryUtils.java | 301 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/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 576 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);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 691 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument 694 matrix.setScale(mirror ? -1 : 1, 1); 696 matrix.postRotate(displayOrientation); 699 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); 700 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); 703 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument 706 matrix.setScale(mirror ? -1 : 1, 1); 708 matrix.postRotate(displayOrientation); 715 matrix.setConcat(mapping, matrix); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLES11Canvas.java | 146 float matrix[] = mMatrixValues; 147 Matrix.setIdentityM(matrix, 0); 150 Matrix.translateM(matrix, 0, 0, height, 0); 151 Matrix.scaleM(matrix, 0, 1, -1, 1); 260 public void multiplyMatrix(float matrix[], int offset) { argument 262 Matrix.multiplyMM(temp, 0, mMatrixValues, 0, matrix, offset); 290 // Reset the texture matrix. We will set our own texture coordinates 317 // Transforms two points by the given matrix m. The result 578 private static boolean isMatrixRotatedOrFlipped(float matrix[]) { argument 580 return Math.abs(matrix[MSKEW_ [all...] |
H A D | GLES20Canvas.java | 150 // Projection matrix 422 float[] matrix = mMatrices; 424 Matrix.multiplyMM(temp, MATRIX_SIZE, matrix, index, temp, 0); 425 System.arraycopy(temp, MATRIX_SIZE, matrix, index, MATRIX_SIZE); 429 public void multiplyMatrix(float[] matrix, int offset) { argument 433 Matrix.multiplyMM(temp, 0, currentMatrix, index, matrix, offset); 836 restore(); // restore matrix and alpha 841 save(); // save matrix and alpha and blending
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 150 // Projection matrix 422 float[] matrix = mMatrices; 424 Matrix.multiplyMM(temp, MATRIX_SIZE, matrix, index, temp, 0); 425 System.arraycopy(temp, MATRIX_SIZE, matrix, index, MATRIX_SIZE); 429 public void multiplyMatrix(float[] matrix, int offset) { argument 433 Matrix.multiplyMM(temp, 0, currentMatrix, index, matrix, offset); 836 restore(); // restore matrix and alpha 841 save(); // save matrix and alpha and blending
|