HomeSort by relevance Sort by last modified time
    Searched refs:Matrix (Results 276 - 300 of 946) sorted by null

<<11121314151617181920>>

  /cts/tests/openglperf2/jni/primitive/fullpipeline/
FullPipelineRenderer.cpp 112 mModelMatrix = new Matrix();
129 // Set the view matrix.
130 mViewMatrix = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ);
132 // Create a new perspective projection matrix. The height will stay the same
142 mProjectionMatrix = Matrix::newFrustum(left, right, bottom, top, near, far);
159 Matrix* transformMatrix = Matrix::newScale(scale, scale, scale);
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
ResourceModifier.java 27 import android.graphics.Matrix;
67 Matrix matrix = new Matrix(); local
68 matrix.setTranslate(texWidth / 2.0f, texHeight / 2.0f);
69 matrix.postRotate(45, 0, 0);
70 translatedShader.setLocalMatrix(matrix);
74 matrix = new Matrix();
75 matrix.setScale(0.5f, 0.5f)
    [all...]
  /external/eigen/test/
inverse.cpp 45 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
48 //First: an invertible matrix
63 //Second: a rank one matrix (not invertible, except for 1x1 matrices)
74 Matrix<Scalar, MatrixType::RowsAtCompileTime+1, MatrixType::RowsAtCompileTime+1, MatrixType::Options> m5;
100 CALL_SUBTEST_1( inverse(Matrix<double,1,1>()) );
104 CALL_SUBTEST_4( inverse(Matrix<float,4,4,DontAlign>()) );
115 CALL_SUBTEST_7( inverse(Matrix<double,4,4,DontAlign>()) );
basicstuff.cpp 18 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
19 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType;
30 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows, rows);
74 Matrix<Scalar, 1, MatrixType::RowsAtCompileTime> rv(rows);
75 Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> cv(rows);
150 typedef Matrix<RealScalar, MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime> RealMatrixType;
202 Matrix<Scalar,4,1> m(raw);
206 VERIFY_IS_EQUAL(m,(Matrix<Scalar,4,1>(raw[0],raw[1],raw[2],raw[3])));
210 Matrix<Scalar,3,1> m(raw);
214 VERIFY_IS_EQUAL(m,(Matrix<Scalar,3,1>(raw[0],raw[1],raw[2])))
    [all...]
qr_fullpivoting.cpp 26 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> MatrixQType;
87 // let's build a matrix more stable to inverse
101 // now construct a matrix with prescribed determinant
155 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,10,20> >(10,20)));
156 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,10,20> >(Matrix<float,10,20>::Random())));
157 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,20,10> >(20,10)));
158 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,20,10> >(Matrix<float,20,10>::Random())));
  /external/eigen/unsupported/Eigen/src/NonLinearOptimization/
dogleg.h 7 const Matrix< Scalar, Dynamic, Dynamic > &qrfac,
8 const Matrix< Scalar, Dynamic, 1 > &diag,
9 const Matrix< Scalar, Dynamic, 1 > &qtb,
11 Matrix< Scalar, Dynamic, 1 > &x)
30 Matrix< Scalar, Dynamic, 1 > wa1(n), wa2(n);
  /external/skia/src/sfnt/
SkOTTable_glyf.h 156 union Matrix {
180 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::WordValue
186 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::ByteValue
192 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::WordIndex
198 SkOTTableGlyphData::Composite::Component::Transform::Matrix matrix; member in struct:SkOTTableGlyphData::Composite::Component::Transform::ByteIndex
  /external/webrtc/talk/app/webrtc/java/android/org/webrtc/
RendererCommon.java 32 import android.opengl.Matrix;
140 // Matrix with transform y' = 1 - y.
149 // Matrix with transform x' = 1 - x.
159 * Returns texture matrix that will have the effect of rotating the frame |rotationDegree|
164 Matrix.setRotateM(rotationMatrix, 0, rotationDegree, 0, 0, 1);
170 * Returns new matrix with the result of a * b.
174 Matrix.multiplyMM(resultMatrix, 0, a, 0, b, 0);
179 * Returns layout transformation matrix that applies an optional mirror effect and compensates
196 final float matrix[] = new float[16]; local
197 Matrix.setIdentityM(matrix, 0)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Matrix.java 27 * The Matrix class holds a 3x3 matrix for transforming coordinates.
29 public class Matrix {
42 public final static Matrix IDENTITY_MATRIX = new Matrix() {
44 throw new IllegalStateException("Matrix can not be modified");
48 public void set(Matrix src) {
103 public boolean setConcat(Matrix a, Matrix b) {
151 public boolean preConcat(Matrix other)
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
AdvancedBlendActivity.java 28 import android.graphics.Matrix;
71 Matrix m2 = new Matrix();
77 Matrix m3 = new Matrix();
  /frameworks/support/transition/api14/android/support/transition/
GhostViewApi14.java 21 import android.graphics.Matrix;
38 * draw the target view. We apply the same transformation matrix applied to the target view. For
49 public GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) {
114 /** The current transformation matrix of the target view */
115 Matrix mCurrentMatrix;
117 /** The matrix applied to the ghost view canvas */
118 private final Matrix mMatrix = new Matrix();
173 // Apply the matrix while adjusting the coordinate
    [all...]
  /packages/apps/Camera2/src/com/android/camera/
CaptureModuleUI.java 20 import android.graphics.Matrix;
110 public Matrix getPreviewTransform(Matrix m) {
162 Matrix m = new Matrix();
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
Paper.java 20 import android.opengl.Matrix;
83 Matrix.setIdentityM(mMatrix, 0);
84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0);
85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0);
86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0);
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
MotionEventHelper.java 19 import android.graphics.Matrix;
28 public static MotionEvent transformEvent(MotionEvent e, Matrix m) {
39 private static MotionEvent transformEventNew(MotionEvent e, Matrix m) {
46 private static MotionEvent transformEventOld(MotionEvent e, Matrix m) {
101 private static float transformAngle(Matrix m, float angleRadians) {
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/
MultiTouchView.java 26 import android.graphics.Matrix;
58 /** Base matrix that keep emulator->device display scaling */
59 private Matrix mBaseMatrix = new Matrix();
60 /** Matrix that is used to draw emulator's screen on the device. */
61 private Matrix mDrawMatrix = new Matrix();
131 * Computes draw matrix for the emulator screen update.
  /developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/watchface/
OpenGLWatchFaceService.java 24 import android.opengl.Matrix;
67 /** Projection transformation matrix. Converts from 3D to 2D. */
72 * relative coordinates. One matrix per camera position.
76 /** The view transformation matrix to use in ambient mode */
81 * coordinates. One matrix per degree of rotation.
86 * Products of {@link #mViewMatrices} and {@link #mProjectionMatrix}. One matrix per camera
200 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1);
205 // Set the camera position (View matrix). When active, move the eye around to show
210 Matrix.setLookAtM(mViewMatrices[i],
217 Matrix.setLookAtM(mAmbientViewMatrix
    [all...]
  /developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/watchface/
OpenGLWatchFaceService.java 24 import android.opengl.Matrix;
67 /** Projection transformation matrix. Converts from 3D to 2D. */
72 * relative coordinates. One matrix per camera position.
76 /** The view transformation matrix to use in ambient mode */
81 * coordinates. One matrix per degree of rotation.
86 * Products of {@link #mViewMatrices} and {@link #mProjectionMatrix}. One matrix per camera
200 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1);
205 // Set the camera position (View matrix). When active, move the eye around to show
210 Matrix.setLookAtM(mViewMatrices[i],
217 Matrix.setLookAtM(mAmbientViewMatrix
    [all...]
  /development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
OpenGLWatchFaceService.java 24 import android.opengl.Matrix;
65 /** Projection transformation matrix. Converts from 3D to 2D. */
70 * relative coordinates. One matrix per camera position.
74 /** The view transformation matrix to use in ambient mode */
79 * coordinates. One matrix per degree of rotation.
84 * Products of {@link #mViewMatrices} and {@link #mProjectionMatrix}. One matrix per camera
198 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1);
203 // Set the camera position (View matrix). When active, move the eye around to show
208 Matrix.setLookAtM(mViewMatrices[i],
215 Matrix.setLookAtM(mAmbientViewMatrix
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
TransformationUtils.java 6 import android.graphics.Matrix;
47 Matrix m = new Matrix();
97 // take the floor of the target width/height, not round. If the matrix
126 Matrix matrix = new Matrix(); local
127 matrix.setScale(minPercentage, minPercentage);
129 canvas.drawBitmap(toFit, matrix, paint);
150 * Returns a matrix with rotation set based on Exif orientation tag
201 Matrix matrix = new Matrix(); local
261 final Matrix matrix = new Matrix(); local
    [all...]
  /external/libtextclassifier/common/
embedding-network.cc 30 // Returns true if and only if matrix does not use any quantization.
31 bool CheckNoQuantization(const EmbeddingNetworkParams::Matrix &matrix) {
32 if (matrix.quant_type != QuantizationType::NONE) {
40 // Initializes a Matrix object with the parameters from the MatrixParams
44 bool InitNonQuantizedMatrix(const EmbeddingNetworkParams::Matrix &source_matrix,
45 EmbeddingNetwork::Matrix *mat) {
65 bool InitNonQuantizedVector(const EmbeddingNetworkParams::Matrix &source_matrix,
87 const EmbeddingNetwork::Matrix &weights,
317 const EmbeddingNetworkParams::Matrix matrix = model->GetEmbeddingMatrix(i) local
349 const EmbeddingNetworkParams::Matrix matrix = local
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
CanvasTest.java 35 import android.graphics.Matrix;
210 final Matrix m1 = new Matrix();
215 final Matrix m2 = new Matrix();
220 final Matrix m3 = mCanvas.getMatrix();
227 final Matrix m4 = mCanvas.getMatrix();
235 // test save current matrix only
236 Matrix m1 = new Matrix();
    [all...]
ComposeShaderTest.java 27 import android.graphics.Matrix;
105 Matrix translate1x1 = new Matrix();
107 Matrix translate0x1 = new Matrix();
109 Matrix translate1x0 = new Matrix();
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
GeometryMathUtils.java 21 import android.graphics.Matrix;
217 private static void concatMirrorMatrix(Matrix m, GeometryHolder holder) {
317 Matrix m = getCropSelectionToScreenMatrix(null, holder, width, height, frame.width(),
331 public static Matrix getImageToScreenMatrix(Collection<FilterRepresentation> geometry,
338 public static Matrix getPartialToScreenMatrix(Collection<FilterRepresentation> geometry,
349 Matrix compensation = new Matrix();
372 public static Matrix getOriginalToScreen(GeometryHolder holder, boolean rotate,
380 Matrix m = getCropSelectionToScreenMatrix(null, holder, (int) originalWidth,
407 Matrix m = getCropSelectionToScreenMatrix(crop, holder, photo.getWidth(), photo.getHeight()
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
AppWindowAnimator.java 30 import android.graphics.Matrix;
278 "thumbnail", "POS " + tmpFloats[Matrix.MTRANS_X]
279 + ", " + tmpFloats[Matrix.MTRANS_Y]);
280 thumbnail.setPosition(tmpFloats[Matrix.MTRANS_X], tmpFloats[Matrix.MTRANS_Y]);
284 + " matrix=[" + tmpFloats[Matrix.MSCALE_X]
285 + "," + tmpFloats[Matrix.MSKEW_Y]
286 + "][" + tmpFloats[Matrix.MSKEW_X]
287 + "," + tmpFloats[Matrix.MSCALE_Y] + "]")
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/
ComplexMovementRenderer.java 34 import android.opengl.Matrix;
122 // Update the MV matrix with new pose data.
135 // Set up projection matrix to match camera intrinsics.
137 // Set up view matrix to match current device positioning.
221 * Update the view matrix of the Renderer to follow the position of the device in the current
226 Matrix.setIdentityM(invertModelMat, 0);
229 Matrix.setIdentityM(temporaryMatrix, 0);
231 Matrix.setIdentityM(mPoseViewMatrix, 0);
232 Matrix.invertM(invertModelMat, 0,
234 Matrix.multiplyMM(temporaryMatrix, 0, mPoseViewMatrix, 0
    [all...]

Completed in 492 milliseconds

<<11121314151617181920>>