/cts/tests/openglperf2/jni/graphics/ |
Matrix.h | 17 class Matrix { 21 Matrix(); 22 Matrix(const Matrix& src); 24 bool equals(const Matrix& src); 25 // Loads this matrix with the identity matrix. 27 // Loads this matrix with the data from src. 28 void loadWith(const Matrix& src); 29 // Translates this matrix by the given amounts [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
MatrixStack.java | 19 import android.opengl.Matrix; 25 * A matrix stack, similar to OpenGL ES's internal matrix stack. 44 Matrix.frustumM(mMatrix, mTop, left, right, bottom, top, near, far); 55 Matrix.setIdentityM(mMatrix, mTop); 80 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset); 104 Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far); 127 Matrix.setRotateM(mTemp, 0, angle, x, y, z); 129 Matrix.multiplyMM(mMatrix, mTop, mTemp, MATRIX_SIZE, mTemp, 0); 137 Matrix.scaleM(mMatrix, mTop, x, y, z) [all...] |
Projector.java | 19 import android.opengl.Matrix; 43 Matrix.multiplyMM(mMVP, 0, mGrabber.mProjection, 0, mGrabber.mModelView, 0); 47 Matrix.multiplyMV(mV, 0, mMVP, 0, obj, objOffset); 57 * Get the current projection matrix. Has the side-effect of 58 * setting current matrix mode to GL_PROJECTION 67 * Get the current model view matrix. Has the side-effect of 68 * setting current matrix mode to GL_MODELVIEW
|
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/ |
MyGLRenderer.java | 23 import android.opengl.Matrix; 41 // mMVPMatrix is an abbreviation for "Model View Projection Matrix" 66 // Set the camera position (View matrix) 67 Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 70 Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0); 82 Matrix.setRotateM(mRotationMatrix, 0, mAngle, 0, 0, 1.0f); 84 // Combine the rotation matrix with the projection and camera view 86 // for the matrix multiplication product to be correct. 87 Matrix.multiplyMM(scratch, 0, mMVPMatrix, 0, mRotationMatrix, 0); 101 // this projection matrix is applied to object coordinate [all...] |
/external/clang/test/SemaCXX/ |
cxx11-call-to-deleted-constructor.cpp | 11 class Matrix { 18 template <class VT, unsigned int SIZE> using Vector = Matrix<VT, SIZE, 1>; 24 template <class VT> class Matrix<VT, 0, 0> { // expected-note {{passing argument to parameter here}} 27 Matrix(const unsigned int nRows, const unsigned int nColumns, const value_type* data = nullptr); 29 Matrix(const std::initializer_list<value_type>& list) = delete; // expected-note {{'Matrix' has been explicitly marked deleted here}} 35 Matrix<double> winI(0, 3); 37 winI = { inputPreL->at() }; // expected-error {{call to deleted constructor of 'cva::Matrix<double, 0, 0> &&'}}
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
EdgeView.java | 20 import android.opengl.Matrix; 35 // Each edge effect has a transform matrix, and each matrix has 16 elements. 37 // starting index of each matrix. 71 Matrix.setIdentityM(mMatrix, TOP_M); 72 Matrix.setIdentityM(mMatrix, LEFT_M); 73 Matrix.setIdentityM(mMatrix, BOTTOM_M); 74 Matrix.setIdentityM(mMatrix, RIGHT_M); 76 Matrix.rotateM(mMatrix, LEFT_M, 90, 0, 0, 1); 77 Matrix.scaleM(mMatrix, LEFT_M, 1, -1, 1) [all...] |
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);
|
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/ |
SimpleGLRenderer.java | 24 import android.opengl.Matrix; 43 // mMVPMatrix is an abbreviation for "Model View Projection Matrix" 68 // Set the camera position (View matrix) 69 Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 72 Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0); 84 Matrix.setRotateM(mRotationMatrix, 0, mAngle, 0, 0, 1.0f); 86 // Combine the rotation matrix with the projection and camera view 88 // for the matrix multiplication product to be correct. 89 Matrix.multiplyMM(scratch, 0, mMVPMatrix, 0, mRotationMatrix, 0); 103 // this projection matrix is applied to object coordinate [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLU.java | 77 Matrix.setLookAtM(scratch, 0, eyeX, eyeY, eyeZ, centerX, centerY, centerZ, 84 * Set up a 2D orthographic projection matrix 98 * Set up a perspective projection matrix 131 * @param model the current modelview matrix 134 * @param project the current projection matrix 136 * matrix data starts. 155 Matrix.multiplyMM(scratch, M_OFFSET, project, projectOffset, 163 Matrix.multiplyMV(scratch, V2_OFFSET, 197 * @param model the current modelview matrix 200 * @param project the current projection matrix [all...] |
/external/libgdx/tests/gdx-tests-android/src/com/badlogic/gdx/tests/android/ |
MatrixTest.java | 21 import android.opengl.Matrix;
45 Matrix.setIdentityM(a1, 0);
46 Matrix.setIdentityM(a2, 0);
47 Matrix.setIdentityM(a3, 0);
52 Matrix.multiplyMM(a1, 0, a2, 0, a3, 0);
55 results = "Matrix ops: " + ops + "\n";
|
/external/ceres-solver/include/ceres/internal/ |
eigen.h | 38 typedef Eigen::Matrix<double, Eigen::Dynamic, 1> Vector; 39 typedef Eigen::Matrix<double, 42 Eigen::RowMajor> Matrix; 44 typedef Eigen::Map<Matrix> MatrixRef; 46 typedef Eigen::Map<const Matrix> ConstMatrixRef; 49 typedef Eigen::Matrix<double, 64 // struct so that we can support statically sized Matrix and Maps. 67 typedef Eigen::Matrix <double, num_rows, num_cols, Eigen::RowMajor> 68 Matrix; 71 Eigen::Matrix<double, num_rows, num_cols, Eigen::RowMajor> [all...] |
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
RotationBase.h | 15 // in 2D and 3D space excepted Matrix and Quaternion. 32 /** corresponding linear transformation matrix type */ 33 typedef Matrix<Scalar,Dim,Dim> RotationMatrixType; 38 /** \returns an equivalent rotation matrix */ 59 * Constructs a Dim x Dim rotation matrix from the rotation \a r 63 Matrix<_Scalar, _Rows, _Cols, _Storage, _MaxRows, _MaxCols> 64 ::Matrix(const RotationBase<OtherDerived,ColsAtCompileTime>& r) 66 EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(Matrix,int(OtherDerived::Dim),int(OtherDerived::Dim)) 72 * Set a Dim x Dim rotation matrix from the rotation \a r 76 Matrix<_Scalar, _Rows, _Cols, _Storage, _MaxRows, _MaxCols> [all...] |
/external/llvm/lib/CodeGen/ |
RegAllocBase.h | 65 LiveRegMatrix *Matrix; 69 : TRI(nullptr), MRI(nullptr), VRM(nullptr), LIS(nullptr), Matrix(nullptr) {}
|
/external/opencv3/modules/flann/include/opencv2/flann/ |
matrix.h | 42 * Class that implements a simple rectangular matrix stored in a memory buffer and 43 * provides convenient matrix-like access using the [] operators. 46 class Matrix 56 Matrix() : rows(0), cols(0), stride(0), data(NULL) 60 Matrix(T* data_, size_t rows_, size_t cols_, size_t stride_ = 0) : 71 fprintf(stderr, "The cvflann::Matrix<T>::free() method is deprecated " 73 "responsible for deallocating the matrix memory (by doing" 74 "'delete[] matrix.data' for example)"); 106 Matrix<T> as() 108 return Matrix<T>((T*)data, rows, cols) [all...] |
/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/libs/hwui/hwui/ |
Canvas.h | 44 Matrix = 0x01, 50 MatrixClip = Matrix | Clip, 92 * that would change state (e.g. matrix or clip). Clients of asSkCanvas() 146 // Matrix 148 virtual void setMatrix(const SkMatrix& matrix) = 0; 150 virtual void concat(const SkMatrix& matrix) = 0; 200 virtual void drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix,
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
matrix.h | 41 // Matrix is a class for doing standard matrix operations on 2 dimensional 42 // matrices of any size. Results of matrix operations are stored in the 49 // 'In-place' operations that inherently change the size of the matrix (eg. 57 // Memory for storage is allocated when a matrix is resized only if the new 62 // matrix. TODO(claguna): albeit tricky, allow for data to be referenced 65 class Matrix { 67 Matrix() : num_rows_(0), num_columns_(0) {} 70 Matrix(size_t num_rows, size_t num_columns) 77 // Copies |data| into the new Matrix [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
DisplayTransformManager.java | 19 import android.opengl.Matrix; 52 * Map of level -> color transformation matrix. 57 * Temporary matrix used internally by {@link #computeColorMatrixLocked()}. 73 * Returns a copy of the color transform matrix set for a given level. 83 * Sets and applies a current color transform matrix for a given level. 85 * Note: all color transforms are first composed to a single matrix in ascending order based 89 * @param value the 4x4 color transform matrix (in column-major order), or {@code null} to 90 * remove the color transform matrix associated with the provided level 94 throw new IllegalArgumentException("Expected length: 16 (4x4 matrix)" 126 Matrix.setIdentityM(result[0], 0) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/ |
gdiplusmatrix.h | 4 * GDI+ Matrix class 36 class Matrix: public GdiplusBase 47 Matrix(): nativeMatrix(NULL), lastStatus(Ok) 51 Matrix(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy): 58 Matrix(const RectF& rect, const PointF *dstplg): 64 Matrix(const Rect& rect, const Point *dstplg): 70 ~Matrix() 74 Matrix* Clone() const 80 Matrix *result = new Matrix(cloneMatrix, lastStatus) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
GLES20TriangleRenderer.java | 34 import android.opengl.Matrix; 75 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); 76 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 77 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 89 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); 154 Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
GLES20TriangleRenderer.java | 34 import android.opengl.Matrix; 73 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); 74 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 75 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 87 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); 152 Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
/external/eigen/Eigen/src/Geometry/ |
RotationBase.h | 36 /** corresponding linear transformation matrix type */ 37 typedef Matrix<Scalar,Dim,Dim> RotationMatrixType; 38 typedef Matrix<Scalar,Dim,1> VectorType; 44 /** \returns an equivalent rotation matrix */ 47 /** \returns an equivalent rotation matrix 50 inline RotationMatrixType matrix() const { return derived().toRotationMatrix(); } function in class:Eigen::RotationBase 65 * - a DimxDim linear transformation matrix 66 * - a DimxDim diagonal matrix (axis aligned scaling) 99 // implementation of the generic product rotation * matrix 104 typedef Matrix<typename RotationDerived::Scalar,Dim,Dim> ReturnType [all...] |
/external/eigen/test/eigen2/ |
gsl_helper.h | 26 typedef gsl_matrix* Matrix; 28 static Matrix createMatrix(int rows, int cols) { return gsl_matrix_alloc(rows,cols); } 30 static void free(Matrix& m) { gsl_matrix_free(m); m=0; } 32 static void prod(const Matrix& m, const Vector& v, Vector& x) { gsl_blas_dgemv(CblasNoTrans,1,m,v,0,x); } 33 static void cholesky(Matrix& m) { gsl_linalg_cholesky_decomp(m); } 34 static void cholesky_solve(const Matrix& m, const Vector& b, Vector& x) { gsl_linalg_cholesky_solve(m,b,x); } 35 static void eigen_symm(const Matrix& m, Vector& eval, Matrix& evec) 38 Matrix a = createMatrix(m->size1, m->size2); 45 static void eigen_symm_gen(const Matrix& m, const Matrix& _b, Vector& eval, Matrix& evec [all...] |
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
SurfaceTextureRenderer.java | 23 import android.opengl.Matrix; 98 Matrix.setIdentityM(mSTMatrix, 0); 99 Matrix.setIdentityM(mMMatrix, 0); 100 Matrix.rotateM(mMMatrix, 0, 20, 0, 1, 0); 136 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 137 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 151 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); 226 Matrix.setLookAtM(mVMatrix, 0, 0, 0, 4f, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/ |
MyGLSurfaceView.java | 33 import android.opengl.Matrix; 78 Matrix.setIdentityM(mSTMatrix, 0); 79 Matrix.setIdentityM(mMMatrix, 0); 80 Matrix.rotateM(mMMatrix, 0, 20, 0, 1, 0); 116 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 117 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 131 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); 207 Matrix.setLookAtM(mVMatrix, 0, 0, 0, 4f, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|