Lines Matching refs:Matrix
20 import android.graphics.Matrix;
92 * transform matrix will be automatically adjusted based on the preview
123 * Transforms the preview with the identity matrix, ensuring there is no
128 mPreview.setTransform(new Matrix());
182 * This takes a matrix to apply to the texture view and uses the screen
185 * @param matrix the matrix to apply
188 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) {
194 mPreview.setTransform(matrix);
200 public void updateTransform(Matrix matrix) {
202 matrix.mapRect(previewRect);
217 Matrix addtionalTransform = new Matrix();
219 Matrix.ScaleToFit.CENTER);
220 matrix.postConcat(addtionalTransform);
221 mPreview.setTransform(matrix);
222 updatePreviewArea(matrix);
227 * matrix.
229 private void updatePreviewArea(Matrix matrix) {
231 matrix.mapRect(mPreviewArea);
244 * Returns a transformation matrix that implements rotation that is
263 * @return The transform matrix that should be applied to the
267 public Matrix getPreviewRotationalTransform(int currentDisplayOrientation,
271 return new Matrix();
274 Matrix transform = new Matrix();
275 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL);
293 transform.setRectToRect(rotatedRect, desiredBounds, Matrix.ScaleToFit.FILL);
297 transform.setRectToRect(normalRect, desiredBounds, Matrix.ScaleToFit.FILL);
301 transform.setRectToRect(rotatedRect, desiredBounds, Matrix.ScaleToFit.FILL);
306 transform.setRectToRect(normalRect, desiredBounds, Matrix.ScaleToFit.FILL);
314 * Updates the transform matrix based current width and height of
323 * rotation via matrix transformation implemented in getPreviewRotationalTransform.
337 Matrix matrix = new Matrix();
359 matrix = getPreviewRotationalTransform(mOrientation,
365 matrix = info.getPreviewTransform(mOrientation, new RectF(0, 0, mWidth, mHeight),
371 mPreview.setTransform(matrix);
372 updatePreviewArea(matrix);
410 Matrix matrix = new Matrix();
412 mPreview.getTransform(matrix).mapRect(area);
467 // Re-apply transform matrix for new surface texture