/external/mesa3d/src/gallium/state_trackers/xorg/ |
H A D | xorg_renderer.c | 27 static INLINE void map_point(float *mat, float x, float y, argument 30 if (!mat) { 36 *out_x = mat[0]*x + mat[3]*y + mat[6]; 37 *out_y = mat[1]*x + mat[4]*y + mat[7]; 38 if (!is_affine(mat)) { 39 float w = 1/(mat[ [all...] |
/external/mesa3d/src/mesa/math/ |
H A D | m_matrix.c | 105 * \param mat a pointer to a GLmatrix structure. 111 #define TEST_MAT_FLAGS(mat, a) \ 112 ((MAT_FLAGS_GEOMETRY & (~(a)) & ((mat)->flags) ) == 0) 206 * \param mat pointer to a GLmatrix structure containing the left multiplication 214 static void matrix_multf( GLmatrix *mat, const GLfloat *m, GLuint flags ) argument 216 mat->flags |= (flags | MAT_DIRTY_TYPE | MAT_DIRTY_INVERSE); 218 if (TEST_MAT_FLAGS(mat, MAT_FLAGS_3D)) 219 matmul34( mat->m, mat->m, m ); 221 matmul4( mat 794 _math_matrix_rotate( GLmatrix *mat, GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) argument 978 _math_matrix_frustum( GLmatrix *mat, GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearval, GLfloat farval ) argument 1018 _math_matrix_ortho( GLmatrix *mat, GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearval, GLfloat farval ) argument 1064 _math_matrix_scale( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z ) argument 1094 _math_matrix_translate( GLmatrix *mat, GLfloat x, GLfloat y, GLfloat z ) argument 1455 _math_matrix_loadf( GLmatrix *mat, const GLfloat *m ) argument [all...] |
/external/opencv/cv/src/ |
H A D | cvcontours.cpp | 202 CvMat stub, *mat = (CvMat*)_img; local 211 CV_CALL( mat = cvGetMat( mat, &stub )); 213 if( !CV_IS_MASK_ARR( mat )) 216 size = cvSize( mat->width, mat->height ); 217 step = mat->step; 218 img = (uchar*)(mat->data.ptr); 320 cvThreshold( mat, mat, 1194 CvMat stub, *mat; local [all...] |
H A D | cvshapedescr.cpp | 1140 CvMat stub, *mat = 0; local 1161 CV_CALL( mat = cvGetMat( array, &stub )); 1162 if( CV_MAT_TYPE(mat->type) == CV_32SC2 || 1163 CV_MAT_TYPE(mat->type) == CV_32FC2 ) 1166 CV_SEQ_KIND_GENERIC, mat, &contour_header, &block )); 1167 mat = 0; 1169 else if( CV_MAT_TYPE(mat->type) != CV_8UC1 && 1170 CV_MAT_TYPE(mat->type) != CV_8SC1 ) 1183 if( mat ) 1185 CvSize size = cvGetMatSize(mat); [all...] |
H A D | cvhistogram.cpp | 65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, 109 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, 199 CvMat mat; local 200 CV_CALL( cvGetMat( hist->bins, &mat, 0, 1 )); 201 CV_CALL( cvThreshold( &mat, &mat, thresh, 0, CV_THRESH_TOZERO )); 205 CvSparseMat* mat = (CvSparseMat*)hist->bins; local 209 for( node = cvInitSparseMatIterator( mat, &iterator ); 212 float* val = (float*)CV_NODE_VAL( mat, node ); 236 CvMat mat; local 245 CvSparseMat* mat = (CvSparseMat*)hist->bins; local 292 CvMat mat; local 338 CvSparseMat* mat = (CvSparseMat*)hist->bins; local 1067 CvSparseMat* mat = (CvSparseMat*)(hist->bins); local 1148 CvMatND* mat = (CvMatND*)(hist->bins); local 1333 CvSparseMat* mat = (CvSparseMat*)(hist->bins); local 1428 CvMat stub, *mat = (CvMat*)img[i]; local 1457 CvMat stub, *mat = (CvMat*)mask; local 1495 CvSparseMat* mat = (CvSparseMat*)(hist->bins); local 1533 CvSparseMat* mat = (CvSparseMat*)(hist->bins); local 1573 CvMatND* mat = (CvMatND*)(hist->bins); local 1778 CvSparseMat* mat = (CvSparseMat*)(hist->bins); local 1841 CvMatND* mat = (CvMatND*)(hist->bins); local 1984 CvSparseMat* mat = (CvSparseMat*)(hist->bins); local 2072 CvMat stub, *mat = (CvMat*)(i < dims ? img[i] : dst); local 2176 CvMat stub, *mat; local 2384 CvMatND * mat = (CvMatND *) cvReadByName( fs, node, "mat" ); local [all...] |
H A D | cvhough.cpp | 751 CvMat* mat = 0; local 787 mat = (CvMat*)lineStorage; 789 if( !CV_IS_MAT_CONT( mat->type ) || (mat->rows != 1 && mat->cols != 1) ) 793 if( CV_MAT_TYPE( mat->type ) != lineType ) 797 CV_CALL( lines = cvMakeSeqHeaderForArray( lineType, sizeof(CvSeq), elemSize, mat->data.ptr, 798 mat->rows + mat->cols - 1, &lines_header, &lines_block )); 828 if( mat ) 1086 CvMat* mat = 0; local [all...] |
/external/opencv/cxcore/src/ |
H A D | cxconvert.cpp | 799 CvMat stub, *mat = (CvMat*)(k == 0 ? src[i] : dst[i]); local 802 if( !CV_IS_MAT(mat) ) 803 CV_CALL( mat = cvGetMat( mat, &stub )); 807 depth = CV_MAT_DEPTH(mat->type); 809 size = cvGetMatSize(mat); 812 if( CV_MAT_DEPTH(mat->type) != depth ) 815 if( mat->cols != size.width || mat->rows != size.height ) 820 src0[i] = mat [all...] |
H A D | cxmatrix.cpp | 55 CvMat stub, *mat = (CvMat*)array; local 62 if( !CV_IS_MAT( mat )) 65 CV_CALL( mat = cvGetMat( mat, &stub, &coi )); 70 size = cvGetMatSize( mat ); 73 type = CV_MAT_TYPE(mat->type); 77 if( CV_IS_MAT_CONT( mat->type )) 83 data = mat->data.ptr; 84 step = mat->step; 138 CvMat stub, *mat local 777 CvMat stub, *mat = (CvMat*)arr; local [all...] |
H A D | cxutils.cpp | 817 CvMat stub, *mat = (CvMat*)arr; local 827 if( !CV_IS_MAT(mat) ) 828 CV_CALL( mat = cvGetMat( mat, &stub )); 833 cols = mat->cols; 834 step = mat->step; 835 arr_size = cols*mat->rows; 837 cont_flag = CV_IS_MAT_CONT(mat->type); 838 elem_size = CV_ELEM_SIZE(mat->type); 841 idata = mat 913 CvMat stub, *mat = (CvMat*)arr; local [all...] |
/external/skia/src/gpu/ |
H A D | GrClipMaskManager.cpp | 43 SkMatrix mat; local 47 mat.setIDiv(result->width(), result->height()); 48 mat.preTranslate(SkIntToScalar(-devBound.fLeft), 50 mat.preConcat(drawState->getViewMatrix()); 56 mat,
|
H A D | GrPathUtils.cpp | 25 SkMatrix mat; local 26 mat.setTranslate((i % 2) ? pathBounds.fLeft : pathBounds.fRight, 28 mat.postConcat(viewM); 29 stretch = SkMaxScalar(stretch, mat.mapRadius(SK_Scalar1));
|
/external/skia/src/utils/ |
H A D | SkMatrix44.cpp | 701 typedef void (*Map2Procf)(const SkMScalar mat[][4], const float src2[], int count, float dst4[]); 702 typedef void (*Map2Procd)(const SkMScalar mat[][4], const double src2[], int count, double dst4[]); 704 static void map2_if(const SkMScalar mat[][4], const float* SK_RESTRICT src2, argument 716 static void map2_id(const SkMScalar mat[][4], const double* SK_RESTRICT src2, argument 728 static void map2_tf(const SkMScalar mat[][4], const float* SK_RESTRICT src2, argument 730 const float mat30 = SkMScalarToFloat(mat[3][0]); 731 const float mat31 = SkMScalarToFloat(mat[3][1]); 732 const float mat32 = SkMScalarToFloat(mat[3][2]); 743 static void map2_td(const SkMScalar mat[][4], const double* SK_RESTRICT src2, argument 746 dst4[0] = src2[0] + mat[ 755 map2_sf(const SkMScalar mat[][4], const float* SK_RESTRICT src2, int count, float* SK_RESTRICT dst4) argument 768 map2_sd(const SkMScalar mat[][4], const double* SK_RESTRICT src2, int count, double* SK_RESTRICT dst4) argument 780 map2_af(const SkMScalar mat[][4], const float* SK_RESTRICT src2, int count, float* SK_RESTRICT dst4) argument 798 map2_ad(const SkMScalar mat[][4], const double* SK_RESTRICT src2, int count, double* SK_RESTRICT dst4) argument 812 map2_pf(const SkMScalar mat[][4], const float* SK_RESTRICT src2, int count, float* SK_RESTRICT dst4) argument 827 map2_pd(const SkMScalar mat[][4], const double* SK_RESTRICT src2, int count, double* SK_RESTRICT dst4) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/transforms/ |
H A D | TransformationMatrix.cpp | 300 static bool decompose(const TransformationMatrix::Matrix4& mat, TransformationMatrix::DecomposedType& result) argument 303 memcpy(localMatrix, mat, sizeof(TransformationMatrix::Matrix4)); 780 TransformationMatrix mat; local 784 mat.m_matrix[0][0] = 1.0; 785 mat.m_matrix[0][1] = 0.0; 786 mat.m_matrix[0][2] = 0.0; 787 mat.m_matrix[1][0] = 0.0; 788 mat.m_matrix[1][1] = cosTheta; 789 mat.m_matrix[1][2] = sinTheta; 790 mat 855 TransformationMatrix mat; local 971 TransformationMatrix mat; local 981 TransformationMatrix mat; local 1000 multiply(const TransformationMatrix& mat) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
H A D | path.c | 1549 struct matrix *mat) 1560 mat->m[0], mat->m[1], mat->m[2], 1561 mat->m[3], mat->m[4], mat->m[5], 1562 mat->m[6], mat->m[7], mat 1548 path_render(struct path *p, VGbitfield paintModes, struct matrix *mat) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | ffvertex_prog.c | 655 const struct ureg *mat, 658 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_X, src, mat[0]); 659 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Y, src, mat[1]); 660 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Z, src, mat[2]); 661 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_W, src, mat[3]); 671 const struct ureg *mat, 681 emit_op2(p, OPCODE_MUL, tmp, 0, swizzle1(src,X), mat[0]); 682 emit_op3(p, OPCODE_MAD, tmp, 0, swizzle1(src,Y), mat[1], tmp); 683 emit_op3(p, OPCODE_MAD, tmp, 0, swizzle1(src,Z), mat[2], tmp); 684 emit_op3(p, OPCODE_MAD, dest, 0, swizzle1(src,W), mat[ 653 emit_matrix_transform_vec4( struct tnl_program *p, struct ureg dest, const struct ureg *mat, struct ureg src) argument 669 emit_transpose_matrix_transform_vec4( struct tnl_program *p, struct ureg dest, const struct ureg *mat, struct ureg src) argument 691 emit_matrix_transform_vec3( struct tnl_program *p, struct ureg dest, const struct ureg *mat, struct ureg src) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
H A D | ir_to_mesa.cpp | 1911 src_reg mat = get_temp(ir->type); local 1912 dst_reg mat_column = dst_reg(mat); 1928 this->result = mat;
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkMatrix.cpp | 604 static void normalize_perspective(SkScalar mat[9]) { argument 605 if (SkScalarAbs(mat[SkMatrix::kMPersp2]) > 1) { 607 mat[i] = SkScalarHalf(mat[i]); 671 //SkDebugf("Concat mat non-persp type: %d\n", tmp.getType()); 679 void SkMatrix::preConcat(const SkMatrix& mat) { argument 682 if(!mat.isIdentity()) { 683 this->setConcat(*this, mat); 687 void SkMatrix::postConcat(const SkMatrix& mat) { argument 690 if (!mat 717 sk_inv_determinant(const float mat[9], int isPerspective) argument 1641 SkTreatAsSprite(const SkMatrix& mat, int width, int height, unsigned subpixelBits) argument [all...] |
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
H A D | sctp_indata.c | 1507 struct mbuf *mat; local 1509 for (mat = dmbuf; mat; mat = SCTP_BUF_NEXT(mat)) { 1510 if (SCTP_BUF_IS_EXTENDED(mat)) { 1511 sctp_log_mb(mat, SCTP_MBUF_ICOPY);
|
H A D | sctp_input.c | 2542 struct mbuf *mat; local 2544 for (mat = m_sig; mat; mat = SCTP_BUF_NEXT(mat)) { 2545 if (SCTP_BUF_IS_EXTENDED(mat)) { 2546 sctp_log_mb(mat, SCTP_MBUF_SPLIT); 5638 struct mbuf *mat; local 5640 for (mat = SCTP_BUF_NEXT(mm); mat; ma 6208 struct mbuf *mat; local [all...] |
/external/deqp/modules/gles2/functional/ |
H A D | es2fShaderMatrixTests.cpp | 25 * - mat OP mat 26 * - mat OP vec 27 * - vec OP mat 28 * - mat OP scalar 29 * - OP mat 407 tcu::Matrix<T, Rows, Cols> negate (const tcu::Matrix<T, Rows, Cols>& mat) argument 413 retVal(r,c) = -mat(r, c); 421 tcu::Matrix<T, Rows, Cols> increment (const tcu::Matrix<T, Rows, Cols>& mat) argument 427 retVal(r,c) = mat( 433 decrement(const tcu::Matrix<T, Rows, Cols>& mat) argument [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fShaderMatrixTests.cpp | 25 * - mat OP mat 26 * - mat OP vec 27 * - vec OP mat 28 * - mat OP scalar 29 * - OP ( mat ) 31 * - OP mat 638 tcu::Matrix<T, Cols, Rows> transpose (const tcu::Matrix<T, Rows, Cols>& mat) argument 644 retVal(c, r) = mat(r, c); 666 float determinant (const tcu::Matrix<float, Size, Size>& mat); 669 determinant(const tcu::Matrix<float, 2, 2>& mat) argument 675 determinant(const tcu::Matrix<float, 3, 3>& mat) argument 686 determinant(const tcu::Matrix<float, 4, 4>& mat) argument 724 inverse(const tcu::Matrix<float, 2, 2>& mat) argument 740 inverse(const tcu::Matrix<float, 3, 3>& mat) argument 790 inverse(const tcu::Matrix<float, 4, 4>& mat) argument 845 negate(const tcu::Matrix<T, Rows, Cols>& mat) argument 859 increment(const tcu::Matrix<T, Rows, Cols>& mat) argument 871 decrement(const tcu::Matrix<T, Rows, Cols>& mat) argument [all...] |
H A D | es3fTextureUnitTests.cpp | 184 static Mat4 matExtend3To4 (const Mat3& mat) argument 189 Vec3 row = mat.getRow(rowNdx);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | path.c | 1549 struct matrix *mat) 1560 mat->m[0], mat->m[1], mat->m[2], 1561 mat->m[3], mat->m[4], mat->m[5], 1562 mat->m[6], mat->m[7], mat 1548 path_render(struct path *p, VGbitfield paintModes, struct matrix *mat) argument [all...] |
/external/mesa3d/src/mesa/main/ |
H A D | ffvertex_prog.c | 655 const struct ureg *mat, 658 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_X, src, mat[0]); 659 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Y, src, mat[1]); 660 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Z, src, mat[2]); 661 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_W, src, mat[3]); 671 const struct ureg *mat, 681 emit_op2(p, OPCODE_MUL, tmp, 0, swizzle1(src,X), mat[0]); 682 emit_op3(p, OPCODE_MAD, tmp, 0, swizzle1(src,Y), mat[1], tmp); 683 emit_op3(p, OPCODE_MAD, tmp, 0, swizzle1(src,Z), mat[2], tmp); 684 emit_op3(p, OPCODE_MAD, dest, 0, swizzle1(src,W), mat[ 653 emit_matrix_transform_vec4( struct tnl_program *p, struct ureg dest, const struct ureg *mat, struct ureg src) argument 669 emit_transpose_matrix_transform_vec4( struct tnl_program *p, struct ureg dest, const struct ureg *mat, struct ureg src) argument 691 emit_matrix_transform_vec3( struct tnl_program *p, struct ureg dest, const struct ureg *mat, struct ureg src) argument [all...] |
/external/mesa3d/src/mesa/program/ |
H A D | ir_to_mesa.cpp | 1911 src_reg mat = get_temp(ir->type); local 1912 dst_reg mat_column = dst_reg(mat); 1928 this->result = mat;
|