/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
RSConvolveTest.java | 34 native boolean convolveTest(String path, int X, int Y, byte[] input, byte[] output, float[] coeffs, boolean is3x3); 37 float[] coeffs = new float[9]; local 38 coeffs[0] = .5f; 39 coeffs[1] = .35f; 40 coeffs[2] = .1f; 41 coeffs[3] = 1.f; 42 coeffs[4] = 1.f; 43 coeffs[5] = 1.f; 44 coeffs[6] = .1f; 45 coeffs[7] = .35f 66 convolveTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, true); local 76 float[] coeffs = new float[25]; local 123 convolveTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, false); local [all...] |
RSColorMatrixTest.java | 34 native boolean colorMatrixTest(String path, int X, int Y, byte[] input, byte[] output, float[] coeffs, int optionFlag); 43 float[] coeffs = new float[9]; local 44 coeffs[0] = 1.f; 45 coeffs[1] = 0.3f; 46 coeffs[2] = 0.7f; 47 coeffs[3] = 0.2f; 48 coeffs[4] = 1.f; 49 coeffs[5] = -0.1f; 50 coeffs[6] = -0.5f; 51 coeffs[7] = 0.2f 67 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 0); local 83 float[] coeffs = new float[9]; local 97 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 1); local 114 float[] coeffs = new float[16]; local 132 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 2); local 149 float[] coeffs = new float[9]; local 163 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 3); local 180 float[] coeffs = new float[9]; local 194 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 4); local [all...] |
/external/chromium_org/third_party/skia/experimental/Intersection/ |
CubicParameterization_TestUtility.cpp | 6 static void parameter_coeffs(const Cubic& cubic, double coeffs[coeff_count]) { 18 calc_ABCD(ax, ay, coeffs); 30 calc_ABCD(ax, bx, cx, dx, ay, by, cy, dy, coeffs); 34 coeffs[index] = (*calc_proc[procIndex])(ax, bx, cx, dx, ay, by, cy, dy); 39 double coeffs[coeff_count]; local 40 parameter_coeffs(cubic, coeffs); 41 double xxx = coeffs[xxx_coeff] * point.x * point.x * point.x; 42 double xxy = coeffs[xxy_coeff] * point.x * point.x * point.y; 43 double xyy = coeffs[xyy_coeff] * point.x * point.y * point.y; 44 double yyy = coeffs[yyy_coeff] * point.y * point.y * point.y [all...] |
/external/skia/experimental/Intersection/ |
CubicParameterization_TestUtility.cpp | 6 static void parameter_coeffs(const Cubic& cubic, double coeffs[coeff_count]) { 18 calc_ABCD(ax, ay, coeffs); 30 calc_ABCD(ax, bx, cx, dx, ay, by, cy, dy, coeffs); 34 coeffs[index] = (*calc_proc[procIndex])(ax, bx, cx, dx, ay, by, cy, dy); 39 double coeffs[coeff_count]; local 40 parameter_coeffs(cubic, coeffs); 41 double xxx = coeffs[xxx_coeff] * point.x * point.x * point.x; 42 double xxy = coeffs[xxy_coeff] * point.x * point.x * point.y; 43 double xyy = coeffs[xyy_coeff] * point.x * point.y * point.y; 44 double yyy = coeffs[yyy_coeff] * point.y * point.y * point.y [all...] |
/external/eigen/Eigen/src/Geometry/ |
Hyperplane.h | 57 : m_coeffs(other.coeffs()) 166 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Hyperplane 171 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Hyperplane 183 Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0); 188 if(abs(coeffs().coeff(1))>abs(coeffs().coeff(0))) 189 return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0)) [all...] |
Quaternion.h | 60 inline Scalar x() const { return this->derived().coeffs().coeff(0); } 62 inline Scalar y() const { return this->derived().coeffs().coeff(1); } 64 inline Scalar z() const { return this->derived().coeffs().coeff(2); } 66 inline Scalar w() const { return this->derived().coeffs().coeff(3); } 69 inline Scalar& x() { return this->derived().coeffs().coeffRef(0); } 71 inline Scalar& y() { return this->derived().coeffs().coeffRef(1); } 73 inline Scalar& z() { return this->derived().coeffs().coeffRef(2); } 75 inline Scalar& w() { return this->derived().coeffs().coeffRef(3); } 78 inline const VectorBlock<const Coefficients,3> vec() const { return coeffs().template head<3>(); } 81 inline VectorBlock<Coefficients,3> vec() { return coeffs().template head<3>(); 84 inline const typename internal::traits<Derived>::Coefficients& coeffs() const { return derived().coeffs(); } function in class:Eigen::QuaternionBase 87 inline typename internal::traits<Derived>::Coefficients& coeffs() { return derived().coeffs(); } function in class:Eigen::QuaternionBase 276 inline Coefficients& coeffs() { return m_coeffs;} function in class:Eigen::Quaternion 277 inline const Coefficients& coeffs() const { return m_coeffs;} function in class:Eigen::Quaternion 355 inline const Coefficients& coeffs() const { return m_coeffs;} function in class:Eigen::Map 392 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Map 393 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Map [all...] |
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
Hyperplane.h | 155 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Hyperplane 160 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Hyperplane 171 Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0); 176 if(ei_abs(coeffs().coeff(1))>ei_abs(coeffs().coeff(0))) 177 return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0)) [all...] |
Scaling.h | 72 explicit inline Scaling(const VectorType& coeffs) : m_coeffs(coeffs) {} 74 const VectorType& coeffs() const { return m_coeffs; } function in class:Eigen::Scaling 75 VectorType& coeffs() { return m_coeffs; } function in class:Eigen::Scaling 79 { return Scaling(coeffs().cwise() * other.coeffs()); } 90 { return coeffs().asDiagonal() * other; } 95 { return other * s.coeffs().asDiagonal(); } 103 { return coeffs().asDiagonal() * other; } 107 { return Scaling(coeffs().cwise().inverse()); [all...] |
Quaternion.h | 93 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Quaternion 96 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Quaternion 193 { m_coeffs = other.coeffs().template cast<Scalar>(); } 380 return Quaternion(conjugate().coeffs() / n2); 442 return Quaternion<Scalar>(scale0 * coeffs() + scale1 * other.coeffs()); 475 q.coeffs().coeffRef(i) = Scalar(0.5) * t; 478 q.coeffs().coeffRef(j) = (mat.coeff(j,i)+mat.coeff(i,j))*t; 479 q.coeffs().coeffRef(k) = (mat.coeff(k,i)+mat.coeff(i,k))*t; 491 q.coeffs() = vec [all...] |
/external/eigen/test/eigen2/ |
eigen2_regression.cpp | 23 hyperplane->coeffs().resize(size + 1); 27 hyperplane->coeffs().coeffRef(j) = ei_random<Scalar>(); 28 } while(ei_abs(hyperplane->coeffs().coeff(j)) < 0.5); 39 Scalar x = - (hyperplane->coeffs().start(size).cwise()*cur_point).sum(); 40 cur_point *= hyperplane->coeffs().coeff(size) / x; 74 result.coeffs() *= original.coeffs().coeff(size)/result.coeffs().coeff(size); 75 typename VectorType::Scalar error = (result.coeffs() - original.coeffs()).norm() / original.coeffs().norm() [all...] |
/external/eigen/bench/ |
quat_slerp.cpp | 13 return Q((a.coeffs() * (1.0-t) + b.coeffs() * t).normalized()); 41 return Q(scale0 * a.coeffs() + scale1 * b.coeffs()); 72 return Q(scale0 * a.coeffs() + scale1 * b.coeffs()); 92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); 94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ) [all...] |
/external/eigen/Eigen/src/Eigen2Support/ |
LeastSquares.h | 44 Vector3d coeffs; // will store the coefficients a, b, c 48 &coeffs, 53 * Now the vector \a coeffs is approximately 97 result->coeffRef(i) = - h.coeffs()[i] / h.coeffs()[funcOfOthers]; 99 result->coeffRef(i) = - h.coeffs()[i+1] / h.coeffs()[funcOfOthers]; 140 ei_assert(size+1 == result->coeffs().size());
|
/external/eigen/test/ |
geo_quaternion.cpp | 73 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); 74 q1.coeffs().setRandom(); 75 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); 88 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps) 166 q1.coeffs() = Vector4::Random().normalized(); 167 q2.coeffs() = -q1.coeffs(); [all...] |
geo_hyperplane.cpp | 111 CoeffsType converted_coeffs = HLine(pl).coeffs(); 112 converted_coeffs *= (line_u.coeffs()[0])/(converted_coeffs[0]); 113 VERIFY(line_u.coeffs().isApprox(converted_coeffs)); 131 p1->coeffs().setRandom(); 135 VERIFY_IS_APPROX(p1->coeffs(), p2->coeffs()); 136 VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs());
|
/external/chromium_org/third_party/skia/tools/ |
generate_fir_coeff.py | 55 coeffs = [] 71 coeffs.append(coverage * target_sum) 81 # The coeffs add up to too much. Subtract 1 from the ones which were rounded up the most. 85 # The coeffs add up to too little. Add 1 to the ones which were rounded down the most. 91 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)] 111 print "Adding %d to index %d to force round %f." % (delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index]) 118 print sum(coeffs), hex(sum(coeffs_rounded))
|
/external/skia/tools/ |
generate_fir_coeff.py | 55 coeffs = [] 71 coeffs.append(coverage * target_sum) 81 # The coeffs add up to too much. Subtract 1 from the ones which were rounded up the most. 85 # The coeffs add up to too little. Add 1 to the ones which were rounded down the most. 91 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)] 111 print "Adding %d to index %d to force round %f." % (delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index]) 118 print sum(coeffs), hex(sum(coeffs_rounded))
|
/external/eigen/Eigen/src/Core/ |
BandMatrix.h | 60 inline const CoefficientsType& coeffs() const { return derived().coeffs(); } function in class:Eigen::internal::BandMatrixBase 63 inline CoefficientsType& coeffs() { return derived().coeffs(); } function in class:Eigen::internal::BandMatrixBase 72 Index len = coeffs().rows(); 76 len = (std::min)(rows(),std::max<Index>(0,coeffs().rows() - (supers()-i))); 79 len = std::max<Index>(0,coeffs().rows() - (i + 1 - rows() + subs())); 80 return Block<CoefficientsType,Dynamic,1>(coeffs(), start, i, len, 1); 85 { return Block<CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows(),cols())); } 89 { return Block<const CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows(),cols())); 225 inline const CoefficientsType& coeffs() const { return m_coeffs; } function in class:Eigen::internal::BandMatrix 226 inline CoefficientsType& coeffs() { return m_coeffs; } function in class:Eigen::internal::BandMatrix 289 inline const CoefficientsType& coeffs() const { return m_coeffs; } function in class:Eigen::internal::BandMatrixWrapper [all...] |
/external/chromium_org/third_party/skia/src/opts/ |
SkBitmapProcState_arm_neon.cpp | 125 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local 126 coeffs = vld1_s16(filterValues); 127 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask0)); 128 coeff1 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask1)); 129 coeff2 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask2)); 130 coeff3 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask3)); 164 uint16x4_t coeffs; local 166 coeffs = vld1_u16(reinterpret_cast<const uint16_t*>(filterValues)); 167 coeffs &= vld1_u16(&mask[r][0]); 168 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_u16(coeffs), coeff_mask0)) 415 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local 452 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local [all...] |
/external/skia/src/opts/ |
SkBitmapProcState_arm_neon.cpp | 125 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local 126 coeffs = vld1_s16(filterValues); 127 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask0)); 128 coeff1 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask1)); 129 coeff2 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask2)); 130 coeff3 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask3)); 164 uint16x4_t coeffs; local 166 coeffs = vld1_u16(reinterpret_cast<const uint16_t*>(filterValues)); 167 coeffs &= vld1_u16(&mask[r][0]); 168 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_u16(coeffs), coeff_mask0)) 415 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local 452 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local [all...] |
/external/chromium_org/third_party/libwebp/enc/ |
cost.h | 30 const int16_t* coeffs; member in struct:__anon16891 41 typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs,
|
/external/webp/src/enc/ |
cost.h | 30 const int16_t* coeffs; member in struct:__anon37060 41 typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs,
|
/external/eigen/Eigen/src/Geometry/arch/ |
Geometry_SSE.h | 25 __m128 a = _a.coeffs().template packet<Aligned>(0); 26 __m128 b = _b.coeffs().template packet<Aligned>(0); 68 const double* a = _a.coeffs().data(); 69 Packet2d b_xy = _b.coeffs().template packet<Aligned>(0); 70 Packet2d b_zw = _b.coeffs().template packet<Aligned>(2);
|
/hardware/intel/img/psb_video/src/ |
psb_texture.c | 553 /* check whether we need to update coeffs */ 564 /* prepare coeffs if needed */ 568 sBltVP.psYUVCoeffs = (PPVR2D_YUVCOEFFS) & texture_priv->coeffs; 723 psb_transform_coeffs coeffs, transfer_matrix; local 724 memset(&coeffs, 0, sizeof(psb_transform_coeffs)); 745 psb_transform_sathuecoeffs(&coeffs, 754 RGB_offset, coeffs.rY, coeffs.rCb, coeffs.rCr, 760 &pPriv->coeffs.rY, &pPriv->coeffs.rU [all...] |
/external/eigen/doc/special_examples/ |
Tutorial_sparse_example_details.cpp | 8 void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs, 16 else coeffs.push_back(T(id,id1,w)); // unknown coefficient
|
/external/opencv/cvaux/src/ |
cvepilines.cpp | 100 CvStereoLineCoeff* coeffs, 116 partX = coeffs->Xcoef + coeffs->XcoefA *alpha + 117 coeffs->XcoefB*betta + coeffs->XcoefAB*alphabetta; 119 partY = coeffs->Ycoef + coeffs->YcoefA *alpha + 120 coeffs->YcoefB*betta + coeffs->YcoefAB*alphabetta; 122 partZ = coeffs->Zcoef + coeffs->ZcoefA *alpha [all...] |