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

1234567891011>>

/external/chromium_org/third_party/qcms/src/
H A Dmatrix.h31 struct vector matrix_eval(struct matrix mat, struct vector v);
32 float matrix_det(struct matrix mat);
33 struct matrix matrix_identity(void);
34 struct matrix matrix_multiply(struct matrix a, struct matrix b);
35 struct matrix matrix_invert(struct matrix mat);
37 struct matrix matrix_invalid(void);
/external/chromium_org/cc/output/
H A Drender_surface_filters.cc27 void GetBrightnessMatrix(float amount, SkScalar matrix[20]) { argument
31 memset(matrix, 0, 20 * sizeof(SkScalar));
32 matrix[0] = matrix[6] = matrix[12] = amount;
33 matrix[18] = 1.f;
36 void GetSaturatingBrightnessMatrix(float amount, SkScalar matrix[20]) { argument
39 memset(matrix, 0, 20 * sizeof(SkScalar));
40 matrix[0] = matrix[
44 GetContrastMatrix(float amount, SkScalar matrix[20]) argument
51 GetSaturateMatrix(float amount, SkScalar matrix[20]) argument
70 GetHueRotateMatrix(float hue, SkScalar matrix[20]) argument
92 GetInvertMatrix(float amount, SkScalar matrix[20]) argument
99 GetOpacityMatrix(float amount, SkScalar matrix[20]) argument
105 GetGrayscaleMatrix(float amount, SkScalar matrix[20]) argument
127 GetSepiaMatrix(float amount, SkScalar matrix[20]) argument
147 CreateMatrixImageFilter( const SkScalar matrix[20], const skia::RefPtr<SkImageFilter>& input) argument
162 SkScalar matrix[20]; local
[all...]
/external/chromium_org/cc/test/
H A Dgeometry_test_utils.cc19 EXPECT_FLOAT_EQ((expected).matrix().get(0, 0), (actual).matrix().get(0, 0));
20 EXPECT_FLOAT_EQ((expected).matrix().get(1, 0), (actual).matrix().get(1, 0));
21 EXPECT_FLOAT_EQ((expected).matrix().get(2, 0), (actual).matrix().get(2, 0));
22 EXPECT_FLOAT_EQ((expected).matrix().get(3, 0), (actual).matrix().get(3, 0));
23 EXPECT_FLOAT_EQ((expected).matrix().get(0, 1), (actual).matrix()
[all...]
/external/ceres-solver/internal/ceres/
H A Dincomplete_lq_factorization_test.cc58 CompressedRowSparseMatrix matrix(1, 1, 1);
59 matrix.mutable_rows()[0] = 0;
60 matrix.mutable_rows()[1] = 1;
61 matrix.mutable_cols()[0] = 0;
62 matrix.mutable_values()[0] = 2;
65 IncompleteLQFactorization(matrix, 1, 0.0, 1, 0.0));
66 ExpectMatricesAreEqual(matrix, *l, 1e-16);
83 CompressedRowSparseMatrix matrix(10, 10, 100);
84 int* rows = matrix.mutable_rows();
85 int* cols = matrix
[all...]
/external/chromium_org/cc/layers/
H A Dvideo_frame_provider_client_impl.cc33 // This matrix is the default transformation for stream textures, and flips
85 void VideoFrameProviderClientImpl::DidUpdateMatrix(const float* matrix) { argument
87 matrix[0], matrix[4], matrix[8], matrix[12],
88 matrix[1], matrix[5], matrix[9], matrix[1
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
H A DFEColorMatrix.cpp76 static void saturateMatrix(float s, SkScalar matrix[20]) argument
78 matrix[0] = 0.213f + 0.787f * s;
79 matrix[1] = 0.715f - 0.715f * s;
80 matrix[2] = 0.072f - 0.072f * s;
81 matrix[3] = matrix[4] = 0;
82 matrix[5] = 0.213f - 0.213f * s;
83 matrix[6] = 0.715f + 0.285f * s;
84 matrix[7] = 0.072f - 0.072f * s;
85 matrix[
95 hueRotateMatrix(float hue, SkScalar matrix[20]) argument
116 luminanceToAlphaMatrix(SkScalar matrix[20]) argument
126 SkScalar matrix[20]; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
H A Darc.h33 struct matrix;
64 struct matrix *matrix);
69 struct matrix *matrix);
73 struct matrix *matrix);
77 struct matrix *matrix);
/external/mesa3d/src/gallium/state_trackers/vega/
H A Darc.h33 struct matrix;
64 struct matrix *matrix);
69 struct matrix *matrix);
73 struct matrix *matrix);
77 struct matrix *matrix);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowColorMatrixColorFilter.java11 private ColorMatrix matrix; field in class:ShadowColorMatrixColorFilter
14 public void __constructor__(ColorMatrix matrix) { argument
15 this.matrix = matrix;
20 this.matrix = new ColorMatrix(array);
25 return "ColorMatrixColorFilter<" + matrix + ">";
/external/chromium_org/ppapi/shared_impl/
H A Dcompositor_layer_data.h23 matrix[0] = 1.0f;
24 matrix[1] = 0.0f;
25 matrix[2] = 0.0f;
26 matrix[3] = 0.0f;
27 matrix[4] = 0.0f;
28 matrix[5] = 1.0f;
29 matrix[6] = 0.0f;
30 matrix[7] = 0.0f;
31 matrix[8] = 0.0f;
32 matrix[
41 float matrix[16]; member in struct:ppapi::CompositorLayerData::Transform
[all...]
/external/srec/srec/clib/
H A Dmatx_ops.c41 covdata **matrix; local
43 matrix = (covdata **) CALLOC(dimen, sizeof(covdata *),
46 matrix[ii] = (covdata *) CALLOC(dimen, sizeof(covdata),
48 return (matrix);
51 void delete_matrix(covdata **matrix, int dimen) argument
55 ASSERT(matrix);
57 FREE((char *)matrix[ii]);
58 FREE((char *)matrix);
62 void diagonal_elements(covdata *vector, covdata **matrix, int dim) argument
67 ASSERT(matrix);
73 scale_matrix_for_fixedpoint(imeldata **fixmat, covdata **matrix, int dimen) argument
127 imeldata **matrix; local
137 delete_fixed_matrix(imeldata **matrix, int dimen) argument
[all...]
H A Dmatx_ops.h22 static PINLINE void matrix_fixed_multiply_frame(imeldata *outvec, imeldata **matrix,
25 static PINLINE void matrix_fixed_multiply_frame(imeldata *outvec, imeldata **matrix, argument
31 ASSERT(matrix);
39 sum += matrix[ii][jj] * vector[jj];
/external/chromium_org/third_party/skia/src/core/
H A DSkMatrixUtils.h20 * Given a matrix and width/height, return true if the computed dst-rect would
38 static inline bool SkTreatAsSpriteFilter(const SkMatrix& matrix, argument
40 return SkTreatAsSprite(matrix, width, height, kSkSubPixelBitsForBilerp);
43 /** Decomposes the upper-left 2x2 of the matrix into a rotation (represented by
47 Returns true if successful. Returns false if the matrix is degenerate.
49 bool SkDecomposeUpper2x2(const SkMatrix& matrix,
/external/skia/src/core/
H A DSkMatrixUtils.h20 * Given a matrix and width/height, return true if the computed dst-rect would
38 static inline bool SkTreatAsSpriteFilter(const SkMatrix& matrix, argument
40 return SkTreatAsSprite(matrix, width, height, kSkSubPixelBitsForBilerp);
43 /** Decomposes the upper-left 2x2 of the matrix into a rotation (represented by
47 Returns true if successful. Returns false if the matrix is degenerate.
49 bool SkDecomposeUpper2x2(const SkMatrix& matrix,
/external/chromium_org/gpu/command_buffer/tests/
H A Docclusion_query_unittest.cc36 static void SetMatrix(float x, float z, float scale, float* matrix) { argument
37 matrix[0] = scale;
38 matrix[1] = 0.0f;
39 matrix[2] = 0.0f;
40 matrix[3] = 0.0f;
42 matrix[4] = 0.0f;
43 matrix[5] = scale;
44 matrix[6] = 0.0f;
45 matrix[7] = 0.0f;
47 matrix[
59 GLfloat matrix[16]; local
[all...]
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGTextElement.cpp41 AffineTransform matrix; local
51 matrix = t.toAffineTransform();
53 transform()->currentValue()->concatenate(matrix);
58 return *transform * matrix;
59 return matrix;
H A DSVGMatrixTearOff.cpp58 return m_contextTransform ? m_contextTransform->target()->matrix() : m_staticValue;
97 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
98 matrix->mutableValue()->translate(tx, ty);
99 return matrix.release();
104 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
105 matrix->mutableValue()->scale(s, s);
106 return matrix.release();
111 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
112 matrix->mutableValue()->scale(sx, sy);
113 return matrix
118 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
125 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
132 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
139 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
146 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
153 RefPtr<SVGMatrixTearOff> matrix = create(value()); local
[all...]
/external/chromium_org/third_party/skia/src/gpu/effects/
H A DGrSimpleTextureEffect.h19 * can have a matrix applied in the VS in both the local and position cases but not with a custom
27 const SkMatrix& matrix,
29 return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, GrTextureParams::kNone_FilterMode,
35 const SkMatrix& matrix,
38 return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, filterMode, coordSet));
42 const SkMatrix& matrix,
45 return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, p, coordSet));
60 const SkMatrix& matrix,
63 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) {
67 const SkMatrix& matrix,
26 Create(GrTexture* tex, const SkMatrix& matrix, GrCoordSet coordSet = kLocal_GrCoordSet) argument
34 Create(GrTexture* tex, const SkMatrix& matrix, GrTextureParams::FilterMode filterMode, GrCoordSet coordSet = kLocal_GrCoordSet) argument
41 Create(GrTexture* tex, const SkMatrix& matrix, const GrTextureParams& p, GrCoordSet coordSet = kLocal_GrCoordSet) argument
59 GrSimpleTextureEffect(GrTexture* texture, const SkMatrix& matrix, GrTextureParams::FilterMode filterMode, GrCoordSet coordSet) argument
66 GrSimpleTextureEffect(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params, GrCoordSet coordSet) argument
[all...]
/external/eigen/Eigen/src/LU/
H A DInverse.h24 static inline void run(const MatrixType& matrix, ResultType& result) argument
26 result = matrix.partialPivLu().inverse();
40 static inline void run(const MatrixType& matrix, ResultType& result) argument
43 result.coeffRef(0,0) = Scalar(1) / matrix.coeff(0,0);
51 const MatrixType& matrix,
59 determinant = matrix.coeff(0,0);
71 const MatrixType& matrix, const typename ResultType::Scalar& invdet,
74 result.coeffRef(0,0) = matrix.coeff(1,1) * invdet;
75 result.coeffRef(1,0) = -matrix.coeff(1,0) * invdet;
76 result.coeffRef(0,1) = -matrix
50 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& result, typename ResultType::Scalar& determinant, bool& invertible ) argument
70 compute_inverse_size2_helper( const MatrixType& matrix, const typename ResultType::Scalar& invdet, ResultType& result) argument
83 run(const MatrixType& matrix, ResultType& result) argument
94 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& inverse, typename ResultType::Scalar& determinant, bool& invertible ) argument
130 compute_inverse_size3_helper( const MatrixType& matrix, const typename ResultType::Scalar& invdet, const Matrix<typename ResultType::Scalar,3,1>& cofactors_col0, ResultType& result) argument
148 run(const MatrixType& matrix, ResultType& result) argument
164 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& inverse, typename ResultType::Scalar& determinant, bool& invertible ) argument
191 general_det3_helper(const MatrixBase<Derived>& matrix, int i1, int i2, int i3, int j1, int j2, int j3) argument
199 cofactor_4x4(const MatrixType& matrix) argument
217 run(const MatrixType& matrix, ResultType& result) argument
249 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& inverse, typename ResultType::Scalar& determinant, bool& invertible ) argument
282 inverse_impl(const MatrixType& matrix) argument
[all...]
H A DDeterminant.h19 (const MatrixBase<Derived>& matrix, int a, int b, int c)
21 return matrix.coeff(0,a)
22 * (matrix.coeff(1,b) * matrix.coeff(2,c) - matrix.coeff(1,c) * matrix.coeff(2,b));
27 (const MatrixBase<Derived>& matrix, int j, int k, int m, int n)
29 return (matrix.coeff(j,0) * matrix.coeff(k,1) - matrix
18 bruteforce_det3_helper(const MatrixBase<Derived>& matrix, int a, int b, int c) argument
26 bruteforce_det4_helper(const MatrixBase<Derived>& matrix, int j, int k, int m, int n) argument
[all...]
/external/opencv/cxcore/include/
H A Dcxcore.hpp213 CvMatrix() : matrix(0) {}
215 { matrix = cvCreateMat( rows, cols, type ); }
219 { matrix = cvInitMatHeader( hdr, rows, cols, type, data, step ); }
224 { matrix = cvCreateMatHeader( rows, cols, type );
225 cvSetData( matrix, data, step ); }
228 { matrix = m; }
232 matrix = m.matrix;
236 CvMatrix( const char* filename, const char* matname=0, int color=-1 ) : matrix(0)
239 CvMatrix( CvFileStorage* fs, const char* mapname, const char* matname ) : matrix(
348 CvMat* matrix; member in class:CvMatrix
[all...]
/external/chromium_org/third_party/skia/gm/
H A Dcolormatrix.cpp31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) { argument
32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
100 SkColorMatrix matrix; local
107 matrix.setIdentity();
108 setColorMatrix(&paint, matrix);
111 matrix.setRotate(SkColorMatrix::kR_Axis, 90);
112 setColorMatrix(&paint, matrix);
115 matrix.setRotate(SkColorMatrix::kG_Axis, 90);
116 setColorMatrix(&paint, matrix);
119 matrix
[all...]
/external/skia/gm/
H A Dcolormatrix.cpp31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) { argument
32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
100 SkColorMatrix matrix; local
107 matrix.setIdentity();
108 setColorMatrix(&paint, matrix);
111 matrix.setRotate(SkColorMatrix::kR_Axis, 90);
112 setColorMatrix(&paint, matrix);
115 matrix.setRotate(SkColorMatrix::kG_Axis, 90);
116 setColorMatrix(&paint, matrix);
119 matrix
[all...]
/external/chromium_org/third_party/skia/experimental/
H A DSkSetPoly3To3_D.cpp11 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]);
26 static void computeOuterProduct(SkMatrix* matrix, argument
42 matrix->reset();
43 matrix->setScaleX(SkDScalar_toScalar(tmp[0]));
44 matrix->setSkewY( SkDScalar_toScalar(tmp[1]));
45 matrix->setSkewX( SkDScalar_toScalar(tmp[2]));
46 matrix->setScaleY(SkDScalar_toScalar(tmp[3]));
54 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { argument
68 matrix->setConcat(dstOP, srcOP);
69 matrix
[all...]
/external/skia/experimental/
H A DSkSetPoly3To3_D.cpp11 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]);
26 static void computeOuterProduct(SkMatrix* matrix, argument
42 matrix->reset();
43 matrix->setScaleX(SkDScalar_toScalar(tmp[0]));
44 matrix->setSkewY( SkDScalar_toScalar(tmp[1]));
45 matrix->setSkewX( SkDScalar_toScalar(tmp[2]));
46 matrix->setScaleY(SkDScalar_toScalar(tmp[3]));
54 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { argument
68 matrix->setConcat(dstOP, srcOP);
69 matrix
[all...]

Completed in 2018 milliseconds

1234567891011>>